]> git.proxmox.com Git - grub2.git/blob - ChangeLog
c59df38c2e83bdc3373cc0d772a3e4b83891e1e0
[grub2.git] / ChangeLog
1 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
4 certainety.
5
6 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
9 non-RS part to avoid RS messing with GDT.
10 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11 Increase to suit in realmode routines.
12
13 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14
15 * grub-core/kern/i386/realmode.S: Increase alignment.
16 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
17
18 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
21 be deterministic.
22 (syndroms): Compute 0 syndrom.
23 (rs_recover): Use 0 syndrom.
24
25 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
26
27 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
28
29 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
32 brackets.
33
34 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
35
36 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
37 account.
38 (get_top_pad): Likewise.
39 (get_right_pad): Likewise.
40 (get_bottom_pad): Likewise.
41
42 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
45
46 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
47
48 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
49 attribute as the structure isn't guaranteed to be properly aligned.
50 (grub_efi_pci_device_path): Likewise.
51 (grub_efi_pccard_device_path): Likewise.
52 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
53 specify the size of `memory_type'.
54 (grub_efi_vendor_device_path): Likewise.
55 (grub_efi_controller_device_path): Likewise.
56 (grub_efi_acpi_device_path): Likewise.
57 (grub_efi_expanded_acpi_device_path): Likewise.
58 (grub_efi_atapi_device_path): Likewise.
59 (grub_efi_scsi_device_path): Likewise.
60 (grub_efi_fibre_channel_device_path): Likewise.
61 (grub_efi_1394_device_path): Likewise.
62 (grub_efi_usb_device_path): Likewise.
63 (grub_efi_usb_class_device_path): Likewise.
64 (grub_efi_i2o_device_path): Likewise.
65 (grub_efi_mac_address_device_path): Likewise.
66 (grub_efi_ipv4_device_path): Likewise.
67 (grub_efi_ipv6_device_path): Likewise.
68 (grub_efi_infiniband_device_path): Likewise.
69 (grub_efi_uart_device_path): Likewise.
70 (grub_efi_vendor_messaging_device_path): Likewise.
71 (grub_efi_hard_drive_device_path): Likewise.
72 (grub_efi_cdrom_device_path): Likewise.
73 (grub_efi_vendor_media_device_path): Likewise.
74 (grub_efi_file_path_device_path): Likewise.
75 (grub_efi_protocol_device_path): Likewise.
76 (grub_efi_piwg_device_path): Likewise.
77 (grub_efi_bios_device_path): Likewise.
78
79 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
82 (grub_ucs4_to_utf8_alloc): Likewise.
83 (grub_ucs4_to_utf8): Likewise.
84 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
85 (grub_ucs4_to_utf8_alloc): Likewise.
86
87 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
88
89 AFFS never uses unicode.
90
91 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
92 (grub_latin1_to_utf8): New inline function.
93 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
94
95 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
96
97 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
98 overflow.
99
100 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
101
102 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
103 (grub_squash_dirent_header): Likewise.
104 (read_chunk): Don't double swap.
105 (grub_squash_iterate_dir): Fix swap sizes.
106
107 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
108
109 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
110
111 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
112
113 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
114 (grub_hfs_iterate_dir): Likewise.
115
116 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
117
118 Fix video on platforms where unaligned access is forbidden.
119 Make several optimisations while on it.
120
121 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
122 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
123 (grub_video_fbblit_replace_32bit_1bit): Likewise.
124 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
125 Disable.
126 (grub_video_fbblit_replace_16bit_1bit):
127 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
128 (grub_video_fbblit_replace_8bit_1bit): Likewise.
129 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
130 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
131 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
132 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
133 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
134 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
135 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
136 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
137 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
138 (grub_video_fbblit_replace_index_RGB888): Likewise.
139 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
140 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
141 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
142 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
143 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
144 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
145 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
146 Disable.
147 (grub_video_fbblit_blend_XXX565_1bit):
148 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
149 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
150 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
151 void *.
152 * grub-core/video/fb/video_fb.c (common_blitter)
153 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
154 (grub_video_fb_create_render_target_from_pointer)
155 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
156 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
157 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
158 definition.
159 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
160
161 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
162
163 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
164 HH22 and HM10 relocations.
165
166 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
169
170 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
171
172 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
173 allocation succeeded.
174
175 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
178 argument a u8 pointer. All users updated.
179 Handle unaligned buffers.
180
181 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
182
183 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
184 add_part to workaround compiler bug.
185
186 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
189
190 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
191
192 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
193 Reserve alignment invariants.
194 (grub_multiboot_load): Likewise.
195 (retrieve_video_parameters): Likewise.
196 (grub_multiboot_make_mbi): Likewise.
197
198 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
199
200 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
201 incorrect pointer.
202
203 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
204
205 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
206 (grub_pata_pio_write): Likewise.
207
208 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
209
210 Add noreturn attributes and remove unreachable code.
211
212 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
213 code.
214 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
215 code. Mark as noreturn.
216 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
217 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
218 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
219 unreachable code.
220 * grub-core/kern/main.c (grub_main): Mark as noreturn.
221 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
222 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
223 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
224 * include/grub/kernel.h (grub_main): Mark as noreturn.
225 * include/grub/reader.h (grub_rescue_run): Likewise.
226
227 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
228
229 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
230 redundant declaration.
231
232 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
233
234 * include/grub/net.h (grub_net_network_level_interfaces): Remove
235 redundant declaration.
236 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
237
238 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
239
240 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
241 to ensure alignment.
242 (grub_hdparm_print_identify): Make argument uint16 * to ensure
243 alignment. Ensure tmp alignment.
244 (grub_cmd_hdparm): Ensure buf alignment.
245 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
246 to ensure alignment.
247 (grub_ata_dumpinfo): Ensure text alignment.
248 (grub_atapi_identify): Preserve alignment invariant.
249 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
250
251 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
254 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
255 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
256 * include/grub/misc.h (grub_reboot)
257 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
258 (grub_halt) [__mips__]: Likewise.
259
260 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
261
262 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
263 Remove redundant declaration.
264 (grub_mmap_get_post64): Likewise.
265 (grub_mmap_get_upper): Likewise.
266 (grub_mmap_get_lower): Likewise.
267
268 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
269
270 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
271 uint32_t * to ensure alignment.
272 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
273
274 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
275
276 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
277 uint16_t * to ensure alignment.
278 (sun_pc_partition_map_iterate): Make `block' a union to ensure
279 alignment.
280
281 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
282
283 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
284 to ensure alignment.
285 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
286
287 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
288
289 * grub-core/fs/ntfs.c (u16at): Make into inline function.
290 Handle unaligned pointers.
291 (u32at): Likewise.
292 (u64at): Likewise.
293 (fixup): Use byte access instead of v16at.
294 (find_attr): Fix imporper usage of v32at.
295 (read_data): Likewise.
296 (list_file): Handle byte-swapping and unaligned strings.
297 (grub_ntfs_label): Likewise.
298
299 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
300
301 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
302 as it's not necessarily aligned.
303
304 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
305
306 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
307 redundant declaration.
308 (grub_serial_init): Likewise.
309 (grub_terminfo_init): Likewise.
310
311 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
312
313 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
314 function.
315 (ZAP_HASH_IDX): Likewise.
316 (ZAP_LEAF_HASH_SHIFT): Likewise.
317 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
318 (LEAF_HASH): Likewise.
319 (ZAP_LEAF_NUMCHUNKS): Likewise.
320 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
321 alignment invariants. Return pointer. All users updated.
322 (ZAP_LEAF_ENTRY): Make into inline function.
323 (NBBY): Removed.
324 (xor): LIkewise.
325 (xor_out): Use grub_crypto_xor.
326 (dnode_get_path): Use grub_get_unaligned.
327 (nvlist_find_value): Likewise.
328 (grub_zfs_nvlist_lookup_uint64): Likewise.
329 (grub_zfs_nvlist_lookup_string): Likewise.
330 (get_nvlist_size): Likewise.
331 (grub_zfs_open): Likewise.
332 (fill_fs_info): Likewise.
333 (grub_zfs_dir): Likewise.
334 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
335 alignment invariants.
336 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
337 necessarily aligned.
338
339 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
340
341 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
342
343 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
344
345 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
346 arithmetic to conserve alignment invariants.
347
348 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
349
350 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
351 redundant declaration.
352 (grub_efiemu_mm_obtain_request): Likewise.
353 (grub_efiemu_prepare): Likewise.
354
355 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
356
357 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
358 to match types.
359
360 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
363 case of aunaligned recptr.
364 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
365 alignment.
366 (grub_hfsplus_btree_search): Handle unaligned index.
367
368 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
369
370 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
371 to get freetag and skip.
372
373 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
374
375 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
376 array.
377 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
378 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
379
380 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
383 name for checksum and fix allocation algorithm.
384
385 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
386
387 * include/grub/types.h (grub_properly_aligned_t): New type.
388 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
389 (grub_get_unaligned16): Add explicit casts.
390 (grub_get_unaligned32): Likewise.
391 (grub_get_unaligned64): Likewise.
392 (grub_set_unaligned16): New function.
393 (grub_set_unaligned32): Likewise.
394
395 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
396
397 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
398
399 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
400
401 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
402 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
403 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
404
405 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
408 conditionals.
409
410 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
413 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
414
415 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
416
417 Unify and improve RAID and crypto xor.
418
419 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
420 changed to grub_crypto_xor
421 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
422 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
423 Use bigger types when possible.
424
425 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * grub-core/disk/raid.c (scan_devices): Fix condition.
428
429 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
432 Make name a const ptr.
433
434 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
437 first argument a const pointer.
438 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
439 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
440 proto.
441 (grub_children_iterate): Likewise.
442 (grub_machine_mmap_iterate): Remove redundant declaration.
443
444 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
445
446 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
447 (grub_cmd_acpi) [!x86]: Disable EBDA.
448
449 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
450
451 Enable UTF8 in gnulib regexp.
452
453 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
454 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
455 (isupper): Use grub_isupper.
456 (isascii): New inline function.
457 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
458 * grub-core/lib/posix_wrap/wctype.h: Likewise.
459 * grub-core/normal/charset.c (grub_utf8_process): New function.
460 (grub_utf8_to_utf16): Use grub_utf8_process.
461 (grub_encode_utf8_character): New function.
462 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
463 * include/grub/charset.h (grub_utf8_process): New declaration.
464 (grub_encode_utf8_character): Likewise.
465 * include/grub/misc.h (grub_islower): New inline function.
466 (grub_isupper): Likewise.
467 (grub_strchrsub): Moved down to fix the definitions.
468
469 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
470
471 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
472 specification.
473
474 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
475
476 * include/grub/loader.h (grub_loader_register_preboot_hook):
477 Use struct preboot * and not void * for handle. All users updated.
478 (grub_loader_unregister_preboot_hook): Likewise.
479
480 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
483 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
484 UTF-16-BE. All users updated.
485 (grub_hfsplus_cmp_catkey): Fix unicode handling.
486 (grub_hfsplus_iterate_dir): Likewise.
487 (grub_hfsplus_label): Likewise.
488
489 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
492
493 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
494
495 Add missing const qualifiers.
496
497 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
498 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
499 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
500 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
501 (grub_lvm_check_flag): Likewise.
502 * grub-core/efiemu/i386/coredetect.c
503 (grub_efiemu_get_default_core_name): Likewise
504 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
505 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
506 * grub-core/fs/ntfs.c (fixup): Likewise.
507 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
508 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
509 (fzap_lookup): Likewise.
510 (zap_lookup): Likewise.
511 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
512 * grub-core/lib/legacy_parse.c (check_option): Likewise.
513 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
514 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
515 (grub_freebsd_add_meta_module): Likewise.
516 (grub_cmd_freebsd_module): Likewise.
517 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
518 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
519 (grub_xnu_writetree_get_size): Likewise.
520 (grub_xnu_writetree_toheap_real): Likewise.
521 (grub_xnu_find_key): Likewise.
522 (grub_xnu_create_key): Likewise.
523 (grub_xnu_create_value): Likewise.
524 (grub_xnu_register_memory): Likewise.
525 (grub_xnu_check_os_bundle_required): Likewise.
526 (grub_xnu_scan_dir_for_kexts): Likewise.
527 (grub_xnu_load_kext_from_dir): Likewise.
528 * grub-core/normal/color.c (color_list): Likewise.
529 * grub-core/normal/completion.c (current_word): Likewise.
530 * grub-core/normal/menu_entry.c (insert_string): Likewise.
531 * grub-core/term/serial.c (grub_serial_find): Likewise.
532 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
533 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
534 Likewise.
535 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
536 (grub_freebsd_add_meta_module): Likewise.
537 * include/grub/lib/arg.h (grub_arg_option): Likewise.
538 * include/grub/net.h (grub_net_card_driver): Likewise.
539 (grub_net_card): Likewise.
540 (grub_net_app_protocol): Likewise.
541 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
542 * include/grub/serial.h (grub_serial_find): Likewise.
543 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
544 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
545 (grub_xnu_create_value): Likewise.
546 (grub_xnu_find_key): Likewise.
547 (grub_xnu_scan_dir_for_kexts): Likewise.
548 (grub_xnu_load_kext_from_dir): Likewise.
549
550 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
551 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
552 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
553 Moved from here ...
554 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
555
556 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
557
558 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
559
560 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
561
562 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
563 (read_device): Fix size calculation.
564
565 2011-11-25 Robert Millan <rmh@gnu.org>
566
567 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
568 (find_root_device_from_libzfs): Add zpool output parser to be used
569 as fallback when libzfs isn't available.
570
571 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
572
573 * po/Makefile.in.in: Add missing escape-continuation.
574
575 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
576
577 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
578
579 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
580
581 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
582
583 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
584
585 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
586
587 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
590
591 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
592
593 * grub-core/lib/adler32.c: Add missing license specification.
594 * grub-core/lib/crc64.c: Likewise.
595 * grub-core/loader/i386/pc/plan9.c: Likewise.
596 * grub-core/partmap/plan.c: Likewise.
597
598 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
599
600 Add facility to debug GRUB with gdb under qemu.
601
602 * grub-core/gdb_grub.in: New file.
603 * grub-core/gmodule.pl.in: Likewise.
604 * grub-core/Makefile.core.def (gmodule.pl): New script.
605 (gdb_grub): Likewise.
606
607 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
608
609 * util/grub-mount.c (argp_parser): Accept relative pathes.
610 * util/grub-fstest.c (argp_parser): Likewise.
611
612 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
613
614 Plan9 support.
615
616 * Makefile.util.def (libgrubmods): Add
617 grub-core/partmap/plan.c.
618 * docs/grub.texi: Notice Plan9 support.
619 * grub-core/Makefile.core.def (plan9): New module.
620 (part_plan): Likewise.
621 * grub-core/loader/i386/pc/plan9.c: New file.
622 * grub-core/partmap/plan.c: Likewise.
623 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
624 define.
625 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
626 * include/grub/mm.h (grub_extend_alloc): New inline function.
627
628 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
629
630 Make Reed-Solomon faster by using power of generator representation of
631 GF(256)*.
632
633 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
634 (gf_double_t): Likewise.
635 (gf_invert): Removed.
636 (gf_powx): New array.
637 (gf_powx_inv): Likewise.
638 (scratch): Move higher.
639 (gf_reduce): Removed.
640 (gf_mul): Use powx.
641 (gf_invert): Likewise.
642 (init_inverts): Replaced with ...
643 (init_powx): ...this. All users updated.
644 (pol_evaluate): Replace multiplications with additions.
645 (rs_encode): Likewise.
646 (gauss_eliminate): Call gf_invert.
647 (grub_reed_solomon_add_redundancy): Call init_powx.
648 (grub_reed_solomon_recover): Call init_powx unconditionally.
649
650 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
651
652 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
653
654 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
655
656 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
657 disk->partiton for safety.
658
659 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
660
661 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
662 Fix a memory leak.
663 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
664
665 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
666
667 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
668
669 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
670
671 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
672
673 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
674
675 Fix spaces handling in proc/self/mountinfo.
676
677 * util/getroot.c (unescape): New function.
678 (grub_find_root_device_from_mountinfo): Use unescape.
679
680 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
681
682 Support ZFS embedding.
683
684 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
685 (grub_zfs_fs): Register grub_zfs_embed.
686
687 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
688
689 Fix MIPS compilation.
690
691 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
692 * include/grub/offsets.h: Rename decompressor fields from
693 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
694 * util/grub-mkimage.c (image_targets): Use new names.
695
696 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
697
698 Defer multiboot device parsing until we're in compressed part.
699
700 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
701 bsd_part. setdevice has fallen into disuse.
702 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
703 (bsd_part): Likewise.
704 (boot_dev): New variable.
705 (multiboot_trampoline): Don't parse multiboot device.
706 Pass multiboot device in %edx.
707 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
708 grub_boot_device.
709 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
710 Likewise.
711 * grub-core/kern/i386/pc/startup.S: Save edx.
712 (grub_boot_drive): Removed.
713 (grub_install_dos_part): Likewise.
714 (grub_install_bsd_part): Likewise.
715 (grub_boot_device): New variable.
716 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
717 (grub_install_bsd_part): Likewise.
718 (grub_boot_drive): Likewise.
719 (grub_boot_device): New variable.
720 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
721 Removed.
722 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
723 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
724 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
725 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
726 * util/grub-install.in: Remove redundant condition.
727
728 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
729
730 Fix bug introduced by previous commit.
731
732 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
733
734 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
735
736 Use decompressors framework on i386-pc. It increases core size
737 by 46 bytes but improves compatibility and maintainability.
738
739 * grub-core/Makefile.core.def (lzma_decompress): New image.
740 (kernel): Add i386_pc_ldflags.
741 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
742 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
743 to real_to_prot, prot_to_real and device info.
744 * include/grub/offsets.h: Renamed decompressor offsets.
745 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
746 (image_target_desc): Remove raw_size and rename decompressor fields.
747 (compress_kernel): Handle lzma.
748 (generate_image): Handle decompressors on i386-pc.
749
750 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
751
752 * configure.ac: Add -fno-asynchronous-unwind-tables.
753
754 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
755
756 Move assembly code to C by using intwrap. It increases core size
757 by 88 bytes but improves compatibility and maintainability.
758
759 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
760 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
761 ... here. Translated to C.
762 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
763 * grub-core/term/i386/pc/console.c (grub_console_getkey):
764 ... here. Translated to C.
765 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
766 * grub-core/term/i386/pc/console.c (grub_console_getxy):
767 ... here. Translated to C.
768 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
769 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
770 ... here. Translated to C.
771 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
772 * grub-core/term/i386/pc/console.c (grub_console_cls):
773 ... here. Translated to C.
774 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
775 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
776 ... here. Translated to C.
777 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
778 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
779 Translated to C.
780 * grub-core/term/i386/pc/console.c (int10_9): New function.
781 (grub_console_putchar): Likewise.
782 * include/grub/i386/pc/console.h: Removed the not anymore shared
783 functions.
784
785 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
786
787 Move grub_chainloader_real_boot out of the kernel.
788
789 * grub-core/Makefile.am: Remove machine/loader.h.
790 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
791 Removed.
792 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
793 variable.
794 (grub_relocator16_keep_a20_enabled): Likewise.
795 (grub_relocator16_boot): Fill new variables.
796 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
797 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
798 relocator.
799 (grub_chainloader_unload): Likewise.
800 (grub_chainloader_cmd): Likewise.
801 * include/grub/i386/pc/loader.h: Removed.
802 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
803 and esi. All initialisers updated.
804
805 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
806 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
807
808 * Makefile.util.def (grub-mount): New util.
809 * .bzrignore: Add grub-mount.
810 * configure.ac: Check for fuse and enable grub-mount if available.
811 * docs/man/grub-mount.h2m: New file.
812 * util/grub-mount.c: Likewise.
813
814 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
815
816 * grub-core/commands/efi/fixvideo.c: Gettextize.
817 * grub-core/commands/hashsum.c: Likewise.
818 * grub-core/commands/i386/cmostest.c: Likewise.
819 * grub-core/commands/i386/pc/drivemap.c: Likewise.
820 * grub-core/commands/i386/pc/lsapm.c: Likewise.
821 * grub-core/commands/i386/pc/sendkey.c: Likewise.
822 * grub-core/commands/lsmmap.c: Likewise.
823 * grub-core/commands/menuentry.c: Likewise.
824 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
825 * grub-core/commands/setpci.c: Likewise.
826 * grub-core/loader/i386/bsd.c: Likewise.
827 * grub-core/loader/i386/linux.c: Likewise.
828 * util/getroot.c: Likewise.
829 * util/grub-editenv.c: Likewise.
830 * util/grub-fstest.c: Likewise.
831 * util/grub-mkfont.c: Likewise.
832 * util/grub-mkimage.c: Likewise.
833 * util/grub-mkpasswd-pbkdf2.c: Likewise.
834 * util/grub-pe2elf.c: Likewise.
835 * util/grub-probe.c: Likewise.
836 * util/grub-setup.c: Likewise.
837 * util/ieee1275/ofpath.c: Likewise.
838 * util/misc.c: Likewise.
839 * util/raid.c: Likewise.
840
841 2011-11-11 Robert Millan <rmh@gnu.org>
842
843 * util/getroot.c (grub_util_get_geom_abstraction): Remove
844 __attribute__((unused)) from `os_dev', which *is* being used.
845
846 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
847
848 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
849 forgotten define.
850 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
851 GRUB_IA64_DL_GOT_ALIGN.
852 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
853 GRUB_IA64_DL_TRAMP_ALIGN.
854
855 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
856
857 Replace grub_fatal with normal errors in i386 linux loader.
858
859 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
860 (allocate_pages): Check find_efi_mmap_size return value.
861 (grub_e820_add_region): Return error.
862 (grub_linux_boot): Check mmap return value.
863
864 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
865
866 * grub-core/commands/acpihalt.c: Gettextized.
867 * grub-core/commands/cacheinfo.c: Likewise.
868 * grub-core/commands/cmp.c: Likewise.
869 * grub-core/commands/efi/loadbios.c: Likewise.
870 * grub-core/commands/gptsync.c: Likewise.
871 * grub-core/commands/ieee1275/suspend.c: Likewise.
872 * grub-core/commands/legacycfg.c: Likewise.
873 * grub-core/commands/memrw.c: Likewise.
874 * grub-core/commands/minicmd.c: Likewise.
875 * grub-core/commands/parttool.c: Likewise.
876 * grub-core/commands/time.c: Likewise.
877 * grub-core/commands/videoinfo.c: Likewise.
878 * grub-core/disk/geli.c: Likewise.
879 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
880 * grub-core/disk/luks.c: Likewise.
881 * grub-core/disk/lvm.c: Likewise.
882 * grub-core/font/font_cmd.c: Likewise.
883 * grub-core/fs/zfs/zfscrypt.c: Likewise.
884 * grub-core/fs/zfs/zfsinfo.c: Likewise.
885 * grub-core/gfxmenu/view.c: Likewise.
886 * grub-core/kern/emu/hostdisk.c: Likewise.
887 * grub-core/kern/emu/main.c: Likewise.
888 * grub-core/kern/emu/misc.c: Likewise.
889 * grub-core/kern/emu/mm.c: Likewise.
890 * grub-core/kern/mips/arc/init.c: Likewise.
891 * grub-core/kern/mips/loongson/init.c: Likewise.
892 * grub-core/kern/partition.c: Likewise.
893 * grub-core/lib/i386/halt.c: Likewise.
894 * grub-core/lib/mips/arc/reboot.c: Likewise.
895 * grub-core/lib/mips/loongson/reboot.c: Likewise.
896 * grub-core/loader/i386/pc/chainloader.c: Likewise.
897 * grub-core/loader/i386/xnu.c: Likewise.
898 * grub-core/loader/multiboot.c: Likewise.
899 * grub-core/net/bootp.c: Likewise.
900 * grub-core/net/net.c: Likewise.
901 * grub-core/normal/term.c: Likewise.
902 * grub-core/partmap/bsdlabel.c: Likewise.
903 * grub-core/parttool/msdospart.c: Likewise.
904 * grub-core/term/gfxterm.c: Likewise.
905 * grub-core/term/terminfo.c: Likewise.
906 * grub-core/video/i386/pc/vbe.c: Likewise.
907 * util/grub-menulst2cfg.c: Likewise.
908 * util/grub-mkdevicemap.c: Likewise.
909 * util/grub-mklayout.c: Likewise.
910 * util/grub-mkrelpath.c: Likewise.
911 * util/grub-script-check.c: Likewise.
912 * util/ieee1275/grub-ofpathname.c: Likewise.
913 * util/resolve.c: Likewise.
914
915 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
916
917 Support %1$d syntax.
918
919 * tests/printf_unit_test.c: New file.
920 * Makefile.util.def (printf_test): New test.
921 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
922
923 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
924
925 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
926 fix.
927
928 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
929
930 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
931 dprintf.
932 * grub-core/font/font.c (grub_font_load): Likewise.
933
934 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * util/grub-macho2img.c: Add comment concerning gettext.
937 * grub-core/lib/legacy_parse.c: Likewise.
938
939 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
940
941 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
942 (grub_xvasprintf): Likewise.
943
944 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
945
946 Add const keyword to grub_env_get and gettextize week days.
947
948 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
949 (grub_read_hook_datetime): Return const char *.
950 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
951 updated.
952 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
953 Mark for gettext.
954 (grub_get_weekday_name): Return const char *. Call gettext.
955 * grub-core/script/argv.c (grub_script_argv_append): Receive const
956 char * and len as the argument. All users updated.
957 (grub_script_argv_split_append): Receive const char *.
958 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
959 * include/grub/env.h (grub_env_get): Likewise.
960 (grub_env_read_hook_t): Return const char *.
961 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
962 (grub_script_argv_split_append): Likewise.
963
964 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
965
966 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
967
968 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
971 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
972
973 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
976 Fix prototype.
977
978 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
979
980 Fix mips compilation.
981
982 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
983 normal decoder.
984 (hashes): Use in embed decoder as well (for sizes).
985 (dec_stream_header): Fix embed decompressor logic.
986 (dec_stream_footer): Likewise.
987
988 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
991 an error and not a fatal on unrecognised relocation types.
992
993 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
994
995 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
996 Issue error rather than printf on unknown arguments.
997
998 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
1001 Make buf a const.
1002
1003 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
1006 Fix module name.
1007
1008 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
1011 leftover debug printf.
1012
1013 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
1016
1017 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
1020 A stylistic fix.
1021
1022 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1023
1024 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
1025
1026 2011-11-10 Shea Levy <slevy@tieronedesign.com>
1027
1028 Allow all modules to perform serial IO
1029
1030 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
1031 * include/grub/serial.h (grub_serial_port_configure): New inline
1032 function.
1033 (grub_serial_port_fetch): Likewise.
1034 (grub_serial_port_put): Likewise.
1035 (grub_serial_port_fini): Likewise.
1036 (grub_serial_find): New proto.
1037
1038 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 Put symlink at the end of the node and fix a potential
1041 memory corruption.
1042
1043 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
1044 Make symlink into an array.
1045 (set_rockridge): Set have_symlink and alloc_dirents.
1046 (grub_iso9660_read_symlink): Use new layout.
1047 (grub_iso9660_iterate_dir): Fix memory corruption.
1048 Use new layout.
1049 (grub_iso9660_dir): Set have_symlink.
1050 (grub_iso9660_open): Likewise.
1051
1052 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1053
1054 Remove local keyword.
1055
1056 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
1057 (version_test_gt): Likewise.
1058 (version_find_latest): Likewise.
1059 (gettext_printf): Likewise.
1060 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
1061
1062 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
1065
1066 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 Fix ZFS memory and resource leaks.
1069
1070 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
1071 All users updated.
1072 Free type on exit.
1073 (fill_vdev_info): New parameter inserted. All users updated.
1074 (check_pool_label): Likewise.
1075 (scan_disk): Likewise.
1076 (scan_devices): Close non-inserted disks.
1077 (fzap_iterate): Free l.
1078 (unmount_device): Free children descripto memory.
1079
1080 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
1083 argument (access out of bounds).
1084
1085 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
1088 >= 6 drives.
1089
1090 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
1093 Fix declaration.
1094
1095 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 Fix several memory leaks.
1098
1099 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
1100 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
1101 (grub_cpio_dir): Likewise.
1102 * grub-core/fs/fat.c (grub_fat_label): Likewise.
1103 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
1104 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
1105 (grub_romfs_label): Likewise.
1106 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
1107 (squash_unmount): New function.
1108 (grub_squash_dir): Fix memory leak.
1109 (grub_squash_open): Likewise.
1110 (grub_squash_read): Likewise.
1111 (grub_squash_mtime): Likewise.
1112 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
1113 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
1114 * util/grub-fstest.c (fstest): Likewise.
1115
1116 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
1119 avoid accessing beyond the array.
1120
1121 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
1124
1125 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1126
1127 Several AFFS fixes.
1128
1129 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
1130 (GRUB_AFFS_FLAG_FFS): Removed.
1131 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
1132 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
1133 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
1134 (grub_fshelp_node): Make block 32-bit.
1135 Add block_cache and last_block_cache.
1136 (grub_affs_read_block): Fill and use block cache.
1137 (grub_affs_read_file): Removed.
1138 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
1139 boot block.
1140 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
1141 safety.
1142 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
1143 space.
1144 (grub_affs_close): Free block cache.
1145 (grub_affs_read): Use grub_fshelp_read_file directly.
1146
1147 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
1150 with no error set.
1151
1152 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
1155 used variable.
1156 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1157 Likewise.
1158
1159 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
1162
1163 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
1164 byteswap when needed.
1165
1166 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 Fix FreeBSD compilation.
1169
1170 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
1171 to avoid circular dependency.
1172 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
1173 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
1174 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
1175
1176 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 Fix ZFS crypto error types.
1179
1180 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
1181 (grub_gcm_decrypt): Likewise.
1182 (grub_zfs_load_key_real): Fix error code type. Handle possible error
1183 from PBKDF2.
1184
1185 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1186
1187 Illumos support.
1188
1189 * Makefile.util.def (10_illumos): New script.
1190 * configure.ac: Set COND_HOST_ILLUMOS.
1191 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
1192 Support Illumos calls.
1193 (find_partition_start) [__sun__]: Likewise.
1194 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
1195 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
1196 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
1197 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
1198 device.
1199 * util/grub-probe.c (probe) [__sun__]: Do character check.
1200 * util/grub.d/10_illumos.in: New file.
1201
1202 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 Support escaped commas in hostdisk.
1205
1206 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
1207 (find_grub_drive): Use unescape_cmp.
1208 (make_device_name): Escape commas.
1209
1210 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
1213
1214 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
1217 variable.
1218
1219 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 Support trampoline jumps on powerpc.
1222
1223 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
1224 __ia64__ path.
1225 (grub_dl_load_segments): Set mod->sz.
1226 (grub_dl_flush_cache): Flush whole space occupied by module, not just
1227 segments.
1228 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
1229 (jump): Likewise.
1230 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
1231 function.
1232 (trampoline): New struct.
1233 (trampoline_template): New const.
1234 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
1235 * include/grub/dl.h (grub_dl): Add sz element.
1236 [__powerpc__]: Follow __ia64__.
1237 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
1238 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
1239 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
1240 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
1241
1242 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 ZFS crypto support.
1245
1246 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
1247 * grub-core/Makefile.core.def (zfscrypt): New module.
1248 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
1249 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
1250 it. All users updated.
1251 (grub_zfs_decrypt): New var.
1252 (grub_zfs_load_key): Likewise.
1253 (zio_checksum_functions): Add SHA256+MAC.
1254 (zio_checksum_verify): Handle incomplete comparison due to MAC.
1255 (zio_read): Handle encrypted blocks.
1256 (zap_verify): Remove incorrect check.
1257 (fzap_iterate): Handle non-standard fzap.
1258 (zap_iterate): Likewise.
1259 (zap_iterate_u64): New function.
1260 (dnode_get_fullpath): Load keys.
1261 * grub-core/fs/zfs/zfscrypt.c: New file.
1262 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
1263 (grub_crypto_ecb_encrypt): Make input const.
1264 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
1265 (grub_crypto_ecb_encrypt): Make input const.
1266 (GRUB_CIPHER_AES): New macro.
1267 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
1268 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
1269 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
1270 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
1271 prefix. All users updated.
1272 (grub_zfs_add_key): New proto.
1273 (grub_zfs_decrypt): Likewise.
1274 (grub_zfs_load_key): Likewise.
1275 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
1276 * util/grub-fstest.c (options): Add -K option.
1277 (argp_parser): Likewise.
1278
1279 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 Support zle compression on ZFS.
1282
1283 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
1284 (decomp_table): Add zle.
1285 * include/grub/zfs/zio.h (zio_compress): Add zle.
1286
1287 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 Support BtrFS embedding.
1290
1291 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
1292 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
1293 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
1294 * util/grub-setup.c (setup): Use fs embedding if available.
1295 Add additional sanity check.
1296
1297 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 * util/grub-install.in: Fix condition for config_opt.
1300
1301 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 Support third redundancy strip on raidz3.
1304
1305 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
1306 Return error on singularity. All users updated.
1307 (read_device): Don't stop on 3rd failure on raidz3.
1308
1309 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 Support case-insensitive ZFS subvolumes.
1312
1313 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
1314 All users updated.
1315 (zap_hash): Likewise.
1316 (name_cmp): New function.
1317 (zap_leaf_array_equal): New parameter case_insensitive.
1318 All users updated.
1319 (zap_leaf_lookup): Likewise.
1320 (fzap_lookup): Likewise.
1321 (zap_lookup): Likewise.
1322 (dnode_get_path): New parameter case_insensitive. Retrieve case
1323 sensitiviness of a volume. All users updated.
1324 (dnode_get_fullpath): New parameter case_insensitive.
1325 All users updated.
1326 (grub_zfs_dir): Set info.case_insensitiveness.
1327
1328 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1329
1330 Support second redundancy strip on raidz(2,3).
1331
1332 * grub-core/fs/zfs/zfs.c (powx): New array.
1333 (powx_inv): Likewise.
1334 (poly): New const.
1335 (xor_out): New function.
1336 (gf_mul): Likewise.
1337 (recovery): Likewise.
1338 (read_device): Use second redundancy strip.
1339
1340 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 Use a power of generator representation of GF(256) multiplication group
1343 to save space time and complexity.
1344
1345 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
1346 (raid6_table2): Likewise.
1347 (powx): New array.
1348 (powx_inv): Likewise.
1349 (poly): New const.
1350 (grub_raid_block_mul): Replace with ...
1351 (grub_raid_block_mulx): ...this.
1352 (grub_raid6_init_table): Rewritten.
1353 (grub_raid6_recover): Use power of generator representation.
1354
1355 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
1358 for the right device.
1359
1360 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
1363 expected by grub-mkimage and it's more clear since there is no implicit
1364 padding.
1365
1366 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1367
1368 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
1369 disk.
1370 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
1371
1372 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
1373
1374 * util/grub-mkrescue.in: Fix handling xorriso option.
1375
1376 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
1379 NULL.
1380
1381 2011-11-03 crocket <crockabiscuit@gmail.com>
1382
1383 * util/grub.d/10_linux.in: Add Slackware initrd naming.
1384
1385 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 XZ CRC64 and SHA256 support.
1388
1389 * Makefile.util.def (libgrubmods): Add crc64.c.
1390 * grub-core/Makefile.core.def (crc64): New module.
1391 * grub-core/lib/crc64.c: New file.
1392 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
1393 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
1394 Fix the type.
1395 (MAX_HASH_SIZE): New define.
1396 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
1397 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
1398 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
1399 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
1400 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
1401 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
1402 Handle non-crc32 hashes.
1403 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
1404 (dec_stream_header): Handle non-crc32 hashes.
1405 (dec_stream_footer): Likewise.
1406 (dec_block_header): Likewise.
1407 (dec_main): Likewise.
1408 (xz_dec_init): Likewise.
1409 (xz_dec_reset): Likewise.
1410 (xz_dec_end): Likewise.
1411 * util/import_gcry.py: Add CRC64 line.
1412
1413 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
1416 as well.
1417
1418 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 Make reiserfs label retrieval similar to other *_label functions.
1421
1422 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
1423 (REISERFS_MAX_LABEL_LENGTH): Removed.
1424 (REISERFS_LABEL_OFFSET): Likewise.
1425 (grub_reiserfs_label): Rewritten.
1426
1427 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1428
1429 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
1430 field.
1431
1432 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
1435
1436 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1437
1438 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
1439 drive failure on both raidz and raidz2.
1440
1441 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1442
1443 Fix RAIDZ(2) for >= 5 devices.
1444
1445 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
1446 asize argument. All users updated.
1447
1448 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 Fix RAIDZ(2).
1451
1452 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
1453 (fill_vdev_info_real): Set ashift.
1454 (read_device): Rewrite RAIDZ part based on reverse engineering.
1455
1456 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1457
1458 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
1459 don't report potentially unavialiable fields in debug output.
1460 (find_path): Fix double-free and memory leak.
1461
1462 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1463
1464 Read label on UFS1.
1465
1466 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
1467 (grub_ufs_fs): Always set .label.
1468
1469 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 Use shifts in UFS.
1472
1473 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
1474 (grub_ufs_data): New field log2_blksz.
1475 (grub_ufs_read_file): Use shifts.
1476 (grub_ufs_mount): Check block size and logarithm it.
1477
1478 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1479
1480 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
1481 long symlinks.
1482
1483 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 Handle symlinks and long names on tar and cpio.
1486
1487 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
1488 (ATTR_FILE): Likewise.
1489 (ATTR_DIR): Likewise.
1490 (ATTR_LNK): Likewise.
1491 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
1492 (grub_cpio_find_file): Fill mode, handle linkname field as well as
1493 L and K entries.
1494 (grub_cpio_mount): Zero-fill data.
1495 (handle_symlink): New function.
1496 (grub_cpio_dir): Handle symlinks.
1497 (grub_cpio_open): Likewise.
1498 (grub_cpio_close) [MODE_USTAR]: Free linkname.
1499
1500 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1501
1502 Fix iso9660 filename limitations and fix memory leaks.
1503
1504 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
1505 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
1506
1507 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1508
1509 Fix JFS file name length limitations.
1510
1511 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
1512 (grub_jfs_diropen): Fix maximum filename length.
1513 (grub_jfs_getent): Fix filename length.
1514 (grub_jfs_lookup_symlink): Fix size checks.
1515
1516 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
1519 string.
1520
1521 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1522
1523 Leverage BFS implementation to read AFS.
1524
1525 * Makefile.util.def (libgrubmods): Add afs.c.
1526 * grub-core/Makefile.core.def (afs): New module
1527 * grub-core/fs/afs.c: New file.
1528 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
1529
1530 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
1533
1534 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 * grub-core/fs/bfs.c: Run indent.
1537
1538 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 BFS implementation based on the specification.
1541
1542 * grub-core/fs/bfs.c: New file.
1543 * Makefile.util.def (libgrubmods): Add bfs.c.
1544 * grub-core/Makefile.core.def (bfs): New module.
1545
1546 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * util/grub-fstest.c (cmd_cp): Clarify error message.
1549 (cmd_cmp): Likewise.
1550
1551 2011-10-30 Yves Blusseau <blusseau@zetam.org>
1552
1553 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
1554 and befs_be.
1555
1556 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 Remove afs and befs because of copyright problem.
1559
1560 * grub-core/fs/afs.c: Removed.
1561 * grub-core/fs/afs_be.c: Removed.
1562 * grub-core/fs/befs.c: Removed.
1563 * grub-core/fs/befs_be.c: Removed.
1564 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
1565 * grub-core/Makefile.core.def (afs): Removed.
1566 (afs_be): Likewise.
1567 (befs): Likewise.
1568 (befs_be): Likewise.
1569
1570 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 Prefer rockridge over Joliet.
1573
1574 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
1575 to ...
1576 (set_rockridge): ... here.
1577 (grub_iso9660_mount): Check rockridge on the primary label when
1578 discovering. Ignore Joliet if Rockridge is present.
1579
1580 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 Use shifts in nilfs2.
1583
1584 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
1585 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
1586 (grub_nilfs2_palloc_entries_per_group): Replace with ...
1587 (grub_nilfs2_log_palloc_entries_per_group): ... this.
1588 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
1589 (grub_nilfs2_entries_per_block): Replaced with ...
1590 (grub_nilfs2_log_entries_per_block_log): ... this.
1591 (grub_nilfs2_blocks_per_group): Replaced with ...
1592 (grub_nilfs2_blocks_per_group_log): ... this.
1593 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
1594 (grub_nilfs2_blocks_per_desc_block_log): ... this.
1595 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
1596 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
1597 (grub_nilfs2_palloc_entry_offset): Replaced ...
1598 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
1599 (grub_nilfs2_dat_translate): Use shifts.
1600 (grub_nilfs2_read_inode): Likewise.
1601 (GRUB_MOD_INIT): Ensure that logs are correct.
1602
1603 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1604
1605 Use shifts in minix filesystem.
1606
1607 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
1608 (GRUB_MINIX_ZONE2SECT): Likewise.
1609 (grub_minix_data): Replace block_size with log_block_size.
1610 (grub_minix_read_file): Use shifts.
1611 (grub_minix_mount): Check block size and take a logarithm.
1612
1613 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 Use shifts in squash4.
1616
1617 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
1618 (squash_mount): Check block size and take logarithm.
1619 (direct_read): Use shifts.
1620
1621 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 Correct befs block counting logic.
1624
1625 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
1626 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
1627 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
1628 (grub_afs_read_inode): Use block_shift.
1629 (RANGE_SHIFT): New definition.
1630 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
1631 unexpected conditions, use shifts and appropriate types.
1632 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
1633
1634 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * grub-core/disk/raid.c (scan_devices): Check partition.
1637 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
1638
1639 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 Support BFS (befs) UUID.
1642
1643 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
1644 (grub_afs_small_data_element_header): New struct.
1645 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
1646 (grub_afs_read_attribute) [MODE_BFS]: New function.
1647 (grub_afs_iterate_dir): Allocate for complete inode.
1648 (grub_afs_mount): Likewise.
1649 (grub_afs_uuid) [MODE_BFS]: New function.
1650 (grub_afs_fs) [MODE_BFS]: Add .uuid.
1651
1652 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
1655 (zfs_unmount): Fix memory leak.
1656
1657 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1658
1659 Support NTFS reparse points.
1660
1661 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
1662 (symlink_descriptor): New struct.
1663 (grub_ntfs_read_symlink): New function.
1664 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
1665 (grub_ntfs_open): Likewise.
1666
1667 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
1670
1671 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 fstest xnu_uuid subcommand.
1674
1675 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
1676 grub-core/commands/xnu_uuid.c.
1677 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
1678 (fstest): Handle xnu_uuid.
1679 (options): Document xnu_uuid.
1680 (argp_parser): Parse xnu_uuid.
1681
1682 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1683
1684 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
1685 -l argument. Add newline at the end if printing.
1686 (GRUB_MOD_INIT): Document -l.
1687
1688 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
1691
1692 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 ZFS multi-device and version 33 support.
1695
1696 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
1697 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
1698 (grub_zfs_data): Add multidev-ice-related fields.
1699 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
1700 (dva_get_offset): Make dva const.
1701 (zfs_fetch_nvlist): New function.
1702 (fill_vdev_info_real): Likewise.
1703 (fill_vdev_info): Likewise.
1704 (check_pool_label): Likewise.
1705 (scan_disk): Likewise.
1706 (scan_devices): Likewise.
1707 (read_device): Likewise.
1708 (read_dva): Likewise.
1709 (zio_read_gang): Use read_dva.
1710 (zio_read_data): Likewise.
1711 (zap_leaf_lookup): Add missing endian conversion.
1712 (zap_verify): Add missing endian conversion. All users updated.
1713 (fzap_lookup): Likewise.
1714 (fzap_iterate): Likewise.
1715 (dnode_get_path): Handle SA bonus.
1716 (nvlist_find_value): Make input const. All users updated.
1717 (unmount_device): New function.
1718 (zfs_unmount): Use unmount_device.
1719 (zfs_mount): Use scan_disk.
1720 (zfs_mtime): New function.
1721 (grub_zfs_open): Handle system attributes.
1722 (fill_fs_info): Likewise.
1723 (grub_zfs_dir): Likewise.
1724 (grub_zfs_fs): Add mtime.
1725 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
1726 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
1727 (SA_MTIME_OFFSET): Likewise.
1728 (SA_SYMLINK_OFFSET): Likewise.
1729 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
1730 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
1731 (fstest): Support zfsinfo.
1732 (argp_parser): Likewise.
1733
1734 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
1737 error.
1738
1739 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1740
1741 ZFS fixes.
1742
1743 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
1744 sharing the same block. Iterate over correct number of indices.
1745 (dnode_get_path): Handle symlinks correctly.
1746
1747 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1748
1749 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
1750
1751 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 Read label on HFS+.
1754
1755 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
1756 (grub_hfsplus_btree_search): Fix types.
1757 (grub_hfsplus_label): Implement.
1758
1759 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1760
1761 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
1762
1763 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1764
1765 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
1766
1767 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1768
1769 Fix symlink handling on iso9660.
1770
1771 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
1772 All users updated.
1773 (grub_iso9660_susp_iterate): Accept zero-size iterate.
1774 (grub_iso9660_read_symlink): Moved most of code ...
1775 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
1776
1777 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1778
1779 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
1780 Use union to avoid breaking strict-aliasing rules.
1781
1782 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 Support multi-extent iso files.
1785
1786 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
1787 Add node.
1788 (grub_fshelp_node): Revamp. All users updated.
1789 (FLAG_*): New enum.
1790 (read_node): New function.
1791 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
1792 All users updated.
1793 (grub_iso9660_mount): Don't attempt to read sua when there is none.
1794 (get_node_size): New function.
1795 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
1796 entries.
1797 Fix memory leak on . and ..
1798 (grub_iso9660_read): Use read_node.
1799 (grub_iso9660_close): Free node.
1800
1801 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 Fix tar 4G limit and handle paths containing dot.
1804
1805 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
1806 (canonicalize): New function.
1807 (grub_cpio_find_file): Use canonicalize. Store offs in
1808 grub_disk_addr_t.
1809 (grub_cpio_dir): Use grub_disk_addr_t.
1810 (grub_cpio_open): Likewise.
1811
1812 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 Fix handling of uncompressed blocks on squashfs and break 4G limit.
1815
1816 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
1817 unused flags.
1818 (grub_squash_inode): Add long_file and block_size.
1819 (grub_squash_cache_inode): New struct.
1820 (grub_squash_dirent): Make types into enum.
1821 (SQUASH_TYPE_LONG_REGULAR): New type.
1822 (grub_squash_frag_desc): Add field size.
1823 (SQUASH_BLOCK_FLAGS): New enum.
1824 (grub_squash_data): Use grub_squash_cache_inode.
1825 (grub_fshelp_node): Make ino_chunk 64-bit.
1826 (read_chunk): Minor argument change. All users updated.
1827 (squash_mount): Use correct le_to_cpu.
1828 (grub_squash_open): Handle LONG_REGULAR.
1829 (direct_read): New function.
1830 (grub_squash_read_data): Handle blocks correctly.
1831
1832 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
1835
1836 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
1839
1840 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 Fix 2G limit on ZFS.
1843
1844 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
1845 types.
1846 (uberblock_verify): Likewise.
1847 (dmu_read): Likewise.
1848 (grub_zfs_read): Likewise. Remove invalid cast.
1849
1850 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
1853 (grub_jfs_blkno): Fix incorrect shift.
1854 (grub_jfs_read_file): Use more appropriate types.
1855
1856 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
1857
1858 Support triple indirect on minix2 and minix3.
1859
1860 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
1861 Declare triple_indir_zone.
1862 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
1863 indirect.
1864
1865 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 Minix FS fixes.
1868
1869 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
1870 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
1871 Rename ctime to mtime. All users updated.
1872 (grub_minix_get_file_block): Fix types and double indirect computations.
1873
1874 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
1877 if no label is found.
1878 (grub_fat_iterate_dir): Fix file size type.
1879 (grub_fat_iterate_dir): Likewise.
1880
1881 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1882
1883 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
1884 save some space.
1885 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
1886 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
1887
1888 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
1891
1892 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 * util/import_gcry.py: Accept space between # and include.
1895
1896 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
1899
1900 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 Fine grainely disable warnings on lexer. Remove Wno-error on it.
1903
1904 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
1905 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
1906 yylex_strncpy.
1907 * grub-core/script/yylex.l: Add fine-grained #pragma.
1908
1909 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1910
1911 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
1912 New inline function.
1913 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
1914 Likewise.
1915 (memset) [GRUB_UTIL]: Likewise.
1916 (memcmp) [GRUB_UTIL]: Likewise.
1917
1918 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
1921 inline function rather than a define.
1922
1923 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 * util/grub-setup.c: Add missing include.
1926
1927 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1928
1929 * util/ieee1275/grub-ofpathname.c: Add missing include.
1930
1931 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
1934 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
1935 Likewise.
1936
1937 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1938
1939 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
1940 grub_memcmp usage.
1941
1942 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1943
1944 * util/grub-install.in: Add datarootdir as per automake manual
1945 suggestion.
1946 * util/grub-mknetdir.in: Likewise.
1947
1948 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
1951 suggestion.
1952 * util/grub.d/10_kfreebsd.in: Likewise.
1953 * util/grub.d/10_linux.in: Likewise.
1954 * util/grub.d/10_netbsd.in: Likewise.
1955 * util/grub.d/10_windows.in: Likewise.
1956 * util/grub.d/20_linux_xen.in: Likewise.
1957
1958 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 Remove redundant grub_kernel_image_size.
1961
1962 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
1963 _edata and _start.
1964 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
1965 the small code. It moves it only by few bytes but simplifies the code.
1966 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
1967 _start.
1968 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
1969 (grub_kernel_image_size): Removed.
1970 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
1971 (grub_kernel_image_size): Removed.
1972 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
1973 compiled with Apple toolchain.
1974 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
1975 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
1976 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
1977 (grub_total_module_size): Likewise.
1978 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
1979 Removed.
1980 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
1981 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
1982 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
1983 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
1984 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
1985 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
1986 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
1987 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
1988 Removed.
1989 (grub_total_module_size): Removed.
1990 * util/grub-mkimage.c (image_target_desc): Remove image_size.
1991 (image_targets): Likewise.
1992 Set .compressed_size to no field on sparc.
1993 (generate_image): Remove kernel_image_size handling.
1994
1995 2011-10-19 Szymon Janc <szymon@janc.net.pl>
1996
1997 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
1998 NULL pointer dereference.
1999
2000 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2001
2002 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
2003 done with a dedicated section.
2004
2005 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
2006 Ensure the correct position of boot_path.
2007 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
2008 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
2009 other fields.
2010 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
2011 * include/grub/boot.h: Removed. All references removed.
2012 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
2013 Removed.
2014 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
2015
2016 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
2019 name.
2020
2021 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
2024
2025 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2028 Don't add the bogus brackets.
2029
2030 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 ExFAT support.
2033
2034 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
2035 * grub-core/Makefile.core.def (exfat): New module.
2036 * grub-core/fs/exfat.c: New file.
2037 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
2038 (GRUB_FAT_ATTR_*): Make into an enum.
2039 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
2040 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
2041 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
2042 (GRUB_FAT_MAXFILE): Removed.
2043 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
2044 (grub_current_fat_bpb_t): New type.
2045 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
2046 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
2047 (grub_fat_dir_node_t): New type.
2048 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
2049 (fat_log2) [MODE_EXFAT]: Removed.
2050 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
2051 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
2052 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
2053 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
2054 (grub_fat_label) [MODE_EXFAT]: New function.
2055 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
2056 reserved_first_sector to 0.
2057
2058 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2059
2060 Move grub_reboot out of the kernel.
2061
2062 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
2063 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
2064 * grub-core/lib/efi/reboot.c: ... here.
2065 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
2066 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
2067 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
2068 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
2069 * grub-core/lib/i386/reboot_trampoline.S: ... here.
2070 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
2071 * grub-core/lib/ieee1275/reboot.c: ... here.
2072 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
2073 * grub-core/lib/mips/arc/reboot.c: ... here.
2074 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
2075 * grub-core/lib/mips/loongson/reboot.c: ...here.
2076 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
2077 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
2078 * include/grub/emu/misc.h (grub_reboot): New function declaration.
2079 * include/grub/i386/reboot.h: New file.
2080 * include/grub/mips/loongson/ec.h: Fix includes.
2081 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
2082 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
2083 * grub-core/lib/i386/reboot.c: New file.
2084
2085 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 Make grub_prefix into module to fix the arbitrary limit and save
2088 some space.
2089
2090 * grub-core/kern/emu/main.c (grub_prefix): Removed.
2091 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
2092 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
2093 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
2094 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
2095 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
2096 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
2097 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
2098 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
2099 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
2100 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
2101 * include/grub/ia64/efi/kernel.h: Removed.
2102 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
2103 (grub_prefix): Removed.
2104 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
2105 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
2106 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
2107 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
2108 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
2109 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
2110 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
2111 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
2112 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
2113 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
2114 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
2115 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
2116 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
2117 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
2118 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
2119 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
2120 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
2121 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
2122 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
2123 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
2124 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
2125 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
2126 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
2127 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
2128 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
2129 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
2130 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
2131 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
2132 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
2133 from module.
2134 * util/grub-mkimage.c (image_target_desc): Removed prefix and
2135 prefix_end.
2136 (image_targets): Likewise.
2137 (generate_image): Put prefix as a module.
2138
2139 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 Replace grub_module_iterate with FOR_MODULES.
2142
2143 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
2144 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
2145 (grub_efi_modules_addr): ...this.
2146 * grub-core/kern/efi/init.c (grub_modbase): New variable.
2147 (grub_efi_init): Set grub_modbase.
2148 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
2149 (grub_modbase): New variable.
2150 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
2151 (grub_modbase): New variable.
2152 (grub_machine_init): Set grub_modbase.
2153 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
2154 (grub_modbase): New variable.
2155 (grub_machine_init): Set grub_modbase.
2156 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
2157 (grub_modbase): New variable.
2158 (grub_machine_init): Set grub_modbase.
2159 * grub-core/kern/main.c (grub_module_iterate): Remove.
2160 (grub_modules_get_end): Use grub_modbase.
2161 (grub_load_modules): Use FOR_MODULES.
2162 (grub_load_config): Likewise.
2163 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
2164 (grub_modbase): New variable.
2165 (grub_machine_init): Set grub_modbase.
2166 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
2167 (grub_modbase): New variable.
2168 (grub_machine_init): Set grub_modbase.
2169 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
2170 Removed.
2171 (grub_modbase): New variable.
2172 (grub_machine_init): Set grub_modbase.
2173 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
2174 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
2175 (grub_module_iterate): Likewise.
2176 (grub_modbase): New variable declaration.
2177 (FOR_MODULES): New macro.
2178
2179 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 * configure.ac: Check for __ctzdi2 and __ctzsi2.
2182 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
2183
2184 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2185
2186 Fix few obvious type discrepancies.
2187
2188 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
2189 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
2190 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
2191 variable.
2192 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
2193 and connected types.
2194 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
2195 offset.
2196 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
2197 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
2198 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
2199 and connected types.
2200
2201 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2202
2203 Fix python 3.x incompatibilities.
2204
2205 * gentpl.py: Put brackets around print strings.
2206 * util/import_gcry.py: Open explicitly as utf-8.
2207 Use in instead of has_key.
2208
2209 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2210
2211 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
2212 (GRUB_XFS_INO_AGBITS): Make into inline function.
2213 (GRUB_XFS_INO_INOINAG): Likewise.
2214 (GRUB_XFS_INO_AG): Likewise.
2215 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
2216 (GRUB_XFS_EXTENT_OFFSET): Likewise.
2217 (GRUB_XFS_EXTENT_BLOCK): Likewise.
2218 (GRUB_XFS_EXTENT_SIZE): Likewise.
2219 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
2220 (GRUB_XFS_NEXT_DIRENT): Likewise.
2221 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
2222 (grub_xfs_read_file): Fix offset type.
2223
2224 2011-10-15 Robert Millan <rmh@gnu.org>
2225
2226 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
2227
2228 2011-10-15 Robert Millan <rmh@gnu.org>
2229
2230 Fix build problem on FreeBSD and GNU/kFreeBSD.
2231
2232 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
2233
2234 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
2237
2238 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
2239 types.
2240 (grub_hfsplus_btree_recoffset): Likewise.
2241 (grub_hfsplus_btree_recptr): Likewise.
2242 (grub_hfsplus_find_block): Likewise.
2243 (grub_hfsplus_btree_search): Likewise.
2244 (grub_hfsplus_read_block): Likewise.
2245 (grub_hfsplus_read_file): Likewise.
2246 (grub_hfsplus_mount): Likewise.
2247 (grub_hfsplus_btree_iterate_node): Likewise.
2248 (grub_hfsplus_btree_search): Likewise.
2249 (grub_hfsplus_iterate_dir): Likewise.
2250 (grub_hfsplus_read): A small code simplification.
2251
2252 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 * grub-core/kern/emu/hostdisk.c
2255 (convert_system_partition_to_system_disk): Don't assume that children
2256 of mapper nodes are mapper nodes.
2257
2258 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
2261 * include/grub/misc.h (grub_isxdigit): New function.
2262 * grub-core/video/colors.c (my_isxdigit): Removed. All users
2263 switched to grub_isxdigit.
2264 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
2265 number starting with a letter.
2266
2267 2011-10-09 Robert Millan <rmh@gnu.org>
2268
2269 LVM support for FreeBSD and GNU/kFreeBSD.
2270
2271 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
2272 GNU/kFreeBSD.
2273 (LVM_DEV_MAPPER_STRING): Move from here ...
2274 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
2275 * util/getroot.c: Include `<grub/util/lvm.h>'.
2276 (grub_util_get_dev_abstraction): Enable
2277 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
2278 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
2279 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
2280 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
2281 support it.
2282 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
2283 GNU/kFreeBSD.
2284 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
2285 when LVM abstraction is required for ${GRUB_DEVICE}.
2286
2287 2011-10-06 Szymon Janc <szymon@janc.net.pl>
2288
2289 Add support for LZO compression in GRUB:
2290 - import of minilzo library,
2291 - LZO decompression for btrfs,
2292 - lzop files decompression.
2293
2294 * grub-core/io/lzopio.c: New file.
2295 * grub-core/lib/adler32.c: Likewise.
2296 * grub-core/lib/minilzo/lzoconf.h: Likewise.
2297 * grub-core/lib/minilzo/lzodefs.h: Likewise.
2298 * grub-core/lib/minilzo/minilzo.c: Likewise.
2299 * grub-core/lib/minilzo/minilzo.h: Likewise.
2300 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
2301 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
2302 grub-core/lib/minilzo/minilzo.c to common.
2303 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
2304 cflags in cppflags.
2305 * grub-core/Makefile.core.def (btrfs): Likewise.
2306 * grub-core/Makefile.core.def (lzopio): New module.
2307 (adler32): Likewise.
2308 * grub-core/fs/btrfs.c: Include minilzo.h.
2309 (GRUB_BTRFS_COMPRESSION_LZO): New define.
2310 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
2311 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
2312 (grub_btrfs_lzo_decompress): New function.
2313 (grub_btrfs_extent_read): Add support for LZO compression type.
2314 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
2315 (GRUB_USHRT_MAX): Likewise.
2316 (GRUB_UINT_MAX): Likewise.
2317 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
2318 (UINT_MAX): Likewise.
2319 (CHAR_BIT): Likewise.
2320 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
2321 grub-core/lib/posix_wrap/limits.h
2322 (UCHAR_MAX): Likewise.
2323 * include/grub/file.h (grub_file_filter_id): New compression filter
2324 GRUB_FILE_FILTER_LZOPIO.
2325 * include/grub/file.h (grub_file_filter_id): Set
2326 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
2327 * include/grub/types.h (grub_get_unaligned16): New function.
2328 (grub_get_unaligned32): Likewise.
2329 (grub_get_unaligned64): Likewise.
2330 * util/import_gcry.py (cryptolist): Add adler32.
2331
2332 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
2335 in perspective decreases the complexity of build system and fixes
2336 compilation right now.
2337
2338 2011-10-01 Ales Nesrsta <starous@volny.cz>
2339
2340 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
2341 (fixed problem related to using UHCI with coreboot).
2342
2343 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
2344
2345 * gentpl.py: Use Autogen macros so that the output template file
2346 (Makefile.tpl) size is reduced.
2347
2348 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
2349
2350 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
2351 extra_dist.
2352
2353 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2354
2355 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
2356 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
2357
2358 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2359
2360 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
2361 _fullpath.
2362
2363 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2364
2365 Remove extra declaration of sleep for mingw32.
2366
2367 * util/misc.c (sleep) [__MINGW32__]: Removed.
2368 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
2369
2370 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
2371
2372 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
2373 type and packname.
2374 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
2375 Resurrected.
2376 (NETBSD_BTINFO_BOOTWEDGE): New definition.
2377 (grub_netbsd_btinfo_bootwedge): New struct.
2378 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2379 New function.
2380 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
2381
2382 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
2383
2384 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
2385 loader.
2386
2387 2011-09-28 Andreas Born <futur.andy@googlemail.com>
2388
2389 Fix incorrect identifiers in bash-completion.
2390
2391 * util/bash-completion.d/grub-completion.bash.in
2392 (_grub_mkpasswd-pbkdf2): Rename to ...
2393 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
2394 (_grub_script-check): Rename to ...
2395 (_grub_script_check): ... this. All users updated.
2396
2397 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
2400 Return 0 if disk isn't biosdisk.
2401
2402 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
2403
2404 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
2405 on NetBSD.
2406 * Makefile.util.def (grub-fstest): Likewise.
2407
2408 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
2409
2410 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
2411 Get sector size from disk label.
2412
2413 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
2414
2415 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
2416 */README* as well as README*.
2417 Reported by: Axel Beckert.
2418
2419 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2420
2421 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
2422 case of less than 256 MiB of RAM.
2423
2424 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * grub-core/commands/wildcard.c (make_regex): Handle @.
2427
2428 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * util/grub-install.in: Move cryptodisk logic to appropriate place.
2431
2432 2011-08-21 Szymon Janc <szymon@janc.net.pl>
2433
2434 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
2435 AC_LANG_CONFTEST macros.
2436
2437 2011-08-20 Szymon Janc <szymon@janc.net.pl>
2438
2439 Add grub-fstest option to uncompress data for commands.
2440
2441 * util/grub-fstest.c (uncompress): New var.
2442 (options): New option -u.
2443
2444 2011-08-20 Szymon Janc <szymon@janc.net.pl>
2445
2446 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
2447 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
2448
2449 2011-08-20 Szymon Janc <szymon@janc.net.pl>
2450
2451 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
2452 file type was not recognized correctly (not gzip or corrupted).
2453
2454 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2455
2456 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
2457 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
2458
2459 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
2462 loongson.
2463 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
2464 video_radeon_fuloong2e.
2465 * grub-core/video/radeon_fuloong2e.c: New file.
2466 * include/grub/video.h (grub_video_id_t): Add new ID
2467 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
2468
2469 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
2472 define.
2473 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
2474 that PRID matches the detected subplatform and reset the subplatform
2475 if it doesn't.
2476
2477 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
2480
2481 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 Fix PCI iterating on functions >= 4.
2484
2485 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
2486 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
2487 Removed.
2488 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
2489 (grub_pci_read): Fix bitmask.
2490 (grub_pci_read_word): Likewise.
2491 (grub_pci_read_byte): Likewise.
2492 (grub_pci_write): Likewise.
2493 (grub_pci_write_word): Likewise.
2494 (grub_pci_write_byte): Likewise.
2495
2496 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
2499 can still be specified in TARGET_CFLAGS)
2500
2501 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
2504
2505 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
2506 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
2507 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
2508 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
2509 (FULOONG): Rename to ...
2510 (FULOONG2F): ... this. All users updated.
2511 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
2512 (machtype_fuloong2f_str): ... this.
2513 (machtype_fuloong2e_str): New string.
2514 Check for machtype_fuloong2e_str.
2515 * grub-core/loader/mips/linux.c (loongson_machtypes)
2516 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
2517 * grub-core/term/serial.c (loongson_defserial)
2518 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
2519 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
2520 loongson_defserial.
2521 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
2522 Rename to ...
2523 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
2524 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
2525 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
2526 to IMAGE_FULOONG2F_FLASH. All users updated.
2527 (image_targets): Rename images.
2528 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
2529
2530 2011-08-19 Szymon Janc <szymon@janc.net.pl>
2531
2532 Make enable of disk cache statistics code configurable.
2533
2534 * configure.ac: --enable-cache-stats added.
2535 * config.h.in (DISK_CACHE_STATS): New define.
2536 * grub-core/Makefile.core.def (cacheinfo): New command.
2537 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
2538 * grub-core/commands/cacheinfo.c: New file.
2539 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
2540 moved to cacheinfo.c.
2541 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
2542 debug code.
2543 * include/grub/disk.h: Likewise.
2544
2545 2011-08-19 Szymon Janc <szymon@janc.net.pl>
2546
2547 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
2548 * grub-core/Makefile.am: Likewise.
2549
2550 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2551
2552 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
2553 non-zero pull.
2554
2555 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2556
2557 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
2558 All users updated.
2559 (grub_jfs_lookup_symlink): Use correct starting inode.
2560
2561 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2562
2563 * util/grub-setup.c (main): Add missing gcry initialisation.
2564
2565 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 Don't accept text modes on EFI when booting Linux.
2568
2569 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
2570 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
2571
2572 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
2573 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
2574
2575 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
2576 use of "/path/.." as in grub-install for EFI as well as handling
2577 symlinks correctly.
2578 Fixes Debian bug #637768.
2579
2580 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
2581
2582 * util/grub-probe.c: Remove duplicate #include.
2583
2584 2011-08-10 Robert Millan <rmh@gnu.org>
2585
2586 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
2587
2588 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
2589 function.
2590 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
2591 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
2592
2593 2011-08-03 Robert Millan <rmh@gnu.org>
2594
2595 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
2596 la_array as packed.
2597 Reported by: Zachary Bedell
2598
2599 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
2600
2601 * configure.ac: The Loongson port requires grub-mkfont due to its
2602 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
2603 be built.
2604
2605 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
2606
2607 * util/grub-install.in: Don't source grub-mkconfig_lib until after
2608 processing arguments (otherwise help2man fails when GRUB has not yet
2609 been installed).
2610
2611 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 New script grub-mkstandalone.
2614
2615 * Makefile.util.def (grub-mkstandalone): New script.
2616 * docs/man/grub-mkstandalone.h2m: New file.
2617 * util/grub-mkstandalone.in: Likewise.
2618
2619 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 Support ATA disks with 4K sectors.
2622
2623 * include/grub/ata.h (grub_ata): New member log_sector_size.
2624 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
2625 (grub_ata_identify): Read sector size.
2626 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
2627
2628 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * util/grub-install.in: Don't use uhci outside of x86.
2631
2632 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 * util/grub-mkrescue.in: Add missing quotes.
2635
2636 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2637
2638 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
2639 dereference.
2640
2641 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
2642
2643 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
2644
2645 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * include/grub/video.h: add missing EXPORT_FUND on
2648 grub_video_edid_checksum and grub_video_edid_preferred_mode.
2649
2650 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * include/grub/mips/kernel.h: Fix define conflict.
2653
2654 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
2657 all four ways.
2658
2659 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
2660
2661 Preferred resolution detection for VBE.
2662
2663 * grub-core/video/video.c (grub_video_edid_checksum): New function.
2664 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
2665 the Flat Panel extension, in line with the X.org VESA driver.
2666 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
2667 New function.
2668 (grub_vbe_bios_get_ddc_capabilities): Likewise.
2669 (grub_vbe_bios_read_edid): Likewise.
2670 (grub_vbe_get_preferred_mode): Likewise.
2671 (grub_video_vbe_setup): When the mode is "auto", try to get the
2672 preferred mode from VBE, and use the largest mode that is no larger
2673 than the preferred mode (some BIOSes expose a preferred mode that is
2674 not in their mode list!). If this fails, fall back to 640x480 as a
2675 safe conservative choice.
2676 (grub_video_vbe_get_edid): New function.
2677 (grub_video_vbe_adapter): Add get_edid.
2678 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
2679 (struct grub_video_adapter): Add get_edid.
2680 (grub_video_edid_checksum): Add prototype.
2681 (grub_video_edid_preferred_mode): Likewise.
2682 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
2683 structure.
2684
2685 * grub-core/commands/videoinfo.c (print_edid): New function.
2686 (grub_cmd_videoinfo): Print EDID if available.
2687
2688 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
2689 is more appropriate on a wider range of platforms than 640x480.
2690 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
2691 documentation.
2692
2693 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2694
2695 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
2696
2697 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 * po/POTFILES.in: Regenerate.
2700
2701 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
2704 incorrect memory usage.
2705
2706 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
2707
2708 * util/grub-install.in: Source grub-mkconfig_lib.
2709
2710 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
2711
2712 Remove getroot.c from core on emu platform.
2713
2714 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
2715 kern/emu/raid.c.
2716 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
2717 useless.
2718 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
2719 * util/getroot.c (get_win32_path): ... here.
2720 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
2721 * util/getroot.c (fini_libzfs): ... here.
2722 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
2723 * util/getroot.c (grub_get_libzfs_handle): ... here.
2724 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
2725 Moved from here...
2726 * util/getroot.c (grub_find_zpool_from_dir): ... here.
2727 * grub-core/kern/emu/misc.c
2728 (grub_make_system_path_relative_to_its_root): Moved from here...
2729 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
2730 * grub-core/kern/emu/getroot.c: Moved from here ...
2731 * util/getroot.c: ... here. All users updated.
2732 * grub-core/kern/emu/raid.c: Moved from here ...
2733 * util/raid.c: ... here. All users updated.
2734
2735 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * po/POTFILES.in: Regenerate.
2738
2739 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 Fix compilation on GNU/Linux.
2742
2743 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
2744 Disable geli.
2745 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
2746 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
2747 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
2748
2749 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2750 2011-07-07 Michael Gorven <michael@gorven.za.net>
2751 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
2752
2753 LUKS and GELI support.
2754
2755 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
2756 grub-core/disk/luks.c, grub-core/disk/geli.c,
2757 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
2758 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
2759 grub-core/lib/arg.c.
2760 (libgrubmods.a): Remove gcrypts cflags and cppflags.
2761 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
2762 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
2763 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
2764 (grub-bin2h): Add libgcry.a.
2765 (grub-mkimage): Likewise.
2766 (grub-mkrelpath): Likewise.
2767 (grub-script-check): Likewise.
2768 (grub-editenv): Likewise.
2769 (grub-mkpasswd-pbkdf2): Likewise.
2770 (grub-pe2elf): Likewise.
2771 (grub-fstest): Likewise.
2772 (grub-mkfont): Likewise.
2773 (grub-mkdevicemap): Likewise.
2774 (grub-probe): Likewise.
2775 (grub-ofpath): Likewise.
2776 (grub-mklayout): Likewise.
2777 (example_unit_test): Likewise.
2778 (grub-menulst2cfg): Likewise.
2779 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
2780 * grub-core/Makefile.core.def (cryptodisk): New module.
2781 (luks): Likewise.
2782 (geli): Likewise.
2783 * grub-core/disk/AFSplitter.c: New file.
2784 * grub-core/disk/cryptodisk.c: Likewise.
2785 * grub-core/disk/geli.c: Likewise.
2786 * grub-core/disk/luks.c: Likewise.
2787 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
2788 grub_util_is_lvm.
2789 (grub_util_get_dm_abstraction): New function.
2790 (grub_util_follow_gpart_up): Likewise.
2791 (grub_util_get_geom_abstraction): Likewise.
2792 (grub_util_get_dev_abstraction): Use new functions.
2793 (grub_util_pull_device): Pull GELI and LUKS.
2794 (grub_util_get_grub_dev): Handle LUKS and GELI.
2795 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
2796 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
2797 (follow_geom_up): Removed.
2798 (grub_util_fd_seek): New function.
2799 (open_device): Use grub_util_fd_seek.
2800 (nread): Rename to ..
2801 (grub_util_fd_read): ... this. All users updated.
2802 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
2803 (grub_crypto_cbc_decrypt): Likewise.
2804 (grub_crypto_hmac_write): Likewise.
2805 (grub_crypto_hmac_buffer): Likewise.
2806 (grub_password_get): Extend to util.
2807 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
2808 New member modname.
2809 (gcry_md_spec) [GRUB_UTIL]: Likewise.
2810 * include/grub/cryptodisk.h: New file.
2811 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
2812 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
2813 LUKS and GELI.
2814 (grub_util_follow_gpart_up): New proto.
2815 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
2816 (grub_util_fd_read): Likewise.
2817 (grub_cryptodisk_cheat_mount): Likewise.
2818 (grub_util_cryptodisk_print_uuid): Likewise.
2819 (grub_util_get_fd_sectors): Likewise.
2820 * util/grub-fstest.c (mount_crypt): New var.
2821 (fstest): Mount crypto if requested.
2822 (options): New option -C.
2823 (argp_parser): Parse -C.
2824 (main): Init and fini gcry.
2825 * util/grub-install.in: Support cryptodisk install.
2826 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
2827 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
2828 cryptodisk.
2829 (prepare_grub_to_access_device): Likewise.
2830 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
2831 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
2832 (probe_cryptodisk_uuid): New function.
2833 (probe_abstraction): Likewise.
2834 (probe): Use new functions.
2835 * util/import_gcry.py: Create Makefile.utilgcry.def.
2836 Add modname member.
2837
2838 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 Lazy device scanning.
2841
2842 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
2843 (grub-setup): Remove util/raid.c.
2844 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
2845 * grub-core/disk/lvm.c (scan_depth): New variable.
2846 (grub_lvm_iterate): Rescan if necessary.
2847 (find_lv): New function based on grub_lvm_open.
2848 (grub_lvm_open): Use find_lv. Rescan on error.
2849 (is_node_readable): New function.
2850 (is_lv_readable): Likewise.
2851 (grub_lvm_scan_device): Skip already found disks.
2852 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
2853 Stop if searched device is found and readable.
2854 * grub-core/disk/raid.c (inscnt): New variable.
2855 (scan_depth): Likewise.
2856 (scan_devices): New function based on grub_raid_register. Abort if
2857 looked for device is found.
2858 (grub_raid_iterate): Rescan if needed.
2859 (find_array): NEw function based on -grub_raid_open.
2860 (grub_raid_open): Use find_array and rescan.
2861 (insert_array): Set became_readable_at.
2862 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
2863 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
2864 New function.
2865 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
2866 (grub_util_pull_device): New function.
2867 (grub_util_get_grub_dev): Call grub_util_pull_device.
2868 * util/raid.c: Moved to ..
2869 * grub-core/kern/emu/raid.c: ... here.
2870 (grub_util_raid_getmembers): New parameter "bootable".
2871 All users updated. Support 1.x.
2872 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
2873 All users updated.
2874 * include/grub/disk.h (grub_disk_pull_t): New enum.
2875 (grub_disk_dev): Change iterate prototype.
2876 All users updated.
2877 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
2878 New proto.
2879 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
2880 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
2881 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
2882 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
2883 All users updated.
2884 * include/grub/util/raid.h: Removed.
2885
2886 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
2887
2888 * po/POTFILES.in: Regenerate.
2889
2890 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
2891
2892 Unify sparc init with other ieee1275.
2893
2894 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
2895 instead of kern/sparc64/ieee1275/init.c.
2896 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
2897 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
2898 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
2899 grub/machine/kernel.h.
2900 (grub_ieee1275_original_stack) [__sparc__]: New variable.
2901 (grub_claim_heap) [__sparc__]: Use sparc version.
2902 (grub_machine_init): Moved args parsing to
2903 (grub_parse_cmdline): ...this.
2904 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
2905 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
2906 New definition.
2907 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
2908
2909 Move BOOTP to separate file.
2910
2911 * grub-core/Makefile.core.def (net): Add net/bootp.c.
2912 * grub-core/net/net.c: Move all BOOTP functions to
2913 * grub-core/net/bootp.c: ... here.
2914
2915 Use frame interface on PXE.
2916
2917 * grub-core/Makefile.core.def (pxecmd): Removed.
2918 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
2919 * grub-core/commands/i386/pc/pxecmd.c: Removed.
2920 * grub-core/i386/pc/pxe.c: Moved from here ...
2921 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
2922 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
2923 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
2924
2925 EFI network support.
2926
2927 * grub-core/Makefile.core.def (efinet): New module.
2928 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
2929 here...
2930 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
2931 All users updated.
2932 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
2933 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
2934 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
2935 * grub-core/net/drivers/efi/efinet.c: New file.
2936 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
2937 (grub_efi_net_config): New extern var.
2938
2939 Various cleanups and bugfixes.
2940
2941 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
2942 error.
2943 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
2944 disk declared as partition.
2945 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
2946 leak on failure.
2947 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
2948 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
2949 (grub_debug_zalloc): Likewise.
2950 (grub_debug_realloc): Likewise.
2951 (grub_debug_memalign): Likewise.
2952 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
2953 Check that target is IPv4.
2954 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
2955 local-mac-address as fallback.
2956 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
2957 memory leak.
2958 * grub-core/net/ip.c (ipchksum): Rename to ...
2959 (grub_net_ip_chksum): ... this. All users updated.
2960 (grub_net_recv_ip_packets): Special handling for DHCP.
2961 * util/grub-mkimage.c (generate_image): Zero-out aout header.
2962
2963 Unify prefix handling
2964
2965 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
2966 (grub_machine_get_bootlocation): ... this.
2967 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
2968 (grub_machine_get_bootlocation): ... this.
2969 (grub_prefix): New variable.
2970 (prefix): Removed.
2971 (root_dev): New variable.
2972 (dir): Likewise.
2973 (main): Use new variables.
2974 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
2975 Revamped into ...
2976 (grub_machine_get_bootlocation): ... this.
2977 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
2978 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
2979 (grub_machine_get_bootlocation): ... this.
2980 (grub_machine_set_prefix): Removed.
2981 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
2982 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
2983 Revamped into ...
2984 (grub_machine_get_bootlocation): ... this.
2985 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
2986 (grub_set_prefix_and_root): ... this. All users updated.
2987 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
2988 Revamped into ...
2989 (grub_machine_get_bootlocation): ... this.
2990 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
2991 (grub_machine_get_bootlocation): New proto.
2992 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
2993
2994 Less intrusive and more reliable seek on network implementation.
2995
2996 * grub-core/kern/file.c (grub_file_net_seek): Removed.
2997 (grub_file_seek): Don't call grub_file_net_seek.
2998 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
2999 (grub_net_fs_read_real): .. this.
3000 (grub_net_seek_real): Use net->offset.
3001 (grub_net_fs_read): Seek if necessary.
3002
3003 Unify IEEE1275 netwotk config with the other platforms.
3004
3005 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
3006 New variable.
3007 (grub_machine_get_bootlocation): Support network.
3008 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
3009 Support type and device parsing.
3010 (grub_ieee1275_get_device_type): New function.
3011 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
3012 into ...
3013 (grub_ieee1275_net_config_real): ... this.
3014 (grub_ofnet_probecards): Removed.
3015 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
3016 * include/grub/ieee1275/ofnet.h: Removed.
3017 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
3018 extern var.
3019 (grub_ieee1275_get_device_type): New function.
3020
3021 Unify network device closing across platforms and make more robust.
3022
3023 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
3024 grub_grubnet_fini.
3025 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
3026 already.
3027 * grub-core/net/net.c (grub_net_network_level_interface_register):
3028 Update num_ifaces.
3029 (grub_net_card_unregister): Close all interfaces.
3030 (receive_packets): Don't poll if no iterfaces are registered.
3031 Open if necessary.
3032 (grub_net_fini_hw): New function.
3033 (grub_net_restore_hw): Likewise.
3034 (fini_hnd): New variable.
3035 (GRUB_MOD_INIT): Register preboot hook.
3036 (GRUB_MOD_FINI): Run and unregister preboot hook.
3037
3038 Poll network cards when idle.
3039
3040 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
3041 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
3042 * grub-core/net/net.c (receive_packets): Save last poll time.
3043 (grub_net_poll_cards_idle_real): New function.
3044 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
3045 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
3046 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
3047
3048 Rename ofnet interfaces.
3049
3050 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
3051 (grub_ofnet_findcards): Use ofnet_%s names.
3052
3053 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
3054
3055 Cleanup socket opening.
3056
3057 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
3058 (grub_net_fs_close): Likewise.
3059 (grub_net_fs_read_real): Use eof member.
3060 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
3061 (+grub_net_udp_close): New inline function.
3062
3063 * include/grub/net/tftp.h: Moved to the top of ...
3064 * grub-core/net/tftp.c: ... here.
3065 * include/grub/net/ip.h: Moved mostly to the top of ...
3066 * grub-core/net/ip.c: ... here.
3067 * include/grub/net/ethernet.h: Moved mostly to the top of ...
3068 * grub-core/net/ethernet.c: ... here.
3069
3070 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
3071
3072 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
3073 FS name.
3074
3075 * include/grub/net/ip.h (ipv4_ini): Removed.
3076 (ipv4_fini): Likewise.
3077
3078 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
3079 (grub_net_send_ip_packets): Likewise.
3080
3081 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
3084 grub_read_cmos prototype.
3085
3086 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 VGA text support in qemu-mips
3089
3090 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
3091 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
3092 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
3093 text.
3094 * grub-core/kern/i386/qemu/init.c: Renamed to ...
3095 * grub-core/kern/vga_init.c: ... this.
3096 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
3097 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
3098 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
3099 Adjust.
3100 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
3101 GRUB_MACHINE_PCI_IO_BASE.
3102
3103 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 MIPS qemu flash support.
3106
3107 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
3108 magic.
3109 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
3110 (grub_machine_init): Probe memory if its size isn't known.
3111 * util/grub-mkimage.c (image_targets): Add flash targets.
3112 (generate_image): Handle flash targets.
3113
3114 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 MIPS qemu at_keyboard support.
3117
3118 * gentpl.py (videoinkernel): Add qemu-mips.
3119 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
3120 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
3121 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
3122 modules.
3123 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
3124 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
3125 * grub-core/term/serial.c (grub_serial_register)
3126 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
3127
3128 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 CMOS support on sparc.
3131
3132 * gentpl.py (cmos): Add powerpc and sparc.
3133 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
3134 powerpc and sparc.
3135 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
3136 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
3137 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
3138 grub_set_datetime_cmos.
3139 * grub-core/lib/ieee1275/cmos.c: New file.
3140 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
3141 (find_rtc): Set no_ieee1275_rtc on error.
3142 (grub_get_datetime): Call grub_get_datetime_cmos on error.
3143 (grub_set_datetime): Call grub_set_datetime_cmos on error.
3144 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
3145 fail. Move value to argument. All users updated
3146 (grub_cmos_write): Likewise.
3147 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
3148 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
3149 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
3150 grub_get_datetime_cmos and grub_set_datetime_cmos.
3151
3152 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
3153
3154 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
3155 sourcing grub-mkconfig_lib.
3156 * util/update-grub_lib.in: Likewise.
3157 * util/grub.d/00_header.in: Likewise.
3158 * util/grub.d/10_hurd.in: Likewise.
3159 * util/grub.d/10_kfreebsd.in: Likewise.
3160 * util/grub.d/10_linux.in: Likewise.
3161 * util/grub.d/10_netbsd.in: Likewise.
3162 * util/grub.d/10_windows.in: Likewise.
3163 * util/grub.d/20_linux_xen.in: Likewise.
3164 * util/grub.d/30_os-prober.in: Likewise.
3165
3166 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
3167
3168 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
3169 default_bg_color rather than black.
3170 (grub_gfxterm_fullscreen): Likewise.
3171 (grub_gfxterm_background_color_cmd): Save new background color in
3172 default_bg_color.
3173
3174 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
3177
3178 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
3181 mismerge.
3182
3183 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 Chainloading on coreboot support.
3186
3187 * grub-core/Makefile.core.def (chain): Add coreboot.
3188 * grub-core/loader/i386/coreboot/chainloader.c: New file.
3189
3190 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
3193 if it happens.
3194
3195 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 Implement time command.
3198
3199 * grub-core/Makefile.core.def (time): New module.
3200 * grub-core/commands/time.c: New file.
3201 * grub-core/script/parser.y: Remove "time" keyword.
3202 * grub-core/script/yylex.l: Likewise.
3203
3204 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3205
3206 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
3207
3208 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3209
3210 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
3211 when handling leftovers.
3212
3213 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
3216 so that help2man doesn't fail.
3217
3218 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
3221 type in pointers on sparc64.
3222 (get_card_packet): Likewise.
3223
3224 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
3225
3226 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
3227 with `*'.
3228 (grub_cmd_videoinfo): Fetch current video mode.
3229
3230 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3231
3232 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
3233 because of underlying system restrictions.
3234
3235 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
3238 necessary.
3239
3240 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3241
3242 Coreboot video support.
3243
3244 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
3245 (vbe): Likewise.
3246 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
3247 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
3248 here ...
3249 * grub-core/kern/i386/int.S: ... here.
3250 * grub-core/video/i386/pc/vbe.c: Updated includes.
3251 * grub-core/video/i386/pc/vga.c: Likewise.
3252 * include/grub/i386/coreboot/memory.h
3253 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
3254 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
3255 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
3256 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
3257 Disable interrupts.
3258 * include/grub/i386/pc/vga.h: Removed. All users updated.
3259
3260 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
3263 definitions for dprintf.
3264 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
3265
3266 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
3269 prototype.
3270 (get_card_packet): Likewise.
3271
3272 2011-06-26 Yves Blusseau <blusseau@zetam.org>
3273
3274 Display the path of the file when file is not found
3275
3276 * grub-core/fs/fat.c: Display the filename when file is not found.
3277 * grub-core/fs/fshelp.c: Likewise.
3278 * grub-core/fs/hfs.c: Likewise.
3279 * grub-core/fs/jfs.c: Likewise.
3280 * grub-core/fs/minix.c: Likewise.
3281 * grub-core/fs/ufs.c: Likewise.
3282 * grub-core/fs/btrfs.c: Likewise.
3283 * grub-core/commands/i386/pc/play.c: Likewise.
3284
3285 2011-06-26 Szymon Janc <szymon@janc.net.pl>
3286
3287 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
3288 pointer checks before calling grub_free().
3289 * grub-core/commands/wildcard.c (match_devices): Likewise.
3290 * grub-core/commands/wildcard.c (match_files): Likewise.
3291 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
3292 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
3293 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
3294 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
3295 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
3296 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
3297 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
3298 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
3299 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
3300
3301 2011-06-25 Patrick <p55@mailinator.com>
3302
3303 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
3304
3305 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
3308 (grub_pxe_send): Likewise.
3309 (GRUB_MOD_INIT): Fix types.
3310
3311 2011-06-24 Szymon Janc <szymon@janc.net.pl>
3312
3313 * grub-core/io/xzio.c: Fix code style issues
3314
3315 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3316 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
3317
3318 Network infrastructure.
3319 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
3320
3321 * include/grub/net/arp.h: New file.
3322 * include/grub/net/device.h: Likewise.
3323 * include/grub/net/ethernet.h: Likewise.
3324 * include/grub/net/ip.h: Likewise.
3325 * include/grub/net/netbuff.h: Likewise.
3326 * include/grub/net/tftp.h: Likewise.
3327 * include/grub/net/udp.h: Likewise.
3328 * include/grub/ieee1275/ofnet.h: Likewise.
3329 * include/grub/emu/export.h: Likewise.
3330 * include/grub/net.h: Likewise.
3331 * grub-core/net/arp.c: Likewise.
3332 * grub-core/net/ethernet.c: Likewise.
3333 * grub-core/net/ip.c: Likewise.
3334 * grub-core/net/udp.c: Likewise.
3335 * grub-core/net/tftp.c: Likewise.
3336 * grub-core/net/netbuff.c: Likewise.
3337 * grub-core/net/net.c: Likewise.
3338 * grub-core/net/drivers/emu/emunet.c: Likewise.
3339 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
3340 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
3341 export.h.
3342 * grub-core/Makefile.core.def (net): New module.
3343 (tftp): Likewise.
3344 (ofnet): Likewise.
3345 (emunet): Likewise.
3346 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
3347 network protocols.
3348 * grub-core/kern/device.c (grub_net_open) : New variable.
3349 (grub_device_open): Handle network device.
3350 (grub_device_close): Likewise.
3351 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
3352 (grub_grubnet_fini): Likewise.
3353 (grub_file_seek): Seek in network device.
3354 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
3355 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
3356 network root.
3357 (grub_machine_fini): Call grub_grubnet_fini.
3358 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
3359 network.
3360 (grub_ieee1275_get_aliasdevname): New function.
3361 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
3362 Add unofficial Solaris network info.
3363 (grub_multiboot_make_mbi): Likewise.
3364 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
3365 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
3366 * include/grub/device.h (grub_fs): Removed.
3367 * include/grub/err.h (grub_err_t): Add network-related values.
3368 * include/grub/i386/pc/pxe.h: Removed bootp parts.
3369 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
3370 (grub_ieee1275_get_aliasdevname): New proto.
3371 * include/grub/net.h: Rewritten.
3372
3373 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
3376 names.
3377
3378 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
3381 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
3382 it truncates the output.
3383 Reported by: Ximin Luo.
3384
3385 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
3388
3389 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
3392 partmap before abstraction.
3393
3394 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
3395
3396 * util/grub-mkconfig_lib.in: Add missing quotes.
3397
3398 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
3401 old method if mountinfo would return /dev/root and /dev/root doesn't
3402 exist.
3403
3404 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 ZFS zlib support
3407
3408 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
3409 (decomp_table): Add zlib entries.
3410 (zio_read): USe 8 bits for compression function rather than 3.
3411 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
3412
3413 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/disk/ahci.c: Add missing license statements.
3416 * grub-core/fs/romfs.c: Likewise.
3417 * grub-core/lib/ia64/setjmp.S: Likewise.
3418 * grub-core/loader/i386/pc/freedos.c: Likewise.
3419 * grub-core/loader/ia64/efi/linux.c: Likewise.
3420 * grub-core/video/colors.c: Likewise.
3421 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
3422
3423 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 AHCI support.
3426
3427 * grub-core/Makefile.core.def (ata_pthru): Removed.
3428 (ahci): New module.
3429 (pata): Likewise.
3430 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
3431 on unload.
3432 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
3433 readwrite.
3434 (grub_hdparm_do_check_powermode_cmd): Likewise.
3435 (grub_hdparm_do_smart_cmd): Likewise.
3436 (grub_hdparm_set_val_cmd): Likewise.
3437 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
3438 * grub-core/disk/ahci.c: New file.
3439 * grub-core/disk/ata.c: Factor out the low-level part into ...
3440 * grub-core/disk/pata.c: ... here.
3441 * grub-core/disk/ata_pthru.c: Contents moved to ...
3442 * grub-core/disk/pata.c: ... here.
3443 * grub-core/disk/scsi.c (grub_scsi_names): New array.
3444 (grub_scsi_iterate): Use grub_scsi_names.
3445 (grub_scsi_open): Likewise.
3446 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
3447 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
3448 (grub_ata_regs_t): New struct.
3449 (grub_disk_ata_pass_through_parms): Likewise.
3450 (grub_ata_device): Renamed to ...
3451 (grub_ata): ... this.
3452 (grub_ata_dev): New struct.
3453 Removed all low-level inline functions.
3454 * include/grub/scsi.h: Add PATA and AHCI subsystems.
3455 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
3456 iterate hooks and open. All users updated.
3457 * util/grub-install.in: Handle AHCI disk module.
3458
3459 2011-06-23 Szymon Janc <szymon@janc.net.pl>
3460
3461 Add support for DRI and RSTn markers in JPEG files.
3462
3463 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
3464 (JPEG_MARKER_RST0): Likewise.
3465 (JPEG_MARKER_RST1): Likewise.
3466 (JPEG_MARKER_RST2): Likewise.
3467 (JPEG_MARKER_RST3): Likewise.
3468 (JPEG_MARKER_RST4): Likewise.
3469 (JPEG_MARKER_RST5): Likewise.
3470 (JPEG_MARKER_RST6): Likewise.
3471 (JPEG_MARKER_RST7): Likewise.
3472 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
3473 (grub_jpeg_decode_dri): New function.
3474 (grub_jpeg_decode_sos): Move image data related part into
3475 grub_jpeg_decode_data function.
3476 (grub_jpeg_decode_data): New function.
3477 (grub_jpeg_reset): New function.
3478 (grub_jpeg_decode_jpeg): Handle new markers.
3479
3480 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 * util/ieee1275/ofpath.c (check_sas): Close fd.
3483 (main): Free of_path.
3484 Reported by: David Volgyes <dvolgyes>.
3485
3486 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
3489 Reported by: David Volgyes <dvolgyes>.
3490
3491 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
3494 file after stat.
3495 Reported by: David Volgyes <dvolgyes>.
3496
3497 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
3500
3501 Reported by: David Volgyes <dvolgyes>.
3502
3503 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
3506 Prevent memory leak.
3507
3508 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
3511 (main): Close file.
3512 Reported by: David Volgyes <dvolgyes>.
3513
3514 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
3517 to continue if allocation is failed.
3518
3519 Reported by: David Volgyes <dvolgyes>.
3520
3521 2011-06-23 David Volgyes <dvolgyes>
3522
3523 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
3524 dereference.
3525
3526 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3527
3528 Fix spurious warning.
3529
3530 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
3531 (acorn_partition_map_find): Use .bin member.
3532
3533 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3534
3535 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
3536 /dev/root as a valid device.
3537
3538 2011-06-23 Jim Meyering <meyering@redhat.com>
3539
3540 Avoid NULL deref in grub_device_open.
3541
3542 * grub-core/kern/device.c (grub_device_open): Don't dereference
3543 a NULL pointer upon failed grub_env_get.
3544
3545 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 Support non-512B sectors and agglomerate reads.
3548
3549 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
3550 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
3551 (disk_io_guid): Removed.
3552 (make_devices): Locate solely by BlockIO.
3553 (grub_efidisk_open): Fill log_sector_size and total_sectors.
3554 (grub_efidisk_read): Use read_blocks.
3555 (grub_efidisk_write): Use write_blocks.
3556 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
3557 log_sector_size.
3558 (get_safe_sectors): Handle non-512B sectors.
3559 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
3560 sectors.
3561 (grub_biosdisk_write): Handle non-512B sectors.
3562 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
3563 (grub_scsi_read): Remove special non-512B block handling (now handled
3564 one level up).
3565 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
3566 and do sanity checks.
3567 (grub_disk_adjust_range): Handle non-512B sectors.
3568 (transform_sector): New function.
3569 (grub_disk_read_small): Likewise.
3570 (grub_disk_read): Rewritten.
3571 (grub_disk_write): Handle non-512B sectors.
3572 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
3573 log_sector_size.
3574 (open_device): Use log_sector_size.
3575 (grub_util_biosdisk_read): Likewise.
3576 (grub_util_biosdisk_write): Likewise.
3577 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
3578 non-512B sectors.
3579 (pc_partition_map_embed): Likewise.
3580 * include/grub/disk.h (grub_disk): New field log_sector_size.
3581 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
3582 (GRUB_DISK_CACHE_BITS): Increased to 6.
3583 * util/grub-fstest.c (fstest): New command testload.
3584 (argp_parser): Likewise.
3585
3586 2011-06-16 Robert Millan <rmh@gnu.org>
3587
3588 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
3589 `ata' driver on kernel of FreeBSD 9.
3590
3591 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
3592 (get_ataraid_disk_name): New functions.
3593 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
3594 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
3595 get_ataraid_disk_name() and get_ada_disk_name().
3596
3597 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
3598
3599 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
3600 input format.
3601
3602 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
3603
3604 * docs/grub.texi (Obtaining and Building GRUB): Substitute
3605 `ftp.gnu.org' for `alpha.gnu.org'.
3606
3607 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
3608
3609 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
3610 partitions under /dev/disk/by-id/.
3611
3612 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
3613
3614 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
3615 after ten consecutive open failures. Scanning all the way up to
3616 10000 is excessive and can cause serious performance problems in
3617 some configurations.
3618 Fixes Ubuntu bug #787461.
3619
3620 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
3623 opening new one.
3624
3625 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
3626 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 Don't stat devices unless we have to.
3629
3630 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
3631 dir == /dev/mapper.
3632 (grub_guess_root_device): Use already known os_dev if possible.
3633 * grub-core/kern/emu/hostdisk.c
3634 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
3635 if device is known to be a dm one.
3636
3637 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
3638
3639 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
3640 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
3641 Reported by: Pawel Tecza.
3642
3643 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
3646 (lsefisystab): Likewise.
3647 (lssal): Likewise.
3648 (lsefimmap): Likewise.
3649 (hdparm): Enable on qemu-mips.
3650 (setjmp): Add ia64 nodist.
3651 (serial): Simplify tags.
3652
3653 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
3654
3655 * Makefile.util.def (grub-ofpathname): Install manual page.
3656
3657 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
3658
3659 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
3660
3661 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
3662
3663 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
3664
3665 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3666
3667 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
3668 into dprintf.
3669
3670 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3671
3672 Use full 64-bit division.
3673
3674 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
3675 (grub_divmod64): ... this.
3676 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
3677 version.
3678
3679 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
3680
3681 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
3682 `source'.
3683
3684 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
3685
3686 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
3687 to avoid accidents when debugging with 'sh -x'.
3688 * grub-core/gensyminfo.sh.in: Likewise.
3689 * tests/example_scripted_test.in: Likewise.
3690 * tests/grub_cmd_regexp.in: Likewise.
3691 * tests/grub_script_blanklines.in: Likewise.
3692 * tests/grub_script_dollar.in: Likewise.
3693 * tests/grub_script_expansion.in: Likewise.
3694 * tests/grub_script_final_semicolon.in: Likewise.
3695 * tests/partmap_test.in: Likewise.
3696 * tests/util/grub-shell-tester.in: Likewise.
3697 * tests/util/grub-shell.in: Likewise.
3698
3699 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
3700
3701 Move gfxmenu color handling to video, so that gfxterm can use it
3702 too.
3703
3704 * grub-core/gfxmenu/named_colors.c: Move to ...
3705 * grub-core/video/colors.c: ... here. Rename
3706 grub_gui_get_named_color to grub_video_get_named_color.
3707 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
3708 * grub-core/video/colors.c (my_isxdigit): ... here.
3709 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
3710 Move to ...
3711 * grub-core/video/colors.c (parse_hex_color_component): ... here.
3712 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
3713 to ...
3714 * grub-core/video/colors.c (grub_video_parse_color): ... here.
3715
3716 * include/grub/gui.h (grub_gui_color_t): Move to ...
3717 * include/grub/video.h (grub_video_rgba_color_t): ... here.
3718 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
3719 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
3720 * include/grub/gui.h (grub_gui_map_color): Move to ...
3721 * include/grub/video.h (grub_video_map_rgba_color): ... here.
3722 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
3723 to ...
3724 * include/grub/video.h (grub_video_get_named_color): ... here.
3725 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
3726 * include/grub/video.h (grub_video_parse_color): ... here.
3727
3728 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
3729 video/colors.c.
3730 (gfxmenu): Remove gfxmenu/named_colors.c.
3731 (video) [videomodules]: Add video/colors.c.
3732
3733 Add a background_color command.
3734
3735 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
3736 function.
3737 (GRUB_MOD_INIT): Register background_color command.
3738 (GRUB_MOD_FINI): Unregister background_color command.
3739 (redraw_screen_rect): Allow blend/replace of text layer to be
3740 controlled independently from whether there is a background bitmap.
3741 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
3742 changing bitmap.
3743
3744 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3745
3746 Patch BPB in ntldr and chainloader --bpb.
3747
3748 * grub-core/fs/fat.c: Include grub/fat.h.
3749 (grub_fat_bpb): Moved to ...
3750 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
3751 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
3752 grub/ntfs.h.
3753 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
3754 Moved from here...
3755 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
3756 here.
3757 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
3758 New function.
3759 (grub_chainloader_cmd): Patch BPB if --bpb is given.
3760 (GRUB_MOD_INIT): Show --bpb.
3761 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
3762 * grub-core/normal/main.c (features): New variable.
3763 (GRUB_MOD_INIT): Set feature_* variables.
3764 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
3765 proto.
3766 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
3767
3768 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3769
3770 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
3771 for cleanness.
3772
3773 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 FreeDOS direct loading support.
3776
3777 * docs/grub.texi (Supported OS): Add FreeDOS.
3778 * grub-core/Makefile.core.def (freedos): New module.
3779 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
3780 variable.
3781 (grub_relocator16_boot): Handle %ebx.
3782 * grub-core/lib/i386/relocator16.S: Likewise.
3783 * grub-core/loader/i386/pc/freedos.c: New file.
3784
3785 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 Long Linux command line support.
3788
3789 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
3790 (maximal_cmdline_size): New variable.
3791 (allocate_pages): Use maximal_cmdline_size.
3792 (grub_cmd_linux): Set and use maximal_cmdline_size.
3793 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
3794 (allocate_pages): Use maximal_cmdline_size.
3795 (grub_cmd_linux): Set and use maximal_cmdline_size.
3796 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
3797 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
3798 and cmdline_size.
3799
3800 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3801 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
3802
3803 Improve devmapper support
3804
3805 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
3806 (grub_util_is_lvm): New function.
3807 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
3808 than lvm if not dmraid.
3809 Handle mapped md nodes.
3810 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
3811 (grub_util_device_is_mapped): ... this. Make always available. All users
3812 updated.
3813 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
3814 (convert_system_partition_to_system_disk): Handle lvm, mpath and
3815 dmraid nodes.
3816 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
3817
3818 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
3821
3822 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
3823 * grub-core/modinfo.sh.in: New file.
3824 * grub-core/Makefile.core.def (modinfo.sh): New script.
3825 * util/grub-mknetdir.in: Use modinfo.sh.
3826 * util/grub-mkrescue.in: Likewise.
3827
3828 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
3831 Fix potential usage of Elf32 instead of Elf64 when compiling on
3832 32-bit architecture. Add endianness macros while on it.
3833
3834 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 Use mipsel- rather than mips- in directories involving mipsel ports to
3837 allow both endiannesses coexist.
3838
3839 * configure.ac: proparate target_cpu=mipsel rather than resetting to
3840 mips. All conditions adjusted.
3841 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
3842 variable.
3843 * util/grub-install.in: Adjust conditions to take renaming into account.
3844 * util/grub-mkimage.c (image_targets): Likewise. New target
3845 mips-qemu_mips-elf for bigendian mips.
3846
3847 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3848
3849 Avoid unnecessary copying on MIPS.
3850
3851 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
3852 early if src == dest.
3853 * util/grub-mkimage.c (generate_image): Arange for src == dest if
3854 compression is none.
3855
3856 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 Reduce memory footprint on SGI by putting modules before the kernel
3859 as opposed to after.
3860
3861 * grub-core/Makefile.core.def (kernel): Increase linking address.
3862 (none_decompress): Likewise.
3863 (xz_decompress): Likewise.
3864 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
3865 address.
3866 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
3867 layout change.
3868 (grub_arch_modules_addr): New function.
3869 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
3870 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
3871 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
3872 here.
3873 * grub-core/kern/mips/startup.S (total_size): Rename to ...
3874 (grub_total_modules_size): ... this. Make global.
3875 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
3876 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
3877 New definition.
3878 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
3879 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
3880 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
3881 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
3882 * util/grub-mkimage.c (image_target_desc): New flag
3883 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
3884 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
3885 (generate_image): Handle images with modules before kernel.
3886
3887 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 Prevent potential loss of memory map by overwrite on qemu-mips.
3890
3891 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
3892 Save ram size in $s4.
3893 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
3894 All users changed to grub_arch_memsize.
3895 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
3896 Loongson.
3897 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
3898 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
3899 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
3900 external variable.
3901
3902 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
3903
3904 * .bzrignore: Remove grub-dumpbios.
3905
3906 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
3907
3908 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
3909 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
3910 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
3911 existing options which append).
3912 * docs/grub.texi (Simple configuration): Document new options.
3913 Reported by: Ian Jackson. Fixes Debian bug #617538.
3914
3915 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
3916
3917 * util/grub-fstest.c (cmd_cat): New function.
3918 (fstest): Handle CMD_CAT.
3919 (options): Add cat.
3920 (argp_parser): Handle cat.
3921
3922 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
3923
3924 * Makefile.util.def (grub-bin2h): Don't install.
3925 * docs/man/grub-bin2h.h2m: Remove.
3926
3927 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
3930 place.
3931
3932 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 Reenable qemu-mips port.
3935
3936 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
3937 Fix small arc bug while on it.
3938 * gentpl.py: Handle qemu_mips.
3939 * grub-core/Makefile.am: Likewise.
3940 * grub-core/Makefile.core.def: Likewise.
3941 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
3942 inappropriate includes.
3943 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
3944 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
3945 * grub-core/kern/main.c (grub_modules_get_end)
3946 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
3947 * grub-core/kern/mips/qemu-mips: Moved to ..
3948 * grub-core/kern/mips/qemu_mips: ... this.
3949 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
3950 (grub_machine_init): Call terminfo_init and serial_init.
3951 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
3952 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
3953 New variable.
3954 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
3955 parameter passing.
3956 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
3957 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
3958 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
3959 * include/grub/mips/qemu_mips/cmos.h: New file.
3960 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
3961 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
3962 Removed.
3963 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
3964 Use correct mips-style address.
3965 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
3966 (GRUB_TICKS_PER_SECOND): Removed.
3967 (grub_get_rtc): Likewise.
3968 (grub_cpu_idle): Likewise.
3969 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
3970 New definition.
3971 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
3972 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
3973 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
3974 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
3975 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
3976 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
3977 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
3978 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
3979
3980 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3981
3982 SGI ARCS port.
3983
3984 * Makefile.util.def (libgrubmods.a): Add dvh.c.
3985 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
3986 platforms.
3987 * configure.ac: New target mips-arc.
3988 * gentpl.py: Likewise.
3989 * grub-core/Makefile.am: Likewise.
3990 * grub-core/Makefile.core.def: Likewise.
3991 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
3992 (none_decompress): Likewise.
3993 (lsdev): New module.
3994 (datetime): Use lib/arc/datetime.c on ARC.
3995 (part_dvh): New module.
3996 * grub-core/commands/arc/lsdev.c: New file.
3997 * grub-core/disk/arc/arcdisk.c: Likewise.
3998 * grub-core/kern/mips/arc/init.c: Likewise.
3999 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
4000 aligned addresses.
4001 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
4002 support.
4003 (grub_arch_dl_relocate_symbols): Likewise.
4004 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
4005 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
4006 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
4007 platforms.
4008 * grub-core/lib/arc/datetime.c: New file.
4009 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
4010 pci.h on non-loongson.
4011 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
4012 (grub_linux_boot): Set unused registers to 0.
4013 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
4014 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
4015 * grub-core/mmap/mips/uppermem.c: ...here.
4016 * grub-core/partmap/dvh.c: New file.
4017 * grub-core/term/arc/console.c: Likewise.
4018 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
4019 (grub_terminfo_set_current): Add terminal "arc".
4020 (grub_terminfo_readkey): Support ARC sequences.
4021 * include/grub/arc/arc.h: New file.
4022 * include/grub/arc/console.h: Likewise.
4023 * include/grub/disk.h (grub_disk_dev_id): Add
4024 GRUB_DISK_DEVICE_ARCDISK_ID.
4025 * include/grub/mips/arc/kernel.h: New file.
4026 * include/grub/mips/arc/memory.h: Likewise.
4027 * include/grub/mips/arc/time.h: Likewise.
4028 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
4029 * include/grub/mips/kernel.h (grub_halt): ... here.
4030 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
4031 here...
4032 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
4033 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
4034 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
4035 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
4036 proto.
4037 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
4038 from here ...
4039 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
4040 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
4041 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
4042 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
4043 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
4044 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
4045 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
4046 (grub_phys_addr_t): Moved from here ...
4047 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
4048 (grub_vtop): Moved from here ...
4049 * include/grub/mips/memory.h (grub_vtop): ... here.
4050 (grub_map_memory): Moved from here ...
4051 * include/grub/mips/memory.h (grub_map_memory): ... here.
4052 (grub_unmap_memory): Moved from here ...
4053 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
4054 (grub_machine_mmap_iterate): Moved from here ...
4055 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
4056 (grub_mmap_get_lower): Moved from here ...
4057 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
4058 (grub_mmap_get_upper): Moved from here ...
4059 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
4060 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
4061 here ...
4062 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4063 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
4064 here ...
4065 * include/grub/mips/time.h (grub_get_rtc): ... here.
4066 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
4067 here ...
4068 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4069 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
4070 here ...
4071 * include/grub/mips/time.h (grub_cpu_idle): ... here.
4072 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
4073 definition.
4074 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
4075 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
4076 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
4077 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
4078 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
4079 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
4080 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
4081 (GRUB_MACHINE_LINK_ADDR): Likewise.
4082 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
4083 to 6.
4084 * util/grub-install.in: Run dvhtool on ARC.
4085 * util/grub-mkimage.c (image_targets): Add mips-arc.
4086 (generate_image): Handle ECOFF output for mips-arc.
4087
4088 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
4091 blocks.
4092
4093 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4094
4095 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
4096 after enabling port.
4097
4098 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 Skip incorrect USB devices.
4101
4102 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
4103 configcnt == 0.
4104 * include/grub/usb.h (grub_usb_err_t): New enum value
4105 GRUB_USB_ERR_BADDEVICE.
4106
4107 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 Fuloong video init support.
4110
4111 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
4112 well.
4113 (grub_vga_read_arx): New function.
4114 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
4115 definition.
4116 (framebuffer): New members io, mmioptr and mmiobase.
4117 (read_sis_cmd): New function.
4118 (write_sis_cmd): Likewise.
4119 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
4120 rather than 640x400.
4121 * grub-core/video/sis315_init.c: New file.
4122
4123 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
4126 non-loongson.
4127 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
4128 to grub_dl_register_symbol.
4129
4130 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 Fix compilation errors.
4133
4134 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
4135 potentially unused.
4136 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
4137 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
4138 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
4139 to loongson machines.
4140
4141 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4142
4143 Several FS mtime support.
4144
4145 * grub-core/fs/affs.c (grub_affs_time): New struct.
4146 (grub_affs_file): New field mtime.
4147 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
4148 type. Removed 'size'. New field 'di'. All users updated.
4149 (grub_affs_mount): Simplify checsum checking.
4150 (grub_affs_iterate_dir): New helper grub_affs_create_node.
4151 (grub_affs_dir): Handle mtime.
4152 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
4153 (grub_cpio_dir): Likewise.
4154 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
4155 (grub_hfs_filerec): New field mtime.
4156 (grub_hfs_dir): Handle mtime.
4157 (grub_hfs_mtime): New function.
4158 (grub_hfs_fs): Register grub_hfs_mtime.
4159 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
4160 (grub_iso9660_dir): New field mtime.
4161 (grub_fshelp_node): New field dirent.
4162 (iso9660_to_unixtime): New function.
4163 (iso9660_to_unixtime2): Likewise.
4164 (grub_iso9660_read_symlink): Use node->dirent.
4165 (grub_iso9660_iterate_dir): Likewise.
4166 (grub_iso9660_dir): Set mtime.
4167 (grub_iso9660_mtime): New function.
4168 (grub_iso9660_fs): Register grub_iso9660_mtime.
4169 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
4170 (grub_jfs_inode): New fields atime, ctime and mtime.
4171 (grub_jfs_dir): Set mtime.
4172 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
4173 * grub-core/fs/ntfs.c (list_file): Set mtime.
4174 (grub_ntfs_dir): Likewise.
4175 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
4176 (grub_reiserfs_iterate_dir): Set mtime.
4177 (grub_reiserfs_dir): Likewise.
4178 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
4179 (grub_fshelp_node): Likewise.
4180 (grub_sfs_iterate_dir): Set mtime.
4181 (grub_sfs_dir): Likewise.
4182 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
4183 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
4184 (grub_xfs_inode): New fields atime, mtime, ctime.
4185 (grub_xfs_dir): Set mtime.
4186 * include/grub/datetime.h (grub_datetime2unixtime): New function.
4187 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
4188 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
4189
4190 Support UDF symlinks.
4191
4192 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
4193 (grub_ufs_read_symlink): New function. All users updated.
4194
4195 Check amiga partmap checksum.
4196
4197 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
4198 (grub_amiga_partition): Likewise.
4199 (amiga_partition_map_checksum): New function.
4200 (amiga_partition_map_iterate): Check checksum.
4201
4202 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 ROMFS support.
4205
4206 * Makefile.util.def (libgrubmods.a): Add romfs.
4207 * grub-core/Makefile.core.def (romfs): New module.
4208 * grub-core/fs/romfs.c: New file.
4209
4210 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4211
4212 Squashfs v4 support.
4213
4214 * Makefile.util.def (libgrubmods.a): Add squash4.
4215 * grub-core/Makefile.core.def (squash4): New module.
4216 * grub-core/fs/squash4.c: New file.
4217 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
4218 disk_input_start, disk_input.
4219 (get_byte): Handle disk_input.
4220 (grub_zlib_disk_read): New function.
4221 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
4222
4223 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4224 2011-05-15 Feiran Zheng <famcool@gmail.com>
4225
4226 * Makefile.util.def (libgrubmods.a): Add minix3.
4227 * grub-core/Makefile.core.def (minix3): New module.
4228 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
4229 (GRUB_MINIX_BSIZE): Removed.
4230 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
4231 (grub_minix_ino_t): New type.
4232 (grub_minix_le_to_cpu_ino): New macro.
4233 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
4234 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
4235 (grub_minix_data): New field block_size.
4236 (grub_minix_read_file): Handle 64-bit correctly.
4237 * grub-core/fs/minix3.c: New file.
4238
4239 2011-05-15 Tristan Gingold <gingold@free.fr>
4240 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
4241 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 IA64 support.
4244
4245 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
4246 * configure.ac: Add ia64-efi target.
4247 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
4248 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
4249 * gentpl.py: Add ia64_efi platform.
4250 Rename x86_efi to efi and Add ia64-efi. All users updated.
4251 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
4252 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
4253 Remove kern/generic/rtc_get_time_ms.c on EFI.
4254 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
4255 kern/ia64/dl_helper.c on ia64-efi.
4256 Add kern/emu/cache.c on emu.
4257 (linux): Use on loader/ia64/efi/linux.c on ia64.
4258 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
4259 whether symbol is a function.
4260 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
4261 (grub_symbol): New field 'isfunc'.
4262 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
4263 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
4264 (grub_dl_load_segments): Place all sections into the same region.
4265 [__ia64__]: Create trampolines and got.
4266 [GRUB_MACHINE_EMU]: Call mprotect.
4267 (grub_dl_resolve_symbols): Resolve symbol type as well.
4268 [__ia64__]: Create function descriptors.
4269 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
4270 (grub_rtc_get_time_ms): ... this. Expressions simplified.
4271 (grub_get_rtc): New function.
4272 * grub-core/kern/emu/cache.c [__ia64__]: New file.
4273 * grub-core/kern/emu/cache.S: Renamed to ...
4274 * grub-core/kern/emu/cache_s.S: ... this.
4275 [__ia64__]: Add a nop.
4276 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
4277 [__ia64__]: New function.
4278 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
4279 * grub-core/kern/ia64/dl.c: New file.
4280 * grub-core/kern/ia64/dl_helper.c: Likewise.
4281 * grub-core/kern/ia64/efi/init.c: New file.
4282 * grub-core/kern/ia64/efi/startup.S: Likewise.
4283 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
4284 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
4285 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
4286 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
4287 * grub-core/loader/ia64/efi/linux.c: New file.
4288 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
4289 (GRUB_MOD_DEP): Likewise.
4290 (grub_dl) [__ia64__]: New fields got and tramp.
4291 (grub_dl): New field 'base'.
4292 (grub_dl_register_symbol): New argument isfunc. All users updated.
4293 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
4294 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
4295 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
4296 (grub_ia64_dl_get_tramp_got_size): New proto.
4297 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
4298 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
4299 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
4300 * include/grub/efi/api.h: Skip call wrappers on ia64.
4301 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
4302 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
4303 * include/grub/elf.h (ELF_ST_INFO): New definition.
4304 * include/grub/ia64/efi/kernel.h: New file.
4305 * include/grub/ia64/efi/memory.h: Likewise.
4306 * include/grub/ia64/efi/time.h: Likewise.
4307 * include/grub/ia64/kernel.h: Likewise.
4308 * include/grub/ia64/setjmp.h: Likewise (from glibc).
4309 * include/grub/ia64/time.h: New file.
4310 * include/grub/ia64/types.h: Likewise.
4311 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
4312 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
4313 New protos.
4314 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
4315 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
4316 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
4317 * util/grub-mkimage.c (image_target_desc): New field pe_target.
4318 All users updated.
4319 (EFI64_HEADER_SIZE): New definition. All users updated.
4320 (image_targets): Add ia64-efi.
4321 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
4322 jumpers_addr. All users updated.
4323 Create function descriptors.
4324 (count_funcs): New function.
4325 (unaligned_uint32): New struct.
4326 (MASK20): New definition.
4327 (MASK19): Likewise.
4328 (MASKF21): Likewise.
4329 (add_value_to_slot_20b): New function.
4330 (add_value_to_slot_21_real): Likewise.
4331 (add_value_to_slot_21): Likewise.
4332 (ia64_kernel_trampoline): New struct.
4333 (nopm): New variable.
4334 (jump): Likewise.
4335 (make_trampoline): New function.
4336 (relocate_addresses): Handle ia64.
4337 (make_reloc_section): Likewise.
4338 (load_image): Likewise.
4339
4340 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4341
4342 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
4343 warning. Move variables before code while on it.
4344
4345 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 Fuloong support.
4348
4349 * configure.ac: Rename yeeloong platform to loongson. All users updated.
4350 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
4351 * grub-core/boot/mips/loongson/fuloong.S: New file.
4352 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
4353 Explicitly init CS5536.
4354 [FULOONG]: Don't use serial until CS5536 is available.
4355 Set GPIO based on dumps.
4356 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
4357 [FULOONG]: Handle GPIO and memory controller differences.
4358 Parse machine type in $a2.
4359 * grub-core/boot/mips/startup_raw.S: Determine and save the
4360 architecture.
4361 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
4362 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
4363 init on architecture type.
4364 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
4365 SIS315E. Don't init at_keyboard on fuloong.
4366 (grub_halt): Support Fuloong.
4367 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
4368 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
4369 (loongson_machtypes): New array.
4370 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
4371 type.
4372 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
4373 config. All users updated. Handle CS5536 serial.
4374 * grub-core/term/serial.c (grub_serial_register): Conditionalise
4375 default port on machine type. Register serial as inactive.
4376 * grub-core/video/sis315pro.c: New file.
4377 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
4378 definition.
4379 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
4380 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
4381 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
4382 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
4383 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
4384 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
4385 to ...
4386 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
4387 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
4388 definition.
4389 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
4390 (grub_arch_machine): New extern var.
4391 * include/grub/mips/loongson/serial.h
4392 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
4393 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
4394 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
4395 (GRUB_MACHINE_SERIAL_PORT0): ... this.
4396 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
4397 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
4398 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
4399 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
4400 * include/grub/term.h (grub_term_register_input_inactive): New inline
4401 function.
4402 (grub_term_register_output_inactive): Likewise.
4403 * include/grub/video.h (grub_video_driver_id): New value
4404 GRUB_VIDEO_DRIVER_SIS315PRO.
4405 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
4406 New field "names". All users updated.
4407 New field value IMAGE_FULOONG_FLASH.
4408 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
4409
4410 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
4411
4412 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
4413 and add some clarification.
4414
4415 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
4418 platforms if kernel is compressed.
4419
4420 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
4423 unused modules since currently referrence counter isn't reliable and
4424 there isn't much memory to recover there anyway.
4425
4426 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
4429 rather than resetting it to allow modules to reference themselves
4430 in init.
4431
4432 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
4435 counter on dependencies since grub_dl_unref already handles this.
4436
4437 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
4440 on error if not already done.
4441
4442 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 Fix few potential memory misusage.
4445
4446 * grub-core/font/font.c (load_font_index): Don't free char_index to
4447 avoid double free.
4448 (grub_font_load): Zero-fill font at alloc for safety.
4449 Close file on error.
4450 (free_font): Free bmp_idx.
4451
4452 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4453
4454 * docs/grub.texi (Installation): Fix several outdated claims.
4455
4456 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 Handle module_license on windows.
4459
4460 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
4461 sections shifted.
4462 (insert_string): Make argument const char * instead of char *.
4463 (write_section_data): Handle long section names.
4464 Handle module_license.
4465
4466 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
4469 handle class-free menuentries.
4470 (grub_normal_add_menu_entry): Add a check to be sure.
4471
4472 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
4475 PgUp and PgDown.
4476
4477 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * configure.ac: Bump version to 1.99.
4480
4481 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 Give ATA device a bit more time on first try in order to allow disks
4484 to spin up.
4485
4486 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
4487 if dev->present is 1. Reset dev->present on failure.
4488 (grub_ata_device_initialize): Set dev->present to 1.
4489 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
4490 (grub_ata_device): New member 'present'.
4491
4492 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * util/grub-mkimage.c (generate_image): Update hash.
4495
4496 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 Flush caches on DMA memory.
4499
4500 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
4501 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
4502 (grub_dma_free): Likewise.
4503 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
4504
4505 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4506
4507 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
4508 to avoid asm treating ld and sd as macros.
4509
4510 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
4513 decompressor.
4514
4515 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
4518 grub_decompress_core since later would fail if grub_decompress_core
4519 is too far.
4520
4521 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4522
4523 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
4524 R_MIPS_JALR since it's used by newer compiler.
4525
4526 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4527
4528 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
4529
4530 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
4533 file_path to 0 for surety.
4534 (grub_chainloader_boot): Set exit_data to NULL.
4535 Unset the loader once done.
4536 (grub_cmd_chainloader): Fix confusing error message if file is empty.
4537
4538 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
4541 unknown key into a dprintf.
4542
4543 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
4546 on first non-existant partition.
4547
4548 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
4551 openning fails.
4552 Reported by: Mark Korenberg.
4553
4554 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4555
4556 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
4557 overflow.
4558
4559 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 * util/grub-mkimage.c (main): Explicitely flush and sync the output
4562 before closing to ensure that it will be readable by grub-setup.
4563
4564 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4565
4566 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
4567 (devpath_1): Use MAKE_PIWG_PATH.
4568 (devpath_2): Likewise.
4569 (devpath_3): Likewise.
4570 (devpath_4): Likewise.
4571 (devpath_5): Likewise.
4572 (devpath_6): Likewise.
4573
4574 The appleldr.mod was checked that to be binary identical to previous
4575 version.
4576
4577 2011-05-05 Zach <mikezackles>
4578
4579 Support 2010 Macbooks.
4580
4581 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
4582 (devs): Add devpath_6.
4583
4584 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
4587 /dev/random. /dev/urandom is good enough for our purposes (salting).
4588
4589 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
4592
4593 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
4596 hexadecimal.
4597
4598 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4599
4600 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
4601 and not 0 on failure.
4602
4603 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
4604
4605 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
4606 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
4607 disk; otherwise grub_fs_probe will not fall back to the next
4608 filesystem.
4609 (grub_pxefs_open): Likewise, for consistency.
4610 Reported and tested by: Ezekiel Grave.
4611
4612 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
4613
4614 * tests/partmap_test.in: Don't hardcode path to parted.
4615 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
4616
4617 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
4618
4619 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
4620 of `ls' to find out which devices are available.
4621
4622 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4623
4624 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
4625 than source address for efi mmap buffer.
4626
4627 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
4630 wrong action on non-detecting the magic.
4631
4632 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4633
4634 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
4635 already supplied by another part of the module (fixes compilation on
4636 FreeBSD).
4637
4638 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
4641 match the one used by mdadm.
4642
4643 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
4644
4645 * po/README: Add instructions for creating po/LINGUAS.
4646
4647 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
4648
4649 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
4650 #551428.
4651
4652 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
4653 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
4654 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
4655 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
4656 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
4657 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
4658 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
4659 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
4660 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
4661 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
4662 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
4663 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
4664 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
4665 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
4666 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
4667 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
4668 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
4669 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
4670 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
4671 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
4672 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
4673 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
4674
4675 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
4676
4677 * grub-core/kern/emu/getroot.c
4678 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
4679 test that was incorrectly reintroduced in r3214.
4680 Reported by: Ian Dall. Fixes Savannah bug #33133.
4681
4682 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
4683
4684 Fix stack pointer handling in 16-bit relocator.
4685
4686 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
4687 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
4688 Fixes Ubuntu bug #683904.
4689
4690 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 * configure.ac: Bump version to 1.99~rc2.
4693
4694 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
4697 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
4698 * grub-core/lib/x86_64/setjmp.S: Likewise.
4699 * grub-core/lib/mips/setjmp.S: Likewise.
4700 * grub-core/lib/powerpc/setjmp.S: Likewise.
4701 * grub-core/lib/sparc64/setjmp.S: Likewise.
4702
4703 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
4706 * grub-core/lib/efi/datetime.c: Likewise.
4707
4708 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4709
4710 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
4711 New function.
4712 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
4713 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
4714 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
4715
4716 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
4719 bitmap.
4720 (grub_gfxterm_term_init): Likewise.
4721
4722 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 Take into account the decorations the computing menu entry width.
4725
4726 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
4727 (grub_gfxmenu_create_box): Register get_border_width.
4728 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
4729 if available.
4730 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
4731 get_border_width.
4732
4733 2011-04-18 Endres Puschner <code@e7p.de>
4734
4735 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
4736 Don't skip first class.
4737
4738 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4739
4740 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
4741 chunks.
4742 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
4743
4744 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4745
4746 Complete 64-bit division support.
4747
4748 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
4749 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
4750 * include/grub/misc.h (grub_divmod64): Rename to ...
4751 (grub_divmod64_full): ... this.
4752 (grub_divmod64): New inline function.
4753
4754 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 * util/grub-mkimage.c (generate_image): Add forgotten comma.
4757
4758 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
4761 performing the necessary test.
4762
4763 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
4766 (kfreebsd.elf): Likewise.
4767 (pc-chainloader.elf): Likewise.
4768 (ntldr.elf): Likewise.
4769
4770 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 Identify RAID by its UUID rather than (guessed) name.
4773
4774 * grub-core/disk/raid.c (ascii2hex): New function.
4775 (grub_raid_open): Accept mduuid/%s specification.
4776 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
4777 (get_mdadm_uuid): ... this.
4778 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
4779
4780 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
4781
4782 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
4783 to negative size.
4784
4785 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
4786
4787 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
4788 btrfs subvolume.
4789 * util/grub.d/20_linux_xen.in: Likewise.
4790
4791 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
4792
4793 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
4794 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
4795
4796 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
4797 Build a list of relevant visible mounts using the mnt_id and
4798 parent_mnt_id fields, and then scan that list at the end.
4799
4800 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
4801
4802 * docs/grub.texi (normal): New section.
4803 (normal_exit): New section.
4804 (Embedded configuration): Add reference to normal.
4805 (GRUB only offers a rescue shell): Likewise.
4806 * docs/grub-dev.texi (Error Handling): Fix typo.
4807
4808 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
4809
4810 * NEWS: Drop obsolete entry about probe-only btrfs support.
4811
4812 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
4813
4814 * util/import_gcry.py: Fix typo.
4815
4816 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4817
4818 * NEWS: Add btrfs support.
4819
4820 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4821 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
4822
4823 BtrFS support. Written by me (Vladimir) with important bugfixes and
4824 even more important testing by Colin.
4825
4826 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
4827 * grub-core/Makefile.core.def (btrfs): Add crc.c.
4828 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
4829 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
4830 mem_input_off and mem_input. All users updated to accept in-RAM input.
4831 (gzio_seek): New function.
4832 (test_zlib_header): Likewise.
4833 (grub_gzio_read): Likewise.
4834 (grub_zlib_decompress): Likewise.
4835 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
4836 Accept partial and non-virtual mounts.
4837 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
4838 avoid receiving /dev/dm-X as device.
4839 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
4840 Handle bind and partial mounts.
4841 * grub-core/lib/crc.c: New file.
4842 * include/grub/deflate.h: Likewise.
4843 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
4844 proto.
4845 * include/grub/lib/crc.h: New file.
4846
4847 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 Implement automatic module license checking according to new GNU
4850 guidelines.
4851
4852 * grub-core/kern/dl.c (grub_dl_check_license): New function.
4853 (grub_dl_load_core): Use grub_dl_check_license.
4854 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
4855 (GRUB_MOD_LICENSE): Likewise.
4856 (GRUB_MOD_DUAL_LICENSE): Likewise.
4857 All modules updated.
4858
4859 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
4860
4861 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
4862 reserved_first_sector to 1. btrfs reserves plenty of space for boot
4863 loaders.
4864 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
4865
4866 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4867
4868 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
4869
4870 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4871
4872 * util/grub-fstest.c (read_file): Report GRUB error if file opening
4873 failed.
4874
4875 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4876
4877 * grub-core/kern/file.c (grub_file_open): Don't take into account the
4878 parenthesis in the middle of the filename.
4879
4880 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
4883 rather than trying to put initrd way too high.
4884 Reported by: Ryan Lortie <desrt@desrt.ca>
4885
4886 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4887
4888 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
4889 improperly removed string.
4890
4891 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
4894 is_disk.
4895 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
4896 (open_device) Likewise.
4897 (grub_util_biosdisk_close): Likewise.
4898 Reported by: Mark Korenberg.
4899
4900 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
4901
4902 * util/grub-mkconfig_lib.in: Add missing quotes.
4903
4904 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
4905
4906 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
4907 is NULL.
4908
4909 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 Dynamically count the number of lines for the lower banner.
4912
4913 * grub-core/normal/menu_entry.c (per_term_screen): New member
4914 num_entries.
4915 (print_down): Use num_entries.
4916 (update_screen): Likewise.
4917 (grub_menu_entry_run): Set num_entries.
4918 * grub-core/normal/menu_text.c (menu_viewer_data): New member
4919 num_entries.
4920 (grub_print_message_indented): Move real part to ...
4921 (grub_print_message_indented_real): ... here. Additional argument
4922 dry_run.
4923 (draw_border): Additional argument num_entries.
4924 (print_message): Additional argument dry_run.
4925 (print_entries): Receive menu viewer data.
4926 (grub_menu_init_page): New argment num_entries.
4927 (menu_text_set_chosen_entry): Use num_entries.
4928 (grub_menu_try_text): Likewise.
4929 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
4930 All users updated.
4931 (grub_ucs4_count_lines): New function.
4932 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
4933 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
4934 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
4935 (grub_term_border_height): Likewise.
4936 (grub_term_num_entries): Likewise.
4937
4938 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4939
4940 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
4941 Remove now unused string.
4942
4943 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
4944
4945 * docs/grub-dev.texi (Finding your way around): Update for 1.99
4946 build system.
4947 (Getting started): GRUB is developed in Bazaar now, not Subversion.
4948
4949 (Comment): Fix typo.
4950 (Getting started): General copy-editing.
4951 (Typical Development Experience): Likewise.
4952 (Error Handling): Likewise.
4953 (Video API): Likewise.
4954
4955 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
4956
4957 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
4958 throughout.
4959
4960 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * util/grub-mkimage.c (main): Handle special naming of yeeloong
4963 directory.
4964
4965 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
4966
4967 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
4968 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
4969 "development".
4970
4971 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
4974 grub_strcpy since the lines aren't necessarily 0-terminated.
4975
4976 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4977
4978 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
4979 root on legacy.
4980
4981 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 * grub-core/commands/probe.c (options): Argument to set isn't optional.
4984 (GRUB_MOD_INIT): DEVICE isn't optional.
4985
4986 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
4989 word on new line if it's too long anyway. Fixes a hang.
4990
4991 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4992
4993 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
4994 const.
4995 * util/grub-setup.c (main): Reuse md device name if available.
4996 * util/raid.c (grub_util_raid_getmembers): Receive device name and
4997 not GRUB name as argument.
4998 Based on patch by: Florian Wagner <fwagner>.
4999
5000 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
5003 Place mbi on low memory for better compatibility.
5004
5005 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
5008
5009 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5010 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5011
5012 * autogen.sh: Ensure that collate and ctype locale is C.
5013 * conf/Makefile.common: Likewise.
5014
5015 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/normal/menu.c: Add missing include.
5018
5019 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
5022
5023 2011-04-08 Martin Zuther <mzuther@mzuther.de>
5024
5025 * util/grub-mkconfig.in: Ignore emacsen backup.
5026
5027 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
5030 on open.
5031 (grub_util_biosdisk_close): Likewise.
5032
5033 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
5036 const attribute and use grub_isdigit.
5037
5038 2011-04-06 Andrey <dev_null@ukr.net>
5039
5040 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
5041 gcc warning.
5042
5043 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
5046 useful grub_dprintf's.
5047
5048 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
5051
5052 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
5055
5056 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 Output errors if theme loading failed.
5059
5060 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
5061 grub_gfxterm_fullscreen on error paths to ...
5062 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
5063 theme loading error.
5064
5065 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5066
5067 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
5068 space for older compilers.
5069 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5070
5071 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
5074 and report them as not RAID members since they are useless for GRUB.
5075 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5076
5077 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 Increase LVM implementation robustness in order not to crash on
5080 configurations like pvmove. Previously code assumed that in some places
5081 only lvs or only pvs are used whereas it seems that they are used
5082 interchangeably.
5083
5084 * grub-core/disk/lvm.c (read_node): New function.
5085 (read_lv): Use read_node.
5086 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
5087 Match volumes only at the end when all lvs are found. Take both
5088 pvs (first) and lvs (second) into account.
5089 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
5090 mirror_* into node_*. All users updated.
5091 (grub_lvm_stripe): Merge this ...
5092 (grub_lvm_mirror): ... and this ...
5093 (grub_lvm_node): ... into this. All users updated.
5094
5095 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5096
5097 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
5098 of function to allow further scanning for LVMs.
5099
5100 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5101
5102 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
5103 on failed seek as it breaks open fd reusage.
5104
5105 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 * util/grub-install.in: Add a recommendation to use --recheck before
5108 reporting bugs.
5109
5110 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5111
5112 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
5113 are obtained.
5114
5115 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5116
5117 GRUB developper manual based on existing Internals section and
5118 contributions by the various authors with active copyright assignment.
5119
5120 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
5121 * docs/font_char_metrics.png: New file.
5122 * docs/font_char_metrics.txt: Likewise.
5123 * docs/grub-dev.texi: Likewise.
5124 * docs/grub.texi (Internals): Move from here ...
5125 * docs/grub-dev.texi: ... here.
5126
5127 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5128
5129 Store the loopback device as data on loopback grub_disk structures,
5130 rather than the file it points to. This fixes use of freed memory
5131 if an existing loopback device is replaced.
5132
5133 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
5134 disk->data, not dev->file.
5135 (grub_loopback_read): Adjust file assignment to match.
5136 Fixes Ubuntu bug #742967.
5137
5138 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5139
5140 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
5141 when replacing an existing device.
5142
5143 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
5146 memory corruptions.
5147
5148 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
5149 unsigned.
5150 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
5151 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
5152 (grub_jfs_read_inode): Likewise.
5153 (grub_jfs_opendir): Likewise. Remove now useless casts.
5154 (grub_jfs_getent): Likewise.
5155 Make ino a grub_uint32_t rather than int.
5156 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
5157 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
5158 division and module with bit operations.
5159 (grub_jfs_find_file): Make ino a grub_uint32_t.
5160 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
5161
5162 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5163
5164 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
5165 warning. (This was in fact always initialised before use, but GCC
5166 wasn't smart enough to prove that.)
5167 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5168
5169 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
5172 stack alignment.
5173 (efi_wrap_1): Likewise.
5174 (efi_wrap_2): Likewise.
5175 (efi_wrap_3): Likewise.
5176 (efi_wrap_4): Likewise.
5177 (efi_wrap_5): Likewise.
5178 (efi_wrap_6): Likewise.
5179 (efi_wrap_10): Likewise.
5180 Based on information by: Red Hat/Peter Jones.
5181
5182 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
5183
5184 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
5185 set-but-not-used variable.
5186
5187 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
5188
5189 * docs/grub.texi (Simple configuration): Be more explicit about
5190 GRUB_DEFAULT, and add an example.
5191 Reported by: Leslie Rhorer.
5192
5193 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5194
5195 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
5196 shell".
5197
5198 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
5199
5200 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
5201 * util/grub.d/20_linux_xen.in: Likewise.
5202
5203 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 * util/grub.d/10_linux.in: Try alternative config filenames where
5206 we parse config file.
5207 * util/grub.d/20_linux_xen.in: Likewise.
5208
5209 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
5210
5211 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
5212 * util/grub.d/20_linux_xen.in: Likewise.
5213
5214 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 * grub-core/disk/raid.c (insert_array): Add few potentially
5217 useful grub_util_info.
5218 (grub_raid_register): Likewise.
5219
5220 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
5223 Preserve partition number in mdadm code path.
5224
5225 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
5228 few potentially useful grub_util_info.
5229
5230 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5231
5232 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
5233
5234 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5235
5236 * docs/grub.texi (default): Use @example rather than nested
5237 itemized lists to avoid breaking gendocs.
5238
5239 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5240
5241 * docs/grub.texi (Future): Update.
5242
5243 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5244
5245 * docs/grub.texi (Environment): New chapter.
5246 (Changes from GRUB Legacy): Link to "Environment block" section for
5247 details of limitations.
5248 (Simple configuration): Likewise. Link to documentation of gfxmode
5249 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
5250 respectively.
5251 (Shell-like scripting): Note that normal variables are stored in the
5252 environment.
5253 (gettext): Link to documentation of lang and locale_dir.
5254 (list_env): New section.
5255 (load_env): New section.
5256 (save_env): New section.
5257
5258 (Reporting bugs): Fix typo.
5259
5260 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5261
5262 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
5263 the example.
5264
5265 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5266
5267 * grub-core/term/at_keyboard.c (set_scancodes)
5268 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
5269
5270 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5271
5272 * docs/grub.texi (Menu-specific commands): Remove some semantics
5273 that were true in GRUB Legacy but not in GRUB 2.
5274 (submenu): New section.
5275 (false): New section.
5276 (read): New section.
5277 (true): New section.
5278
5279 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5280
5281 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
5282
5283 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5284
5285 * docs/grub.texi (Simple configuration): Explain some of the
5286 current limitations of grub-mkconfig.
5287 Reported by: Leslie Rhorer.
5288
5289 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 Old macs search for boot.efi rather than for bootia32.efi.
5292
5293 * util/grub-install.in: Copy bootia32.efi to boot.efi.
5294 * util/grub-mkrescue.in: Likewise.
5295 Suggested by: Peter Jones.
5296
5297 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5298
5299 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
5300
5301 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5302
5303 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
5304 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
5305 (grub_lvm_mirror): New struct.
5306 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
5307 (grub_lvm_iterate): Iterate only visible volumes.
5308 (grub_lvm_read): Factor out to ..
5309 (read_lv): ... this. Support mirrors.
5310 (grub_lvm_read): New wrapper function.
5311 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
5312 stripped or mirrored.
5313
5314 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5315
5316 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
5317
5318 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5319
5320 * docs/grub.texi (loopback): New section.
5321
5322 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5323
5324 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
5325 removed -p option.
5326
5327 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5328
5329 * docs/grub.texi (BIOS installation): New section, partly based on
5330 previous text in other sections.
5331 (Installing GRUB using grub-install): Replace BIOS discussion with a
5332 cross-reference.
5333 (Images): Likewise.
5334
5335 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5336
5337 * grub-core/kern/emu/hostdisk.c (find_partition_start)
5338 [HAVE_DIOCGDINFO]: Add safety checks.
5339
5340 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5341
5342 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
5343 per default compiled in kernel and prior to 8.0 isn't shipped at all.
5344
5345 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5346
5347 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
5348 real_sb->size is zero (e.g. RAID-0), get the disk size from
5349 real_sb->data_size instead.
5350 Fixes Ubuntu bug #743136.
5351
5352 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5353
5354 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
5355 printf clauses for printing size and start.
5356
5357 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
5360 Reported and tested by: Timothy Nikkel.
5361
5362 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5363
5364 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
5365 (dirty_region_add_real): ... this.
5366 (dirty_region_add): Don't discard margin refresh when performing
5367 scheduled repaint.
5368
5369 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5370
5371 * grub-core/lib/relocator.c (allocate_regstart)
5372 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
5373 terminals are capabple of malloc-free operation.
5374 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
5375 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
5376
5377 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
5378
5379 * util/grub-setup.c: Copy the partition table zone if floppy support
5380 is disabled, even if no partition table is found.
5381
5382 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
5383 during POST if an invalid partition table is contained in the PBR
5384 of the active partition when GRUB is installed to a partition.
5385
5386 2011-03-28 Colin Watson <cjwatson@debian.org>
5387
5388 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
5389 comment.
5390
5391 2011-03-28 Colin Watson <cjwatson@debian.org>
5392
5393 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
5394 to be specific about what kind of RAID device we're scanning for.
5395
5396 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
5397
5398 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
5399 return freed string.
5400
5401 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5402
5403 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
5404
5405 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 Use libgeom on FreeBSD to detect partitions.
5408
5409 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
5410 (grub-mkrelpath): Likewise.
5411 (grub-script-check): Likewise.
5412 (grub-editenv): Likewise.
5413 (grub-mkpasswd-pbkdf2): Likewise.
5414 (grub-fstest): Likewise.
5415 (grub-mkfont): Likewise.
5416 (grub-mkdevicemap): Likewise.
5417 (grub-probe): Likewise.
5418 (grub-setup): Likewise.
5419 (grub-ofpathname): Likewise.
5420 (grub-mklayout): Likewise.
5421 (example_unit_test): Likewise.
5422 (grub-menulst2cfg): Likewise.
5423 * grub-core/Makefile.core.def (grub-emu): Likewise.
5424 (grub-emu-lite): Likewise.
5425 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
5426 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
5427 define HAVE_DIOCGDINFO.
5428 (follow_geom_up) [FreeBSD]: New function.
5429 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
5430 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
5431 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
5432 unconditionally of HAVE_DIOCGDINFO.
5433
5434 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 Fix FreeBSD compilation problem.
5437
5438 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
5439 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
5440
5441 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
5442
5443 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
5444 Switch back to page zero before loading a kernel, since some kernel
5445 drivers expect that.
5446 Thanks to: Felix Kuehling.
5447
5448 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5449
5450 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
5451 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
5452 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
5453
5454 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5455
5456 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
5457 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
5458
5459 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5460
5461 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
5462 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
5463 malloc is disabled.
5464
5465 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5466
5467 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
5468 for modules headers when counting the needed allocation size.
5469
5470 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
5473 if no ASCII character is found to prevent crash.
5474
5475 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
5476
5477 * grub-core/video/bitmap.c (match_extension): Ignore case.
5478
5479 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5480
5481 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
5482
5483 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5484
5485 * grub-core/script/parser.y: Declare "time" as valid argument.
5486
5487 2011-03-23 Peter Jones <pjones@redhat.com>
5488
5489 Fix incorrect assert failure reporting.
5490
5491 * grub-core/tests/example_functional_test.c (example_test): Add
5492 a failure comment.
5493 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
5494 (failure_start): ...this. Check that malloc succeeded.
5495 Don't call xvasprintf. Return failure struct.
5496 (failure_append_vtext): New function.
5497 (failure_append_text): Likewise.
5498 (add_failure): Likewise.
5499 (grub_test_assert_helper): Likewise.
5500 * include/grub/test.h (grub_test_assert_helper): New declaration.
5501 (grub_test_assert): Macro rewritten.
5502
5503 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5504
5505 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
5506
5507 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
5510
5511 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5512
5513 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
5514 into GRUB-style one.
5515
5516 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
5519 error and not grub_errno.
5520 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
5521
5522 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
5525 GRUB_USB_SPEED_NONE in case of failure and not the error code.
5526
5527 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 * grub-core/efiemu/i386/pc/cfgtables.c
5530 (grub_machine_efiemu_init_tables): Make declaration a prototype.
5531 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
5532 (grub_xnu_unlock): Likewise.
5533 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
5534
5535 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5536
5537 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
5538 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
5539 * grub-core/commands/hashsum.c (aliases): Likewise.
5540 * grub-core/commands/setpci.c (pci_registers): Likewise.
5541 * grub-core/disk/usbms.c (attach_hook): Likewise.
5542 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
5543 (zio_checksum_table): Likewise.
5544 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
5545 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
5546 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
5547 * grub-core/lib/relocator.c (leftovers): Likewise.
5548 (extra_blocks): Likewise.
5549 * grub-core/loader/i386/bsd.c (relocator): Likewise.
5550 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
5551 (modules_last): Likewise.
5552 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
5553 (devices): Likewise.
5554 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
5555 (modules_last): Likewise.
5556 * grub-core/normal/auth.c (users): Likewise.
5557 * grub-core/normal/context.c (initial_menu): Likewise.
5558 (current_menu): Likewise.
5559 * grub-core/normal/crypto.c (crypto_specs): Likewise.
5560 * grub-core/term/serial.c (grub_serial_ports): Likewise.
5561 (grub_serial_terminfo_input_template): Likewise.
5562 (grub_serial_terminfo_output_template): Likewise.
5563 (grub_serial_terminfo_input): Likewise.
5564 (grub_serial_terminfo_output): Likewise.
5565 (registered): Likewise.
5566 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
5567
5568 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5569
5570 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
5571 grub_video_mode_type_t.
5572 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
5573 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
5574 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
5575
5576 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5577
5578 * util/grub-install.in: Correct the x86-64 name as x86_64.
5579
5580 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
5581
5582 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
5583 initial chunk read from the kernel always includes GRUB's multiboot
5584 header, which is now outside the first sector.
5585
5586 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
5587
5588 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
5589 cached mmap_size, so that this works correctly when called multiple
5590 times.
5591 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
5592
5593 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
5594
5595 * docs/grub.texi (Simple configuration): Tidy up formatting.
5596
5597 2011-03-07 Szymon Janc <szymon@janc.net.pl>
5598
5599 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
5600 Set-but-not-used variable removed.
5601
5602 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5603
5604 Workaround yet another IEEE1275 bug.
5605
5606 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
5607 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
5608 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
5609 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
5610 is set.
5611 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5612 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
5613
5614 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5615
5616 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
5617 error.
5618
5619 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
5620
5621 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
5622 empty, since in that case we can only generate either nothing or a
5623 syntactically invalid configuration file.
5624 Reported by: Michal Suchanek. Fixes Debian bug #612898.
5625
5626 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
5627
5628 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
5629 (Making a GRUB bootable CD-ROM): Likewise.
5630 (Invoking grub-mkrescue): New section.
5631 Reported by: Yann Dirson. Fixes Debian bug #612585.
5632
5633 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
5634
5635 * util/grub-install.in: Remove unnecessary brackets from tr
5636 arguments.
5637 * util/grub.d/10_hurd.in: Likewise.
5638 * util/grub.d/10_kfreebsd.in: Likewise.
5639 * util/grub.d/10_linux.in: Likewise.
5640 * util/grub.d/20_linux_xen.in: Likewise.
5641 Reported by: Jamie Heilman. Fixes Debian bug #612564.
5642
5643 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
5644
5645 * include/grub/file.h (not_easly_seekable): Rename to ...
5646 (not_easily_seekable): ... this. Update all users.
5647
5648 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
5649
5650 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
5651 grub-mkrescue.
5652
5653 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
5654
5655 * util/grub-mkimage.c (generate_image): Refuse to create the images
5656 bigger than the actual flash (512K) in Loongson machines. 512K is also
5657 the biggest chip supported by them.
5658
5659 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
5662
5663 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
5664
5665 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
5666 super_offset field.
5667
5668 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 * util/grub-install.in: Ignore install device on platforms
5671 where it doesn't make sense. Always use UUIDs except on pc, efi and
5672 sparc64.
5673 Reported by: Daniel Kahn Gillmor.
5674
5675 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5676
5677 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
5678
5679 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5680
5681 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
5682 (iterate_real): Don't rely on partition being non-NULL.
5683
5684 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5685
5686 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
5687 supported platforms. Put a compile time assert for this rather than
5688 generate a warning with 32-bit shift.
5689
5690 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
5693 logical expression more readable.
5694
5695 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5696
5697 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
5698 even if some elements have a name.
5699 Reported by: Alexander GQ Gerasiov.
5700
5701 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
5702
5703 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
5704 path unreadable if `grub-probe -t abstraction' fails, for example if
5705 memberlist fails on an LVM volume group.
5706 Reported by: Darius Jahandarie.
5707
5708 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
5709
5710 * docs/grub.texi (Simple configuration): Document
5711 GRUB_PRELOAD_MODULES.
5712
5713 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
5714
5715 * .bzrignore: Remove nonexistent grub-pbkdf2.
5716
5717 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
5718
5719 * configure.ac: Bump version to 1.99~rc1.
5720
5721 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
5724 for safety.
5725
5726 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
5729 module.
5730
5731 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
5732
5733 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
5734
5735 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
5738 diskdevid.
5739
5740 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 Fix compilation on cygwin.
5743
5744 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
5745 -R .drectve on cygwin.
5746 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
5747 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
5748 (COND_CYGWIN): New condition.
5749 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
5750 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
5751 not @TARGET_OBJ2ELF@.
5752 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
5753 type to determine whether aux is to be used.
5754
5755 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
5758 realpath'ed device string.
5759 Handle floppy (somewhat).
5760 Issue error in unknown case rather than garbage.
5761 Reported by: Axel Beckert.
5762
5763 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5764
5765 * util/grub.d/00_header.in (load_video): Handle the case when no video
5766 drivers available.
5767 Thanks to: Axel Beckert.
5768
5769 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
5772 variable. Fixes problem on big endian platforms.
5773
5774 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
5777 It doesn't work well there.
5778
5779 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5780
5781 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
5782 warning.
5783 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
5784 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
5785 counter.
5786
5787 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5788
5789 Use alias->path rather than buggy "canon".
5790
5791 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
5792 (ofdisk_hash_add): New argument curcan. All users updated.
5793
5794 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
5795
5796 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
5797
5798 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
5799
5800 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
5801 loadmask before doing any calculations. Use correct type for offset.
5802 (grub_linux_load64): Likewise.
5803
5804 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
5805
5806 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
5807 with NULL.
5808 (console_grub_equivalences_unshift): Likewise.
5809 Reported by: Daniel Dehennin.
5810
5811 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
5814 (set_env_limn_ro): Likewise.
5815 (GRUB_MOD_INIT): Likewise.
5816 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
5817 ARRAY_SIZE while on it.
5818 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
5819 * grub-core/normal/context.c (grub_env_export): Move from here ...
5820 * grub-core/kern/env.c (grub_env_export): ... here.
5821 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
5822 prefix.
5823 * grub-core/kern/main.c (grub_main): Export root and prefix.
5824 * include/grub/env.h (grub_env_export): Export.
5825 Reported by: Seth Goldberg.
5826
5827 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
5830 Take into account space used by ELF sections and multiboot palette.
5831 Reported by: Grégoire Sutre.
5832
5833 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 * BUGS: New file.
5836
5837 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 Pass more appropriate video id to Linux.
5840
5841 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
5842 grub_video_get_driver_id and variable gfxpayloadforcelfb to
5843 fill have_vga.
5844 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
5845 shift params->lfb_size.
5846 * include/grub/i386/linux.h: Make an enume out of have_vga values.
5847
5848 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5849
5850 * util/grub-menulst2cfg.c: Add missing include of misc.h.
5851
5852 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5853
5854 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
5855 separator and pass bootpath/devid even if only one of them is available.
5856 Reported by: Seth Goldberg.
5857
5858 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5859
5860 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
5861 implementations bug on them.
5862
5863 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
5864 memory.
5865 (filter_memory_map): Likewise.
5866
5867 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
5870 Reported by: nebuchadnezzar.
5871
5872 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5873
5874 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
5875 Reported by: nebuchadnezzar.
5876
5877 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 Submenu default support.
5880
5881 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
5882 auto_boot. All users updated.
5883 Declared static.
5884 Handle chosen and default with submenus.
5885 (grub_menu_execute_with_fallback): Declared static.
5886 Don't notify failure if autobooted. Upper level does it.
5887 (menuentry_eq): New function.
5888 (get_entry_number): Use menuentry_eq.
5889 (show_menu): New parameter "autobooted". All users updated.
5890 (grub_show_menu): Likewise.
5891 * include/grub/normal.h (grub_show_menu): Likewise.
5892 * include/grub/menu.h (grub_menu_execute_entry): Removed.
5893 (grub_menu_execute_with_fallback): Likewise.
5894
5895 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 * util/grub-mklayout.c (usage): Update help text.
5898
5899 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5900
5901 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
5902
5903 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5904
5905 * util/grub-menulst2cfg.c (main): Trim the line.
5906
5907 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
5910 (grub_machine_init): Don't check amount of low memory as reportedly
5911 INT 12h can be broken and if low memory is too low we wouldn't have
5912 gotten into grub_machine_init anyway.
5913
5914 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5915
5916 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
5917 (grub_machine_mmap_iterate): Take low memory into account
5918
5919 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
5922 badfs.
5923 Reported by: TiCPU.
5924
5925 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5926
5927 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
5928 members errors.
5929
5930 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
5931
5932 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
5933 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
5934
5935 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
5936
5937 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
5938 openbsd and netbsd types being in part_bsd module.
5939
5940 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5941
5942 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
5943 (_FILE_OFFSET_BITS): Likewise.
5944 Reported by: Seth Goldberg.
5945
5946 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5947
5948 * configure.ac: Check for libdevmapper header.
5949
5950 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5951
5952 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
5953 avoid aliasing.
5954 (fzap_lookup): Likewise.
5955 (dnode_get): Likewise.
5956 (make_mdn): Likewise.
5957 (zfs_mount): Likewise.
5958 (fzap_iterate): Use temporary pointer to avoid aliasing.
5959 (grub_zfs_read): Likewise.
5960 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
5961 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
5962 pointers to avoid aliasing.
5963 (grub_cmd_xnu_kernel64): Likewise.
5964 (grub_xnu_load_driver): Likewise.
5965
5966 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
5969 aliasing warning.
5970 (grub_cmd_terminal_output): Likewise.
5971 Reported and tested by: Grégoire Sutre.
5972
5973 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
5976 warning.
5977 Reported and tested by: Grégoire Sutre.
5978
5979 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * configure.ac: Do CPU substitution even if it's specified explicitly.
5982 Reported and tested by: Alain Greppin.
5983
5984 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
5987 Reported and tested by: Alain Greppin.
5988
5989 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5990
5991 Satisfy some bison versions need for inttypes.h.
5992
5993 * grub-core/lib/posix_wrap/inttypes.h: New file.
5994 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
5995 (int16_t): Likewise.
5996 (int32_t): Likewise.
5997 (int64_t): Likewise.
5998 Reported and tested by: Alain Greppin.
5999
6000 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6001
6002 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
6003 Silence spurious warning.
6004 Reported and tested by: Alain Greppin.
6005
6006 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6007
6008 * docs/grub.texi (Support automatic decompression): Update with xz
6009 decompression support.
6010
6011 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6012
6013 Improve loaders' kernel command line handling.
6014
6015 * grub-core/lib/cmdline.c: New file.
6016 * include/grub/lib/cmdline.h: Likewise.
6017 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
6018 grub_create_loader_cmdline to create kernel command line.
6019 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6020 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
6021 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
6022 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
6023 (linux): Add lib/cmdline.c on common.
6024
6025 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
6028 inopos might be unaligned.
6029
6030 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6031
6032 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
6033 endian transformations.
6034 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6035 Based on report by: Doug Nazar.
6036
6037 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
6038
6039 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
6040 array->members[i].start_sector.
6041 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
6042
6043 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
6046 Reported and tested by: Grégoire Sutre.
6047
6048 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6049
6050 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
6051 avoid causing test failures by clearing the screen.
6052
6053 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6054
6055 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
6056 Fix prefix check to handle the case where dir ends with a slash
6057 (most significantly, "/" itself).
6058 Reported by: Michael Vogt.
6059
6060 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 Run terminfo_cls on initing terminfo output to clear the screen and
6063 move the cursor to (0,0).
6064
6065 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
6066 Call grub_terminfo_output_init.
6067 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
6068 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
6069 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
6070
6071 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
6074 only when needed.
6075
6076 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6077
6078 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
6079 CTRL.
6080
6081 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6082
6083 The E820 type 5 is BADRAM, not EXEC_CODE.
6084
6085 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
6086 (GRUB_E820_BADRAM): New define.
6087 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
6088 into reserved. Propagate BADRAM.
6089 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
6090 (GRUB_E820_BADRAM): New define.
6091
6092 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
6095 Ignore the memory post-4G.
6096 (grub_relocator_firmware_alloc_region): Additional debug statement.
6097
6098 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
6101 names.
6102 Reported by: David Pravec.
6103
6104 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6105
6106 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
6107 BIOSes.
6108
6109 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
6112 Prevent overflow.
6113 (grub_reed_solomon_recover): Likewise.
6114
6115 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6116
6117 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
6118
6119 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6120
6121 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
6122 variable.
6123
6124 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
6125
6126 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
6127 descriptions of extract_legacy_entries_source and
6128 extract_legacy_entries_configfile.
6129 Reported by: Seung Soo, Ha.
6130
6131 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
6132
6133 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
6134 on devices that do not implement function 0.
6135
6136 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
6137
6138 * grub-core/fs/hfsplus.c: Make parent unsigned.
6139 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
6140 overflows.
6141 (grub_hfsplus_cmp_extkey): Likewise
6142
6143 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 * util/grub-install.in: Correctly use bootloader_id and not
6146 GRUB_DISTRIBUTOR on efibootmgr line.
6147
6148 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6149
6150 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
6151
6152 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
6153
6154 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
6155 Xen and reorder menu item wording to make it clearer that this entry
6156 will launch Xen. Print separate messages when loading Xen and
6157 Linux.
6158
6159 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
6162 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
6163 loop in case of incorrect amiga partmap.
6164
6165 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
6168 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
6169 Reported by:EHeM.
6170
6171 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
6174 spurious warning.
6175 Reported by: crocket
6176
6177 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
6180 Preload EFIemu.
6181 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
6182
6183 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
6186 is loaded
6187 (grub_cmd_xnu_kextdir): Likewise.
6188 (grub_cmd_xnu_splash): Likewise.
6189
6190 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6191
6192 Avoid using Reed-Solomon with 0 redundancy.
6193
6194 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
6195 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
6196 or 0 redundancy.
6197 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
6198 (grub_reed_solomon_recover): Likewise.
6199
6200 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6201
6202 Don't use disk subsystem in freebsd_boot.
6203
6204 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
6205 (freebsd_biosdev): Likewise.
6206 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
6207 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
6208
6209 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6210
6211 Handling of files of unknown size is currently limited. They can't be
6212 used e.g. for initrd or modules. Moreover gzip handling of not
6213 easily seekable files is buggy. Disable unknown file size for now. May
6214 be inefficient but works.
6215
6216 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
6217 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
6218
6219 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
6220
6221 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
6222 floppy probe.
6223
6224 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
6225
6226 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
6227
6228 2010-12-25 Shea Levy <shlevy>
6229
6230 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
6231
6232 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6233
6234 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
6235 Windows Server 2008.
6236 Reported by: Devin Giddings.
6237
6238 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6239
6240 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
6241 writing an error message because of async power management.
6242 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
6243 (grub_reboot): Likewise.
6244
6245 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
6246
6247 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
6248 keep unit tests from failing when they shouldn't.
6249
6250 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6251
6252 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
6253 previous patch increased the size of the RS code by 20 bytes (at
6254 least with gcc-4.4), so increase this by 20 bytes to match.
6255 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
6256
6257 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6258
6259 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
6260 scratch area. Make sure to initialise chosen in standalone mode as
6261 well as non-standalone.
6262 Reported by: Robert Hooker and Andy Whitcroft.
6263 Tested by: Andy Whitcroft.
6264
6265 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6266
6267 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
6268 constructing a new unescaped string and passing it to grub_xputs in
6269 one go, rather than passing characters to grub_printf one at a time.
6270
6271 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6272
6273 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
6274 initialising utf16.
6275
6276 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6277
6278 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
6279 comment. Add an extra layer of quotation, requiring the output of
6280 this function to be used in a printf format string.
6281 (gettext_printf): New function.
6282 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
6283 Extract translatable strings from here-documents and use a temporary
6284 variable instead, so that xgettext can find them.
6285 * util/grub.d/10_kfreebsd.in: Likewise.
6286 * util/grub.d/10_linux.in: Likewise.
6287 * util/grub.d/20_linux_xen.in: Likewise.
6288
6289 * po/grub.d.sed: New file.
6290 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
6291 arguments. Set c-format flags on all strings extracted from
6292 util/grub.d/ (xgettext refuses to include these itself for strings
6293 it extracted from a shell file, but these really are c-format).
6294
6295 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6296
6297 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
6298 Avoid next pointing to nowhere.
6299
6300 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6301
6302 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
6303 rather than assuming than rootblock is exactly in the middle.
6304 (grub_affs_label): Likewise.
6305
6306 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6307
6308 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
6309 reserved_first_sector to 0.
6310 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
6311 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
6312 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
6313
6314 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6315
6316 Fix handling of UTF-16 UDF labels.
6317
6318 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
6319 (read_string): .. here.
6320 (grub_udf_label): Use read_string.
6321
6322 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
6323
6324 * grub-core/normal/menu_entry.c (run): Execute commands from menu
6325 editor under argument scope.
6326 Reported by: Jordan Uggla
6327
6328 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6329
6330 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
6331
6332 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
6333
6334 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
6335 line, and other keys scroll an entire page (previous handling was
6336 for \r and \n to scroll a page and other keys to scroll two lines).
6337
6338 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6341 Set ptrdest to correct get_physical_target_address rather than
6342 incorrect get_virtual_current_address.
6343
6344 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
6345
6346 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
6347 correct cat to grub_uint8_t * rather than grub_uint32_t *.
6348
6349 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
6350
6351 * .bzrignore: Ignore grub-core/rs_decoder.S.
6352
6353 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
6354
6355 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
6356 .mo/.mo.gz opening sequence to ...
6357 (grub_mofile_open_lang): ... here.
6358 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
6359 * util/grub.d/00_header.in (grub_lang): Include country part of
6360 locale.
6361 Reported by: Mario Limonciello.
6362
6363 2010-12-09 Robert Millan <rmh@gnu.org>
6364
6365 * NEWS: Document addition of ZFS support.
6366
6367 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
6368
6369 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
6370 rather than `/ 2', as the latter requires -Wa,--divide which would
6371 require bumping our minimum binutils version.
6372
6373 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
6374
6375 * util/grub-script-check.c (main): Print script line number on
6376 error.
6377
6378 2010-12-01 Robert Millan <rmh@gnu.org>
6379
6380 * grub-core/fs/zfs/zfs.c: New file.
6381 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
6382 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
6383 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
6384 * grub-core/fs/zfs/zfsinfo.c: Likewise.
6385
6386 * include/grub/zfs/dmu.h: Likewise.
6387 * include/grub/zfs/dmu_objset.h: Likewise.
6388 * include/grub/zfs/dnode.h: Likewise.
6389 * include/grub/zfs/dsl_dataset.h: Likewise.
6390 * include/grub/zfs/dsl_dir.h: Likewise.
6391 * include/grub/zfs/sa_impl.h: Likewise.
6392 * include/grub/zfs/spa.h: Likewise.
6393 * include/grub/zfs/uberblock_impl.h: Likewise.
6394 * include/grub/zfs/vdev_impl.h: Likewise.
6395 * include/grub/zfs/zap_impl.h: Likewise.
6396 * include/grub/zfs/zap_leaf.h: Likewise.
6397 * include/grub/zfs/zfs.h: Likewise.
6398 * include/grub/zfs/zfs_acl.h: Likewise.
6399 * include/grub/zfs/zfs_znode.h: Likewise.
6400 * include/grub/zfs/zil.h: Likewise.
6401 * include/grub/zfs/zio.h: Likewise.
6402 * include/grub/zfs/zio_checksum.h: Likewise.
6403
6404 * Makefile.util.def: Build ZFS into libgrubmods.
6405 * grub-core/Makefile.core.def: Build zfs.mod.
6406
6407 2010-11-30 Szymon Janc <szymon@janc.net.pl>
6408
6409 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
6410 variable.
6411 * grub-core/commands/wildcard.c (match_files): Likewise.
6412
6413 2010-11-30 Robert Millan <rmh@gnu.org>
6414
6415 * grub-core/loader/i386/bsd.c
6416 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
6417 whether kernel is loaded using grub_loader_is_loaded(), rather
6418 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
6419 certain error conditions.
6420
6421 2010-11-30 Robert Millan <rmh@gnu.org>
6422
6423 * grub-core/commands/echo.c: Include `<grub/term.h>'.
6424 (grub_cmd_echo): Call grub_refresh() after printing a message.
6425
6426 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
6427
6428 Avoid using tricks for initialising endian variables.
6429
6430 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
6431 Make const.
6432 (GRUB_MOD_INIT): Don't byte-swap.
6433 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
6434 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
6435 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
6436 (grub_swap_bytes32_compile_time): Likewise.
6437 (grub_cpu_to_le32_compile_time): Likewise.
6438 (grub_cpu_to_le16_compile_time): Likewise.
6439
6440 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * util/grub-setup.c (setup): Stop recommending --force. People who
6443 understand the dangers of blocklists are able to find this option
6444 anyway and the ones who don't shouldn't use it anyway.
6445
6446 2010-11-26 Robert Millan <rmh@gnu.org>
6447
6448 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
6449 Update all users.
6450
6451 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
6452
6453 Fix LVM-on-RAID probing.
6454
6455 * util/grub-probe.c (probe): Remember which disk was detected as
6456 RAID (perhaps an LVM physical volume). Use that disk's raidname
6457 rather than that of the top-level disk.
6458
6459 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
6460
6461 Fix cmdline argument quotes for setparams command of menuentry
6462 definitions.
6463
6464 * grub-core/commands/menuentry.c (setparams_prefix): Use single
6465 quotes for arguments.
6466 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
6467 grub_strchrsub function instead.
6468
6469 * include/grub/misc.h (grub_strchrsub): New function.
6470
6471 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
6472
6473 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
6474 effort by skipping "." and ".." entries up-front.
6475 Suggested by: Michael Lazarev.
6476
6477 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
6478
6479 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
6480 ldflags to ldadd, to fix link line ordering.
6481 (none_decompress): Likewise.
6482
6483 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
6484
6485 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
6486 platforms.
6487 (grub-emu-lite): Remove kern/emu/cache.S.
6488
6489 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
6490
6491 * util/deviceiter.c (compare_devices): If the by-id link for a
6492 device couldn't be resolved, fall back to sorting by the by-id link
6493 rather than segfaulting.
6494 Reported and tested by: Daniel Mierswa.
6495
6496 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
6497
6498 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
6499 ldflags, to fix link line ordering.
6500
6501 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
6502
6503 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
6504 linkers are picky about this.
6505
6506 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
6507
6508 * grub-core/Makefile.am (command.lst): Adjust sed expression
6509 ordering so that extended and priority commands aren't treated as
6510 ordinary commands.
6511
6512 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
6513
6514 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
6515 Remove byte-swapping function calls, which are not valid in
6516 structure initialisers.
6517 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
6518 non-const.
6519 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
6520 grub_gpt_partition_type_bios_boot.
6521
6522 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
6523
6524 Fix test program build on GNU/kFreeBSD.
6525
6526 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
6527 $(LIBNVPAIR)' library dependencies.
6528
6529 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
6530
6531 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
6532
6533 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
6534
6535 * util/grub-install.in: Remove excessive quoting that broke
6536 installations to RAID devices.
6537
6538 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
6541 bootloader version instead of 0.
6542
6543 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
6546 warning.
6547
6548 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
6551 retrieve the metadat sector if size isn't known.
6552 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6553
6554 2010-11-18 Robert Millan <rmh@gnu.org>
6555
6556 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
6557 with grub_memcmp().
6558
6559 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
6562 arrow.
6563 Reported by: Jordan Uggla.
6564
6565 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 Make better UTF compliant.
6568
6569 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
6570 sequences as incorrect.
6571 (grub_is_valid_utf8): Likewise.
6572 (grub_utf8_to_ucs4): Likewise.
6573 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
6574 (grub_ucs4_to_utf8_alloc): Likewise.
6575 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
6576
6577 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
6578
6579 Make legacy_source behave like source.
6580
6581 * grub-core/commands/legacycfg.c (legacy_file): Don't call
6582 grub_show_menu.
6583 (grub_cmd_legacy_source): Call grub_show_menu if needed.
6584
6585 2010-11-16 Colin Watson <cjwatson@debian.org>
6586
6587 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
6588 (-Wunused implies -Wunused-parameter, but not vice versa).
6589
6590 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
6591
6592 * configure.ac: Make error messages less confusing by testing for
6593 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
6594 accepted, but produces a diagnostic if something else is wrong).
6595
6596 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
6599 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
6600 (now unused).
6601 (grub_keyboard_controller_init)
6602 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
6603 read the initial state since controller isn't inited yet.
6604
6605 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
6608 allocate_regbeg may need to create new chunk header.
6609
6610 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 Fix quoting in legacy parser.
6613
6614 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
6615 single quotes.
6616 (grub_legacy_parse): Likewise.
6617 Reported by: Jordan Uggla.
6618 Tested by: Jordan Uggla.
6619
6620 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 Don't add -lgcc on i386 and x86_64.
6623
6624 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
6625 * conf/Makefile.common (LDADD_KERNEL): Likewise.
6626 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
6627
6628 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 * configure.ac: Add -Wno-trampolines when supported.
6631
6632 2010-11-14 Modestas Vainius <modax@debian.org>
6633
6634 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
6635 fakeraid.
6636
6637 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
6638
6639 Add generic logical block size support for UDF.
6640
6641 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
6642 (GRUB_UDF_BLKSZ): Removed.
6643 (struct grub_udf_data): New field "lbshift" to hold the logical block
6644 size of the file system in log2 format. All users updated.
6645 (sblocklist): Change type to unsigned.
6646 (grub_udf_mount): Change type of "sblklist" to unsigned.
6647 Move AVDP search before VRS recognition, because the latter requires
6648 knowledge of the logical block size, which is detected during the
6649 former.
6650 Detect and validate logical block size during AVDP search, adding
6651 support for block sizes 512, 1024 and 4096.
6652 Make VRS recognition independent of block size.
6653
6654 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
6655
6656 Properly handle deleted files on UDF.
6657
6658 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
6659 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
6660 set.
6661
6662 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
6663
6664 Support reading files larger than 2 GiB.
6665
6666 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
6667 "offset" to grub_off_t.
6668 (grub_udf_read_file): Likewise for parameter "pos".
6669
6670 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
6673 unavailable.
6674 (Simple configuration): Refer to Changes from GRUB Legacy about
6675 save_env availability.
6676
6677 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
6678
6679 * util/grub-install.in: Ignore empty partition table detection
6680 instead of trying to include part_ module.
6681
6682 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
6685 LVM on RAID support.
6686
6687 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
6688
6689 Properly define WORDS_BIGENDIAN in wrapped environments.
6690
6691 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
6692 definition.
6693 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
6694
6695 Reported by: Manoel Rebelo Abranches.
6696 Tested by: Manoel Rebelo Abranches.
6697
6698 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 * util/grub-mkconfig.in: Fix quoting.
6701
6702 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 Support big ext2 files.
6705
6706 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
6707 (grub_ext2_read_block): Support triple indirect blocks.
6708 (grub_ext2_read_file): Use 64-bit types and read size_high.
6709 (grub_ext2_open): Read size_high.
6710 Reported by: Ximin Luo.
6711 Tested by: Manoel Rebelo Abranches.
6712
6713 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 * util/grub-install.in: Handle filenames containing spaces.
6716 Reported by: Jordan Uggla.
6717 Tested by: Jordan Uggla.
6718
6719 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
6720
6721 * util/grub-mkconfig.in (grub_script_check): New variable.
6722 Use grub_script_check instead of grub-script-check.
6723 Reported by: Barry Jackson.
6724
6725 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * docs/grub.texi (menu): Correct the order.
6728 Reported by: D. Hugh Redelmeier.
6729
6730 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
6733 jump.
6734
6735 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
6736
6737 * include/grub/elfload.h (grub_elf32_size): New parameter.
6738 All users updated.
6739 Return maximum segments alignment.
6740 (grub_elf64_size): Likewise.
6741 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
6742 Return maximum segments alignment.
6743 (grub_elf64_size): Likewise.
6744 * grub-core/loader/powerpc/ieee1275/linux.c:
6745 (grub_linux_claimmap_iterate): New function. Uses the
6746 "available" property in the "memory" node for memory allocation
6747 for kernel in the PowerPC loader.
6748 (grub_linux_load32): Correctly find linux entry point offset.
6749 (grub_linux_load64): Likewise.
6750
6751 2010-11-07 Robert Millan <rmh@gnu.org>
6752
6753 On mips-yeeloong, build with -march=loongson2f when this flag is
6754 available (GCC >= 4.4).
6755 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
6756 `-march=mips3'.
6757 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
6758 or otherwise add -march=mips3.
6759
6760 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
6761
6762 Suppress shell expansion on echo '*' and echo "*" like cases.
6763 Reported by: Jordan Uggla.
6764
6765 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
6766 string arguments before shell expansion.
6767 * tests/grub_cmd_echo.in: New testcases.
6768
6769 2010-11-07 Robert Millan <rmh@gnu.org>
6770
6771 * conf/mips-qemu-mips.rmk: Remove stale file from previous
6772 transition.
6773
6774 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * grub-core/kern/emu/hostdisk.c
6777 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
6778
6779 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
6780
6781 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
6782 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
6783 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
6784
6785 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
6788
6789 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * util/grub-install.in: Replace useless recomendation to pass
6792 --modules with a recomendation to report a bug.
6793
6794 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
6795
6796 Properly register serial terminfo.
6797 Reported by: Jordan Uggla
6798
6799 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
6800 const.
6801 (grub_serial_terminfo_output_template): Likewise.
6802 (grub_cmd_serial): Register "serial" with terminfo.
6803 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
6804 grub_serial_terminfo_output.
6805
6806 2010-11-05 Robert Millan <rmh@gnu.org>
6807
6808 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
6809 needed).
6810
6811 2010-11-05 Robert Millan <rmh@gnu.org>
6812
6813 On Yeeloong, pass machine type information to Linux.
6814
6815 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
6816 (LOONGSON_MACHTYPE): New macro, set to
6817 "machtype=lemote-yeeloong-2f-8.9inches".
6818 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
6819 additional argument to Linux.
6820
6821 2010-11-04 Robert Millan <rmh@gnu.org>
6822
6823 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
6824 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
6825 (its SATA disks are detected as slaveless IDE master drives on
6826 kFreeBSD).
6827 Reported by Carsten Aulbert.
6828
6829 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
6830
6831 * util/bin2h.c (main): Fix spelling error in generated output.
6832
6833 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
6834
6835 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
6836
6837 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
6840 vga= option is supplied.
6841
6842 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
6845 * util/grub.d/10_kfreebsd.in: Likewise.
6846 * util/grub.d/10_linux.in: Likewise.
6847 * util/grub.d/20_linux_xen.in: Likewise.
6848
6849 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
6852 argument as an argument to no-argument option.
6853
6854 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * util/grub.d/10_linux.in: Add missing load_video with explicit
6857 GRUB_GFXPAYLOAD_LINUX.
6858
6859 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
6862
6863 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
6864
6865 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
6866 elements with invlid index.
6867 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6868 * grub-core/disk/raid.c (insert_array): Automatically reallocate
6869 members.
6870 * include/grub/raid.h (grub_raid_member): New struct.
6871 (grub_raid_array): Transform devices and start_sector into usage of
6872 grub_raid_member. All users updated
6873 (allocated_devs): New member.
6874
6875 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
6876
6877 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
6878 is modified
6879
6880 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
6881
6882 NetBSD build fix for getline function conflict from gnulib.
6883
6884 * Makefile.util.def (libgrubkern.a): New library for grub kernel
6885 components that depend on gnulib headers.
6886 (libgrubmods.a): Renamed from earlier libgrub.a.
6887 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
6888
6889 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
6890
6891 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
6892 install rather than creating a broken install.
6893
6894 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 * util/grub-setup.c (argp): Remove misleading example of installing to
6897 a partition.
6898
6899 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 * util/grub-setup.c (setup): Clarify the error message.
6902
6903 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
6904
6905 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
6906
6907 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6908
6909 * grub-core/kern/emu/misc.c
6910 (grub_make_system_path_relative_to_its_root)
6911 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
6912
6913 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6914
6915 * grub-core/kern/emu/misc.c
6916 (grub_make_system_path_relative_to_its_root): Revert r2882.
6917
6918 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
6921 useless field head. All users updated.
6922 (free_subchunk): Correct handling of IN_REGION subchunk.
6923
6924 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
6925
6926 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
6927 (Supported kernels): Likewise.
6928
6929 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
6930
6931 Make mktemp invocations portable.
6932
6933 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
6934 exit if mktemp fails.
6935 * tests/grub_script_blockarg.in: Likewise.
6936 * tests/partmap_test.in: Likewise.
6937 * tests/util/grub-shell-tester.in: Likewise.
6938 * tests/util/grub-shell.in: Likewise.
6939 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6940 * Makefile.am: Likewise, and chain shell commands with `&&'
6941 instead of ';'.
6942 * util/grub-mkrescue.in: Use the same explicit template as above, and
6943 exit if mktemp fails.
6944
6945 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
6946
6947 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
6948 Linux kernel, reported by Dennis Schridde.
6949
6950 2010-10-17 Szymon Janc <szymon@janc.net.pl>
6951
6952 * grub-core/normal/auth.c (grub_auth_check_authentication):
6953 Set-but-not-used variable removed.
6954
6955 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 * docs/grub.texi (GNU/Linux): Document APM unavailability with
6958 32-bit linux protocol.
6959
6960 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
6963 cursor shape for sanity.
6964
6965 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 * docs/grub.texi (Installation): Document buggy BIOS install.
6968
6969 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
6970
6971 * docs/grub.texi (Installation): Indent.
6972
6973 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
6974
6975 * util/grub-setup.c (setup): New parameter allow_floppy.
6976 (arguments): New member allow_floppy.
6977 (argp_parser): Handle --allow-floppy.
6978 (main): Pass allow_floppy.
6979 * util/grub-install.in: New option --allow-floppy passed though to
6980 grub-setup.
6981
6982 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 * util/grub-install.in: Handle partitionless disks.
6985
6986 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 * util/grub-setup.c (setup): Don't clean blocklists before readability
6989 verfification.
6990
6991 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6992
6993 * docs/grub.texi (Installation): Document embedding zone. Remove
6994 obsolete grub-install example.
6995
6996 2010-10-16 Szymon Janc <szymon@janc.net.pl>
6997
6998 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6999 Set-but-not-used variable ifdef'ed.
7000 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
7001 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
7002 variable removed.
7003 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
7004 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
7005 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7006 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
7007 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
7008 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
7009 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
7010 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
7011 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
7012 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
7013 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
7014 Likewise.
7015
7016 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7017
7018 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
7019 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
7020 enum value.
7021
7022 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7023
7024 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
7025 synonym to _S5_. Needed for some DSDTs.
7026
7027 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7028
7029 Userspace ACPI parser debugging.
7030
7031 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
7032 headers and add relevant defines. Don't include standard headers.
7033 (main) [GRUB_DSDT_TEST]: New function.
7034 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
7035 Don't declare functions.
7036
7037 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7038
7039 Remove dead grub_efi_mm_fini.
7040
7041 * grub-core/kern/efi/mm.c (allocated_page): Removed.
7042 (ALLOCATED_PAGES_SIZE): Likewise.
7043 (MAX_ALLOCATED_PAGES): Likewise.
7044 (allocated_pages): Likewise.
7045 (grub_efi_allocate_pages): Don't record allocated pages.
7046 (grub_efi_free_pages): Likewise.
7047 (grub_efi_mm_init): Likewise.
7048 (grub_efi_mm_fini): Removed.
7049
7050 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7051
7052 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
7053 (grub_efi_mm_init): Take into account the memory map size increase.
7054
7055 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
7058 (serial_hw_put): Wait based on real time rather than port reads. Don't
7059 roken ports.
7060 * include/grub/serial.h (grub_serial_port): New field broken.
7061
7062 2010-10-16 Robert Millan <rmh@gnu.org>
7063
7064 * grub-core/kern/emu/misc.c
7065 (grub_make_system_path_relative_to_its_root): Fix premature return
7066 when processing non-root ZFS filesystems.
7067 Reported by Sergio Talens-Oliag.
7068
7069 2010-10-15 Robert Millan <rmh@gnu.org>
7070
7071 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
7072 guarantee compressed ones are processed first.
7073
7074 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
7077 grub_efiemu_autocore.
7078
7079 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
7080
7081 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
7082 rather than 0x1b.
7083 (grub_console_getkey): Use correct jae opcode rather than ja.
7084
7085 2010-10-12 Robert Millan <rmh@gnu.org>
7086
7087 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
7088 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
7089 variable. All references updated.
7090
7091 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
7092
7093 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 Correctly distinguish mdraid flavours.
7096
7097 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
7098 (insert_array): New argument raid.
7099 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
7100 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
7101 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
7102
7103 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
7104
7105 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
7106 handling of special keys.
7107
7108 2010-10-02 Aleš Nesrsta <starous@volny.cz>
7109
7110 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
7111 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
7112
7113 2010-10-02 Aleš Nesrsta <starous@volny.cz>
7114
7115 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
7116 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
7117 users updated.
7118 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
7119 Use right endpoint when querying descriptor.
7120
7121 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
7122
7123 Clear out 0x80 color bit on EFI.
7124 Tested by: decoder
7125 Reported by: decoder and meta tech.
7126
7127 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
7128 (grub_console_setcolorstate): Clear out 0x80 bit.
7129 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
7130 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
7131 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
7132
7133 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
7134
7135 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
7136 Set to "auto".
7137
7138 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
7141 mo_file after freeing.
7142
7143 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7144
7145 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
7146
7147 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7148
7149 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
7150 flags.
7151
7152 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7153
7154 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
7155 usage.
7156
7157 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 Put terminfo into core on ieee1275 and yeeloong (needed for console).
7160
7161 * gentpl.py: New groups terminfoinkernel and terminfomodule.
7162 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
7163 and terminfo.h when needed.
7164 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
7165 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
7166 (terminfo): Enable only on terminfokernel.
7167 (extcmd): Likewise.
7168 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
7169 * include/grub/lib/arg.h: Likewise.
7170 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
7171 incorrect usage of ->.
7172
7173 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7174
7175 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
7176 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
7177
7178 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7179
7180 Fix coreboot compilation.
7181
7182 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
7183 Take VBE info into account even if only text is supported.
7184 (fill_vbe_info): Take into account the case when only VGA text
7185 is supported.
7186 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
7187 on coreboot, multiboot and qemu.
7188
7189 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7190
7191 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
7192 debug messages.
7193 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
7194
7195 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7196
7197 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
7198 parameters.
7199
7200 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7201
7202 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
7203 if they were BSD-style.
7204
7205 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 * grub-core/boot/i386/pc/lnxboot.S: Replace
7208 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
7209 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
7210
7211 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 Write embedding zone using Reed-Solomon.
7214
7215 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
7216 * grub-core/Makefile.am (rs_decoder.S): New target.
7217 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
7218 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
7219 (multiboot): Move to RS part.
7220 (post_reed_solomon): New label.
7221 (grub_boot_drive): Move to non-RS part since it's modified in memory
7222 on boot.
7223 Include rs_decoder.S.
7224 * grub-core/lib/reed_solomon.c: New file.
7225 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
7226 New definition.
7227 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
7228 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
7229 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
7230 * include/grub/partition.h (grub_partition_map): Change prototype of
7231 embed to allow returning additional sectors.
7232 * include/grub/reed_solomon.h: New file.
7233 * util/grub-setup.c (setup): Handle Reed-Solomon.
7234
7235 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
7236
7237 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
7238 i386 and x86-64 definedness tests.
7239
7240 2010-09-27 Yves Blusseau <blusseau@zetam.org>
7241
7242 Fix generation of kernel_syms.lst
7243
7244 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
7245 ASM_PREFIX
7246
7247 2010-09-26 Robert Millan <rmh@gnu.org>
7248
7249 Support degraded ZFS arrays in "grub-probe -t device" resolution.
7250
7251 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
7252 the pool is an array of devices, iterate through it and return the
7253 first device that passes a stat() test (instead of blindly returning
7254 the first one).
7255
7256 2010-09-26 Robert Millan <rmh@gnu.org>
7257
7258 Build fixes for GNU/kFreeBSD.
7259
7260 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
7261 to programs that require ZFS conversion.
7262 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
7263 kernels that don't have FLOPPY_MAJOR.
7264
7265 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
7266
7267 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
7268
7269 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
7270
7271 Fix grub-emu build.
7272
7273 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
7274 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
7275 mdraid09 and mdraid1x.
7276
7277 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
7278
7279 Re-enable grub-extras.
7280
7281 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
7282 avoid confusing Automake. Run autogen only twice, once for the top
7283 level and once for grub-core. Add Makefile.util.def and
7284 Makefile.core.def from extra modules to the appropriate autogen
7285 invocations. If Makefile.common exists in an extra module, include
7286 it in both Makefile.util.am and grub-core/Makefile.core.am;
7287 similarly, include any Makefile.util.common file in Makefile.util.am
7288 and any Makefile.core.common file in grub-core/Makefile.core.am.
7289 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
7290 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
7291 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
7292 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
7293
7294 * gentpl.py (gvar_add): Turn GVARS into a set.
7295 (global_variable_initializers): Sort global variables on output.
7296 (vars_init): New function.
7297 (first_time): Likewise.
7298 (library): Ensure that non-global variable initialisations are
7299 emitted before the first time we emit code for a library block.
7300 Append to variables rather than setting them. Only emit
7301 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
7302 each conditional path.
7303 (program): installdir() emits an Autogen macro, so must be passed to
7304 var_add rather than gvar_add.
7305 (data): Likewise.
7306 (script): Likewise.
7307 (rules): New function, centralising handling for different target
7308 types. Set up Guile association lists for first_time and vars_init,
7309 and send most output to a diversion so that variable initialisations
7310 can be emitted first.
7311 (module_rules): Use new rules function.
7312 (kernel_rules): Likewise.
7313 (image_rules): Likewise.
7314 (library_rules): Likewise.
7315 (program_rules): Likewise.
7316 (script_rules): Likewise.
7317 (data_rules): Likewise.
7318
7319 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
7320
7321 * .bzrignore: Add contrib and grub-core/contrib. Remove
7322 grub-core/Makefile.gcry.am.
7323
7324 2010-09-24 Yves Blusseau <blusseau@zetam.org>
7325
7326 * grub-core/lib/LzFind.c: Add missing include.
7327 * grub-core/lib/LzmaEnc.c: Likewise.
7328 * grub-core/script/lexer.c: Likewise.
7329 * grub-core/script/yylex.l: Likewise.
7330 * util/grub-macho2img.c: Likewise.
7331 * util/grub-menulst2cfg.c: Likewise.
7332 * util/grub-mklayout.c: Likewise.
7333 * util/grub-mkpasswd-pbkdf2.c
7334 * util/grub-mkrelpath.c: Likewise.
7335 * util/resolve.c: Likewise.
7336
7337 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
7338
7339 * Makefile.util.def (example_unit_test): Add
7340 grub-core/gnulib/libgnu.a.
7341
7342 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
7343
7344 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
7345
7346 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
7347
7348 Support xz compression on yeeloong.
7349
7350 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
7351 * configure.ac: Check for LZMA.
7352 * grub-core/Makefile.core.def (xz_decompress): New target.
7353 (none_decompress): Likewise.
7354 * grub-core/boot/decompressor/minilib.c: New file.
7355 * grub-core/boot/decompressor/none.c: Likewise.
7356 * grub-core/boot/decompressor/xz.c: Likewise.
7357 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
7358 * grub-core/kern/mips/cache_flush.S: Likewise.
7359 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
7360 * grub-core/kern/mips/startup.S: Move first stage to ...
7361 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
7362 nomacro.
7363 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
7364 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
7365 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
7366 Allocate statically.
7367 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
7368 Allocate statically or use scratch. Don't check CRC32.
7369 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
7370 Allocate statically. Don't check CRC32.
7371 * include/grub/decompressor.h: New file.
7372 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
7373 Removed.
7374 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
7375 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
7376 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
7377 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
7378 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
7379 * util/grub-mkimage.c (grub_compression_t): New type.
7380 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
7381 (image_target_desc): New field default_compression.
7382 (image_targets): Adjust yeeloong targets.
7383 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
7384 (compress_kernel): New parameter comp.
7385 (generate_image): Likewise. Handle new compression case.
7386 (options): New option --compression
7387 (help): Likewise.
7388 (main): Handle new option.
7389
7390 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
7391
7392 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
7393
7394 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
7395
7396 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
7397 typo in __i386__ conditional.
7398
7399 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
7400
7401 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
7402 include.
7403
7404 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 Implement EFI and ACPI multiboot2 extensions.
7407
7408 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
7409 new tags as supported.
7410 (acpiv2_size): New function.
7411 (grub_multiboot_get_mbi_size): Take new tags into account.
7412 (grub_multiboot_make_mbi): Add new tags.
7413 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
7414
7415 2010-09-21 Aleš Nesrsta <starous@volny.cz>
7416
7417 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
7418 Added missing configuration of USB device.
7419
7420 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7421
7422 * grub-core/normal/menu_entry.c (run): Make sure we always return
7423 a value.
7424
7425 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7426
7427 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
7428 NumberOfPages is UINT64 according to the UEFI specification, not
7429 UINTN. Fix printf format.
7430
7431 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7432
7433 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
7434 `err' to grub_usb_err_t.
7435 Reported and tested by: KESHAV P.R.
7436
7437 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7438
7439 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
7440 tpart non-const, so that we can assign to it. (Since this is a
7441 typedef, the constness refers to the pointer rather than what it
7442 points to.)
7443
7444 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7445
7446 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
7447 $(top_srcdir)/grub-core/gnulib as well as
7448 $(top_builddir)/grub-core/gnulib.
7449 Reported by: KESHAV P.R.
7450
7451 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7452
7453 * util/grub-install.in: Fix the bootloader ID option to be
7454 consistently --bootloader-id, not --bootloader_id.
7455 Reported by: KESHAV P.R.
7456
7457 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7458
7459 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
7460 check hash checksum." consistently translatable.
7461
7462 2010-09-21 Yves Blusseau <blusseau@zetam.org>
7463
7464 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
7465 $(top_builddir).
7466
7467 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7468
7469 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
7470 (GRUB_MOD_INIT): Register sha1sum command.
7471 (GRUB_MOD_FINI): Unregister sha1sum command.
7472
7473 2010-09-21 Yves Blusseau <blusseau@zetam.org>
7474
7475 Keep boot and grub directory names in sync with utils scripts
7476
7477 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
7478 * config.h.in: Add previous macros.
7479 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
7480 * util/grub-install.in: Use $bootdir and $grubdir variables.
7481
7482 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7483
7484 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
7485 convert partition names to disk names if the new `convert' parameter
7486 is set.
7487 (grub_util_biosdisk_get_grub_dev): If opening the disk device
7488 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
7489 disk in its own right. This can happen with Xen disk images.
7490
7491 2010-09-21 Yves Blusseau <blusseau@zetam.org>
7492
7493 * util/grub-editenv.c: Update strings to avoid warnings when generating
7494 grub.pot file.
7495 * util/grub-setup.c: Likewise.
7496
7497 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
7498
7499 * configure.ac: Change version to 1.99~beta0.
7500
7501 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
7502
7503 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
7504 Add BADRAM.
7505 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
7506 Likewise.
7507 * include/multiboot.h: Resynced with specification.
7508 * include/multiboot2.h: Likewise.
7509
7510 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7511
7512 Fix po directory handling.
7513
7514 * configure.ac: Create po/Makefile.in rather than po/Makefile.
7515 * grub-core/gnulib/Makefile.am: Import gettext module.
7516 * m4/gnulib-cache.m4: Likewise.
7517 * m4/gnulib-comp.m4: Likewise.
7518 * m4/gettext.m4: New file, from gnulib.
7519 * m4/glibc2.m4: Likewise.
7520 * m4/iconv.m4: Likewise.
7521 * m4/intdiv0.m4: Likewise.
7522 * m4/intl.m4: Likewise.
7523 * m4/intldir.m4: Likewise.
7524 * m4/intlmacosx.m4: Likewise.
7525 * m4/intmax.m4: Likewise.
7526 * m4/inttypes-pri.m4: Likewise.
7527 * m4/lcmessage.m4: Likewise.
7528 * m4/lib-ld.m4: Likewise.
7529 * m4/lib-link.m4: Likewise.
7530 * m4/lib-prefix.m4: Likewise.
7531 * m4/lock.m4: Likewise.
7532 * m4/nls.m4: Likewise.
7533 * m4/po.m4: Likewise.
7534 * m4/printf-posix.m4: Likewise.
7535 * m4/progtest.m4: Likewise.
7536 * m4/threadlib.m4: Likewise.
7537 * m4/uintmax_t.m4: Likewise.
7538 * m4/visibility.m4: Likewise.
7539 * po/Makefile.am: Remove.
7540 * po/Makefile.in.in: New file, from gettext.
7541 ($(DOMAIN).pot-update): Support POTFILES-shell.
7542 * po/Makevars: New file.
7543 * po/POTFILES-shell: Rename to ...
7544 * po/POTFILES-shell.in: ... this. Update.
7545 * po/POTFILES: Rename to ...
7546 * po/POTFILES.in: ... this. Update.
7547 * po/Rules-quot: New file, from gettext.
7548 * po/boldquot.sed: Likewise.
7549 * po/en@boldquot.header: Likewise.
7550 * po/en@quot.header: Likewise.
7551 * po/insert-header.sin: Likewise.
7552 * po/quot.sed: Likewise.
7553 * po/remove-potcdate.sin: Likewise.
7554
7555 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7556
7557 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
7558
7559 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7560
7561 * util/grub.d/20_linux_xen.in: Use submenus.
7562
7563 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7564
7565 Support submenus.
7566
7567 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
7568 parameter submenu. All users updated.
7569 * grub-core/normal/main.c (free_menu): Rename to ...
7570 (grub_normal_free_menu): ... this. Made global.
7571 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
7572 if requested.
7573 * grub-core/normal/menu_entry.c (screen): New field submenu.
7574 (make_screen): Set submenu.
7575 (run): Open new context if requested.
7576 * include/grub/menu.h (grub_menu_entry): New field submenu.
7577 * include/grub/normal.h (grub_normal_free_menu): New proto.
7578
7579 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 Menu entries extractor.
7582
7583 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
7584 variants.
7585 (GRUB_MOD_INIT): Register new variants.
7586 (GRUB_MOD_FINI): Unregister new variants.
7587 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
7588 into grub_cmd_legacy_source.
7589 (grub_cmd_legacy_source): Implement extractor variants.
7590 (GRUB_MOD_INIT): Register new variants.
7591 (GRUB_MOD_FINI): Unregister new variants.
7592 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
7593 as an extractor.
7594 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
7595 search as an extractor.
7596 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
7597 test as an extractor.
7598 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
7599 as an extractor.
7600 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
7601 (grub_env_new_context): New function.
7602 (grub_env_context_open): Likewise.
7603 (grub_env_extractor_open): Likewise.
7604 (grub_env_extractor_close): Likewise.
7605 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
7606 grub_extractor_level.
7607 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
7608 * include/grub/env.h (grub_env_extractor_open): New proto.
7609 (grub_env_extractor_close): Likewise.
7610 * include/grub/normal.h (grub_extractor_level): New external variable.
7611
7612 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7613
7614 Make cutmem accept a region specification.
7615 Suggested by: Samuel Thibault
7616
7617 * grub-core/mmap/mmap.c (parsemem): New function.
7618 (grub_cmd_cutmem): Handle new arguments.
7619
7620 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 New command cutmem.
7623
7624 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
7625 (GRUB_MOD_INIT): Register new command.
7626 (GRUB_MOD_FINI): Unregister new command.
7627
7628 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 Support some annoying BSD and Minix subpartitions.
7631
7632 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
7633 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
7634 Properly handle concatenation.
7635 * grub-core/kern/device.c (grub_device_iterate): Likewise.
7636 * grub-core/normal/completion.c (iterate_partition): Likewise.
7637 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
7638 contain partition. All users updated.
7639 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
7640 struct.
7641 (grub_openbsdlabel_partition_map): Likewise.
7642 (bsdlabel_partition_map_iterate): Rename to ..
7643 (iterate_real): ... this. New arguments sector, freebsd and pmap.
7644 (bsdlabel_partition_map_iterate): New function.
7645 (netopenbsdlabel_partition_map_iterate): Likewise.
7646 (netbsdlabel_partition_map_iterate): Likewise.
7647 (openbsdlabel_partition_map_iterate): Likewise.
7648 (GRUB_MOD_INIT): Register new partmaps.
7649 (GRUB_MOD_FINI): Unregister new partmaps.
7650 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
7651 (grub_partition_msdos_iterate): ... this. All users updated.
7652 Don't support embedding other than in a minix partition.
7653 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
7654 proto.
7655 * include/grub/partition.h (grub_partition): New field msdostype.
7656 * util/grub-install.in: Handle openbsd and netbsd types being in
7657 part_bsd module.
7658
7659 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
7662
7663 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
7664 * grub-core/Makefile.core.def (mdraid): Renamed to ...
7665 (mdraid09): ... this.
7666 (mdraid1x): New module.
7667 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
7668 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
7669
7670 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7671
7672 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
7673 vsprintf.
7674
7675 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
7676
7677 * grub-core/commands/efi/lsefimmap.c: Correct header.
7678 * NEWS: Update.
7679
7680 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
7681
7682 * util/grub-editenv.c (argp_parser): Don't pass translated strings
7683 as printf format strings; the translations might contain '%' which
7684 could cause a crash.
7685 (main): Likewise.
7686 * util/grub-fstest.c (argp_parser): Likewise.
7687 * util/grub-setup.c (argp_parser): Likewise.
7688 (main): Likewise.
7689
7690 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 Use argp in grub-fstest.
7693
7694 * util/grub-fstest.c: Don't include getopt.h.
7695 Include argp.h.
7696 (root): New variable.
7697 (args_count): Likewise.
7698 (nparm): Likewise.
7699 (num_disks): Likewise.
7700 (images): Likewise.
7701 (cmd): Likewise.
7702 (debug_str): Likewise.
7703 (args): Likewise.
7704 (options): Transformed to argp.
7705 (usage): Removed.
7706 (main): Split argument parsing into ...
7707 (argp_parser): ... this. Changed to argp format.
7708 (argp): New variable.
7709 (main): Use argp_parse.
7710
7711 2010-09-20 Tristan Gingold <gingold@free.fr>
7712 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
7713 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * grub-core/commands/efi/lsefimmap.c: New file.
7716 * grub-core/Makefile.core.def (lsefimmap): New module.
7717 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
7718
7719 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 Pause the execution (10s max) if any errors are displayed so the user
7722 has a chance to see them.
7723
7724 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
7725 (grub_print_error): Increment grub_err_printed_errors.
7726 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
7727 execution if any errors were displayed.
7728 (show_menu): Remove old code for pause.
7729 * grub-core/normal/menu_entry.c (run): Likewise.
7730 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
7731 users updated.
7732 (grub_normal_get_char_counter): Likewise.
7733 * include/grub/err.h (grub_err_printed_errors): New external variable.
7734 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
7735
7736 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7737
7738 Support multiboot VBE info.
7739
7740 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
7741 Take VBE info into account.
7742 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
7743 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
7744 Call fill_vbe_info when appropriate.
7745 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
7746 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
7747 as supported.
7748 (grub_multiboot_get_mbi_size): Take new tags into account.
7749 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
7750 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
7751 Call fill_vbe_tag when appropriate.
7752 (grub_multiboot_make_mbi): Properly align tags.
7753 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
7754 function.
7755 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
7756 proto.
7757 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
7758
7759 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 Suport manual terminal geometry specification.
7762
7763 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
7764 Save state in grub_ofconsole_terminfo_output.
7765 (grub_ofconsole_term): Use grub_terminfo_getwh.
7766 (grub_ofconsole_getwh): Removed.
7767 * grub-core/term/serial.c (grub_serial_getwh): Removed.
7768 (grub_serial_term): Use grub_terminfo_getwh.
7769 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
7770 (options): New struct.
7771 (OPTION_*): New enum.
7772 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
7773 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
7774 width and height.
7775 (grub_terminfo_getwh): New proto.
7776 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
7777
7778 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 Handle legacy "terminal" command.
7781
7782 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
7783 and FLAG_TERMINAL.
7784 (legacy_commands): Add terminal and title.
7785 (grub_legacy_parse): Handle terminal. Simplify title handling.
7786
7787 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7788
7789 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
7790 parameters overflow.
7791
7792 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
7793
7794 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
7795 widthspec.h.
7796
7797 * docs/grub.texi (Shell-like scripting): Document `!'.
7798 (Network): Simplify using new i386-pc-pxe format. Mention
7799 grub-mknetdir.
7800
7801 * NEWS: Update.
7802
7803 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
7804
7805 * Makefile.am (SUBDIRS): Restore "."; it's important to force
7806 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
7807 when needed.
7808
7809 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
7810
7811 * grub-core/commands/efi/lsefisystab.c: Correct header.
7812 * grub-core/commands/efi/lssal.c: Likewise.
7813 * grub-core/commands/testload.c: Likewise.
7814
7815 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
7816
7817 * util/grub-mkrescue.in: Add explicit root argument to --set to
7818 prevent the UUID being interpreted as an argument to --set (matches
7819 previous change to prepare_grub_to_access_device).
7820
7821 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
7822
7823 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
7824 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
7825 the verbosity of later #ifs.
7826 (find_partition_start): Define this function on FreeBSD too.
7827 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
7828 function.
7829 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
7830 on FreeBSD.
7831
7832 2010-09-20 Yves Blusseau <blusseau@zetam.org>
7833
7834 * util/grub-editenv.c: Use argp instead of getopt.
7835
7836 2010-09-20 Yves Blusseau <blusseau@zetam.org>
7837
7838 * util/grub-setup.c: Use argp instead of getopt.
7839
7840 2010-09-20 Yves Blusseau <blusseau@zetam.org>
7841
7842 Use gnulib-tool to create gnulib source files.
7843
7844 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
7845 grub-core/gnulib directories
7846 * .bzignore: Add **/.deps and autogenerated gnulib files
7847 * configure.ac: Assign auxiliary directory to build-aux, add invocation
7848 of gnulib macros, add grub-core/gnulib/Makefile
7849 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
7850 include m4 directory to aclocal.
7851 * Makefile.util.def: Remove direct compilation of gnulib source files
7852 and use the new grub-core/gnulib/libgnu.a.
7853 * build-aux/config.rpath: move config.rpath from top directory to
7854 build-aux
7855 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
7856 in gnulib headers
7857 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
7858 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
7859 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
7860 header.
7861 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
7862 string.
7863
7864 2010-09-20 Yves Blusseau <blusseau@zetam.org>
7865
7866 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
7867 grub-core/genmod.sh and grub-core/gensyminfo.sh
7868
7869 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
7870
7871 Add a test for echo command options.
7872
7873 * tests/grub_cmd_echo.in: New test.
7874 * Makefile.util.def: Rules for new test.
7875
7876 2010-09-20 Szymon Janc <szymon@janc.net.pl>
7877
7878 Remove crc.mod and move crc command to hashsum.mod.
7879 Remove lib/crc.c - users updated to use gcrypt implementation.
7880
7881 * grub-core/commands/crc.c: Removed.
7882 * grub-core/Makefile.core.def (crc): Module removed.
7883 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
7884 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
7885 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
7886 * grub-core/lib/crc.c: Removed.
7887 * include/grub/lib/crc.h: Removed.
7888 * Makefile.util.def (crc): Remove lib/crc.c
7889 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
7890 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
7891 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
7892 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
7893 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
7894 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
7895
7896 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
7897
7898 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
7899
7900 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7901
7902 Split config.h for util and core.
7903
7904 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
7905 (ADDR32): Likewise.
7906 (DATA32): Likewise.
7907 (BSS_START_SYMBOL): Likewise.
7908 (END_SYMBOL): Likewise.
7909 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
7910 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
7911 * config.h.in: New file.
7912 * configure.ac: Use config-util.h as config define file.
7913 Rename MACHINE into GRUB_MACHINE. All users updated.
7914 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
7915 updated.
7916 (NESTED_FUNC_ATTR): Likewise.
7917 Substitue new variables.
7918 (COND_HAVE_ASM_USCORE): New conditional.
7919 * grub-core/Makefile.am (ASM_PREFIX): New variable.
7920 (kernel_syms.lst): Use ASM_PREFIX.
7921 * grub-core/kern/emu/console.c: Include config-util.h.
7922 * grub-core/kern/emu/misc.c: Likewise.
7923 * grub-core/kern/emu/mm.c: Likewise.
7924 * include/grub/emu/misc.h: Likewise.
7925 * include/grub/libgcc.h: Likewise.
7926
7927 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7928
7929 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
7930 constants usage.
7931 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
7932 Fix GRUB_TERM_KEY_* constants usage.
7933 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
7934
7935 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7936
7937 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
7938 print pointer.
7939 * grub-core/bus/usb/uhci.c: Remove empty define.
7940 (grub_uhci_check_transfer): Add missing cast.
7941 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
7942 print pointer.
7943 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
7944 PRIuGRUB_SIZE.
7945 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
7946
7947 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7948
7949 * grub-core/Makefile.core.def (legacycfg): Add
7950 lib/i386/pc/vesa_modes_table.c on emu.
7951
7952 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
7953
7954 Reduce number of temporary files generated by build system.
7955
7956 * grub-core/gencmdlist.sh: Removed.
7957 * grub-core/genfslist.sh: Removed.
7958 * grub-core/genhandlerlist.sh: Removed.
7959 * grub-core/genmodsrc.sh: Removed.
7960 * grub-core/genpartmaplist.sh: Removed.
7961 * grub-core/genparttoollist.sh: Removed.
7962 * grub-core/gentermiinallist.sh: Removed.
7963 * grub-core/genvideolist.sh: Removed.
7964
7965 * grub-core/genmod.sh.in: New file.
7966 * grub-core/gensyminfo.sh.in: New file.
7967
7968 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
7969 * conf/Makefile.extra-dist: Update with new files.
7970 * gentpl.py: Remove rules related to unnecessary temporary files.
7971 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
7972 and und-* files.
7973 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
7974 genmod.sh scripts.
7975 * grub-core/bus/usb/uhci.c: Remove empty #define.
7976 * grub-core/genmoddep.awk: Updated with new syminfo format.
7977 * util/bash-completion.d/Makefile.am: Add config.log to
7978 CLEANFILES.
7979
7980 2010-09-19 Yves Blusseau <blusseau@zetam.org>
7981
7982 * Makefile.util.def: Add forgotten $(LIBINTL) library.
7983
7984 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
7985
7986 * util/grub-mkconfig.in: Check the config script for syntax errors
7987 before saving.
7988
7989 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
7990 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7991
7992 * Makefile.util.def (grub-install): Use util/grub-install.in on all
7993 platforms.
7994 * util/grub-install.in: Add EFI and IEEE1275 support.
7995 * util/i386/efi/grub-install.in: Removed.
7996 * util/ieee1275/grub-install.in: Likewise.
7997
7998 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7999
8000 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
8001 (grub_cmd_cmosclean): Likewise.
8002 (GRUB_MOD_INIT): Register command cmosclean.
8003 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
8004 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
8005
8006 2010-09-18 Carles Pina i Estany <carles@pina.cat>
8007 2010-09-18 Aleš Nesrsta <starous@volny.cz>
8008 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8009
8010 Add keyboard layouts support.
8011
8012 * Makefile.util.def (grub-mklayout): New file.
8013 (grub-kbdcomp): New script.
8014 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
8015 Add keyboard_layouts.h.
8016 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
8017 commands/boot.c on yeeloong.
8018 (keylayouts): New module.
8019 * grub-core/bus/usb/ohci.c
8020 * grub-core/bus/usb/uhci.c
8021 * grub-core/bus/usb/usbhub.c (rescan): New variable.
8022 (grub_usb_add_hub): Poll interrupt pipe for device handling.
8023 (attach_root_port): Likewise.
8024 (poll_nonroot_hub): Likewise.
8025 (grub_usb_poll_devices): Likewise.
8026 (detach_device): Close transfer.
8027 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
8028 function.
8029 (grub_usb_bulk_setup_readwrite): Likewise.
8030 (grub_usb_bulk_finish_readwrite): Likewise.
8031 * grub-core/commands/keylayouts.c: New file.
8032 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
8033 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
8034 aliases.
8035 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
8036 support scancode 2.
8037 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
8038 * include/grub/keyboard_layouts.h: New file.
8039 * util/grub-mklayout.c: New file.
8040 * util/grub-kbdcomp.in: Likewise.
8041
8042 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8043
8044 Unify memory types.
8045
8046 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
8047 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
8048 types.
8049 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
8050 (grub_upper_mem): Likewise.
8051 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
8052 * include/grub/memory.h (grub_memory_type_t): New enum.
8053 All users updated.
8054
8055 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8056
8057 * grub-core/Makefile.core.def (lsapm): New module.
8058 * grub-core/commands/i386/pc/lsapm.c: New file.
8059 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
8060 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
8061 Likewise.
8062 * include/grub/i386/pc/apm.h: New file.
8063 * include/multiboot.h (multiboot_apm_info): New struct.
8064
8065 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8066
8067 GRUB-legacy configuration file support.
8068
8069 * Makefile.util.def (grub-menulst2cfg): New util.
8070 * docs/man/grub-menulst2cfg.h2m: New file.
8071 * grub-core/Makefile.core.def (legacycfg): New module.
8072 * grub-core/commands/legacycfg.c: New file.
8073 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
8074 (grub_normal_add_menu_entry): ... this.
8075 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
8076 (grub_normal_set_password): ...this.
8077 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
8078 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
8079 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
8080 * grub-core/lib/legacy_parse.c: New file.
8081 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
8082 * include/grub/i386/pc/vesa_modes_table.h: New file.
8083 * include/grub/legacy_parse.h: Likewise.
8084 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
8085 * util/grub-menulst2cfg.c: New file.
8086
8087 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8088
8089 * grub-core/kern/emu/hostdisk.c
8090 (convert_system_partition_to_system_disk): Initialise node.
8091
8092 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8093
8094 * grub-core/kern/emu/hostdisk.c
8095 (convert_system_partition_to_system_disk): Fix devmapper memory pool
8096 leak.
8097 Reported and based on patch by: Modestas Vainius.
8098
8099 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8100
8101 Fix DM-RAID probing with recent versions of device-mapper udev
8102 rules.
8103
8104 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
8105 canonicalise device paths under /dev/mapper/.
8106 (convert_system_partition_to_system_disk): Compare the
8107 uncanonicalised path to /dev/mapper/ rather than the canonicalised
8108 path, since device nodes under /dev/mapper/ are often symlinks.
8109
8110 2010-09-17 Yves Blusseau <blusseau@zetam.org>
8111
8112 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
8113
8114 2010-09-16 Yves Blusseau <blusseau@zetam.org>
8115
8116 * configure.ac: Avoid some annoying error messages if freetype-config
8117 program is not found.
8118
8119 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8120
8121 Support RAID on virtio devices, and others.
8122
8123 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
8124 Rename to ...
8125 [__MINGW32__] (grub_find_device): ... this.
8126 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
8127 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
8128 reasonable default if dir is NULL.
8129 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
8130 ...
8131 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
8132 (grub_guess_root_device): Update callers.
8133 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
8134
8135 * util/raid.c (grub_util_getdiskname): Remove.
8136 (grub_util_raid_getmembers): Use grub_find_device rather than
8137 grub_util_getdiskname.
8138
8139 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8140
8141 * docs/grub.texi (serial): Remove obsolete comment about GRUB
8142 needing to be compiled with serial support.
8143 (ls): Indicate that multiple files are accepted.
8144 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
8145 indicate that multiple files are accepted.
8146
8147 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8148
8149 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
8150 libgrub_a_init.c, and util/bash-completion.d/grub.
8151
8152 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8153
8154 * util/grub-setup.c (setup): Fix incorrect container semantics.
8155
8156 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8157
8158 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
8159 misusage.
8160 Reported by: J. Nick Terry
8161
8162 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8163
8164 Move embedding routines to partmap sources files.
8165
8166 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
8167 [GRUB_UTIL]: New variable.
8168 (gpt_partition_map_iterate): Set part.parent.
8169 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
8170 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
8171 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
8172 New function.
8173 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
8174 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
8175 (grub_partition_map) [GRUB_UTIL]: New field embed.
8176 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
8177 (setup): Use ->embed.
8178
8179 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8180
8181 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
8182 function.
8183 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
8184 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
8185
8186 2010-09-15 Yves Blusseau <blusseau@zetam.org>
8187
8188 Add function to get completions from usage.
8189
8190 * util/bash-completion.d/grub-completion.bash.in: Add function to get
8191 completions from usage. Use LC_ALL=C to get options properly.
8192
8193 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8194
8195 * grub-core/gnulib/basename-lgpl.c: Imported.
8196 * grub-core/gnulib/basename.c: Likewise.
8197 * grub-core/gnulib/dirname-lgpl.c: Likewise.
8198 * grub-core/gnulib/dirname.c: Likewise.
8199 * grub-core/gnulib/dirname.h: Likewise.
8200 * grub-core/gnulib/stripslash.c: Likewise.
8201
8202 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 * grub-core/gnulib/error.c: Resynced.
8205 * grub-core/gnulib/getopt.c: Likewise.
8206 * grub-core/gnulib/getopt_int.h: Likewise.
8207 * grub-core/gnulib/regex.h: Likewise.
8208 * grub-core/gnulib/regex_internal.c: Likewise.
8209 * grub-core/gnulib/regex_internal.h: Likewise.
8210
8211 2010-09-15 Szymon Janc <szymon@janc.net.pl>
8212
8213 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
8214 CRC calculations and validity checks.
8215 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
8216 calculations.
8217
8218 2010-09-15 Szymon Janc <szymon@janc.net.pl>
8219
8220 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
8221
8222 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8223
8224 Fix incorrect echo options handling.
8225 Reported by: Yves Blusseau.
8226
8227 * include/grub/command.h (grub_command_flags_t): New flags
8228 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
8229 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
8230 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
8231
8232 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8233
8234 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
8235 users updated.
8236 (GRUB_COMMAND_FLAG_MENU): Likewise.
8237 (GRUB_COMMAND_FLAG_BOTH): Likewise.
8238 (GRUB_COMMAND_FLAG_TITLE): Removed.
8239 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
8240 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
8241 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
8242 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
8243 (grub_command_flags_t): New enum. All users updated.
8244
8245 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
8246
8247 Fix solaris compilation.
8248
8249 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
8250 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
8251 (grub-emu-list): Likewise.
8252
8253 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8254
8255 Remove deprecated root command.
8256
8257 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
8258 updated.
8259
8260 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * util/i386/pc/grub-setup.c: Merge this ...
8263 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
8264 * util/grub-setup.c: ... into this.
8265 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
8266 New struct.
8267
8268 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8269
8270 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
8271 possible.
8272
8273 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
8276 allocate p.
8277
8278 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8281 explicit root argument to set to prevent UUID to be interpreted as
8282 argument to set.
8283
8284 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8285
8286 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
8287
8288 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8289
8290 Don't export grub_gate_a20.
8291
8292 * grub-core/kern/i386/pc/init.c: Remove leftovers.
8293 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
8294 to ...
8295 (grub_gate_a20): ... this. All users updated.
8296 * include/grub/i386/pc/init.h: Removed. All users updated.
8297
8298 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 Create euro.pf2 which supports most European languages.
8301
8302 * Makefile.am (grubdata_DATA): Add euro.pf2.
8303 (euro.pf2): New target.
8304 (CLEANFILES): Add euro.pf2.
8305
8306 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8307
8308 * configure.ac: Disable emu-usb by default to prevent inadvertent
8309 device takeover.
8310
8311 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8312
8313 Disable usbserial on grub-emu since our libusb code isn't good enough
8314 yet.
8315
8316 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
8317 (usbserial_pl2303): Likewise.
8318 (usbserial_ftdi): Likewise.
8319
8320 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8321
8322 * include/grub/disk.h (grub_disk): Remove has_partitions.
8323 All users updated.
8324 * disk/loopback.c (grub_loopback): Remove has_partitions.
8325 All users updated.
8326 (options): Remove partitions. All users updated.
8327 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
8328 * util/i386/pc/grub-setup.c (setup): copy partition table only when
8329 actual partition table is found.
8330
8331 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8332
8333 Remove readability checks (too many false negatives).
8334
8335 * util/grub-install.in: Remove readability checks.
8336 * util/grub-mkconfig.in: Likewise.
8337 * util/grub.d/10_hurd.in: Likewise.
8338 * util/grub.d/10_kfreebsd.in: Likewise.
8339 * util/grub.d/10_linux.in: Likewise.
8340 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
8341 way.
8342
8343 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8344
8345 Enable acpi shutdown on all ACPI platforms.
8346
8347 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
8348 on coreboo, multiboot and EFI.
8349 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
8350 (grub_acpi_halt): Likewise.
8351 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
8352 (grub_cmd_halt): Don't call grub_acpi_halt directly.
8353 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
8354 * grub-core/lib/i386/halt.c (grub_halt)
8355 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
8356
8357 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8358
8359 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
8360 context.
8361
8362 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8363
8364 * grub-core/video/efi_gop.c: Fix over-80-chars line.
8365 * grub-core/video/efi_uga.c: Likewise.
8366
8367 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8368
8369 Filter devaliases and never open same device twice.
8370
8371 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
8372 (last_ihandle): Likewise.
8373 (ofdisk_hash_ent): New member shortest.
8374 (ofdisk_hash_add): Add canonical path too.
8375 (scan): New function.
8376 (grub_ofdisk_iterate): Iterate over hashed entries.
8377 (compute_dev_path): Don't add :0.
8378 (grub_ofdisk_open): Don't really open the disk.
8379 (grub_ofdisk_close): Avoid closing unrelated disk.
8380 (grub_ofdisk_read): Implement reopen logic.
8381 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
8382 New function.
8383 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
8384 New proto.
8385
8386 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8387
8388 Fix sparc64.
8389
8390 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
8391 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
8392 right address. Add sparc64_ieee1275_ldflags.
8393 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
8394 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
8395 to grub_host_to_target_addr
8396 (load_image): Likewise.
8397
8398 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8399
8400 * grub-core/normal/completion.c (complete_file): Handle device
8401 containing slash.
8402 Fix based on patch by Doug Nazar.
8403
8404 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8405
8406 grub-mknetdir script.
8407
8408 * Makefile.util.def (grub-mknetdir): New module.
8409 * tests/util/grub-shell.in: Support boot=net
8410 * util/grub-mknetdir.in: New file.
8411
8412 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8413
8414 videoinfo on non-vbe.
8415
8416 * grub-core/Makefile.core.def (vbeinfo): Removed.
8417 (vbetest): Removed.
8418 (videoinfo): New module.
8419 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
8420 * grub-core/commands/i386/pc/vbetest.c: Removed.
8421 * grub-core/commands/videoinfo.c: New file.
8422 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
8423 specification.
8424 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
8425 as vbetest.
8426 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
8427 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
8428 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
8429 mode_number. New parameter mode. All users updated.
8430 (grub_video_gop_iterate): New function.
8431 (grub_video_efi_gop): New member iterate.
8432 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
8433 (grub_vbe_set_video_mode): Remove setting useless fields.
8434 (vbe2videoinfo): New function.
8435 (grub_video_vbe_iterate): Likewise.
8436 (grub_video_vbe_setup): Use vbe2videoinfo.
8437 (grub_video_vbe_print_adapter_specific_info): New function.
8438 (grub_video_vbe_adapter): New fields iterate and
8439 print_adapter_specific_info.
8440 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
8441 All users updated.
8442 (grub_video_mode_info): New field mode_number.
8443 (grub_video_adapter): New fields iterate and
8444 print_adapter_specific_info.
8445
8446 2010-09-13 Tristan Gingold <gingold@free.fr>
8447 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
8448 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8449
8450 * grub-core/commands/efi/lsefisystab.c: New file.
8451 * grub-core/commands/efi/lssal.c: Likewise.
8452 * grub-core/Makefile.core.def (lsacpi): New module.
8453 (lsefisystab): Likewise.
8454 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
8455 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
8456 (grub_efi_sal_system_table): New struct.
8457 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
8458 (grub_efi_sal_system_table_memory_descriptor): Likewise.
8459 (grub_efi_sal_system_table_platform_features): Likewise.
8460 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
8461 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
8462 (grub_efi_sal_system_table_ap_wakeup): Likewise.
8463 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
8464
8465 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 Support explicit user claim that a device is BIOS-visible.
8468
8469 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
8470 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
8471 * grub-core/kern/emu/hostdisk.c
8472 (convert_system_partition_to_system_disk): Support mdX.
8473 (find_system_device): New parameter add. All users updated.
8474 (grub_util_biosdisk_is_present): New function.
8475 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
8476 proto.
8477
8478 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8479
8480 Search hints support.
8481
8482 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
8483 All users updated.
8484
8485 2010-09-13 Yves Blusseau <blusseau@zetam.org>
8486
8487 Bash completion script for util commands
8488
8489 * Makefile.am: Add util/bash-completion.d directory
8490 * configure.ac: Likewise.
8491 * util/bash-completion.d/Makefile.am: New file.
8492 * util/bash-completion.d/grub-completion.bash.in: Likewise.
8493
8494 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
8497 (print_backlog): set backlog_ucs4 and backlog_glyphs.
8498 Reported by: Yves Blusseau.
8499
8500 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8501
8502 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
8503 partition size and offset.
8504
8505 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8506
8507 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
8508
8509 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8510
8511 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
8512
8513 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8514
8515 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
8516 (grub_xvasprintf): Likewise.
8517
8518 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8519
8520 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
8521
8522 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8523
8524 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
8525 args ending with NULL.
8526
8527 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8528
8529 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
8530 pointer.
8531
8532 2010-09-11 Szymon Janc <szymon@janc.net.pl>
8533
8534 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
8535
8536 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 Shutdown using ACPI.
8539
8540 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
8541 * grub-core/commands/acpihalt.c: New file.
8542 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
8543 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
8544 (grub_acpi_halt): New proto.
8545 (GRUB_ACPI_SLP_EN): New const.
8546 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
8547 (GRUB_ACPI_OPCODE_*): New enum.
8548 (GRUB_ACPI_EXTOPCODE_*): Likewise.
8549
8550 2010-09-11 Tristan Gingold <gingold@free.fr>
8551 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
8552 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8553
8554 * commands/lsacpi.c: New file.
8555 * grub-core/Makefile.core.def (lsacpi): New module.
8556 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
8557 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
8558 (grub_acpi_madt_entry_header): New struct.
8559 (grub_acpi_madt): Likewise.
8560 (grub_acpi_madt_entry_interrupt_override): Likewise.
8561 (grub_acpi_madt_entry_sapic): Likewise.
8562 (grub_acpi_madt_entry_lsapic): Likewise.
8563 (grub_acpi_madt_entry_platform_int_source): Likewise.
8564 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
8565 (PRIuGRUB_UINT32_T): Likewise.
8566 (PRIxGRUB_UINT64_T): Likewise.
8567
8568 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8569
8570 Implement loading palette on ieee1275_fb.
8571
8572 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
8573 (have_setcolors): Likewise.
8574 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
8575 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
8576 (grub_video_ieee1275_set_palette): Implement.
8577
8578 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8579 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
8580
8581 * util/grub-install.in (grub_partition): New variable.
8582 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
8583 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
8584 Fixes a bug reported by Yves Blusseau.
8585
8586 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 Fix emu on mipsel.
8589
8590 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
8591 =grub_cpu_flush_cache on all mips and not only yeeloong.
8592 * configure.ac (COND_mips): New conditional.
8593 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
8594 platforms.
8595 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
8596 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
8597 [GRUB_LINKER_HAVE_INIT]: New function.
8598 (grub_emu_post_init): Likewise.
8599 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
8600 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
8601 * include/grub/cache.h (_mips): Include mips/cache.h.
8602 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
8603 LVM and RAID prototypes.
8604 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
8605 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
8606 function.
8607
8608 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
8609
8610 * util/grub-install.in: Don't try to verify core.img until after
8611 running grub-mkimage to create it.
8612
8613 2010-09-10 Robert Millan <rmh@gnu.org>
8614
8615 * util/grub.d/10_hurd.in: Add misc readability checks.
8616 * util/grub.d/10_kfreebsd.in: Likewise.
8617 * util/grub.d/10_linux.in: Likewise.
8618
8619 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
8620
8621 * util/grub-install.in: ${imgext} won't be defined here until the
8622 install branch is merged. For the meantime, only verify core.img on
8623 i386-pc and sparc64-ieee1275 platforms.
8624
8625 2010-09-10 Robert Millan <rmh@gnu.org>
8626
8627 Solaris support in grub_find_zpool_from_dir(). Thanks
8628 Seth Goldberg for referring to getextmntent() facility.
8629
8630 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
8631 `sys/mkdev.h'.
8632 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
8633 `<sys/mnttab.h>'.
8634 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
8635 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
8636 method for finding zpool name.
8637
8638 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
8639
8640 grub-fstest needs the host and hostfs modules while other utilities
8641 actively require those modules to be absent, so grub-fstest needs
8642 its own initialisation and finalisation code.
8643
8644 * Makefile.am (grub_fstest.pp): New target.
8645 (grub_fstest_init.lst): Likewise.
8646 (grub_fstest_init.c): Likewise.
8647 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
8648
8649 2010-09-10 Robert Millan <rmh@gnu.org>
8650
8651 * configure.ac: Check for `struct statfs.f_fstypename' and
8652 `struct statfs.f_mntfromname'.
8653
8654 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
8655 kFreeBSD-specific code.
8656
8657 2010-09-10 Robert Millan <rmh@gnu.org>
8658
8659 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
8660 on ZFS. Now non-main filesystems are supported as / too.
8661
8662 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
8663
8664 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
8665 and grub-core/disk/host.c to ...
8666 (grub-fstest): ... here. Having the host disk implementation
8667 present confuses grub-probe and other utility programs.
8668
8669 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
8670 when writing to a file, not when writing to stdout.
8671
8672 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
8673
8674 * tests/partmap_test.in: New test for partitions.
8675 * Makefile.util.def: Rules for new test.
8676
8677 2010-09-09 Robert Millan <rmh@gnu.org>
8678
8679 * util/grub-probe.c (probe): Fix a pair of unhandled error
8680 conditions.
8681
8682 2010-09-09 Robert Millan <rmh@gnu.org>
8683
8684 Basic Btrfs support (detection and UUID).
8685
8686 * grub-core/fs/btrfs.c: New file.
8687 * Makefile.util.def (library): Register btrfs.c.
8688 * grub-core/Makefile.core.def: Likewise.
8689
8690 2010-09-08 Robert Millan <rmh@gnu.org>
8691
8692 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
8693 with (optional) parameters to specify device and relative path.
8694 * util/grub-install.in: Use is_path_readable_by_grub() to
8695 verify readability of a few critical files.
8696 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
8697 verify readability of grub.cfg.new.
8698
8699 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 Split minix.mod into minix.mod and minix2.mod.
8702
8703 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
8704 * grub-core/Makefile.core.def (minix2): New module.
8705 * grub-core/fs/minix.c: Use definitions instead of runtime version
8706 checking.
8707 * grub-core/fs/minix2.c: New file.
8708
8709 2010-09-08 Yves Blusseau <blusseau@zetam.org>
8710
8711 Add new --boot-directory option to replace --root-directory
8712
8713 * util/grub-install.in: Add new --boot-directory option
8714 * util/grub-reboot.in: Likewise.
8715 * util/grub-set-default.in: Likewise.
8716
8717 2010-09-08 Yves Blusseau <blusseau@zetam.org>
8718
8719 * util/grub-mkconfig.in: Use new variable.
8720
8721 2010-09-08 Yves Blusseau <blusseau@zetam.org>
8722
8723 * configure.ac: Define some useful variables.
8724
8725 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
8726
8727 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8728 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
8729 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
8730 Use terminfo and don't use cursor-on/cursor-off unless it's known
8731 to work.
8732 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
8733 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
8734
8735 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
8736
8737 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
8738 starts with "(,", fill the drive containing the loaded image in
8739 between those two characters, but expect that a full partition
8740 specification including partition map names will follow.
8741
8742 2010-09-08 Robert Millan <rmh@gnu.org>
8743
8744 * configure.ac: Remove `--enable-grub-fstest' option.
8745 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
8746
8747 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
8748 `grub-fstest' instead of `grub-probe' for readability verification.
8749 * util/grub-probe.c (probe): Remove readability verification kludge.
8750
8751 2010-09-08 Robert Millan <rmh@gnu.org>
8752
8753 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
8754 initializing `GRUB_FS'.
8755
8756 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
8757
8758 Not command (!) support to GRUB script.
8759
8760 * tests/grub_script_not.in: New test.
8761 * Makefile.util.def: Rules for new test.
8762
8763 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
8764 ! command as a special case.
8765 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
8766
8767 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
8768
8769 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
8770 grub_free.
8771
8772 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
8773
8774 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
8775
8776 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
8777
8778 * docs/grub.texi (Shell-like scripting): Documentation for break,
8779 continue, shift and return commands.
8780
8781 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
8782
8783 Rename CD-ROM to cd on BIOS.
8784
8785 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
8786 "cd".
8787 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
8788
8789 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8790
8791 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
8792 * util/grub-probe.c (main): Likewise.
8793 * util/i386/pc/grub-setup.c (main): Likewise.
8794 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
8795 Reported and debugged by: alexxy
8796
8797 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8798
8799 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
8800 diagnostic info.
8801
8802 2010-09-05 Jo Shields <directhex@apebox.org>
8803
8804 * util/grub.d/30_os-prober.in: Add missing classes.
8805
8806 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8807
8808 * docs/grub.texi (Theme file format): Document new position format.
8809
8810 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
8813 a table. Use @code instead of @verbatim.
8814
8815 2010-09-05 Colin D Bennett <colin@gibibit.com>
8816
8817 Gfxmenu documentation.
8818
8819 * docs/grub.texi (Theme file format): New chapter.
8820
8821 2010-09-05 Szymon Janc <szymon@janc.net.pl>
8822
8823 * grub-core/Makefile.core.def (xzio): New module.
8824 * grub-core/io/xzio.c: New file.
8825 * grub-core/lib/xzembed/xz.h: New file (from xembed).
8826 * grub-core/lib/xzembed/xz_config.h: Likewise.
8827 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
8828 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
8829 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
8830 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
8831 * grub-core/lib/xzembed/xz_private.h: Likewise.
8832 * grub-core/lib/xzembed/xz_stream.h: Likewise.
8833 * include/grub/file.h (grub_file_filter_id): New compression filter
8834 GRUB_FILE_FILTER_XZIO.
8835
8836 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
8839 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
8840 size.
8841
8842 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
8845 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
8846
8847 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 Uncompressed checksum support.
8850
8851 * grub-core/commands/hashsum.c (options): Add option --uncompress.
8852 (check_list): New parameter uncompress.
8853 (grub_cmd_hashsum): Handle --uncompress.
8854
8855 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8856
8857 Reintroduce testload.
8858
8859 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
8860 from here ...
8861 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
8862 (GRUB_MOD_INIT): New function.
8863 (GRUB_MOD_FINI): Likewise.
8864 * grub-core/Makefile.core.def (testload): New module.
8865
8866 2010-09-05 Szymon Janc <szymon@janc.net.pl>
8867
8868 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
8869 (uint8_t): New type.
8870 (uint16_t): Likewise.
8871 (uint32_t): Likewise.
8872 (uint64_t): Likewise.
8873
8874 2010-09-05 Szymon Janc <szymon@janc.net.pl>
8875
8876 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
8877
8878 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8879
8880 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
8881 Made static.
8882 (grub_gzfile_open): Removed. All users updated.
8883 (GRUB_MOD_INIT): New function.
8884 (GRUB_MOD_FINI): Likewise.
8885 * grub-core/kern/file.c (grub_file_filters_all): New variable.
8886 (grub_file_filters_enabled): Likewise.
8887 (grub_file_open): Handle filters.
8888 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
8889 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
8890 * include/grub/file.h (grub_file_filter_id_t): New type.
8891 (grub_file_filter_t): Likewise.
8892 (grub_file_filters_all): New extern variable.
8893 (grub_file_filters_enabled): Likewise.
8894 (grub_file_filter_register): New inline function.
8895 (grub_file_filter_unregister): Likewise.
8896 (grub_file_filter_disable): Likewise.
8897 (grub_file_filter_disable_compression): Likewise.
8898 * include/grub/gzio.h: Removed.
8899
8900 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8901
8902 Filename expansion support for wildcards in GRUB script.
8903
8904 * tests/grub_script_expansion.in: New test.
8905 * Makefile.util.def: Rule for new test.
8906
8907 * grub-core/commands/wildcard.c: New file, implements filename
8908 expansion support for GRUB script.
8909 * grub-core/Makefile.core.def: Rule update for regexp.mod.
8910 * grub-core/script/argv.c: Cosmetic changes.
8911 * grub-core/script/execute.c (grub_script_arglist_to_argv):
8912 Refactored to perform wildcard expansion on arguments.
8913 * include/grub/script_sh.h (grub_script_wildcard_translator): New
8914 struct.
8915
8916 * tests/util/grub-shell.in: Fix quoting for read input.
8917
8918 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8919
8920 Support for updating environment variables with matched substrings
8921 of regexp.
8922
8923 * tests/grub_cmd_regexp.in: New test.
8924 * Makefile.util.def: Rule for new test.
8925
8926 * grub-core/commands/regexp.c: New option -s to update environment
8927 variables with regexp matches.
8928
8929 2010-09-04 Szymon Janc <szymon@janc.net.pl>
8930
8931 * include/grub/file.h (grub_file): New member not_easly_seekable.
8932 (grub_file_seekable): New inline function.
8933 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
8934 easily seekable.
8935 (grub_gzio_open): Set not_easly_seekable.
8936 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
8937 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
8938
8939 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8940
8941 Support for options to appear multiple times on cmdline.
8942
8943 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
8944 * grub-core/commands/extcmd.c: Support for repeatable option.
8945 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
8946 repeatable option support.
8947
8948 Refactor menuentry into a regular command.
8949
8950 * grub-core/commands/menuentry.c: New file, menuentry command
8951 implementation.
8952 * grub-core/Makefile.core.def: Rule update for normal.mod.
8953 * grub-core/normal/main.c: Moved menuentry creation to
8954 grub-core/commands/menuentry.c.
8955 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
8956 (grub_menu_execute_entry_real): Removed.
8957 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
8958 function.
8959 (grub_script_execute_menuentry): Removed.
8960 * grub-core/script/parser.y (menuentry): Removed.
8961 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
8962 * grub-core/script/yylex.l (menuentry): Removed.
8963 * include/grub/menu.h (grub_menu_init): New prototype.
8964 (grub_menu_fini): New prototype.
8965 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
8966 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
8967 (grub_script_execute_sourcecode): New prototype.
8968
8969 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8970
8971 "return" command for GRUB script functions.
8972
8973 * tests/grub_script_return.in: New test.
8974 * Makefile.util.def: Rules for new test.
8975
8976 * grub-core/script/execute.c (grub_script_return): New function.
8977 * grub-core/script/main.c: Register/unregister return commaond.
8978 * include/grub/script_sh.h (grub_script_return): New prototype.
8979
8980 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8981
8982 "setparams" command to update positional parameters.
8983
8984 * tests/grub_script_setparams.in: New test.
8985 * Makefile.util.def: Rules for new test.
8986
8987 * grub-core/script/argv.c (grub_script_argv_make): New function.
8988 * grub-core/script/execute.c (replace_scope): New function.
8989 (grub_script_setparams): New function.
8990 * grub-core/script/lexer.c: Remove unused variables.
8991 * grub-core/script/main.c: Register/unregister setparams command.
8992 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
8993 (grub_script_setparams): New prototype.
8994
8995 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8996
8997 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
8998 grub_free order.
8999
9000 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9001
9002 Support for passing block of commands as an argument to extcmds.
9003
9004 * Makefile.util.def: Rules for new test.
9005 * tests/grub_script_blockarg.in: New test.
9006 * grub-core/tests/test_blockarg.c: New file, block argument
9007 command used in the test.
9008
9009 * include/grub/extcmd.h (grub_extcmd_context): New struct.
9010 (grub_register_extcmd_prio): New function prototype.
9011 (grub_extcmd_dispatcher): New function prototype.
9012 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
9013 type.
9014 * include/grub/script_sh.h (struct grub_script): New members
9015 `children', `next_siblings' and `refcnt' for block arguments and
9016 reference counting.
9017 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
9018 (grub_script_arg): New member `script' for block argument.
9019 (grub_script_argv): New member `script' for block argument.
9020 (grub_parser_param): New member `scripts' for block argument.
9021 (grub_script_mem_free): New extern function prototype.
9022 (grub_script_ref): New function prototype.
9023 (grub_script_unref): New function prototype.
9024
9025 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
9026 extcmd form to support block arguments.
9027 * grub-core/script/argv.c: Block arguments support.
9028 * grub-core/script/execute.c: Likewise.
9029 * grub-core/script/lexer.c: Likewise.
9030 * grub-core/script/main.c: Likewise.
9031 * grub-core/script/script.c: Likewise.
9032 * grub-core/script/parser.y: Likewise. New `block' and `block0'
9033 non-terminals.
9034
9035 * grub-core/commands/acpi.c: Update extcmd implementations with
9036 grub_extcmd_context_t.
9037 * grub-core/commands/cat.c: Likewise.
9038 * grub-core/commands/echo.c: Likewise.
9039 * grub-core/commands/extcmd.c: Likewise.
9040 * grub-core/commands/hashsum.c: Likewise.
9041 * grub-core/commands/hdparm.c: Likewise.
9042 * grub-core/commands/help.c: Likewise.
9043 * grub-core/commands/hexdump.c: Likewise.
9044 * grub-core/commands/i386/cpuid.c: Likewise.
9045 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9046 * grub-core/commands/i386/pc/halt.c: Likewise.
9047 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9048 * grub-core/commands/iorw.c: Likewise.
9049 * grub-core/commands/keystatus.c: Likewise.
9050 * grub-core/commands/loadenv.c: Likewise.
9051 * grub-core/commands/ls.c: Likewise.
9052 * grub-core/commands/lspci.c: Likewise.
9053 * grub-core/commands/memrw.c: Likewise.
9054 * grub-core/commands/probe.c: Likewise.
9055 * grub-core/commands/search_wrap.c: Likewise.
9056 * grub-core/commands/setpci.c: Likewise.
9057 * grub-core/commands/sleep.c: Likewise.
9058 * grub-core/disk/loopback.c: Likewise.
9059 * grub-core/hello/hello.c: Likewise.
9060 * grub-core/loader/i386/bsd.c: Likewise.
9061 * grub-core/loader/xnu.c: Likewise.
9062 * grub-core/term/gfxterm.c: Likewise.
9063 * grub-core/term/serial.c: Likewise.
9064 * grub-core/tests/lib/functional_test.c: Likewise.
9065
9066 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9067
9068 Multi-line quoted strings support.
9069
9070 * grub-core/script/lexer.c (append_newline): Removed.
9071 (grub_script_lexer_yywrap): Refactored.
9072 (grub_script_lexer_init): Refactored.
9073 * grub-core/script/yylex.l (yywrap): New function.
9074 (grub_lexer_resplit): New function.
9075 (grub_lexer_unput): New function.
9076 * include/grub/script_sh.h (grub_lexer_param): New members, unput
9077 and resplit.
9078 * tests/grub_script_echo1.in: Added few more testcases.
9079
9080 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 * grub-core/kern/misc.c: Don't add abort alias in utils.
9083 Reported by: echoline.
9084
9085 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
9086
9087 Add missing files into "make dist" tarball for other platforms.
9088
9089 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
9090 * conf/Makefile.common (dist_noinst_DATA): New variable.
9091 * conf/Makefile.extra-dist: Added missing make dist files.
9092 * grub-core/Makefile.core.def: Likewise.
9093
9094 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
9095
9096 Compress grub_prefix.
9097
9098 * grub-core/boot/i386/pc/lnxboot.S: Use
9099 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
9100 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
9101 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
9102 GRUB_MACHINE_PREFIX_END. All users updated.
9103 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
9104 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
9105 + 0x40.
9106 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9107 * util/grub-mkimage.c (image_target_desc): Change data_end to
9108 prefix_end. All users updated.
9109
9110 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
9113 value.
9114 (grub_openbsd_boot): Likewise.
9115 (grub_netbsd_boot): Likewise.
9116 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
9117 (grub_xnu_boot): Likewise.
9118
9119 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9120
9121 * configure.ac: Clean LIBS variable after tests.
9122
9123 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9124
9125 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
9126
9127 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
9130 echo if libdevmapper will be used.
9131
9132 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
9133
9134 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
9135 constant for the same file.
9136
9137 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
9140
9141 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9142
9143 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
9144 grub-core/*.pp.
9145
9146 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9147
9148 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
9149 required by the boot protocol.
9150
9151 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
9152 ebp and edi members.
9153 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
9154 state.ebp and state.edi.
9155 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
9156 %ebp and %edi according to grub_relocator32_ebp and
9157 grub_relocator32_edi respectively.
9158 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
9159 and state.edi.
9160
9161 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9162
9163 Add i386-pc-pxe image target.
9164
9165 * util/grub-mkimage.c (image_target_desc): New enum value
9166 IMAGE_I386_PC_PXE.
9167 (image_targets): New target i386-pc-pxe.
9168 (generate_image): Handle i386-pc-pxe image.
9169
9170 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9171
9172 Fix grub_pxe_scan.
9173
9174 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
9175 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
9176 All users updated.
9177 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
9178 (grub_pxe_pxenv): Correct type.
9179
9180 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9181
9182 * NEWS: Document most of the important changes since 1.98.
9183
9184 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9185
9186 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
9187 generated manual page) a little.
9188
9189 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9190
9191 * docs/grub.texi: Add myself as an author.
9192
9193 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
9194
9195 * Makefile.util.def (libgrub.a): Add missing sunpc.
9196 Reported by: Seth Goldberg.
9197
9198 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9199
9200 Interrupt wrapping and code simplifications.
9201
9202 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
9203 x86_noieee1275 which are functionaly equivalent in this case.
9204 (grub-install): Make source on each platform explicit. Enable on
9205 all noemu.
9206 * gentpl.py (x86_efi_pc): Removed group.
9207 (x86_noefi): Likewise.
9208 (i386_noefi): Likewise.
9209 (x86_noieee1275): Likewise.
9210 (i386_noieee1275): Likewise.
9211 (i386_noefi_noieee1275): Likewise.
9212 (i386_pc_qemu_coreboot): Likewise.
9213 (i386_coreboot_multiboot): Likewise.
9214 (i386_pc_coreboot_multiboot_qemu): Likewise.
9215 (x86_noefi_mips): Likewise.
9216 (noieee1275): Likewise.
9217 (ieee1275_mips): Likewise.
9218 (noemu_noieee1275): Likewise.
9219 (cmos): New group.
9220 (usb): Likewise.
9221 (videoinkernel): Likewise.
9222 (videomodules): Likewise.
9223 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9224 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
9225 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
9226 include/grub/loader.h, include/grub/msdos_partition.h,
9227 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
9228 include/grub/machine/console.h, include/grub/machine/vga.h,
9229 include/grub/machine/vbe.h, include/grub/machine/init.h,
9230 include/grub/machine/kernel.h, include/grub/cpu/time.h,
9231 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
9232 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9233 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
9234 * grub-core/Makefile.core.def (kernel): Explicit the source for
9235 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
9236 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
9237 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
9238 Use videoinkernel tag.
9239 (usb): Enable on all usb.
9240 (usbserial_common): Likewise.
9241 (usbserial_pl2303): Likewise.
9242 (usbserial_ftdi): Likewise.
9243 (uhci): Enable on all x86.
9244 (ohci): Enable on all pci.
9245 (cmostest): Enable on all CMOS.
9246 (acpi): Include commands/acpi.c on all platforms.
9247 (halt): Add relevant lib/*/halt.c.
9248 (hdparm): Enable on all pci.
9249 (lspci): Likewise.
9250 (usbtest): Enable on all usb.
9251 (ata): Enable on all pci.
9252 (ata_pthru): Likewise.
9253 (usbms): Enable on all usb.
9254 (usb_keyboard): Likewise.
9255 (font): Use tag videomodules.
9256 (bufio): Likewise.
9257 (datetime): Use tag cmos. Enable on all noemu.
9258 (mmap): Use tags common and x86.
9259 (gfxterm): Use tag videomodules.
9260 (bitmap): Likewise.
9261 (bitmap_scale): Likewise.
9262 (video_fb): Likewise.
9263 (video): Likewise.
9264 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
9265 adjust padding accordingly. All users updated.
9266 (grub_ohci_transaction): Fix bad format specification.
9267 (GRUB_MOD_INIT): Add asserts for struct size.
9268 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
9269 (grub_alloc_td): Likewise.
9270 (grub_free_queue): Likewise.
9271 (grub_uhci_transfer): Likewise.
9272 (grub_uhci_transaction): Fix bad format specification.
9273 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
9274 (grub_usb_bulk_readwrite): Likewise.
9275 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
9276 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
9277 Made static.
9278 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
9279 Made static.
9280 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
9281 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
9282 Transformed into C.
9283 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
9284 Moved from here ...
9285 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
9286 ... here. Transformed into C. Made static.
9287 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
9288 Moved from here ...
9289 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
9290 ... here. Transformed into C. Made static.
9291 * grub-core/kern/i386/pc/startup.S
9292 (grub_biosdisk_check_int13_extensions): Moved from here ...
9293 * grub-core/disk/i386/pc/biosdisk.c
9294 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
9295 Made static.
9296 * grub-core/kern/i386/pc/startup.S
9297 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
9298 * grub-core/disk/i386/pc/biosdisk.c
9299 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
9300 Transformed into C. Made static.
9301 * grub-core/kern/i386/pc/startup.S
9302 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
9303 * grub-core/disk/i386/pc/biosdisk.c
9304 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
9305 Transformed into C. Made static.
9306 * grub-core/kern/i386/pc/startup.S
9307 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
9308 * grub-core/disk/i386/pc/biosdisk.c
9309 (grub_biosdisk_get_diskinfo_standard): ... here.
9310 Transformed into C. Made static.
9311 * grub-core/kern/i386/pc/startup.S
9312 (grub_biosdisk_get_num_floppies): Moved from here ...
9313 * grub-core/disk/i386/pc/biosdisk.c
9314 (grub_biosdisk_get_num_floppies): ... here.
9315 Transformed into C. Made static.
9316 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
9317 New function.
9318 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
9319 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
9320 Transformed into C. Made static.
9321 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
9322 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
9323 Transformed into C. Made static.
9324 * grub-core/kern/i386/ieee1275/init.c: Removed.
9325 * grub-core/kern/i386/misc.S: Likewise.
9326 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
9327 Splitted from here ...
9328 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
9329 Transformed into C. Made static. All users updated.
9330 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
9331 Transformed into C. Made static. All users updated.
9332 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
9333 Moved from here...
9334 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
9335 Transformed into C. Made static. All users updated.
9336 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
9337 Moved from here...
9338 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
9339 Transformed into C. Made static. All users updated.
9340 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
9341 Removed (replaced by C version).
9342 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
9343 Moved from here...
9344 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
9345 Transformed into C. Made static.
9346 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
9347 Moved from here...
9348 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
9349 ... here. Transformed into C.
9350 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
9351 Moved from here...
9352 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
9353 ... here. Transformed into C.
9354 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
9355 Moved from here...
9356 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
9357 ... here. Transformed into C. Made static.
9358 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
9359 Moved from here...
9360 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
9361 ... here. Transformed into C.
9362 * grub-core/kern/i386/pc/startup.S
9363 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
9364 * grub-core/video/i386/pc/vbe.c
9365 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9366 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
9367 Moved from here...
9368 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
9369 ... here. Transformed into C.
9370 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
9371 Moved from here...
9372 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
9373 ... here. Transformed into C.
9374 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
9375 Moved from here...
9376 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
9377 ... here. Transformed into C.
9378 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
9379 Moved from here...
9380 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
9381 ... here. Transformed into C.
9382 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
9383 Moved from here...
9384 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
9385 ... here. Transformed into C. Made static.
9386 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
9387 Moved from here...
9388 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
9389 ... here. Transformed into C. Made static.
9390 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
9391 Moved from here...
9392 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
9393 ... here. Transformed into C. Made static.
9394 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
9395 pxe_rm_entry as third argument.
9396 (grub_bios_interrupt): New function.
9397 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
9398 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
9399 of calling grub_stop.
9400 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
9401 * grub-core/lib/efi/halt.c (grub_halt): ...here.
9402 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
9403 * grub-core/lib/emu/halt.c (grub_halt): ... here.
9404 * grub-core/lib/i386/halt.c: Moved from here ...
9405 * grub-core/lib/i386/halt.c: ... here.
9406 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
9407 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
9408 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
9409 grub_stop_floppy.
9410 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
9411 * include/grub/i386/coreboot/init.h: Removed.
9412 * include/grub/i386/multiboot/init.h: Likewise.
9413 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
9414 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
9415 * include/grub/i386/pc/int.h: New file.
9416 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
9417 (grub_pxe_scan): Removed.
9418 (grub_pxe_call): Update prototype.
9419 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
9420 prototypes.
9421 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
9422 * include/grub/i386/qemu/init.h: Removed.
9423 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
9424 noreturn.
9425 (grub_halt): Likewise.
9426 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
9427 (grub_reboot): Likewise.
9428 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
9429 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
9430 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
9431
9432 2010-08-30 Robert Millan <rmh@gnu.org>
9433
9434 * NEWS: Document addition of ZFS support in `grub-install' and
9435 `grub-mkconfig'.
9436
9437 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
9438
9439 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
9440 dprintf output.
9441
9442 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 Remove leftover embedding of font objects.
9445
9446 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
9447 * util/grub-install.in (font): Removed.
9448 * util/grub-mkimage.c (generate_image): Remove font support. All users
9449 updated.
9450
9451 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 Remove leftover embedding of font objects.
9454
9455 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
9456 * util/grub-install.in (font): Removed.
9457 * util/grub-mkimage.c (generate_image): Remove font support. All users
9458 updated.
9459
9460 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * docs/grub.texi (Network): Fix reference to pxe_blksize.
9463 Reported by: Ian Turner
9464
9465 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9466
9467 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
9468 timeout to avoid indefinite boot stalling.
9469
9470 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9471
9472 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
9473 (grub_env_write_color_highlight): Likewise.
9474
9475 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9476
9477 * grub-core/normal/term.c (print_more): Return to normal and not
9478 to standard state after printing "---MORE---".
9479
9480 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
9483 Mask out the bit 0x80 since it has other meaning that specifiing color.
9484
9485 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9486
9487 New relocator. Allows for more kernel support and more straightforward
9488 loader writing.
9489
9490 * Makefile.am (BOOTTARGET): New variable.
9491 (QEMU32): Likewise.
9492 (linux.init.x86_64): New target.
9493 (linux.init.i386): Likewise.
9494 (multiboot.elf): Likewise.
9495 (kfreebsd.elf): Likewise.
9496 (kfreebsd.aout): Likewise.
9497 (pc-chainloader.elf): Likewise.
9498 (pc-chainloader.bin): Likewise.
9499 (ntldr.elf): Likewise.
9500 (ntldr.bin): Likewise.
9501 (multiboot2.elf): Likewise.
9502 (kfreebsd.init.x86_64): Likewise.
9503 (kfreebsd.init.i386): Likewise.
9504 (knetbsd.init.i386): Likewise.
9505 (kopenbsd.init.i386): Likewise.
9506 (knetbsd.init.x86_64): Likewise.
9507 (kopenbsd.init.x86_64): Likewise.
9508 (linux-initramfs.i386): Likewise.
9509 (linux-initramfs.x86_64): Likewise.
9510 (kfreebsd-mfsroot.i386.img): Likewise.
9511 (knetbsd.image.i386): Likewise.
9512 (kopenbsd.image.i386): Likewise.
9513 (kopenbsd.image.x86_64): Likewise.
9514 (knetbsd.miniroot-image.i386.img): Likewise.
9515 (kfreebsd-mfsroot.x86_64.img): Likewise.
9516 (knetbsd.image.x86_64): Likewise.
9517 (knetbsd.miniroot-image.x86_64.img): Likewise.
9518 (kfreebsd-mfsroot.i386.gz): Likewise.
9519 (bootcheck-kfreebsd-i386): Likewise.
9520 (kfreebsd-mfsroot.x86_64.gz): Likewise.
9521 (bootcheck-kfreebsd-x86_64): Likewise.
9522 (knetbsd.miniroot-image.i386.gz): Likewise.
9523 (bootcheck-knetbsd-i386): Likewise.
9524 (bootcheck-kopenbsd-i386): Likewise.
9525 (bootcheck-kopenbsd-x86_64): Likewise.
9526 (knetbsd.miniroot-image.x86_64.gz): Likewise.
9527 (bootcheck-knetbsd-x86_64): Likewise.
9528 (bootcheck-linux-i386): Likewise.
9529 (bootcheck-linux-x86_64): Likewise.
9530 (bootcheck-linux16-i386): Likewise.
9531 (bootcheck-linux16-x86_64): Likewise.
9532 (bootcheck-multiboot): Likewise.
9533 (bootcheck-multiboot2): Likewise.
9534 (bootcheck-kfreebsd-aout): Likewise.
9535 (bootcheck-pc-chainloader): Likewise.
9536 (bootcheck-ntldr): Likewise.
9537 (CLEANFILES): Add new targets.
9538 (BOOTCHECKS): New variable.
9539 (.PHONY): Add bootchecks.
9540 (SUCCESSFUL_BOOT_STRING): New variable.
9541 (BOOTCHECK_TIMEOUT): Likewise.
9542 (bootcheck): New target
9543 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
9544 * configure.ac: Correct efiemu excuse.
9545 * docs/grub.texi (Supported kernels): New chapter.
9546 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
9547 include/grub/mm_private.h. Simplify inclusion of
9548 include/grub/boot.h, include/grub/loader.h
9549 and include/grub/msdos_partition.h
9550 (KERNEL_HEADER_FILES) [i386_coreboot]:
9551 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
9552 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
9553 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
9554 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
9555 include/grub/machine/loader.h.
9556 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
9557 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
9558 extra_dist.
9559 (pci.mod): Enable on i386-multiboot.
9560 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
9561 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
9562 i386-qemu.
9563 (relocator.mod): Rewritten.
9564 (aout.mod): Enable on all x86.
9565 (bsd.mod): Likewise.
9566 (ntldr.mod): New module.
9567 (linux.mod): Use loader/i386/linux.c on all x86.
9568 (xnu.mod): Enable on all x86.
9569 (vga_text.mod): disable on EFI and QEMU.
9570 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
9571 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
9572 * grub-core/efiemu/loadcore.c: Likewise.
9573 * grub-core/efiemu/main.c: Likewise.
9574 (grub_efiemu_exit_boot_services): Removed.
9575 (grub_efiemu_finish_boot_services): Likewise.
9576 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
9577 function.
9578 * grub-core/efiemu/i386/nocfgtables.c: New file.
9579 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
9580 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
9581 (grub_efi_finish_boot_services): Moved from here ...
9582 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
9583 Fille finish memory map and related data.
9584 (finish_mmap_buf): New variable.
9585 (grub_efi_uintn_t finish_mmap_size): Likewise.
9586 (grub_efi_uintn_t finish_key): Likewise.
9587 (grub_efi_uintn_t finish_desc_size): Likewise.
9588 (grub_efi_uint32_t finish_desc_version): Likewise.
9589 (grub_efi_is_finished): Likewise.
9590 (grub_efi_get_memory_map): Use saved memory map if EFI is already
9591 finished.
9592 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
9593 (grub_elf64_phdr_iterate): Likewise.
9594 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
9595 (grub_os_area_size): Likewise.
9596 (grub_machine_init): Don't reserve os area.
9597 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
9598 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
9599 * grub-core/kern/i386/loader.S: Removed.
9600 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
9601 (grub_os_area_size): Likewise.
9602 (grub_machine_init): Don't reserve os area.
9603 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9604 Don't call grub_dl_unload_all.
9605 Don't include loader.S.
9606 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
9607 Declare the memory after _end as available.
9608 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
9609 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
9610 (GRUB_MM_ALLOC_MAGIC): Moved from here...
9611 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
9612 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
9613 * include/grub/mm_private.h (grub_mm_header): ... here.
9614 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
9615 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
9616 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
9617 (grub_mm_region): ..here. Removed addr. Added pre_size.
9618 All users updated.
9619 * grub-core/kern/mm.c (base): Renamed to ...
9620 (grub_mm_base): ... this. Made global.
9621 (grub_real_malloc): Alloc from end of region.
9622 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
9623 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
9624 * grub-core/kern/powerpc/cache_flush.S: ... here.
9625 * grub-core/lib/efi/relocator.c: New file.
9626 * grub-core/lib/i386/relocator.c: Rewritten.
9627 * grub-core/lib/i386/relocator16.S: New file.
9628 * grub-core/lib/i386/relocator32.S: Likewise.
9629 * grub-core/lib/i386/relocator64.S: Likewise.
9630 * grub-core/lib/i386/relocator_asm.S: Rewritten.
9631 * grub-core/lib/i386/relocator_common.S: New file.
9632 * grub-core/lib/ieee1275/relocator.c: Likewise.
9633 * grub-core/lib/mips/relocator.c: Rewritten.
9634 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
9635 stylistic adjustments.
9636 * grub-core/lib/powerpc/relocator.c: New file.
9637 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
9638 * grub-core/lib/relocator.c: Rewritten.
9639 * grub-core/lib/x86_64/relocator_asm.S: New file.
9640 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
9641 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
9642 (bsd_tag): New struct.
9643 (tags): New variable.
9644 (tags_last): Likewise.
9645 (netbsd_module): New struct.
9646 (netbsd_mods): New variable.
9647 (netbsd_mods_last): Likewise.
9648 (openbsd_opts): New parameter "serial".
9649 (OPENBSD_SERIAL_ARG): New definition.
9650 (netbsd_opts): New parameter "serial".
9651 (NETBSD_SERIAL_ARG): New definition.
9652 (grub_freebsd_add_meta): Reorganised into ...
9653 (grub_bsd_add_meta): ...this. All users updated.
9654 (grub_freebsd_add_mmap): Reorganised into ...
9655 (generate_e820_mmap): ...this...
9656 (grub_bsd_add_mmap): ...and this. All users updated.
9657 (grub_freebsd_list_modules): Use tags.
9658 (grub_netbsd_add_meta_module): New function.
9659 (grub_netbsd_list_modules): Likewise.
9660 (grub_freebsd_boot): Use relocator and finish EFI.
9661 (grub_openbsd_boot): Likewise.
9662 (grub_netbsd_setup_video): New function.
9663 (grub_netbsd_add_modules): Likewise.
9664 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
9665 and finish EFI.
9666 (grub_bsd_unload): Unload tags.
9667 (grub_bsd_load_aout): Use relocator.
9668 (grub_bsd_elf32_size_hook): New function.
9669 (grub_bsd_elf32_hook): Use relocator.
9670 (grub_bsd_elf64_size_hook): New function.
9671 (grub_bsd_elf64_hook): Use relocator.
9672 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
9673 (grub_bsd_load): Zero-out openbsd_ramdisk.
9674 (grub_bsd_load): Use relocator.
9675 (grub_cmd_openbsd): Support serial.
9676 (grub_cmd_netbsd): Support modules.
9677 (grub_cmd_freebsd_module): Use relocator.
9678 (grub_netbsd_module_load): New function.
9679 (grub_cmd_netbsd_module): Likewise.
9680 (grub_cmd_openbsd_ramdisk): Likewise.
9681 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
9682 kopenbsd_ramdisk.
9683 (GRUB_MOD_FINI): Unregister new commands.
9684 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
9685 (grub_freebsd_load_elfmodule_obj): Use relocator.
9686 (grub_freebsd_load_elfmodule): Likewise.
9687 (grub_freebsd_load_elf_meta): Likewise.
9688 (grub_netbsd_load_elf_meta): New function.
9689 (grub_openbsd_find_ramdisk): Likewise.
9690 * grub-core/loader/i386/bsd_helper.S: Removed.
9691 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
9692 * grub-core/loader/i386/bsd_trampoline.S: Removed.
9693 * grub-core/loader/i386/efi/linux.c: Likewise.
9694 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
9695 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
9696 (DEFAULT_VIDEO_MODE): Likewise.
9697 (real_mode_target): New variable.
9698 (prot_mode_target): Likewise.
9699 (initrd_mem_target): Likewise.
9700 (relocator): Likewise.
9701 (efi_mmap_buf): Likewise.
9702 (efi_mmap_size): Likewise.
9703 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
9704 (free_pages): Use relocator.
9705 (allocate_pages): Account for efi_mmap and use relocator. Return error.
9706 (grub_linux_setup_video): Return error.
9707 (grub_linux_trampoline_start): Removed.
9708 (grub_linux_trampoline_end): Likewise.
9709 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
9710 andd video parameters depending on firmware.
9711 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
9712 [GRUB_MACHINE_EFI]: Pass EFI parameters.
9713 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
9714 (grub_cmd_initrd): Use relocator.
9715 * grub-core/loader/i386/linux_trampoline.S: Removed.
9716 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
9717 (elf_sec_entsize): Likewise.
9718 (elf_sec_shstrndx): Likewise.
9719 (elf_sections): Likewise.
9720 (grub_multiboot_load): Use relocator.
9721 (grub_multiboot_get_mbi_size): Account for sections.
9722 (grub_multiboot_make_mbi): Use relocator and support sections.
9723 (grub_multiboot_add_elfsyms): New function.
9724 (grub_multiboot_free_mbi): Free sections.
9725 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
9726 (grub_linux_real_target): Likewise.
9727 (grub_linux_real_chunk): Likewise.
9728 (grub_linux16_prot_size): Likewise.
9729 (grub_linux16_boot): Use relocator.
9730 (grub_linux_unload): Unload relocator.
9731 (grub_cmd_linux): Use relocator.
9732 (grub_cmd_initrd): Likewise.
9733 * grub-core/loader/i386/pc/ntldr.c: New file.
9734 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
9735 Don't try to guess CPU frequency.
9736 (grub_xnu_set_video): Stretch bitmap.
9737 (grub_xnu_boot): Use relocator.
9738 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
9739 (grub_linux_unload): Free relocator.
9740 (grub_linux_load32): Use relocator.
9741 (grub_linux_load64): Likewise.
9742 (grub_cmd_initrd): Likewise.
9743 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
9744 (grub_multiboot_unload): Unload relocator.
9745 (grub_cmd_multiboot): Use relocator.
9746 (grub_cmd_module): Likewise.
9747 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
9748 Use relocator and support sections.
9749 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
9750 (elf_sec_entsize): Likewise.
9751 (elf_sec_shstrndx): Likewise.
9752 (elf_sections): Likewise.
9753 (grub_multiboot_load): Use relocator.
9754 (grub_multiboot_get_mbi_size): Account for sections.
9755 (grub_multiboot_make_mbi): Use relocator and support sections.
9756 (grub_multiboot_add_elfsyms): New function.
9757 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
9758 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
9759 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
9760 Prototype changed. All users updated.
9761 (grub_xnu_align_heap): Simplified.
9762 (grub_xnu_writetree_toheap): Likewise.
9763 (grub_xnu_unload): Unload relocator.
9764 (grub_cmd_xnu_kernel): Use relocator.
9765 (grub_cmd_xnu_kernel64): Likewise.
9766 (grub_xnu_register_memory): Simplified.
9767 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
9768 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
9769 EFI is finished.
9770 (grub_console_checkkey): Likewise.
9771 (grub_console_getkey): Likewise.
9772 (grub_console_getwh): Likewise.
9773 (grub_console_getxy): Likewise.
9774 (grub_console_gotoxy): Likewise.
9775 (grub_console_cls): Likewise.
9776 (grub_console_setcolorstate): Likewise.
9777 (grub_console_setcursor): Likewise.
9778 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
9779 * grub-core/tests/boot/kbsd.init-i386.S: New file.
9780 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
9781 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
9782 * grub-core/tests/boot/kernel-8086.S: Likewise.
9783 * grub-core/tests/boot/kernel-i386.S: Likewise.
9784 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
9785 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
9786 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
9787 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
9788 * grub-core/tests/boot/knetbsd.cfg: Likewise.
9789 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
9790 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
9791 * grub-core/tests/boot/linux.cfg: Likewise.
9792 * grub-core/tests/boot/linux.init-i386.S: Likewise.
9793 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
9794 * grub-core/tests/boot/linux16.cfg: Likewise.
9795 * grub-core/tests/boot/multiboot.cfg: Likewise.
9796 * grub-core/tests/boot/multiboot2.cfg: Likewise.
9797 * grub-core/tests/boot/ntldr.cfg: Likewise.
9798 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
9799 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
9800 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
9801 New definition.
9802 * include/grub/dl.h (grub_dl_unload_all): Removed.
9803 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
9804 (grub_efi_finish_boot_services): Change prototype.
9805 (grub_efi_is_finished): New variable.
9806 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
9807 Changed prototype.
9808 (grub_efiemu_finish_boot_services): Removed.
9809 (grub_machine_efiemu_init_tables): New prototype.
9810 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
9811 (grub_elf64_phdr_iterate): Likewise.
9812 * include/grub/i386/bsd.h: Include relocator.h.
9813 (freebsd_tag_header): New struct.
9814 (grub_openbsd_bios_mmap): Removed.
9815 (grub_unix_real_boot): Removed.
9816 (grub_freebsd_load_elfmodule32): Changed prototype.
9817 (grub_freebsd_load_elfmodule_obj64): Likewise.
9818 (grub_freebsd_load_elf_meta32): Likewise.
9819 (grub_freebsd_load_elf_meta64): Likewise.
9820 (grub_freebsd_add_meta): Removed.
9821 (grub_netbsd_load_elf_meta32): New prototype.
9822 (grub_netbsd_load_elf_meta64): Likewise.
9823 (grub_bsd_add_meta): Likewise.
9824 (grub_openbsd_ramdisk_descriptor): New struct.
9825 (grub_openbsd_find_ramdisk32): New prototype.
9826 (grub_openbsd_find_ramdisk64): Likewise.
9827 * include/grub/i386/coreboot/loader.h: Removed.
9828 * include/grub/i386/efi/loader.h: Likewise.
9829 * include/grub/i386/ieee1275/loader.h: Likewise.
9830 * include/grub/i386/linux.h (linux_kernel_header): Change void *
9831 to grub_uint32_t.
9832 * include/grub/i386/loader.h: Removed.
9833 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
9834 value.
9835 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
9836 (grub_phys_addr_t): New type.
9837 (grub_vtop): New inline function.
9838 (grub_map_memory): Likewise.
9839 (grub_unmap_memory): Likewise.
9840 * include/grub/i386/multiboot/loader.h: Removed.
9841 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
9842 (NETBSD_BTINFO_CONSOLE): New definition.
9843 (NETBSD_BTINFO_SYMTAB): Likewise.
9844 (NETBSD_BTINFO_MODULES): Likewise.
9845 (NETBSD_BTINFO_FRAMEBUF): Likewise.
9846 (grub_netbsd_bootinfo): New struct.
9847 (grub_netbsd_btinfo_common): Use explicit bitsize.
9848 (grub_netbsd_btinfo_mmap_entry): Removed.
9849 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
9850 (grub_netbsd_btinfo_bootdisk): New struct.
9851 (grub_netbsd_btinfo_symtab): Likewise.
9852 (grub_netbsd_btinfo_serial): Likewise.
9853 (grub_netbsd_btinfo_modules): Likewise.
9854 (grub_netbsd_btinfo_framebuf): Likewise.
9855 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
9856 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
9857 Likewise.
9858 (grub_openbsd_bootargs): Use explicit bitsize.
9859 (grub_openbsd_bootarg_console): New struct.
9860 (GRUB_OPENBSD_COM_MAJOR): New definition.
9861 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
9862 * include/grub/i386/pc/efiemu.h: Removed.
9863 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
9864 * include/grub/i386/qemu/loader.h: Removed.
9865 * include/grub/i386/relocator.h: Rewritten.
9866 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
9867 * include/grub/mips/memory.h: New file.
9868 * include/grub/mips/multiboot.h: Rewritten.
9869 * include/grub/mips/relocator.h: Rewritten.
9870 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
9871 (grub_vtop): New function.
9872 (grub_map_memory): Likewise.
9873 (grub_unmap_memory): Likewise.
9874 * include/grub/misc.h (ALIGN_DOWN): New definition.
9875 * include/grub/mm.h (grub_mm_check_real): New proto.
9876 (GRUB_MM_CHECK): New definition.
9877 * include/grub/mm_private.h: New file.
9878 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
9879 (grub_multiboot_get_mbi_size): Removed.
9880 (grub_multiboot_make_mbi): Change prottype.
9881 (grub_multiboot_set_accepts_video): New proto.
9882 (grub_multiboot_add_elfsyms): Likewise.
9883 (grub_multiboot_payload_eip): New variable.
9884 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
9885 New prototype.
9886 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
9887 New definition.
9888 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
9889 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
9890 * include/grub/powerpc/ieee1275/loader.h: Removed.
9891 * include/grub/powerpc/memory.h: New file.
9892 * include/grub/powerpc/relocator.h: Likewise.
9893 * include/grub/relocator.h: Likewise.
9894 * include/grub/relocator_private.h: Likewise.
9895 * include/grub/sparc64/ieee1275/loader.h: Removed.
9896 * include/grub/x86_64/memory.h: New file.
9897 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
9898 (grub_xnu_heap_malloc): Likewise.
9899 (grub_xnu_heap_real_start): Removed.
9900 (grub_xnu_heap_start): Likewise.
9901 (grub_xnu_relocator): New variable.
9902 (grub_xnu_heap_target_start): Likewise.
9903 * tests/util/grub-shell.in: Support non-pc.
9904 * util/grub-mkimage.c (image_targets): Fix multiboot target.
9905
9906 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9907
9908 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
9909 on malloc error.
9910 (grub_bidi_logical_to_visual): Check that malloc succeded.
9911 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
9912 puts.
9913 (grub_xputs_normal): Likewise.
9914
9915 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9916
9917 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
9918 extra_dist.
9919
9920 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9921
9922 * grub-core/efiemu/runtime/efiemu.sh: Removed.
9923
9924 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
9927
9928 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9929
9930 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
9931 dprintf.
9932
9933 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
9934
9935 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
9936
9937 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9938
9939 * grub-core/normal/term.c (print_more): Fix a memory leak.
9940 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
9941 (grub_xputs_normal): Likewise.
9942
9943 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9944
9945 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
9946 the begining of the string
9947
9948 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * grub-core/script/script.c (grub_script_parse): Free parsed on
9951 failure.
9952
9953 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9954
9955 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
9956 on failure.
9957
9958 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
9961 return.
9962
9963 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9964
9965 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
9966 (scroll_up): Fix a memory leak.
9967
9968 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9969
9970 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
9971 errors.
9972
9973 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
9974
9975 Handle USB pendrives exposed as floppies.
9976
9977 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
9978 floppy.
9979 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9980 Check for partitions on all devices.
9981
9982 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9983
9984 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
9985 (readkey): Likewise.
9986
9987 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
9988
9989 Multiple variable names support to "export" command.
9990
9991 * normal/context.c (grub_cmd_export): "export" command supports
9992 multiple variable names.
9993
9994 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
9995
9996 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
9997 --target=drive output to Mach device name.
9998
9999 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10000
10001 New Automake based build system for GRUB.
10002
10003 * ABOUT-NLS: New file.
10004 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
10005 in Makefile.util.def file.
10006 * Makefile.util.def: New file. Autogen build definitions file for
10007 GRUB host utils.
10008 * conf/Makefile.common: New file. Common variables for GRUB host
10009 utils and target modules.
10010 * conf/Makefile.extra-dist: New file. Extra files for make dist.
10011 * docs/Makefile.am: New file. Automake file for docs.
10012 * gentpl.py: New file. Python script to generate Autogen
10013 template.
10014 * grub-core/Makefile.am: New file. GRUB target modules' rules
10015 that doesn't fit in Makefile.core.def file.
10016 * grub-core/Makefile.core.def: New file. Autogen build
10017 definitions file for GRUB target modules.
10018 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
10019 specific setjmp.S file.
10020 * po/Makefile.am: New file.
10021
10022 * .bzrignore: New ignores.
10023 * INSTALL: New requirements, without Ruby.
10024 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
10025 * autogen.sh: Updated to invoke autogen as necessary.
10026 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
10027 and defines for Automake conditionals.
10028 * geninit.sh: Refactoring.
10029
10030 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
10031 necessary.
10032 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
10033 New prototype.
10034
10035 * include/grub/test.h: Fix functional test modules' naming.
10036 * grub-core/tests/example_functional_test.c: Fix test module name.
10037
10038 * util/misc.c: Hosted versions' of grub functions for libgrub.a
10039 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
10040 * util/grub-editenv.c: Likewise.
10041 * util/grub-fstest.c: Likewise.
10042 * util/grub-mkdevicemap.c: Likewise.
10043 * util/grub-mkfont.c: Likewise.
10044 * util/grub-mkimage.c: Likewise.
10045 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10046 * util/grub-probe.c: Likewise.
10047 * util/grub-script-check.c: Likewise.
10048 * util/i386/pc/grub-setup.c: Likewise.
10049 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10050
10051 * tests/util/grub-shell.in: Fix override directory path.
10052 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
10053 * util/import_gcry.py: Create Makefile.gcry.def file instead.
10054
10055 * util/lvm.c: Update #includes.
10056 * util/raid.c: Likewise.
10057 * util/resolve.c: Likewise.
10058 * grub-core/bus/emu/pci.c: Likewise.
10059 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
10060 * grub-core/lib/posix_wrap/string.h: Likewise.
10061 * grub-core/kern/emu/main.c: Likewise.
10062
10063 * grub-core/gensymlist.sh: New file. Script for generating kernel
10064 symbols file.
10065 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
10066
10067 * grub-core/gentrigtables.c: Fix unused variable warnings.
10068
10069 * Makefile.in: Removed.
10070 * conf/any-emu.rmk: Removed.
10071 * conf/common.rmk: Removed.
10072 * conf/i386-coreboot.rmk: Removed.
10073 * conf/i386-efi.rmk: Removed.
10074 * conf/i386-ieee1275.rmk: Removed.
10075 * conf/i386-multiboot.rmk: Removed.
10076 * conf/i386-pc.rmk: Removed.
10077 * conf/i386-qemu.rmk: Removed.
10078 * conf/i386.rmk: Removed.
10079 * conf/mips-yeeloong.rmk: Removed.
10080 * conf/mips.rmk: Removed.
10081 * conf/powerpc-ieee1275.rmk: Removed.
10082 * conf/sparc64-ieee1275.rmk: Removed.
10083 * conf/tests.rmk: Removed.
10084 * conf/x86-efi.rmk: Removed.
10085 * conf/x86_64-efi.rmk: Removed.
10086 * gendistlist.sh: Removed.
10087 * geninitheader.sh: Removed.
10088 * genkernsyms.sh.in: Removed.
10089 * genmk.rb: Removed.
10090 * gensymlist.sh.in: Removed.
10091 * mkinstalldirs: Removed.
10092 * boot: Moved ...
10093 * grub-core/boot: ... to here.
10094 * bus: Moved ...
10095 * grub-core/bus: ... to here.
10096 * commands: Moved ...
10097 * grub-core/commands: ... to here.
10098 * disk: Moved ...
10099 * grub-core/disk: ... to here.
10100 * efiemu: Moved ...
10101 * grub-core/efiemu: ... to here.
10102 * font: Moved ...
10103 * grub-core/font: ... to here.
10104 * fs: Moved ...
10105 * grub-core/fs: ... to here.
10106 * gencmdlist.sh: Moved ...
10107 * grub-core/gencmdlist.sh: ... to here.
10108 * genemuinit.sh: Moved ...
10109 * grub-core/genemuinit.sh: ... to here.
10110 * genemuinitheader.sh: Moved ...
10111 * grub-core/genemuinitheader.sh: ... to here.
10112 * genfslist.sh: Moved ...
10113 * grub-core/genfslist.sh: ... to here.
10114 * genhandlerlist.sh: Moved ...
10115 * grub-core/genhandlerlist.sh: ... to here.
10116 * genmoddep.awk: Moved ...
10117 * grub-core/genmoddep.awk: ... to here.
10118 * genmodsrc.sh: Moved ...
10119 * grub-core/genmodsrc.sh: ... to here.
10120 * genpartmaplist.sh: Moved ...
10121 * grub-core/genpartmaplist.sh: ... to here.
10122 * genparttoollist.sh: Moved ...
10123 * grub-core/genparttoollist.sh: ... to here.
10124 * genterminallist.sh: Moved ...
10125 * grub-core/genterminallist.sh: ... to here.
10126 * gentrigtables.c: Moved ...
10127 * grub-core/gentrigtables.c: ... to here.
10128 * genvideolist.sh: Moved ...
10129 * grub-core/genvideolist.sh: ... to here.
10130 * gettext: Moved ...
10131 * grub-core/gettext: ... to here.
10132 * gfxmenu: Moved ...
10133 * grub-core/gfxmenu: ... to here.
10134 * gnulib: Moved ...
10135 * grub-core/gnulib: ... to here.
10136 * hello: Moved ...
10137 * grub-core/hello: ... to here.
10138 * hook: Moved ...
10139 * grub-core/hook: ... to here.
10140 * io: Moved ...
10141 * grub-core/io: ... to here.
10142 * kern: Moved ...
10143 * grub-core/kern: ... to here.
10144 * lib: Moved ...
10145 * grub-core/lib: ... to here.
10146 * loader: Moved ...
10147 * grub-core/loader: ... to here.
10148 * mmap: Moved ...
10149 * grub-core/mmap: ... to here.
10150 * normal: Moved ...
10151 * grub-core/normal: ... to here.
10152 * partmap: Moved ...
10153 * grub-core/partmap: ... to here.
10154 * parttool: Moved ...
10155 * grub-core/parttool: ... to here.
10156 * script: Moved ...
10157 * grub-core/script: ... to here.
10158 * term: Moved ...
10159 * grub-core/term: ... to here
10160 * tests/example_functional_test.c: Moved ...
10161 * grub-core/tests/example_functional_test.c: ... to here.
10162 * tests/lib/functional_test.c: Moved ...
10163 * grub-core/tests/lib/functional_test.c: ... to here.
10164 * tests/lib/test.c: Moved ...
10165 * grub-core/tests/lib/test.c: ... to here.
10166 * video: Moved ...
10167 * grub-core/video: ... to here.
10168
10169 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10170
10171 Replace --enable-grub-emu-modules with grub-emu-lite.
10172
10173 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
10174 cache.S.
10175
10176 * include/grub/emu/misc.h (grub_emu_init): New prototype.
10177 * kern/emu/full.c: New file. For grub-emu specific initialization.
10178 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
10179 * kern/emu/main.c: Call initialization function grub_emu_init.
10180
10181 * Makefile.in: Include grub-emu-lite in install.
10182 * commands/parttool.c: Use grub_no_autoload to differentiate
10183 between grub-emu and grub-emu-lite.
10184 * include/grub/misc.h: New variable grub_no_autoload.
10185
10186 * conf/any-emu.rmk: New rules for grub-emu-lite.
10187 * configure.ac: Remove --enable-grub-emu-modules.
10188 * genmk.rb: Cleanup unnecessary rules.
10189 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
10190
10191 * normal/main.c: Don't load list files on grub-emu-lite.
10192 * util/misc.c (grub_arch_sync_caches): Removed.
10193
10194 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
10195
10196 * kern/mips/startup.S (grub_prefix): Update comment to refer to
10197 grub-mkimage rather than grub-mkelfimage.
10198 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10199
10200 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
10201
10202 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
10203 a key after CapsLock or NumLock. It's just a qemu bug.
10204
10205 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
10206
10207 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
10208 needed by libusb wrapper.
10209
10210 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
10211
10212 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
10213
10214 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
10217 --nounzip is passed.
10218
10219 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 USB hotunplugging and USB serial support.
10222
10223 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
10224 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
10225 (grub_uhci_transfer): Respect timeout and set *actual.
10226 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
10227 non-standard length.
10228 (grub_usb_device_attach): Autoload modules.
10229 (GRUB_MOD_INIT): Set grub_term_poll_usb.
10230 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
10231 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
10232 users updated.
10233 (grub_usb_add_hub): Fill nports and children.
10234 (attach_root_port): Receive hub instead of controller.
10235 All users updated. Fill hub->devices.
10236 (grub_usb_root_hub): Allocate hub->devices.
10237 (detach_device): New function.
10238 (poll_nonroot_hub): Fill children and detach devices.
10239 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
10240 actual arguments. All users updated.
10241 (grub_usb_bulk_read_extended): New function.
10242 * bus/usb/serial/common.c: New file.
10243 * bus/usb/serial/ftdi.c: Likewise.
10244 * bus/usb/serial/pl2303.c: Likewise.
10245 * commands/terminal.c (handle_command): Support wildcard.
10246 * commands/usbtest.c: Output "Unknown" instead of empty string.
10247 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
10248 (usbserial_common_mod_SOURCES): New variable.
10249 (usbserial_common_mod_CFLAGS): Likewise.
10250 (usbserial_common_mod_LDFLAGS): Likewise.
10251 (pkglib_MODULES): Add usbserial_pl2303.mod.
10252 (usbserial_pl2303_mod_SOURCES): New variable.
10253 (usbserial_pl2303_mod_CFLAGS): Likewise.
10254 (usbserial_pl2303_mod_LDFLAGS): Likewise.
10255 (pkglib_MODULES): Add usbserial_ftdi.mod.
10256 (usbserial_ftdi_mod_SOURCES): New variable.
10257 (usbserial_ftdi_mod_CFLAGS): Likewise.
10258 (usbserial_ftdi_mod_LDFLAGS): Likewise.
10259 (pkglib_MODULES): Add serial.mod.
10260 (serial_mod_SOURCES): New variable.
10261 (serial_mod_CFLAGS): Likewise.
10262 (serial_mod_LDFLAGS): Likewise.
10263 * conf/i386-pc.rmk: Likewise.
10264 * conf/mips-yeeloong.rmk: Likewise.
10265 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
10266 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
10267 * disk/usbms.c (first_available_slot): New variable.
10268 (grub_usbms_attach): Don't reuse free slots due to potential cache
10269 problems.
10270 * include/grub/serial.h: Moved to ..
10271 * include/grub/ns8250.h: ...this.
10272 * include/grub/serial.h: New file.
10273 * include/grub/term.h (grub_term_poll_usb): New variable.
10274 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
10275 readkey. All users updated.
10276 (grub_terminfo_output_state): Pass term to put.
10277 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
10278 (grub_usb_controller_dev): Add timeout and actual arguments to
10279 transfer. All users updated.
10280 (grub_usb_interface): New field detach_data.
10281 (grub_usb_device): New fields children and nports.
10282 (grub_usb_ep_type_t): New type.
10283 (grub_usb_get_ep_type): New function.
10284 (grub_usb_bulk_read_extended): Likewise.
10285 * include/grub/usbdesc.h (grub_usb_desc): New type.
10286 * include/grub/usbserial.h: New file.
10287 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
10288 * kern/term.c (grub_term_poll_usb): New variable.
10289 (grub_getkey): Call grub_term_poll_usb if set.
10290 (grub_checkkey): Likewise.
10291 (grub_getkeystatus): Likewise.
10292 * term/serial.c: Moved controller-specific parts to ...
10293 * term/ns8250.c: ... here.
10294 * term/serial.c: Mostly rewritten.
10295 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
10296 according to spec.
10297
10298 2010-08-20 Robert Millan <rmh@gnu.org>
10299
10300 Make kFreeBSD code more generic to support ext2fs as root, ufs as
10301 a separate module and maybe other interesting combinations.
10302
10303 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
10304 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
10305 (kfreebsd_entry): Add generic filesystem module load routine.
10306 Map GRUB `ext2' to kFreeBSD `ext2fs'.
10307
10308 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
10309
10310 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
10311 "numcenter" (I misunderstood the purpose of this entry).
10312 * docs/grub.texi (sendkey): Likewise.
10313
10314 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
10315
10316 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
10317 status flag options; simply omitting the option is equivalent and
10318 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
10319 (keysym_table): Rename "num5numlock" to "numlock".
10320 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
10321 can uniformly say that only the last of multiple `sendkey'
10322 invocations has any effect.
10323 * docs/grub.texi (sendkey): New section.
10324
10325 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
10326
10327 * commands/i386/pc/sendkey.c (options): Fix three typos.
10328
10329 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10330
10331 Implement sendkey support.
10332
10333 * commands/i386/pc/sendkey.c: New file.
10334 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
10335 (sendkey_mod_SOURCES): New variable.
10336 (sendkey_mod_CFLAGS): Likewise.
10337 (sendkey_mod_LDFLAGS): Likewise.
10338
10339 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
10340
10341 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
10342 fix warnings from Autoconf.
10343
10344 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
10345
10346 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
10347 to avoid false positives with some assemblers that output things
10348 like "someprefix_func" as part of their output.
10349
10350 2010-08-15 Robert Millan <rmh@gnu.org>
10351
10352 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
10353 errors.
10354 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
10355 grub_get_libzfs_handle() errors.
10356
10357 2010-08-14 Robert Millan <rmh@gnu.org>
10358
10359 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
10360 filesystem is not ZFS.
10361
10362 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10363
10364 Fix for misspelled color names defaulting to black/black (bug
10365 reported by Doug Nazar)
10366
10367 * include/grub/normal.h (grub_parse_color_name_pair): Add return
10368 status to prototype.
10369 * normal/color.c (grub_parse_color_name_pair): Return failure
10370 status.
10371 (grub_env_write_color_normal): Ignore bad color names.
10372 (grub_env_write_color_highlight): Likewise.
10373 * normal/main.c (GRUB_MOD_INIT): Set default color names.
10374
10375 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10376
10377 "shift" command support to GRUB script.
10378
10379 * include/grub/script_sh.h (grub_script_shift): New prototype.
10380 * script/execute.c (grub_script_shift): New function.
10381 * script/main.c (grub_script_init): Register shift command.
10382 (grub_script_fini): Unregister shift command.
10383 * util/grub-script-check.c (grub_script_cmd_shift): New function.
10384
10385 * tests/grub_script_shift.in: New testcase.
10386 * conf/tests.rmk: Rules for new testcase.
10387
10388 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10389
10390 "continue" command support to GRUB script.
10391
10392 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
10393 (grub_script_break): Continue support.
10394 * script/main.c (grub_script_init): Register continue command.
10395 (grub_script_fini): Unregister continue command.
10396
10397 * tests/grub_script_continue.in: New testcase.
10398 * conf/tests.rmk: Rules for new testcase.
10399
10400 2010-08-12 BVK Chaitanya <bvk@dbook>
10401
10402 "break" command support to GRUB script.
10403
10404 * conf/common.rmk: Rule updates to grub-script-check.
10405 * include/grub/misc.h (grub_min): New function.
10406 * include/grub/script_sh.h (grub_script_init): New prototype.
10407 (grub_script_fini): New prototype.
10408 (grub_script_break): New prototype.
10409 * script/main.c (grub_script_init): New function.
10410 (grub_script_fini): New function.
10411 * script/execute.c (grub_script_break): New function.
10412 * normal/main.c: Calls to grub_script_{init,fini}.
10413 * util/grub-script-check.c (grub_script_break): New function.
10414
10415 * tests/grub_script_break.in: New testcase.
10416 * conf/tests.rmk: Rules for new test case.
10417
10418 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10419
10420 Function parameters support to GRUB script.
10421
10422 * script/yylex.l (VARIABLE): Regular expression update.
10423 * script/function.c (grub_script_function_call): Moved ...
10424 * script/execute.c (grub_script_function_call): ... to here.
10425 (grub_script_execute_arglist_to_argv): Removed.
10426 (grub_script_arglist_to_argv): New function.
10427 * script/argv.c: New file.
10428 (grub_script_argv_free): New function.
10429 (grub_script_argv_next): Likewise.
10430 (grub_script_argv_append): Likewise.
10431 (grub_script_argv_split_append): Likewise.
10432 * include/grub/script_sh.h (grub_script_argv): New struct.
10433 (grub_script_argv_free): New function.
10434 (grub_script_argv_next): Likewise.
10435 (grub_script_argv_append): Likewise.
10436 (grub_script_argv_split_append): Likewise.
10437
10438 * conf/common.rmk (normal.mod): New source script/argv.c.
10439
10440 * tests/grub_script_echo1.in: More tests.
10441 * tests/grub_script_vars1.in: Likewise.
10442 * tests/grub_script_functions.in: New test case.
10443 * conf/tests.rmk: Rules for new testcase.
10444
10445 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10446
10447 Remove grub_script_cmdblock struct.
10448
10449 * include/grub/script_sh.h: Remove grub_script_cmdblock.
10450 * script/parser.y: Likewise.
10451 * script/execute.c: Rename cmdblock suffix to cmdlist.
10452 * script/script.c: Likewise.
10453 * util/grub-script-check.c: Likewise.
10454
10455 2010-08-11 Yves Blusseau <blusseau@zetam.org>
10456
10457 * .bzrignore: add grub-macho2img
10458
10459 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
10460
10461 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
10462
10463 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
10464
10465 Remove the dump of sm712 initialisation sequence.
10466
10467 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
10468 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
10469 (GRUB_VGA_IO_MISC_WRITE): Likewise.
10470 (GRUB_VGA_CR_*): Added many registers.
10471 (GRUB_VGA_SR_*): Likewise.
10472 (GRUB_VGA_GR_*): Likewise.
10473 (grub_vga_write_arx): New function.
10474 (grub_video_hw_config): New struct.
10475 (grub_vga_set_geometry): New function.
10476 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
10477 GRUB_PCI_CLASS_SUBCLASS_VGA.
10478 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
10479 * video/sm712.c (grub_sm712_write_reg): New function
10480 (grub_sm712_read_reg): Likewise.
10481 (grub_sm712_sr_write): Likewise.
10482 (grub_sm712_gr_write): Likewise.
10483 (grub_sm712_cr_write): Likewise.
10484 (grub_sm712_write_arx): Likewise.
10485 (grub_sm712_cr_shadow_write): Likewise.
10486 (grub_sm712_write_dda_lookup): Likewise.
10487 (grub_video_sm712_setup): Initialise the video rather then
10488 blindly replay the dump.
10489 (main) [TEST]: Add a routine to be able to compile as standalone for
10490 tests.
10491 * video/sm712_init.c (sm712_init): Removed.
10492 (sm712_sr_seq1): New array.
10493 (sm712_sr_seq2): Likewise.
10494
10495 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
10496
10497 * include/grub/vga.h: Add missing grub/pci.h include.
10498
10499 2010-08-10 Yves Blusseau <blusseau@zetam.org>
10500
10501 * util/grub-macho2img.c (main): fix typo
10502
10503 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
10504
10505 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
10506 (grub_vga_gr_read): Likewise.
10507 (grub_vga_cr_write): Likewise.
10508 (grub_vga_cr_read): Likewise.
10509 (grub_vga_sr_write): Likewise.
10510 (grub_vga_sr_read): Likewise.
10511 (grub_vga_palette_read): Likewise.
10512 (grub_vga_palette_write): Likewise.
10513 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
10514 (grub_sm712_sr_read): New function.
10515 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
10516 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
10517
10518 2010-08-09 Robert Millan <rmh@gnu.org>
10519
10520 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
10521 out unused variables on non-ZFS build.
10522
10523 2010-08-08 Robert Millan <rmh@gnu.org>
10524
10525 Fix path generation for sub-filesystems in ZFS.
10526
10527 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
10528 missing slash.
10529
10530 2010-08-08 Robert Millan <rmh@gnu.org>
10531
10532 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
10533
10534 2010-08-08 Robert Millan <rmh@gnu.org>
10535
10536 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
10537 exist, issue a proper error message (rely on `ls' for translated
10538 strings).
10539
10540 2010-08-08 Robert Millan <rmh@gnu.org>
10541
10542 Fix grub-probe invocation.
10543
10544 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
10545
10546 2010-08-04 Robert Millan <rmh@gnu.org>
10547
10548 * configure.ac: Remove checks for getfsstat() and getmntany().
10549 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
10550 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
10551 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
10552 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
10553 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
10554 function.
10555 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
10556 via find_mount_point_from_dir() and getfsstat() / getmntany().
10557
10558 2010-08-04 Robert Millan <rmh@gnu.org>
10559
10560 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
10561 (grub_find_zpool_from_mount_point): Merge into ...
10562 (grub_find_zpool_from_dir): ... this.
10563 * kern/emu/misc.c: Likewise.
10564
10565 * kern/emu/misc.c
10566 (grub_make_system_path_relative_to_its_root): Replace
10567 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
10568 with grub_find_zpool_from_dir().
10569 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
10570
10571 2010-08-04 Robert Millan <rmh@gnu.org>
10572
10573 Support OpenSolaris in ZFS device resolution.
10574
10575 * configure.ac: Check for getmntany().
10576 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
10577 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
10578 support.
10579
10580 2010-08-03 Robert Millan <rmh@gnu.org>
10581
10582 Fix grub-emu build.
10583
10584 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
10585 * include/grub/emu/misc.h: ... here.
10586
10587 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
10588 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
10589
10590 * util/misc.c: Remove `<grub/util/libzfs.h>'.
10591 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
10592 (grub_get_libzfs_handle): Move to ...
10593 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
10594 (grub_get_libzfs_handle): ... here.
10595
10596 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
10597
10598 * script/execute.c (grub_script_execute_cmdline): Check for NULL
10599 as command name case.
10600
10601 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
10602
10603 * disk/raid.c (insert_array): Select unique numbers for named arrays
10604 as well, for use as keys in the disk cache.
10605
10606 2010-08-01 Robert Millan <rmh@gnu.org>
10607
10608 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
10609 kFreeBSD device name, except on ZFS where the filesystem label is
10610 used.
10611 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
10612 `/boot/zfs/zpool.cache'.
10613 Set mountfrom kernel variable using ${kfreebsd_device}.
10614
10615 2010-08-01 Robert Millan <rmh@gnu.org>
10616
10617 Make it even harder to use uninitialized `libzfs_handle' (and
10618 make the interface a bit simpler).
10619
10620 * include/grub/util/misc.h (grub_util_init_libzfs)
10621 (libzfs_handle): Remove.
10622 (grub_get_libzfs_handle): New prototype.
10623
10624 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
10625 attribute.
10626 (grub_util_init_libzfs): Remove.
10627 (grub_get_libzfs_handle): New function.
10628
10629 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
10630 grub_get_libzfs_handle() to obtain a libzfs handle instead of
10631 accessing `libzfs_handle' directly.
10632
10633 2010-08-01 Robert Millan <rmh@gnu.org>
10634
10635 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
10636 (grub_find_zpool_from_mount_point): New function prototypes.
10637
10638 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
10639 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
10640
10641 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
10642 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
10643 `static' attribute.
10644
10645 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
10646 finding zpool from mount point into ...
10647 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
10648
10649 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
10650 requested path is part of a ZFS pool, use
10651 grub_find_zpool_from_mount_point() to detect its filesystem name,
10652 and generate a path with `/fsname@path' syntax.
10653
10654 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
10655
10656 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
10657 (void) rather than () so that this is a proper prototype.
10658
10659 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
10660
10661 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
10662
10663 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
10664
10665 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
10666 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
10667
10668 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
10669
10670 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
10671
10672 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
10673
10674 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
10675
10676 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
10677
10678 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
10679 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
10680 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
10681 disable gfxpayload.
10682 (Shell-like scripting): Add real content.
10683 (Serial terminal): Suggest `terminal_input serial; terminal_output
10684 serial' rather than putting the two commands on separate lines,
10685 since console input will be inoperative after the first command.
10686 (menuentry): Document --class, --users, and --hotkey options.
10687 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
10688 Vladimir Serbinenko).
10689
10690 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
10691 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
10692
10693 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
10694
10695 2010-08-01 Robert Millan <rmh@gnu.org>
10696
10697 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
10698 (grub_find_zpool_from_mount_point): New function prototypes.
10699
10700 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
10701 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
10702
10703 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
10704 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
10705 `static' attribute.
10706
10707 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
10708 finding zpool from mount point into ...
10709 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
10710
10711 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
10712 requested path is part of a ZFS pool, use
10713 grub_find_zpool_from_mount_point() to detect its filesystem name,
10714 and generate a path with `/fsname@path' syntax.
10715
10716 2010-08-01 Robert Millan <rmh@gnu.org>
10717
10718 Prevent accidental use of uninitialized libzfs_handle.
10719
10720 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
10721 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
10722 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
10723
10724 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
10725
10726 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
10727 util/grub.d/10_linux.in). Fixes Debian bug #591093.
10728
10729 2010-08-01 Robert Millan <rmh@gnu.org>
10730
10731 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
10732
10733 2010-07-31 Robert Millan <rmh@gnu.org>
10734
10735 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
10736
10737 2010-07-31 Robert Millan <rmh@gnu.org>
10738
10739 * kern/emu/misc.c: Add missing license header.
10740
10741 2010-07-31 Robert Millan <rmh@gnu.org>
10742
10743 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
10744
10745 * include/grub/util/libnvpair.h: Include `<config.h>'.
10746 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
10747 declaring libnvpair prototypes ourselves.
10748 * include/grub/util/libzfs.h: Include `<config.h>'.
10749 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
10750 declaring libzfs prototypes ourselves.
10751
10752 (libzfs_handle): Moved to ...
10753 * include/grub/util/misc.h (libzfs_handle): ... here.
10754 Include `<grub/util/libzfs.h>'.
10755
10756 2010-07-30 Robert Millan <rmh@gnu.org>
10757
10758 * include/grub/emu/misc.h: Add missing license header.
10759
10760 2010-07-30 Robert Millan <rmh@gnu.org>
10761
10762 Enable `grub-probe -t device' resolution on ZFS.
10763
10764 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
10765 * include/grub/util/libnvpair.h: New file.
10766 * include/grub/util/libzfs.h: New file.
10767
10768 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
10769 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
10770 `<grub/util/libnvpair.h>'.
10771 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
10772
10773 (find_mount_point_from_dir): New static function.
10774 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
10775 function.
10776 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
10777 find_root_device_from_libzfs() before ressorting to find_root_device().
10778
10779 * include/grub/util/misc.h (grub_util_init_libzfs): New function
10780 prototype.
10781 * util/misc.c: Include `<grub/util/libzfs.h>'.
10782 (grub_util_init_libzfs): New function.
10783 [HAVE_LIBZFS] (libzfs_handle): New global variable.
10784 [HAVE_LIBZFS] (fini_libzfs): New static function.
10785 (grub_util_init_libzfs): New function.
10786 * util/grub-probe.c (main): Call grub_util_init_libzfs().
10787
10788 2010-07-30 Robert Millan <rmh@gnu.org>
10789
10790 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
10791 (xmalloc, xrealloc, xstrdup, xasprintf): Add
10792 `warn_unused_result' attribute.
10793 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
10794 (grub_xasprintf, grub_xvasprintf): Likewise.
10795 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
10796
10797 2010-07-29 Robert Millan <rmh@gnu.org>
10798
10799 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
10800 (probe): Handle `PRINT_FS_LABEL'.
10801 (main): Handle `-t fs_label'.
10802
10803 2010-07-29 Robert Millan <rmh@gnu.org>
10804
10805 * configure.ac: Remove grub-mkisofs checks.
10806
10807 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 * util/ieee1275/grub-install.in: Don't use empty grub_device.
10810 Reported by: Lennart Sorensen.
10811
10812 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10813
10814 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
10815 prior to terminal_input/terminal_output separation. It's been over 1.5
10816 years and those versions weren't widely deployed.
10817
10818 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
10819
10820 * disk/raid.c (insert_array): Don't count named arrays when looking
10821 for unused array numbers.
10822 Reported and tested by: Michael Guntsche.
10823
10824 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
10825
10826 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
10827 implementation of this so that grub-emu links again, with a note
10828 that this should support hotplugging in the future.
10829
10830 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
10831
10832 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
10833
10834 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
10835
10836 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
10837 handle on failure.
10838 (grub_loopback_close): Remove empty function.
10839 (grub_loopback_dev): Remove close method.
10840
10841 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
10842
10843 Disable EFI cursor when the EFI console becomes inactive.
10844
10845 * term/efi/console.c (grub_efi_console_init): New function.
10846 (grub_efi_console_fini): New function.
10847 (grub_console_term_output): Register init and fini methods.
10848
10849 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10850
10851 * tests/util/grub-shell-tester.in: Remove bashism and declare as
10852 sh script.
10853
10854 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10855
10856 * disk/loopback.c (grub_loopback): Replace filename with file.
10857 (delete_loopback): Handle new semantics.
10858 (grub_cmd_loopback): Likewise.
10859 (grub_loopback_iterate): Likewise.
10860 (grub_loopback_close): Likewise.
10861
10862 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
10865 with -p "".
10866 Reported by: Tito Keitel.
10867
10868 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10869
10870 * docs/grub.texi (Naming convention): Document new naming convention.
10871
10872 2010-07-20 Vadim Solomin <vadic052@gmail.com>
10873 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
10874
10875 Generate device.map in something closer to the old ordering.
10876
10877 * util/deviceiter.c (struct device): New declaration.
10878 (compare_file_names): Rename to ...
10879 (compare_devices): ... this. Sort by kernel name in preference to
10880 the stable by-id name, but keep the latter as a fallback comparison.
10881 Update header comment.
10882 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
10883 of `struct device' rather than of plain file names.
10884
10885 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
10886
10887 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
10888 on i386.
10889
10890 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10891
10892 * commands/acpi.c (setup_common_tables): Use sizeof instead of
10893 hardcoding size.
10894 (setv1table): Likewise.
10895
10896 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
10897
10898 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
10899 removing the homehost if present.
10900 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
10901 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
10902 removing the homehost if present.
10903 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
10904 if possible.
10905 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
10906
10907 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
10908 parameter. Set its pointer target to 0.
10909 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
10910 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
10911 `data_offset' value from the superblock for 1.x metadata.
10912 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
10913 data on the device.
10914 (insert_array): Record the start sector of data on the device.
10915 (grub_raid_register): Pass start_sector parameters to
10916 grub_raid_list->detect and insert_array.
10917 * include/grub/raid.h (struct grub_raid_array): Add start_sector
10918 member.
10919 (struct grub_raid): Add start_sector parameter to `detect'.
10920
10921 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
10922 __attribute__ ((packed)), leaving a comment.
10923 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
10924 (grub_mdraid_detect_09): ... here and ...
10925 (grub_mdraid_detect_1x): ... here.
10926
10927 2010-07-20 Peter Henn <peter.henn@web.de>
10928
10929 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
10930 chunk size and disk size, which are already given as sector counts
10931 as distinct from the 0.90 units. Fetch the correct device number
10932 from the role table instead of using the table index.
10933
10934 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
10935
10936 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
10937 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
10938 (WriteMostly1): New macro.
10939 Set array->name to NULL for metadata format 0.90. Add support for
10940 metadata 1.x. Fix some comments.
10941 * disk/raid.c (): Add support for name based RAID arrays. Fix a
10942 few comments.
10943 * util/getroot.c (grub_util_get_grub_dev): Add support for
10944 /dev/md/name style devices.
10945
10946 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
10947
10948 * .bzrignore: Ignore 20_linux_xen.
10949
10950 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
10951
10952 * util/import_unicode.py: Remove unnecessary imports.
10953
10954 2010-07-17 Aleš Nesrsta <starous@volny.cz>
10955
10956 Hotplugging and USB hub support.
10957
10958 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
10959 (grub_ohci): Likewise.
10960 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
10961 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
10962 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
10963 (GRUB_OHCI_CTRL_EDS): Likewise.
10964 (GRUB_OHCI_BULK_EDS): Likewise.
10965 (GRUB_OHCI_TDS): Likewise.
10966 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
10967 (grub_ohci_ed_phys2virt): New function.
10968 (grub_ohci_virt_to_phys): Likewise.
10969 (grub_ohci_td_phys2virt): Likewise.
10970 (grub_ohci_td_virt2phys): Likewise.
10971 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
10972 attachment.
10973 (grub_ohci_find_ed): New function.
10974 (grub_ohci_alloc_td): Likewise.
10975 (grub_ohci_free_td): Likewise.
10976 (grub_ohci_free_tds): Likewise.
10977 (grub_ohci_transfer): Use previously allocated memory.
10978 (grub_ohci_portstatus): Reset status changed bit.
10979 (grub_ohci_detect_dev): Supply status changed.
10980 (grub_ohci_fini_hw): Free memory.
10981 (grub_ohci_restore_hw): Reallocate memory.
10982 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
10983 Reset status change.
10984 (grub_uhci_detect_dev): Supply status_change.
10985 * bus/usb/usb.c (attach_hooks): New var.
10986 (grub_usb_device_attach): New function.
10987 (grub_usb_register_attach_hook_class): Likewise.
10988 (grub_usb_unregister_attach_hook_class): Likewise.
10989 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
10990 (grub_usb_add_hub): Reset connection changed bit.
10991 (attach_root_port): New function.
10992 (grub_usb_root_hub): Likewise.
10993 (poll_nonroot_hub): Likewise.
10994 (grub_usb_poll_devices): Likewise.
10995 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
10996 * disk/usbms.c (grub_usbms_open): Use device hooks.
10997 (grub_usbms_iterate) :Poll devices.
10998 (grub_usbms_finddevs): Split into ...
10999 (grub_usbms_attach): ... this ...
11000 (grub_usbms_attach): ... and this.
11001 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
11002 in detect_dev.
11003 (grub_usb_interface): New fields attached and detach_hook.
11004 (grub_usb_attach_hook_class): New type.
11005 (grub_usb_attach_desc): New struct.
11006 (grub_usb_register_attach_hook_class): New function.
11007 (grub_usb_unregister_attach_hook_class): Likewise.
11008 (grub_usb_poll_devices): Likewise.
11009 (grub_usb_device_attach): Likewise.
11010 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
11011 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
11012
11013 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11014
11015 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
11016 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
11017 delta determination style. Works with most NetBSD partitions too.
11018
11019 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11020
11021 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
11022 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
11023
11024 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11025
11026 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
11027
11028 2010-07-14 Anton Blanchard <anton@samba.org>
11029
11030 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
11031 ET_DYN files.
11032
11033 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11034
11035 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
11036
11037 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11038
11039 * kern/partition.c (grub_partition_check_containment): New function to
11040 check that a partition is physically contained in a parent. Since
11041 offsets are relative (and non-negative), this reduces to checking that
11042 the partition ends before its parent.
11043 (grub_partition_map_probe): Discard out-of-range sub-partitions.
11044 (grub_partition_iterate): Likewise.
11045 * include/grub/partition.h (grub_partition_map): Slightly more detailed
11046 comments.
11047 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
11048 partitions that start before their parent, and add debug printfs.
11049
11050 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11051
11052 * Makefile.in (.SUFFIX): Spell correctly, as ...
11053 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
11054 bare module name without `.mod', e.g. `test') tried to invoke a
11055 Modula-2 compiler.
11056
11057 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11058
11059 * README: Point to the Info manual.
11060
11061 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
11062
11063 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
11064 2nd superblock position from partition size.
11065
11066 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
11067
11068 * Makefile.in (MAINTAINER_CLEANFILES): Remove
11069 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
11070 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
11071 outputs.
11072
11073 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 Restructure SCSI .id handling.
11076 Reported and tested by: Aleš Nesrsta.
11077
11078 * disk/ata.c (grub_atapi_close): Removed. All users updated.
11079 (grub_atapi_dev): Changed .name to "ata". New field .id.
11080 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
11081 (grub_usbms_dev): New field .id.
11082 * disk/scsi.c (grub_scsi_iterate): Generate name.
11083 (grub_scsi_open): Parse name.
11084 * include/grub/scsi.h (grub_make_scsi_id): New function.
11085 (grub_scsi_dev): Change iterate and open to number instead of naming
11086 busses. All users updated.
11087 (grub_scsi): Remove name. Add .bus.
11088
11089 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11090
11091 * commands/help.c (grub_cmd_help): Fix a typo.
11092
11093 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
11096 Reported and tested by: Colin Watson.
11097
11098 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11099
11100 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
11101 in this context.
11102
11103 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
11106
11107 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
11108
11109 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
11110 indentation.
11111
11112 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11113
11114 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
11115 and disk/raid6_recover.c.
11116 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11117 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
11118
11119 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11120
11121 * term/gfxterm.c (repaint_schedulded): Rename to ...
11122 (repaint_scheduled): ... this. Update all callers.
11123 (repaint_was_schedulded): Rename to ...
11124 (repaint_was_scheduled): ... this. Update all callers.
11125
11126 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11127
11128 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
11129 which we expect to be handled by upper layers.
11130
11131 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
11132
11133 * bus/usb/usbhub.c: #include time.h header.
11134
11135 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11136
11137 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
11138 entry_name also for entries without stat blocks (e.g. ".."); fixes
11139 corruption of the first entry in a directory.
11140
11141 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11142
11143 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
11144 after setting gfxterm as the active terminal. GRUB_BACKGROUND
11145 doesn't work otherwise.
11146
11147 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11148
11149 * docs/grub.texi (Features): Update list of supported file systems.
11150 (GNU/Linux): Update for GRUB 2.
11151 (Serial terminal): Remove mention of --disable-serial, which was a
11152 GRUB Legacy configure option. Update instructions to use
11153 `terminal_input' and `terminal_output' rather than `terminal'.
11154 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
11155 configuration' and `Installing GRUB using grub-install'.
11156 (Menu entry editor): Update for GRUB 2.
11157 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
11158 Document new -a, -u, and -v options.
11159 (initrd): New section.
11160 (initrd16): New section.
11161 (linux): New section.
11162 (linux16): New section.
11163 (search): The `var' argument to `--set' is optional.
11164 (GRUB only offers a rescue shell): Go into a little more detail on
11165 drive ordering.
11166
11167 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11168
11169 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
11170
11171 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11172
11173 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
11174 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
11175
11176 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11177
11178 * util/i386/pc/grub-setup.c (setup): Rename prefix to
11179 install_prefix, in line with install_dos_part and install_bsd_part.
11180 Add new prefix variable, which is copied to install_prefix after
11181 comparing core.img in memory with the one read from disk in the
11182 no-embedding case, and use that rather than overwriting
11183 install_prefix immediately when installing to a partition.
11184 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
11185 Bicakci.
11186
11187 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
11188
11189 * configure.ac: Avoid == in test command, it's not portable.
11190 * util/grub.d/30_os-prober.in: Likewise.
11191
11192 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
11193
11194 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
11195
11196 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
11197
11198 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
11199 multiple (top-level) partmaps.
11200
11201 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11202
11203 * util/i386/efi/grub-install.in: Don't use empty grub_device.
11204 Reported by: Tino Keitel.
11205
11206 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 Bidi and diacritics support.
11209
11210 * Makefile.in (widthspec.bin): New target.
11211 (widthspec.h): Likewise.
11212 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
11213 * autogen.sh: Generate unidata.c.
11214 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
11215 * commands/ls.c (grub_ls_list_devices): Likewise.
11216 (grub_ls_list_files): Likewise.
11217 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
11218 (grub_mini_cmd_lsmod): Likewise.
11219 * commands/read.c: Likewise.
11220 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
11221 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
11222 * lib/arg.c (grub_arg_show_help): Likewise.
11223 * lib/crypto.c (grub_password_get): Likewise.
11224 * normal/auth.c (grub_username_get): Likewise.
11225 * normal/misc.c (grub_normal_print_device_info): Likewise.
11226 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
11227 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
11228 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
11229 (normal/charset.c_DEPENDENCIES): New variable.
11230 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
11231 (pkglib_MODULES): Remove charset.mod.
11232 (charset_mod_SOURCES): Removed.
11233 (charset_mod_CFLAGS): Likewise.
11234 (charset_mod_LDFLAGS): Likewise.
11235 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
11236 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
11237 and term/tparm.c.
11238 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11239 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11240 (kernel_img_HEADERS): Add terminfo.h.
11241 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
11242 Fill ->font. Reverse ascii bitmaps.
11243 (grub_font_get_xheight): New function.
11244 * font/font.c (grub_font_get_string_width): Moved from here ...
11245 * gfxmenu/font.c (grub_font_get_string_width): ... here.
11246 * font/font.c (grub_font_draw_string): Moved from here ...
11247 * gfxmenu/font.c (grub_font_draw_string): ... here.
11248 * font/font.c (grub_font_dup_glyph): New function.
11249 (grub_font_blit_glyph): Likewise.
11250 (grub_font_blit_glyph_mirror): Likewise.
11251 (blit_comb): Likewise.
11252 (grub_font_construct_dry_run): Likewise.
11253 (grub_font_get_constructed_device_width): Likewise.
11254 (grub_font_construct_glyph): Likewise.
11255 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
11256 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
11257 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
11258 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
11259 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
11260 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
11261 (grub_font_get_xheight): New proto.
11262 (grub_font_get_constructed_device_width): Likewise.
11263 (grub_font_construct_glyph): Likewise.
11264 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
11265 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
11266 * include/grub/font.h (grub_font_draw_string): Moved from here ...
11267 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
11268 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
11269 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
11270 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
11271 (grub_console_getcharwidth): Likewise.
11272 * include/grub/misc.h (grub_xputs): New proto.
11273 (grub_puts): Inlined.
11274 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
11275 (grub_normal_get_line_counter): Removed.
11276 (grub_install_newline_hook): Likewise.
11277 (grub_normal_get_char_counter): New proto.
11278 (grub_normal_reset_more): Likewise.
11279 (grub_xputs_normal): Likewise.
11280 * include/grub/powerpc/ieee1275/console.h: Removed.
11281 * include/grub/sparc64/ieee1275/console.h: Likewise.
11282 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
11283 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
11284 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
11285 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
11286 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
11287 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
11288 (grub_term_input): Pass reference to self. All users updated.
11289 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
11290 Pass reference to self. New fields normal_color, highlight_color and
11291 data. All users updated.
11292 (grub_putchar): Removed.
11293 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
11294 (grub_unicode_estimate_width): New function.
11295 (grub_term_getcharwidth): Add defaults.
11296 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
11297 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
11298 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
11299 (grub_cls): Remove EXPORT_FUNC.
11300 (grub_setcolorstate): Inline.
11301 (grub_newline_hook): Removed.
11302 * include/grub/terminfo.h: Rewritten. All users updated.
11303 * include/grub/unicode.h: New file.
11304 * include/grub/video.h (grub_video_signed_rect): New type.
11305 * kern/emu/console.c (grub_console_highlight_color): Removed.
11306 (grub_console_normal_color): Likewise.
11307 (grub_console_standard_color): Made static.
11308 (grub_ncurses_putchar): Remove mapping.
11309 (grub_ncurses_getcharwidth): Removed.
11310 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
11311 (grub_ncurses_setcolor): Removed.
11312 (grub_ncurses_getcolor): Likewise.
11313 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
11314 (grub_console_putchar): ... this.
11315 (grub_console_putchar): Handle argument difference.
11316 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
11317 console_init_early and console_init_lately.
11318 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
11319 * kern/misc.c (grub_puts): Removed.
11320 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
11321 (grub_vsnprintf_real): Remove str = NULL support.
11322 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
11323 * normal/charset.c (grub_utf8_to_ucs4): ... here.
11324 * kern/term.c (grub_putcode): Renamed to ...
11325 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
11326 (grub_putchar): Removed.
11327 (grub_xputs_dumb): New function.
11328 (grub_xputs): New variable.
11329 * lib/charset.c: Move from here ...
11330 * normal/charset.c: ... to here.
11331 (grub_ucs4_to_utf8): New function.
11332 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
11333 (join_types): New variable.
11334 (unpack_join): New function.
11335 (bidi_types): New variable.
11336 (unpack_bidi): New function.
11337 (get_bidi_type): Likewise.
11338 (get_join_type): Likewise.
11339 (is_mirrored): Likewise.
11340 (grub_unicode_get_comb_type): Likewise.
11341 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
11342 (is_type_after): Likewise.
11343 (grub_unicode_aglomerate_comb): Likewise.
11344 (bidi_line_wrap): Likewise.
11345 (grub_bidi_line_logical_to_visual): Likewise.
11346 (grub_bidi_logical_to_visual): Likewise.
11347 (grub_unicode_mirror_code): Likewise.
11348 (grub_unicode_shape_code): Likewise.
11349 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
11350 Don't use grub_putchar.
11351 * normal/main.c (grub_normal_init_page): Use grub_putcode.
11352 (grub_normal_reader_init): Likewise.
11353 (grub_xputs_saved): New variable.
11354 (GRUB_MOD_INIT): Set grub_xputs.
11355 (GRUB_MOD_FINI): Restore grub_xputs.
11356 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
11357 (menu_init): Avoid printing gfxmenu error.
11358 (show_menu): Use grub_normal_get_char_counter.
11359 * normal/menu_entry.c (update_screen): Fix out-of-array.
11360 (complete): Avoid NULL dereferencing.
11361 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
11362 * normal/menu_text.c (print_spaces): Removed.
11363 (grub_print_ucs4): Likewise.
11364 (grub_print_message_indented): Use grub_print_ucs4.
11365 (print_message): Use grub_putcode.
11366 (print_entry): Hanlde diacritics.
11367 * normal/term.c (term_state): New type.
11368 (grub_more_lines): Removed.
11369 (term_states): New variable.
11370 (grub_normal_line_counter): Renamed to ..
11371 (grub_normal_char_counter): ...this. All users updated.
11372 (grub_normal_get_line_counter): Renamed to ...
11373 (grub_normal_get_char_counter): ... this.
11374 (grub_normal_reset_more): New function.
11375 (process_newline): Removed.
11376 (print_more): New function.
11377 (grub_install_newline_hook): Removed.
11378 (map_code): New function.
11379 (grub_puts_terminal): Use grub_print_ucs4.
11380 (putglyph): New function.
11381 (putcode_real): Likewise.
11382 (grub_putcode): Use putcode_real.
11383 (get_maxwidth): New function.
11384 (get_startwidth): Likewise.
11385 (print_ucs4_terminal): Likewise.
11386 (find_term_state): Likewise.
11387 (put_glyphs_terminal): Likewise.
11388 (print_backlog): Likewise.
11389 (print_ucs4_real): Likewise.
11390 (grub_print_ucs4): Likewise.
11391 (grub_xputs_normal): Likewise.
11392 * term/efi/console.c (grub_console_putchar): Output diacritics.
11393 (grub_console_getcharwidth): Removed.
11394 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
11395 * term/gfxterm.c (clear_char): Free chars.
11396 (scroll_up): Avoid leaking memory.
11397 (grub_gfxterm_putchar): Support diacritics.
11398 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
11399 * term/i386/pc/console.c (grub_console_term_output): Declare as
11400 GRUB_TERM_CODE_TYPE_VGA.
11401 * term/i386/pc/vga.c (grub_vga_term): Declare as
11402 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
11403 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
11404 GRUB_TERM_CODE_TYPE_VGA.
11405 * term/i386/vga_common.c (map_char): Removed.
11406 (grub_console_putchar): Likewise.
11407 (grub_console_getcharwidth): Likewise.
11408 * term/ieee1275/ofconsole.c: Simplify using terminfo.
11409 (colors): Reordered to match terminfo.
11410 (grub_ofconsole_normal_color): Removed.
11411 (grub_ofconsole_writeesc): Likewise.
11412 (grub_ofconsole_highlight_color): Likewise.
11413 (grub_ofconsole_getcharwidth): Likewise.
11414 (grub_ofconsole_setcolorstate): Likewise.
11415 (grub_ofconsole_setcolor): Likewise.
11416 (grub_ofconsole_getcolor): Likewise.
11417 (grub_ofconsole_readkey): Renamed to ...
11418 (readkey): ... this. Remove escape sequence handling. Return -1 on no
11419 key.
11420 (grub_ofconsole_checkkey): Removed.
11421 (grub_ofconsole_getkey): Likewise.
11422 (grub_ofconsole_getxy): Likewise.
11423 (grub_ofconsole_gotoxy): Likewise.
11424 (grub_ofconsole_cls): Likewise.
11425 (grub_ofconsole_refresh): Likewise.
11426 (grub_ofconsole_terminfo_input): New struct.
11427 (grub_ofconsole_terminfo_output): Likewise.
11428 (grub_ofconsole_term_input): Use terminfo.
11429 (grub_ofconsole_term_output): Likewise.
11430 (grub_console_init): Split into ...
11431 (grub_console_init_early): ...this and ...
11432 (grub_console_init_lately): ...this. Use terminfo.
11433 (grub_ofconsole_putchar): Renamed to ...
11434 (put): ... this. Remove mapping.
11435 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
11436 * term/serial.c: Simplify using terminfo.
11437 (xpos): Removed.
11438 (ypos): Likewise.
11439 (keep_track): Likewise.
11440 (registered): Likewise.
11441 (input_buf): Likewise.
11442 (npending): Likewise.
11443 (serial_translate_key_sequence): Likewise.
11444 (fill_input_buf): Likewise.
11445 (grub_serial_checkkey): Likewise.
11446 (grub_serial_getkey): Likewise.
11447 (grub_serial_getxy): Likewise.
11448 (grub_serial_gotoxy): Likewise.
11449 (grub_serial_putchar): Likewise.
11450 (grub_serial_cls): Likewise.
11451 (grub_serial_setcolorstate): Likewise.
11452 (grub_serial_setcursor): Likewise.
11453 (serial_hw_init): Use serial_hw_fetch.
11454 (grub_serial_terminfo_input): New variable.
11455 (grub_serial_terminfo_output): Likewise.
11456 (grub_serial_term_input): Use terminfo.
11457 (grub_serial_term_output): Likewise.
11458 * term/terminfo.c (putstr): Use put.
11459 (grub_terminfo_all_free): New function
11460 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
11461 (grub_terminfo_output_register): New function.
11462 (grub_terminfo_output_unregister): Likewise.
11463 (grub_terminfo_getxy): Likewise.
11464 (grub_terminfo_readkey): Likewise.
11465 (grub_terminfo_checkkey): Likewise.
11466 (grub_terminfo_getkey): Likewise.
11467 (grub_terminfo_input_init): Likewise.
11468 (print_terminfo): Likewise.
11469 (grub_cmd_terminfo): Handle encoding.
11470 (grub_terminfo_gotoxy): Track position.
11471 (grub_terminfo_cls): Likewise.
11472 (grub_terminfo_putchar): Likewise.
11473 (grub_terminfo_setcolorstate): Handle colors
11474 (grub_terminfo_cursor_on): This ...
11475 (grub_terminfo_cursor_off): ... and this merged into ...
11476 (grub_terminfo_setcursor): ... this.
11477 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
11478 * unicode/ArabicShaping.txt: New file (imported from Unicode).
11479 * unicode/BidiMirroring.txt: Likewise.
11480 * unicode/UnicodeData.txt: Likewise.
11481 * unicode/COPYING: Likewise.
11482 * util/grub-editenv.c (grub_putchar): Removed.
11483 (grub_xputs_real): New function.
11484 (grub_xputs): New variable.
11485 * util/grub-fstest.c (grub_putchar): Removed.
11486 (grub_xputs_real): New function.
11487 (grub_xputs): New variable.
11488 * util/grub-mkdevicemap.c (grub_putchar): Removed.
11489 (grub_xputs_real): New function.
11490 (grub_xputs): New variable.
11491 * util/grub-probe.c (grub_putchar): Removed.
11492 (grub_xputs_real): New function.
11493 (grub_xputs): New variable.
11494 * util/grub-script-check.c (grub_putchar): Removed.
11495 (grub_xputs_real): New function.
11496 (grub_xputs): New variable.
11497 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
11498 (grub_xputs_real): New function.
11499 (grub_xputs): New variable.
11500 * util/import_unicode.py: New file.
11501 * util/grub-mkfont.c (ft_errmsgs): New array.
11502 (grub_glyph_info): Make bitmap a pointer.
11503 (file_formats): New type WIDTH_SPEC.
11504 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
11505 (options): Add width-spec.
11506 (help): Likewise.
11507 (add_char): Renamed to ...
11508 (add_glyph): ... this.
11509 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
11510 (glyph_replace): New type.
11511 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
11512 (add_char): New function.
11513 (add_subst): Likewise.
11514 (process_cursive): Likewise.
11515 (add_font): Handle GSUB.
11516 (write_font_width_spec): New function.
11517 (main): Sort glyphs.
11518 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
11519 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
11520 * kern/term.c (grub_cls): Moved from here...
11521 * normal/term.c (grub_cls): ... here.
11522
11523 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
11524
11525 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
11526 suitable for using within the format argument of printf when
11527 converting grub_size_t.
11528 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
11529 "x" to convert grub_size_t arguments.
11530
11531 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11532
11533 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
11534 too long captions.
11535 (list_get_minimal_size): Take selection box into account.
11536
11537 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11538
11539 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
11540 NULL font.
11541
11542 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
11543
11544 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
11545 devices when iterating over /dev/disk/by-id; they will be handled
11546 later if appropriate, which they aren't always (e.g. LVM).
11547
11548 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
11549
11550 * include/grub/misc.h (grub_reboot): Declare as noreturn.
11551 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
11552 fails.
11553 (grub_halt): Likewise.
11554 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
11555 reset-all fails.
11556 (grub_halt): Don't return, even if all of shut-down, power-off, and
11557 poweroff fail.
11558
11559 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
11560
11561 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
11562 arguments, not three.
11563
11564 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
11565
11566 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
11567 * util/grub.d/10_linux.in: Use it to check for LVM, so that
11568 LVM-on-RAID is handled correctly.
11569
11570 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
11571
11572 * docs/grub.texi (Changes from GRUB Legacy): New section.
11573 (Future): Fix typo.
11574
11575 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
11576
11577 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
11578 grub.d/README accidentally ends up executable for one reason or
11579 another. Ignore it.
11580
11581 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11582
11583 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
11584 (gpt_partition_map_iterate): Support non-512B sectors.
11585
11586 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11587
11588 * kern/efi/init.c (grub_efi_init): Disable watchdog.
11589 Tested by: Seth Goldberg.
11590
11591 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11592
11593 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
11594 Properly align mbi.
11595 Reported by: Seth Goldberg.
11596
11597 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
11598
11599 * util/grub-mkrescue.in: Avoid module duplication.
11600
11601 2010-07-01 Sean Finney <seanius@seanius.net>
11602
11603 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
11604
11605 2010-07-01 Sean Finney <seanius@seanius.net>
11606
11607 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
11608
11609 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
11610
11611 * disk/lvm.c (grub_lvm_checkvalue): New function.
11612 (grub_lvm_check_flag): Likewise.
11613
11614 2010-07-01 Robert Millan <rmh@gnu.org>
11615
11616 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
11617 Support 'p' as partition separator on kernel of FreeBSD (used
11618 with GPT labels).
11619 (grub_util_biosdisk_get_grub_dev): Likewise.
11620
11621 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
11622
11623 Yeeloong firmware port.
11624
11625 * boot/mips/yeeloong/fwstart.S: New file.
11626 * bus/cs5536.c (gpiodump): New const.
11627 (set_io_space): New function.
11628 (set_iod): Likewise.
11629 (set_p2d): Likewise.
11630 (grub_cs5536_init_geode): Likewise.
11631 * commands/mips/yeeloong/lsspd.c: New file.
11632 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
11633 (serial_mod_SOURCES): New variable.
11634 (serial_mod_CFLAGS): Likewise.
11635 (serial_mod_LDFLAGS): Likewise.
11636 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
11637 term/terminfo.c and term/tparm.c.
11638 (pkglib_IMAGES): Add fwstart.img.
11639 (fwstart_img_SOURCES): New variable.
11640 (fwstart_img_CFLAGS): Likewise.
11641 (fwstart_img_ASFLAGS): Likewise.
11642 (fwstart_img_LDFLAGS): Likewise.
11643 (fwstart_img_FORMAT): Likewise.
11644 (pkglib_MODULES): Add lsspd.mod.
11645 (lsspd_mod_SOURCES): New variable.
11646 (lsspd_mod_CFLAGS): Likewise.
11647 (lsspd_mod_LDFLAGS): Likewise.
11648 (pkglib_MODULES): Add halt.mod.
11649 (halt_mod_SOURCES): New variable.
11650 (halt_mod_CFLAGS): Likewise.
11651 (halt_mod_LDFLAGS): Likewise.
11652 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
11653 (serial_mod_SOURCES): Removed.
11654 (serial_mod_CFLAGS): Likewise.
11655 (serial_mod_LDFLAGS): Likewise.
11656 * disk/ata.c (check_device): New function.
11657 (grub_ata_device_initialize): Use check_device.
11658 (grub_ata_iterate): Recheck devices.
11659 (grub_ata_open): Likewise.
11660 (grub_atapi_iterate): Likewise.
11661 (grub_atapi_open): Likewise.
11662 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
11663 (GRUB_ATA_CH1_PORT1): Likewise.
11664 (GRUB_ATA_CH0_PORT2): Likewise.
11665 (GRUB_ATA_CH1_PORT2): Likewise.
11666 * include/grub/mips/loongson.h: New file.
11667 * include/grub/mips/yeeloong/ec.h: Likewise.
11668 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
11669 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
11670 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
11671 * include/grub/misc.h (grub_halt): Declare as noreturn.
11672 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
11673 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
11674 (UART_ENABLE_FIFO_TRIGGER1): New definition.
11675 (UART_ENABLE_DTRRTS): Likewise.
11676 (UART_ENABLE_MODEM): Removed.
11677 (UART_ENABLE_OUT2): New const.
11678 * include/grub/term.h (grub_term_register_input_active): New function.
11679 (grub_term_register_output_active): Likewise.
11680 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
11681 argument.
11682 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
11683 (init_pci): New function.
11684 (grub_machine_init): Execute platform init when firmware. Init serial.
11685 (grub_halt): Implement.
11686 (grub_exit): Likewise.
11687 (grub_reboot): Likewise.
11688 * term/serial.c (serial_hw_init): Update macros.
11689 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
11690 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
11691 (image_targets): New target mipsel-yeeloong-flash.
11692 (generate_image): Support IMAGE_YEELOONG_FLASH.
11693 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
11694 (grub_video_sm712_setup): Init card.
11695 (grub_video_sm712_set_palette): Removed.
11696 * video/sm712_init.c: New file.
11697
11698 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
11699
11700 * Makefile.in (install-local): Temporarily prepend $(builddir) to
11701 PATH when running help2man and then run it on the unadorned
11702 executable names, rather than passing $(builddir)/* paths to
11703 help2man. This avoids the build directory ending up in generated
11704 manual pages.
11705
11706 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
11707
11708 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
11709 to avoid accidents when debugging with 'sh -x'.
11710 * util/grub-mkrescue.in: Likewise.
11711 * util/grub.d/00_header.in: Likewise.
11712 * util/grub.d/10_hurd.in: Likewise.
11713 * util/grub.d/10_kfreebsd.in: Likewise.
11714 * util/grub.d/10_linux.in: Likewise.
11715 * util/grub.d/10_netbsd.in: Likewise.
11716 * util/grub.d/10_windows.in: Likewise.
11717 * util/grub.d/20_linux_xen.in: Likewise.
11718 * util/grub.d/30_os-prober.in: Likewise.
11719 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11720
11721 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
11722
11723 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
11724 last character in the buffer.
11725 Reported by: Vladimir Serbinenko.
11726
11727 2010-06-29 Robert Millan <rmh@gnu.org>
11728
11729 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
11730 (Command-line and menu entry commands): Document `badram' command.
11731
11732 2010-06-28 Robert Millan <rmh@gnu.org>
11733
11734 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
11735 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
11736 command using ${GRUB_BADRAM} as parameter.
11737
11738 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
11739
11740 * docs/grub.texi (Device map): New section.
11741 (Themes): New section (stub).
11742 * Makefile.in (docs/grub.info): The info documentation now builds
11743 without errors. Make sure it stays that way.
11744
11745 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
11746
11747 Use normal parser for menu entries.
11748 Reported by: Thomas Frauendorfer
11749
11750 * include/grub/parser.h (grub_parser_execute): Don't export.
11751 * normal/menu.c (grub_menu_execute_entry_real): New function.
11752 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
11753
11754 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
11755
11756 * docs/grub.texi (Embedded configuration): New section (replacing
11757 old "Preset Menu" stub).
11758 (Images): New section.
11759 (configfile): Note that any menu entries defined in `file' are shown
11760 immediately.
11761
11762 2010-06-28 Josh Triplett <josh@joshtriplett.org>
11763
11764 * mmap/i386/pc/mmap_helper.S: Set CF on return.
11765
11766 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
11767
11768 * util/grub-install.in: Add --debug-image= option.
11769
11770 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
11771
11772 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
11773 possible on Linux.
11774
11775 * util/deviceiter.c (check_device): Rename to ...
11776 (check_device_readable_unique): ... this. Update all callers.
11777 Maintain and check a list of which devices (by canonicalized name)
11778 have already been seen.
11779 (clear_seen_devices): New function.
11780 (compare_file_names) [__linux__]: New function.
11781 (grub_util_iterate_devices): Clear the list of seen devices on exit
11782 and (just in case) on entry.
11783 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
11784 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
11785 seen-devices list, superseded by general code in check_device.
11786
11787 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
11788
11789 * commands/cat.c (options): New variable.
11790 (grub_cmd_cat): Parse options. If the --dos option is given, print
11791 DOS-style "\r\n" line endings as simple newlines (Debian bug
11792 #586358).
11793 (GRUB_MOD_INIT): Use extcmd.
11794 (GRUB_MOD_FINI): Likewise.
11795 * docs/grub.texi (cat): Document --dos.
11796
11797 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
11798
11799 XEN with Linux grub-mkconfig support.
11800
11801 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
11802 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
11803 GRUB_CMDLINE_XEN_DEFAULT.
11804 * util/grub.d/20_linux_xen.in: New file.
11805
11806 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
11807
11808 Initialise VGA video on qemu ourselves.
11809
11810 * boot/i386/qemu/boot.S: Don't call 0xc000.
11811 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
11812 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
11813 (kernel_img_HEADERS): Add pci.h.
11814 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
11815 * configure.ac: Force unifont on qemu and yeeloong.
11816 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
11817 (grub_vga_palette_write): Use correct register.
11818 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
11819 Call grub_qemu_init_cirrus.
11820 * kern/i386/qemu/init.c: New file.
11821 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
11822
11823 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
11824
11825 2010-06-26 Pavel Roskin <proski@gnu.org>
11826
11827 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
11828 13.
11829
11830 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
11831
11832 * docs/grub.texi (Simple configuration): Explain that
11833 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
11834 set to `true' to disable their respective recovery entries, not
11835 merely set.
11836
11837 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
11838
11839 Make the `source' command slightly faster.
11840
11841 * normal/main.c (grub_normal_execute): Don't re-read list files when
11842 nested.
11843
11844 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
11845
11846 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
11847 field position and mask size to red fields from mode_info, not
11848 green.
11849 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
11850 Remove redundant tag->common.framebuffer_type assignment.
11851 Reported by: Seth Goldberg.
11852
11853 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
11854
11855 Sync up other versions of the Linux loader with Robert Millan's
11856 change of 2010-01-09, "Make loader output a bit more user-friendly".
11857
11858 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
11859 grub_dprintf().
11860 (grub_cmd_linux): Likewise.
11861 (grub_cmd_initrd): Likewise.
11862 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
11863 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11864
11865 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
11866
11867 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
11868 larger than MEMORY_MAP_SIZE.
11869
11870 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
11871
11872 Fix parallel build.
11873
11874 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
11875 dependency.
11876 * script/parser.y: #include grub_script.tab.h header.
11877
11878 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
11879
11880 Support >3GiB and <16MiB RAM in i386-qemu.
11881
11882 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
11883 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
11884 (grub_lower_mem): Removed.
11885 (grub_upper_mem): Likewise.
11886 (mem_size): Made static.
11887 (above_4g): New variable.
11888 (grub_machine_mmap_init): Detect small mem_size and above_4g.
11889 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
11890 support.
11891
11892 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 Cirrus 5446 and Bochs video cards support.
11895
11896 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
11897 video_bochs.mod
11898 (video_cirrus_mod_SOURCES): New variable.
11899 (video_cirrus_mod_CFLAGS): Likewise.
11900 (video_cirrus_mod_LDFLAGS): Likewise.
11901 (video_bochs_mod_SOURCES): Likewise.
11902 (video_bochs_mod_CFLAGS): Likewise.
11903 (video_bochs_mod_LDFLAGS): Likewise.
11904 * include/grub/vga.h: New file.
11905 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
11906 (grub_video_fb_set_page_t): New type.
11907 (grub_video_fb_setup): New prototype.
11908 (grub_video_fb_swap_buffers): Likewise.
11909 (grub_video_fb_get_info_and_fini): Likewise.
11910 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
11911 (CRTC_DATA_PORT): Likewise.
11912 (CRTC_CURSOR): Likewise.
11913 (CRTC_CURSOR_ADDR_HIGH): Likewise.
11914 (CRTC_CURSOR_ADDR_LOW): Likewise.
11915 (CRTC_CURSOR_DISABLE): Likewise.
11916 (update_cursor): Use grub_vga_cr_write.
11917 (grub_vga_text_setcursor): Likewise.
11918 * video/bochs.c: New file.
11919 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
11920 (palette): Likewise.
11921 (palette_size): Likewise.
11922 (framebuffer): New variable.
11923 (grub_video_fb_init): Use 'framebuffer'.
11924 (grub_video_fb_fini): Likewise.
11925 (grub_video_fb_get_info): Likewise.
11926 (grub_video_fb_get_palette): Likewise.
11927 (grub_video_fb_set_palette): Likewise.
11928 (grub_video_fb_set_viewport): Likewise.
11929 (grub_video_fb_get_viewport): Likewise.
11930 (grub_video_fb_map_color): Likewise.
11931 (grub_video_fb_map_rgb): Likewise.
11932 (grub_video_fb_map_rgba): Likewise.
11933 (grub_video_fb_unmap_color): Likewise.
11934 (grub_video_fb_unmap_color_int): Likewise.
11935 (grub_video_fb_fill_rect): Likewise.
11936 (grub_video_fb_blit_bitmap): Likewise.
11937 (grub_video_fb_blit_render_target): Likewise.
11938 (grub_video_fb_scroll): Likewise.
11939 (grub_video_fb_create_render_target): Likewise.
11940 (grub_video_fb_doublebuf_blit_init): Likewise.
11941 (grub_video_fb_set_active_render_target): Handle doublebuffering.
11942 (doublebuf_pageflipping_update_screen): New function.
11943 (doublebuf_pageflipping_init): Likewise.
11944 (grub_video_fb_setup): Likewise.
11945 (grub_video_fb_swap_buffers): Likewise.
11946 (grub_video_fb_get_info_and_fini): Likewise.
11947 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
11948 All users updated.
11949 (doublebuf_pageflipping_commit): Restructured into ...
11950 (doublebuf_pageflipping_set_page): ... this.
11951 (doublebuf_pageflipping_update_screen): Removed.
11952 (doublebuf_pageflipping_init): Likewise.
11953 (double_buffering_init): Likewise.
11954 (grub_video_vbe_setup): Use grub_video_fb_setup.
11955 (grub_video_vbe_swap_buffers): Removed.
11956 (grub_video_vbe_set_active_render_target): Likewise.
11957 (grub_video_vbe_get_active_render_target): Likewise.
11958 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
11959 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
11960 grub_video_fb_set_active_render_target and
11961 grub_video_fb_get_active_render_target.
11962 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
11963 (SEQUENCER_DATA_PORT): Likewise.
11964 (MAP_MASK_REGISTER): Likewise.
11965 (CRTC_ADDR_PORT): Likewise.
11966 (CRTC_DATA_PORT): Likewise.
11967 (START_ADDR_HIGH_REGISTER): Likewise.
11968 (START_ADDR_LOW_REGISTER): Likewise.
11969 (GRAPHICS_ADDR_PORT): Likewise.
11970 (GRAPHICS_DATA_PORT): Likewise.
11971 (READ_MAP_REGISTER): Likewise.
11972 (INPUT_STATUS1_REGISTER): Likewise.
11973 (INPUT_STATUS1_VERTR_BIT): Likewise.
11974 (get_map_mask): Use grub_vga_sr_read.
11975 (set_map_mask): Use grub_vga_sr_write.
11976 (set_read_map): Use grub_vga_gr_write.
11977 (set_start_address): Use grub_vga_cr_write.
11978 * video/sm712.c (framebuffer): Remove leftover fields.
11979
11980 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
11981
11982 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
11983 setting GRUB_VIDEO_BACKEND. Make it available as a user override
11984 instead. Replace the gfxterm backend check with a check that
11985 ${GRUB_PREFIX}/video.lst is non-empty.
11986 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
11987 again.
11988 (load_video): New generated function. Call it before loading
11989 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
11990 * util/grub.d/10_linux.in (linux_entry): Call load_video.
11991 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
11992 * docs/grub.texi (Simple configuration): Document
11993 GRUB_VIDEO_BACKEND.
11994
11995 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
11996
11997 Use video functions in linux and xnu loaders.
11998
11999 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
12000 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
12001 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
12002 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
12003 loader/i386/pc/linux.c.
12004 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
12005 (find_line_len): Removed.
12006 (find_framebuf): Likewise.
12007 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
12008 * loader/i386/efi/xnu.c: Removed.
12009 * loader/i386/pc/xnu.c: Moved from here...
12010 * loader/i386/xnu.c: ...here.
12011
12012 Enable priorities in video drivers.
12013
12014 * include/grub/video.h (grub_video_adapter_prio_t): New type.
12015 (grub_video_adapter): New field prio.
12016 (grub_video_register): Respect prio when inserting.
12017 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
12018 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
12019 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
12020 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
12021 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
12022 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
12023 * video/sm712.c (grub_video_sm712_adapter): Likewise.
12024
12025 Fix SDL driver ID.
12026
12027 * include/grub/video.h (grub_video_driver_id_t): New value
12028 GRUB_VIDEO_DRIVER_SDL.
12029 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
12030
12031 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12032
12033 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
12034 argument to printf.
12035 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12036
12037 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12038
12039 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
12040 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12041
12042 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12043
12044 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
12045 directly, and recommend grub-install instead.
12046 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12047
12048 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12049
12050 Fix i386-pc prefix handling with nested partitions (Debian bug
12051 #585068). Note that the case where the core image is booted using
12052 multiboot and relocated from its original location still requires
12053 more work.
12054
12055 * kern/i386/pc/init.c (make_install_device): If the prefix starts
12056 with "(,", fill the boot drive in between those two characters, but
12057 expect that a full partition specification including partition map
12058 names will follow.
12059 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
12060 specified, write a prefix without the drive name but including a
12061 full partition specification.
12062
12063 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
12064
12065 * util/grub-mkconfig.in: Ignore non-option arguments, for
12066 compatibility with older versions (before 2010-06-12) which did the
12067 same. In particular, this makes it easier to ship an update-grub
12068 wrapper which is compatible with that used with GRUB Legacy (Debian
12069 bug #586056).
12070
12071 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12072
12073 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
12074 for manual page generation.
12075
12076 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12077
12078 * po/POTFILES: Remove leftover commands/handler.c.
12079
12080 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
12081
12082 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
12083 left this script non-functional.
12084
12085 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
12086
12087 * docs/man/grub-emu.h2m: New file.
12088
12089 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
12090
12091 * docs/grub.texi (Commands): Document reduced command set in rescue
12092 mode.
12093 (cpuid): New section.
12094
12095 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
12096
12097 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
12098 new partition naming style.
12099 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
12100
12101 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
12102
12103 Add "-o grub.iso" like cmdline options support.
12104
12105 * util/grub-install.in: Improve cmdline option parsing.
12106 * util/grub-mkconfig.in: Likewise.
12107 * util/grub-mkrescue.in: Likewise.
12108 * util/grub-reboot.in: Likewise.
12109 * util/grub-set-default.in: Likewise.
12110 * util/i386/efi/grub-install.in: Likewise.
12111 * util/ieee1275/grub-install.in: Likewise.
12112 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12113
12114 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12115
12116 * .bzrignore: Ignore 41_custom.
12117
12118 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
12119
12120 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
12121
12122 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12123
12124 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
12125 prototype declarations.
12126
12127 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
12128 generating fs, partmap, and video lists.
12129 * include/grub/fs.h (grub_fs_register): Omit prototype if
12130 GRUB_LST_GENERATOR is defined.
12131 * include/grub/partition.h (grub_partition_map_register): Likewise.
12132 * include/grub/video.h (grub_video_register): Likewise.
12133
12134 2010-06-12 Javier Martín <lordhabbit@gmail.com>
12135
12136 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
12137
12138 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
12139
12140 * util/grub-mkrescue.in: Support --xorriso argument.
12141
12142 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
12145 Suggested by: Thomas Schmitt.
12146
12147 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12148
12149 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
12150 Suggested by: Thomas Schmitt.
12151
12152 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12153
12154 custom.cfg support.
12155
12156 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
12157 * util/grub.d/41_custom.in: New file.
12158
12159 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12160
12161 * util/grub-mkrescue.in (make_image): Remove sh module, which has
12162 been merged back into normal.
12163
12164 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
12165
12166 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
12167 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
12168
12169 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
12170
12171 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
12172 when generating manual pages.
12173 * docs/man/grub-bin2h.h2m: New file.
12174 * docs/man/grub-editenv.h2m: New file.
12175 * docs/man/grub-fstest.h2m: New file.
12176 * docs/man/grub-install.h2m: New file.
12177 * docs/man/grub-macho2img.h2m: New file.
12178 * docs/man/grub-mkconfig.h2m: New file.
12179 * docs/man/grub-mkdevicemap.h2m: New file.
12180 * docs/man/grub-mkfont.h2m: New file.
12181 * docs/man/grub-mkimage.h2m: New file.
12182 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
12183 * docs/man/grub-mkrelpath.h2m: New file.
12184 * docs/man/grub-mkrescue.h2m: New file.
12185 * docs/man/grub-ofpathname.h2m: New file.
12186 * docs/man/grub-pe2elf.h2m: New file.
12187 * docs/man/grub-probe.h2m: New file.
12188 * docs/man/grub-reboot.h2m: New file.
12189 * docs/man/grub-script-check.h2m: New file.
12190 * docs/man/grub-set-default.h2m: New file.
12191 * docs/man/grub-setup.h2m: New file.
12192
12193 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
12194
12195 Use FOR_* macros instead of *_iterate whenever possible.
12196
12197 * commands/handler.c: Removed.
12198 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
12199 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
12200 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12201 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
12202 (grub_probe_SOURCES): Remove kern/parser.c.
12203 (util/grub-script-check.c_DEPENDENCIES): Removed.
12204 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
12205 and grub_script_check_init.c.
12206 (grub_script_check_init.lst): Removed.
12207 (grub_script_check_init.h): Likewise.
12208 (grub_script_check_init.c): Likewise.
12209 (pkglib_MODULES): Remove handler.mod and sh.mod.
12210 (handler_mod_SOURCES): Removed.
12211 (handler_mod_CFLAGS): Likewise.
12212 (handler_mod_LDFLAGS): Likewise.
12213 (normal_mod_SOURCES): Remove normal/handler.c.
12214 Add script/main.c, script/script.c, script/execute.c,
12215 script/function.c, script/lexer.c, grub_script.tab.c
12216 and grub_script.yy.c.
12217 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12218 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12219 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
12220 (grub_setup_SOURCES): Remove kern/parser.c.
12221 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12222 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
12223 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
12224 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12225 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12226 (grub_setup_SOURCES): Remove kern/parser.c.
12227 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12228 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
12229 * include/grub/command.h (grub_command_iterate): Removed.
12230 (FOR_COMMANDS): New macro.
12231 * include/grub/dl.h (grub_dl): New member next.
12232 (grub_dl_iterate): Removed.
12233 (grub_dl_head): New variable declaration.
12234 (FOR_DL_MODULES): New macro.
12235 * include/grub/fs.h: Include list.h.
12236 (grub_fs): Make next first element.
12237 (grub_fs_list): New variable declaration.
12238 (grub_fs_register): Make inline.
12239 (grub_fs_unregister): Likewise.
12240 (grub_fs_iterate): Removed.
12241 (FOR_FILESYSTEMS): New macro.
12242 * include/grub/handler.h: Removed.
12243 * include/grub/list.h (grub_list_hook_t): Removed.
12244 (grub_list_test_t): Likewise.
12245 (grub_list_pop): Likewise.
12246 (grub_list_iterate): Likewise.
12247 (grub_list_insert): Likewise.
12248 (FOR_LIST_ELEMENTS): New macro.
12249 * include/grub/parser.h (grub_parser_class): Removed.
12250 (grub_parser_register): Likewise.
12251 (grub_parser_unregister): Likewise.
12252 (grub_parser_get_current): Likewise.
12253 (grub_parser_set_current): Likewise.
12254 (grub_register_rescue_parser): Likewise.
12255 (grub_rescue_parse_line): New function.
12256 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
12257 * include/grub/script_sh.h (grub_script_function_list): New variable
12258 declaration.
12259 (FOR_SCRIPT_FUNCTIONS): New macro.
12260 (grub_script_function_iterate): Removed.
12261 (grub_normal_parse_line): New prototype.
12262 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
12263 (FOR_DISABLED_TERM_INPUTS): Likewise.
12264 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
12265 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
12266 * include/grub/video.h (grub_video_adapter): Move 'next' to first
12267 element.
12268 (grub_video_register): Inline.
12269 (grub_video_unregister): Likewise.
12270 (grub_video_adapter_list): New variable declaration.
12271 (grub_video_iterate): Removed.
12272 (FOR_VIDEO_ADAPTERS): New macro.
12273 * kern/dl.c (grub_dl_list): Removed. All users updated.
12274 (grub_dl_iterate): Removed.
12275 * kern/fs.c (grub_fs_list): Make global.
12276 (grub_fs_register): Removed.
12277 (grub_fs_unregister): Likewise.
12278 (grub_fs_iterate): Likewise.
12279 * kern/handler.c: Removed.
12280 * kern/list.c (grub_list_pop): Removed.
12281 (grub_list_iterate): Likewise.
12282 (grub_list_insert): Likewise.
12283 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
12284 (grub_prio_list_insert): Don't use grub_list_insert.
12285 * kern/main.c (grub_register_rescue_parser): Don't call
12286 grub_register_rescue_parser.
12287 * kern/parser.c (grub_parser_class): Removed.
12288 (grub_parser_execute): Use grub_rescue_parse_line.
12289 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
12290 (grub_rescue_parser): Removed.
12291 (grub_register_rescue_parser): Likewise.
12292 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
12293 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
12294 (grub_auth_check_authentication): Likewise.
12295 * normal/completion.c (iterate_command): Removed.
12296 (grub_normal_do_completion): Use FOR_COMMANDS.
12297 * normal/handler.c: Removed.
12298 * normal/main.c (read_config_file): Remove parser changing.
12299 (grub_normal_execute): Don't call read_handler_list.
12300 (grub_normal_read_line_real): Statically allocate prompt.
12301 (grub_cmdline_run): Use grub_normal_parse_line.
12302 (GRUB_MOD_FINI): Don't call free_handler_list.
12303 * normal/menu_entry.c (run): Likewise.
12304 * script/function.c (grub_script_function_list): Make global.
12305 (grub_script_function_iterate): Removed.
12306 * script/main.c (grub_normal_parse_line): Make global.
12307 (grub_sh_parser): Removed.
12308 (GRUB_MOD_INIT): Likewise.
12309 (GRUB_MOD_FINI): Likewise.
12310 * tests/lib/functional_test.c (grub_functional_test): Use
12311 FOR_LIST_ELEMENTS.
12312 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
12313 (grub_test_run): Use FOR_LIST_ELEMENTS.
12314 * tests/lib/unit_test.c (main): Likewise.
12315 * util/deviceiter.c (grub_util_iterate_devices): Don't use
12316 grub_list_pop.
12317 * util/grub-fstest.c (grub_term_input_class): Removed.
12318 (grub_term_output_class): Likewise.
12319 * util/grub-probe.c: Likewise.
12320 * util/i386/pc/grub-setup.c: Likewise.
12321 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12322 * util/grub-script-check.c (main): Don't call grub_init_all and
12323 grub_fini_all.
12324 * video/video.c (grub_video_adapter_list): Make global.
12325 (grub_video_register): Removed.
12326 (grub_video_unregister): Likewise.
12327 (grub_video_iterate): Likewise.
12328
12329 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
12330
12331 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
12332 reported by Henrique Ferreiro.
12333
12334 2010-06-09 Robert Millan <rmh@gnu.org>
12335
12336 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
12337 ones, when both are available.
12338
12339 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12340
12341 Make --version uniform and avoid hard-coded program name.
12342
12343 * util/grub-mkimage.c (main): Use `program_name' instead of
12344 hard-coded string.
12345 * util/i386/pc/grub-setup.c (main): Likewise.
12346 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
12347 * util/grub-install.in: Save the basename of $0 in $self, and use the
12348 latter in informational messages. Use the same format for --version
12349 as the binary programs.
12350 * util/grub-mkconfig.in: Likewise.
12351 * util/grub-mkrescue.in: Likewise.
12352 * util/grub-reboot.in: Likewise.
12353 * util/grub-set-default.in: Likewise.
12354 * util/i386/efi/grub-install.in: Likewise.
12355 * util/ieee1275/grub-install.in: Likewise.
12356 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12357
12358 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12359
12360 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
12361 embedding area. Use <= instead of == when checking for non-emptiness.
12362
12363 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12364
12365 * configure.ac: Add `.' to the directories searched for unifont.
12366
12367 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12368
12369 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
12370 grub_script.yy.h.
12371
12372 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12373
12374 * docs/grub.texi (History): Expand to cover GRUB 2.
12375 (Serial terminal): Refer to `terminal_input' and `terminal_output'
12376 commands, not `terminal'.
12377 (serial): Likewise.
12378 (terminal_input): New section.
12379 (terminal_output): New section.
12380 (uppermem): New section (stub).
12381 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
12382
12383 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12384
12385 * docs/grub.texi (Security): Menu entries are unrestricted by
12386 default, not restricted to superusers as I had previously thought.
12387 Reword to account for this.
12388
12389 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12390
12391 * kern/emu/misc.c (device_mapper_null_log): New function.
12392 (grub_device_mapper_supported): New function.
12393 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
12394 prototype.
12395 * kern/emu/hostdisk.c (find_partition_start): Check whether
12396 device-mapper is supported before trying to use it.
12397 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
12398
12399 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12400
12401 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
12402 (File name syntax): Likewise.
12403 (help): --all is no longer supported in GRUB 2. Be more precise
12404 about pattern matching.
12405
12406 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12407
12408 * normal/completion.c (grub_normal_do_completion): When completing
12409 arguments to "set" and the current word contains an equals sign,
12410 skip to after the equals sign before starting completion.
12411
12412 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12413
12414 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
12415
12416 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12417
12418 * docs/grub.texi (Network): New section.
12419 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
12420 `(nd)' as in GRUB Legacy.
12421 (pxe_unload): New section.
12422
12423 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12424
12425 * docs/grub.texi (Troubleshooting): `echo' is not usually available
12426 in the rescue shell, so recommend using `set' instead. Thanks,
12427 Jordan Uggla.
12428
12429 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12430
12431 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
12432 (password): New section.
12433 (password_pbkdf2): New section.
12434 (search): New section.
12435 (Security): New section.
12436 (Troubleshooting): New section, currently very incomplete.
12437 (Invoking grub-mkpasswd-pbkdf2): New section.
12438 (Internals): New section, currently very incomplete.
12439
12440 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12441
12442 * util/grub.d/00_header.in: Add some more quoting (of
12443 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
12444 work again.
12445 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
12446
12447 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12448
12449 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
12450 to `count', fixing variable shadowing that broke the -c option.
12451
12452 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
12453
12454 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
12455 in case they contain spaces.
12456
12457 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
12458
12459 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
12460 "part_" to partmap module names, in line with grub-install.
12461 Reported by: Jindřich Makovička (Debian bug #584426).
12462
12463 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
12464
12465 * util/grub-mkimage.c: Make target-related error messages slightly
12466 more helpful; -O talks about "format". Explicitly point to the use
12467 of -O if no target is specified.
12468 Reported by: Didier Raboud (Debian bug #584415).
12469
12470 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
12471
12472 * INSTALL: Document several build requirements for optional features
12473 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
12474
12475 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
12476
12477 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
12478 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
12479 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
12480
12481 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12482
12483 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
12484 Thanks to Jordan Uggla for spotting this.
12485
12486 2010-06-02 Aleš Nesrsta <starous@volny.cz>
12487
12488 Finally make USB usable.
12489
12490 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
12491 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
12492 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
12493 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
12494 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
12495 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
12496 (GRUB_OHCI_FSMPS): Likewise.
12497 (GRUB_OHCI_PERIODIC_START): Likewise.
12498 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
12499 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
12500 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
12501 (GRUB_OHCI_SET_PORT_RESET): Likewise.
12502 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
12503 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
12504 (grub_ohci_transaction): Likewise.
12505 (grub_ohci_transfer): Improve condition detection algorithms.
12506 Handle toggle property. Program the transactions correctly.
12507 Improve error handling. Various important fixups.
12508 (grub_ohci_portstatus): Put register writes in right order.
12509 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
12510 (grub_uhci_transfer): Don't show "failed" message on success.
12511 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
12512 array.
12513 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
12514 determine its size.
12515 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
12516 before initialization is completed. Use IN direction for empty
12517 transfers. Use last_trans and compute toggle.
12518 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
12519 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
12520 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
12521 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
12522 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
12523 (grub_usb_device): Increase toggle to 256.
12524 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
12525 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
12526 GRUB_USBMS_SUBCLASS_SFF8070.
12527 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
12528 (grub_scsi_inquiry): New member page and alloc_length.
12529 (grub_scsi_request_sense): New structure.
12530 (grub_scsi_request_sense_data): Likewise.
12531 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
12532 control.
12533 * disk/scsi.c (grub_scsi_request_sense): New function.
12534 (grub_scsi_test_unit_ready): Likewise.
12535 (grub_scsi_inquiry): Fill new fields.
12536 (grub_scsi_read_capacity): Likewise.
12537 (grub_scsi_read10): Add request sense at the end.
12538 (grub_scsi_read12): Likewise.
12539 (grub_scsi_write10): Likewise.
12540 (grub_scsi_write12): Likewise.
12541 (grub_scsi_open): Add Test Unit Ready.
12542 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
12543 Support additional subclasses. Con't clear halt yet. Activate the
12544 proper config. Calculate LUNs correctly.
12545 (grub_usbms_transfer): Various important fixups.
12546
12547 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
12548
12549 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
12550 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
12551 (grub_ohci_fini_hw): New function.
12552 (grub_ohci_restore_hw): Likewise.
12553 (GRUB_MOD_INIT(ohci)): Register preboot hook.
12554 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
12555 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
12556
12557 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
12558
12559 Dedicated DMA allocations.
12560
12561 * bus/pci.c (grub_memalign_dma32): New function
12562 (grub_dma_free): Likewise.
12563 (grub_dma_get_virt): Likewise.
12564 (grub_dma_get_phys): Likewise.
12565 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
12566 (grub_ohci_pci_iter): Use dma32_alloc.
12567 (grub_ohci_transfer): Likewise.
12568 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
12569 (grub_usb_bulk_readwrite): Likewise.
12570 * include/grub/pci.h: Add declarations.
12571
12572 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
12573
12574 CS5536 support.
12575
12576 * bus/cs5536.c: New file.
12577 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
12578 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
12579 (cs5536_mod_SOURCES): New variable.
12580 (cs5536_mod_CFLAGS): Likewise.
12581 (cs5536_mod_LDFLAGS): Likewise.
12582 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
12583 machine/pci.h.
12584 (kernel_img_SOURCES): Add bus/cs5536.c.
12585 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
12586 usb_keyboard.mod.
12587 (usb_mod_SOURCES): New variable.
12588 (usb_mod_CFLAGS): New variable.
12589 (usb_mod_LDFLAGS): New variable.
12590 (usbtest_mod_SOURCES): New variable.
12591 (usbtest_mod_CFLAGS): New variable.
12592 (usbtest_mod_LDFLAGS): New variable.
12593 (ohci_mod_SOURCES): New variable.
12594 (ohci_mod_CFLAGS): New variable.
12595 (ohci_mod_LDFLAGS): New variable.
12596 (usbms_mod_SOURCES): New variable.
12597 (usbms_mod_CFLAGS): New variable.
12598 (usbms_mod_LDFLAGS): New variable.
12599 (usb_keyboard_mod_SOURCES): New variable.
12600 (usb_keyboard_mod_CFLAGS): New variable.
12601 (usb_keyboard_mod_LDFLAGS): New variable.
12602 * include/grub/smbus.h: New file.
12603 * include/grub/cs5536.h: New file.
12604
12605 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12606
12607 * util/grub.d/00_header.in: Add safety check to make sure that
12608 ${locale_dir} exists before trying to probe it.
12609
12610 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12611
12612 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
12613 per the GNU Coding Standards; this is now too obscure to be worth
12614 documenting.
12615 (QNX): Likewise.
12616 (chainloader): Remove cross-reference to `SCO UnixWare'.
12617
12618 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12619
12620 * docs/grub.texi (Chain-loading): New section.
12621 (DOS/Windows): New section, borrowed from GRUB Legacy with details
12622 adjusted for GRUB 2.
12623 (SCO UnixWare): Likewise.
12624 (QNX): Likewise.
12625 (chainloader): Add reference to `Block list syntax'.
12626 (drivemap): New section.
12627 (parttool): New section.
12628
12629 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12630
12631 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
12632 the grub shell'.
12633 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
12634 (Installing GRUB using grub-install): Remove reference to the grub
12635 shell; mention `grub-mkimage' and `grub-setup' instead.
12636 (Invoking grub-install): Likewise.
12637 (Interface): Add reference to `Menu entry editor'.
12638 (serial): Remove `--device' option.
12639
12640 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12641
12642 * docs/grub.texi (Configuration): New section, documenting
12643 configuration file generation using grub-mkconfig. I've left a slot
12644 for documenting the full shell scripting format but have not yet
12645 started on writing that up.
12646 (Invoking grub-mkconfig): New section.
12647
12648 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12649
12650 * docs/grub.texi (direntry): Remove grub-terminfo reference.
12651 (GNU GRUB manual): Likewise.
12652 (General commands): Update description of `terminfo' for GRUB 2.
12653
12654 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12655
12656 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
12657 (GRUB_MOD_INIT): Fix capitalisation.
12658 * docs/grub.texi (Command-line and menu entry commands): Document
12659 gettext and gptsync commands.
12660
12661 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12662
12663 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
12664 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
12665
12666 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
12667
12668 Add btrfs probing support, currently only in the single-device case.
12669
12670 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
12671 function.
12672 (grub_guess_root_device): Call find_root_device_from_mountinfo
12673 before looking in /dev.
12674
12675 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
12676
12677 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
12678 GRUB_DISK_SIZE_UNKNOWN.
12679 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
12680
12681 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
12682
12683 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
12684 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
12685 corrupted or not synced properly.
12686
12687 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
12688
12689 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
12690 Reported by: Seth Goldberg.
12691
12692 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
12693
12694 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
12695 addition of dest.
12696 Reported by: Seth Goldberg.
12697
12698 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
12699
12700 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
12701 Reported by: Seth Goldberg.
12702
12703 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
12704
12705 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
12706 64-bit address as signed on MIPS.
12707
12708 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
12709
12710 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
12711 to the empty string.
12712
12713 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
12714
12715 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
12716
12717 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
12718 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
12719 * kern/misc.c (__enable_execute_stack): Disable on
12720 GRUB_MACHINE_EMU.
12721
12722 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
12723
12724 Make grub-probe work with symbolic links under /dev/mapper as well
12725 as with real block devices. The Linux world seems to be (at best)
12726 in transition here, and GRUB shouldn't get caught in the middle.
12727
12728 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
12729 /dev/mapper.
12730
12731 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
12732
12733 * util/grub-script-check.c (main): Ensure defined behaviour on empty
12734 input files (in which case exit zero).
12735
12736 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
12737
12738 * kern/emu/misc.c (canonicalize_file_name): realpath can still
12739 return NULL for various reasons even if it has a maximum-length
12740 buffer: for example, there might be a symlink loop, or the path
12741 might exceed PATH_MAX. If this happens, return NULL.
12742
12743 2010-05-27 Robert Millan <rmh@gnu.org>
12744
12745 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
12746 partmap module to handle cross-partmap setups.
12747 Reported by Orestes Mas. Gràcies!
12748
12749 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
12750
12751 * util/grub-mkrescue.in: Initialise override_dir rather than
12752 assuming that it's unset or empty in the environment.
12753
12754 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
12755
12756 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
12757 variable index into p_index to suppress a warning with -Wshadow.
12758
12759 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
12760
12761 * INSTALL: Added flex >= 2.5.35 requirement.
12762
12763 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
12764
12765 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
12766
12767 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
12768
12769 cmostest support.
12770
12771 * commands/i386/cmostest.c: New file.
12772 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
12773 (cmostest_mod_SOURCES): New variable.
12774 (cmostest_mod_CFLAGS): Likewise.
12775 (cmostest_mod_LDFLAGS): Likewise.
12776 * conf/i386-pc.rmk: Likewise.
12777 * docs/grub.texi (Vendor power-on keys): New section.
12778 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
12779 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
12780 and GRUB_BUTTON_CMOS_ADDRESS.
12781 * util/grub.d/00_header.in: Handle powering-on by separate button.
12782
12783 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
12784
12785 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
12786 Removed drawing_scrollbar argument. All users updated
12787 Fixes #29792.
12788 Reported by Jo Shields
12789
12790 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
12791
12792 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
12793 buffer since gfxterm handles double repaint.
12794
12795 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
12796
12797 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
12798 * term/gfxterm.c (real_scroll): Likewise.
12799
12800 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12801
12802 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
12803 before calling BIOS.
12804
12805 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12806
12807 * include/grub/i18n.h: Always enable grub_gettext.
12808
12809 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12810
12811 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
12812 partition naming style.
12813
12814 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
12815
12816 * util/grub-mkconfig.in: Fix handling of -o so that it works when
12817 not the first option.
12818
12819 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
12820
12821 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
12822
12823 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
12824
12825 * util/misc.c: Move inclusion of <limits.h> to ...
12826 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
12827
12828 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
12829
12830 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
12831 Fix merge error in NetBSD code.
12832 (find_partition_start) [__NetBSD__]: Likewise.
12833
12834 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
12835
12836 Fix grub-mkrescue usage unit testing.
12837
12838 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
12839
12840 2010-05-18 Christian Franke <franke@computer.org>
12841
12842 * util/grub.d/10_windows.in: Use path names instead of
12843 drive letters to prevent warning from Cygwin 1.7.
12844 Add drivemap command to menuentry if needed.
12845
12846 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
12847
12848 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
12849 gnumach and gnumach.gz.
12850
12851 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12852
12853 * include/grub/i18n.h (gettext): Inline instead of using #define.
12854 (grub_gettext): Likewise.
12855 (_): Likewise.
12856
12857 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12858
12859 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
12860 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
12861 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
12862 (main): Add a slash after pkglibdirroot.
12863
12864 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12865
12866 * util/grub-install.in: Add missing "in" keyword.
12867
12868 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12869
12870 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
12871 Reported by: Seth Goldberg.
12872
12873 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12874
12875 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
12876
12877 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
12878
12879 * configure.ac: Check for Linux device-mapper support.
12880
12881 * util/hostdisk.c (device_is_mapped): New function.
12882 (find_partition_start): New function, partly broken out from
12883 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
12884 device-mapper support added.
12885 (linux_find_partition): Use find_partition_start.
12886 (convert_system_partition_to_system_disk): Add `st' argument.
12887 Support Linux /dev/mapper/* devices if device-mapper support is
12888 available; only DM-RAID devices are understood at present.
12889 (find_system_device): Add `st' argument. Pass it to
12890 convert_system_partition_to_system_disk.
12891 (grub_util_biosdisk_get_grub_dev): Pass stat result to
12892 find_system_device and convert_system_partition_to_system_disk. Use
12893 find_partition_start.
12894
12895 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
12896 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
12897 * util/deviceiter.c [__linux__]: Define MINOR.
12898 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
12899 * util/mkdevicemap.c (grub_putchar): New function.
12900 (grub_getkey): New function.
12901 (grub_refresh): New function.
12902 (main): Set debug=all if -v -v is used.
12903
12904 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
12905
12906 Fix build with non-GNU libcs.
12907
12908 * util/misc.c (canonicalize_file_name): Move to ...
12909 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
12910 grub_make_system_path_relative_to_its_root.
12911
12912 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
12913
12914 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
12915 we handle finding grub-mkimage. Default to finding grub-mkimage in
12916 ${bindir} with program_transform_name applied, and provide a
12917 --grub-mkimage option to override this.
12918
12919 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12920
12921 Remove grub-mkisofs.
12922
12923 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
12924 (grub_mkisofs_SOURCES): Removed.
12925 (grub_mkisofs_CFLAGS): Removed.
12926 * util/mkisofs/defaults.h: Removed.
12927 * util/mkisofs/eltorito.c: Likewise.
12928 * util/mkisofs/exclude.h: Likewise.
12929 * util/mkisofs/hash.c: Likewise.
12930 * util/mkisofs/include/: Likewise.
12931 * util/mkisofs/include/fctldefs.h: Likewise.
12932 * util/mkisofs/include/mconfig.h: Likewise.
12933 * util/mkisofs/include/prototyp.h: Likewise.
12934 * util/mkisofs/include/statdefs.h: Likewise.
12935 * util/mkisofs/iso9660.h: Likewise.
12936 * util/mkisofs/joliet.c: Likewise.
12937 * util/mkisofs/match.c: Likewise.
12938 * util/mkisofs/match.h: Likewise.
12939 * util/mkisofs/mkisofs.c: Likewise.
12940 * util/mkisofs/mkisofs.h: Likewise.
12941 * util/mkisofs/msdos_partition.h: Likewise.
12942 * util/mkisofs/multi.c: Likewise.
12943 * util/mkisofs/name.c: Likewise.
12944 * util/mkisofs/rock.c: Likewise.
12945 * util/mkisofs/tree.c: Likewise.
12946 * util/mkisofs/write.c: Likewise.
12947
12948 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12949
12950 Unify grub-mkimage accross platforms.
12951
12952 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
12953 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
12954 (grub_mkelfimage_SOURCES): Removed.
12955 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
12956 (util/grub-mkimage.c_DEPENDENCIES): .. this.
12957 (bin_UTILITIES): Add grub-mkimage.
12958 (grub_mkimage_SOURCES): New variable.
12959 (kernel_img_HEADERS): Remove machine/kernel.h.
12960 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
12961 (pkglib_PROGRAMS): Add kernel.img.
12962 (kernel_img_HEADERS): Add machine/kernel.h.
12963 (kernel_img_FORMAT): Removed.
12964 (bin_UTILITIES): Remove grub-mkimage.
12965 (grub_mkimage_SOURCES): Removed.
12966 (grub_mkimage_CFLAGS): Likewise.
12967 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
12968 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
12969 (pkglib_PROGRAMS): Add kernel.img.
12970 (bin_UTILITIES): Remove grub-mkimage.
12971 (grub_mkimage_SOURCES): Removed.
12972 (grub_mkimage_CFLAGS): Likewise.
12973 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
12974 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
12975 (pkglib_PROGRAMS): Add kernel.img.
12976 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
12977 (pkglib_PROGRAMS): Add kernel.img.
12978 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
12979 (grub_mkimage_SOURCES): Removed.
12980 (grub_mkimage_CFLAGS): Likewise.
12981 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
12982 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
12983 (pkglib_PROGRAMS): Add kernel.img.
12984 (bin_UTILITIES): Remove grub-mkimage.
12985 (grub_mkimage_SOURCES): Removed.
12986 (grub_mkimage_CFLAGS): Likewise.
12987 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
12988 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
12989 (grub_mkimage_SOURCES): Removed.
12990 (grub_mkimage_CFLAGS): Likewise.
12991 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
12992 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
12993 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
12994 (grub_pe32_optional_header): ... this.
12995 (grub_pe64_optional_header): ... and this. All users updated.
12996 (GRUB_PE32_PE32_MAGIC): Split into ..
12997 (GRUB_PE32_PE32_MAGIC): .. this.
12998 (GRUB_PE32_PE64_MAGIC): .. and this.
12999 (GRUB_PE32_SIGNATURE_SIZE): New definition.
13000 * include/grub/elf.h (PT_GNU_STACK): New definition.
13001 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
13002 * include/grub/i386/efi/kernel.h: Likewise.
13003 * include/grub/i386/kernel.h: Likewise.
13004 * include/grub/i386/pc/kernel.h: Likewise.
13005 * include/grub/i386/qemu/boot.h: Likewise.
13006 * include/grub/mips/kernel.h: Likewise.
13007 * include/grub/mips/qemu-mips/kernel.h: Likewise.
13008 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13009 * include/grub/powerpc/kernel.h: Likewise.
13010 * include/grub/sparc64/ieee1275/boot.h: Likewise.
13011 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13012 * include/grub/sparc64/kernel.h: Likewise.
13013 * include/grub/x86_64/efi/kernel.h: Likewise.
13014 * include/grub/x86_64/kernel.h: Likewise.
13015 * include/grub/offsets.h: New file.
13016 * include/grub/kernel.h (grub_module_info): Split into ...
13017 (grub_module_info32): ... this.
13018 (grub_module_info64): ... and this.
13019 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
13020 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
13021 (grub_boot_blocklist): Moved from here ...
13022 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
13023 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
13024 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
13025 * include/grub/types.h (grub_target_to_host16): Removed.
13026 (grub_target_to_host32): Likewise.
13027 (grub_target_to_host64): Likewise.
13028 (grub_host_to_target16): Likewise.
13029 (grub_host_to_target32): Likewise.
13030 (grub_host_to_target64): Likewise.
13031 (grub_host_to_target_addr): Likewise.
13032
13033 Support grub-mkrescue for efi, coreboot and qemu.
13034
13035 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
13036 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
13037 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
13038 * util/grub-mkrawimage.c: Moved from here ...
13039 * util/grub-mkimage.c: ... here. All users updated.
13040 (ALIGN_ADDR): Use image_target.
13041 (TARGET_NO_FIELD): New const.
13042 (image_target_desc): New type.
13043 (image_targets): New array.
13044 (grub_target_to_host64): Use image_target.
13045 (grub_target_to_host32): Likewise.
13046 (grub_target_to_host16): Likewise.
13047 (grub_host_to_target64): Likewise.
13048 (grub_host_to_target32): Likewise.
13049 (grub_host_to_target16): Likewise.
13050 (grub_host_to_target_addr): Likewise.
13051 (generate_image): Handle multiimage.
13052 (main): Require -O parameter. All users updated.
13053 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
13054 util/efi/grub-mkimage.c
13055 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
13056 New option --rom-directory.
13057 Use xorriso.
13058 * util/i386/efi/grub-mkimage.c: Removed.
13059 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
13060 (grub_target_to_host32): Likewise.
13061 (grub_target_to_host64): Likewise.
13062 (grub_host_to_target16): Likewise.
13063 (grub_host_to_target32): Likewise.
13064 (grub_host_to_target64): Likewise.
13065 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
13066 (grub_target_to_host32): Likewise.
13067 (grub_target_to_host64): Likewise.
13068 (grub_host_to_target16): Likewise.
13069 (grub_host_to_target32): Likewise.
13070 (grub_host_to_target64): Likewise.
13071
13072 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
13073
13074 Source tree is reorganized for emu build.
13075
13076 * include/grub/util/console.h: Move from here...
13077 * include/grub/emu/console.h: ...to here.
13078 * include/grub/util/getroot.h: Move from here...
13079 * include/grub/emu/getroot.h: ...to here.
13080 * include/grub/util/hostdisk.h: Move from here...
13081 * include/grub/emu/hostdisk.h: ...to here.
13082 * util/console.c: Move from here...
13083 * kern/emu/console.c: ...to here.
13084 * util/getroot.c: Move from here...
13085 * kern/emu/getroot.c: ...to here.
13086 * util/grub-emu.c: Move from here...
13087 * kern/emu/main.c: ...to here.
13088 * util/hostdisk.c: Move from here...
13089 * kern/emu/hostdisk.c: ...to here.
13090 * util/hostfs.c: Move from here...
13091 * kern/emu/hostfs.c: ...to here.
13092 * util/mm.c: Move from here...
13093 * kern/emu/mm.c: ...to here.
13094 * util/pci.c: Move from here...
13095 * bus/emu/pci.c: ...to here.
13096 * util/sdl.c: Move from here...
13097 * video/emu/sdl.c: ...to here.
13098 * util/time.c: Move from here...
13099 * kern/emu/time.c: ...to here.
13100 * util/usb.c: Move from here...
13101 * bus/usb/emu/usb.c: ...to here.
13102
13103 * include/grub/emu/misc.h: New header for grub-emu functions.
13104 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
13105
13106 * conf/any-emu.rmk: Rule updates for above renames.
13107 * conf/common.rmk: Likewise.
13108 * conf/i386-pc.rmk: Likewise.
13109 * conf/i386-qemu.rmk: Likewise.
13110 * conf/mips.rmk: Likewise.
13111 * conf/sparc64-ieee1275.rmk: Likewise.
13112 * conf/x86-efi.rmk: Likewise.
13113
13114 * disk/lvm.h: #include updates for above renames.
13115 * util/grub-mkrelpath.c: Likewise.
13116 * util/grub-probe.c: Likewise.
13117 * util/i386/pc/grub-setup.c: Likewise.
13118 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13119 * kern/emu/console.c: Likewise.
13120 * kern/emu/getroot.c: Likewise.
13121 * kern/emu/hostdisk.c: Likewise.
13122 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
13123
13124 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
13125 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
13126 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
13127 * util/misc.c: Remove grub-emu functions.
13128
13129 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13130
13131 Fix gfxmenu crash.
13132 Reported by: Thorsten Grützmacher.
13133
13134 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
13135 timeout hook.
13136 (circprog_set_property): Register and unregister timeout hook.
13137 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
13138 (label_destroy): Free template. and unregister hook.
13139 (label_set_state): New function.
13140 (label_set_property): Handle templates and hooks.
13141 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
13142 timeout hook.
13143 (progress_bar_set_property): Register and unregister timeout hook.
13144 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
13145 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
13146 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
13147 (update_timeout_visit): Removed.
13148 (update_timeouts): New function.
13149 (redraw_timeouts): Likewise.
13150 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
13151 (grub_gfxmenu_clear_timeout): Likewise.
13152 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
13153 (grub_gfxmenu_timeout_notify): Likewise.
13154 (grub_gfxmenu_timeout_notifications): New external variable.
13155 (grub_gfxmenu_timeout_register): New function.
13156 (grub_gfxmenu_timeout_unregister): Likewise.
13157
13158 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 Transform (broken) vga terminal into (working) vga video driver.
13161
13162 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
13163 video/i386/pc/vga.c.
13164 * include/grub/video.h (grub_video_driver_id):
13165 Add GRUB_VIDEO_DRIVER_VGA.
13166 * term/i386/pc/vga.c: Renamed to ...
13167 * video/i386/pc/vga.c: ...this
13168 (DEBUG_VGA): Removed.
13169 (CHAR_WIDTH): Likewise.
13170 (CHAR_HEIGHT): Likewise.
13171 (TEXT_WIDTH): Likewise.
13172 (TEXT_HEIGHT): Likewise.
13173 (DEFAULT_FG_COLOR): Likewise.
13174 (DEFAULT_BG_COLOR): Likewise.
13175 (colored_char): Likewise.
13176 (xpos): Likewise.
13177 (ypos): Likewise.
13178 (cursor_state): Likewise.
13179 (fg_color): Likewise.
13180 (bg_color): Likewise.
13181 (text_buf): Likewise.
13182 (page): Likewise.
13183 (font): Likewise.
13184 (framebuffer): New variable.
13185 (set_read_map): Disabled.
13186 (setup): New variable.
13187 (is_target): Likewise.
13188 (grub_vga_mod_init): Likewise.
13189 (grub_vga_mod_fini): Likewise.
13190 (check_vga_mem): Likewise.
13191 (write_char): Likewise.
13192 (write_cursor): Likewise.
13193 (scroll_up): Likewise.
13194 (grub_vga_putchar): Likewise.
13195 (grub_vga_getcharwidth): Likewise.
13196 (grub_vga_getwh): Likewise.
13197 (grub_vga_getxy): Likewise.
13198 (grub_vga_gotoxy): Likewise.
13199 (grub_vga_cls): Likewise.
13200 (grub_vga_setcolorstate): Likewise.
13201 (grub_vga_setcursor): Likewise.
13202 (grub_video_vga_init): New function.
13203 (grub_video_vga_setup): Likewise.
13204 (grub_video_vga_fini): Likewise.
13205 (update_target): Likewise.
13206 (grub_video_vga_blit_bitmap): Likewise.
13207 (grub_video_vga_blit_render_target): Likewise.
13208 (grub_video_vga_set_active_render_target): Likewise.
13209 (grub_video_vga_get_active_render_target): Likewise.
13210 (grub_video_vga_swap_buffers): Likewise.
13211 (grub_video_vga_set_palette): Likewise.
13212 (grub_video_vga_get_info_and_fini): Likewise.
13213 (grub_vga_term): Removed.
13214 (grub_video_vga_adapter): New variable.
13215 (GRUB_MOD_INIT): Register a video driver instead of terminal.
13216 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
13217
13218 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13219
13220 * video/readers/jpeg.c: Indented.
13221
13222 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13223
13224 Various jpeg cleanups.
13225
13226 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
13227 (grub_jpeg_decode_quan_table): Use sizeof.
13228 (grub_jpeg_decode_du): Use ARRAY_SIZE.
13229
13230 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
13231
13232 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
13233 tables. Ignore non-last ac bit.
13234 (grub_jpeg_decode_quan_table): Likewise.
13235
13236 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13237
13238 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
13239 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
13240 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13241 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
13242 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
13243 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
13244
13245 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13246
13247 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
13248 error.
13249
13250 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13251
13252 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
13253
13254 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13255
13256 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
13257 condition.
13258
13259 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13260
13261 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
13262 part.
13263
13264 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13265
13266 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
13267 pointers.
13268
13269 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13270
13271 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
13272
13273 2010-05-01 Christian Franke <franke@computer.org>
13274
13275 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
13276 Remove broken Cygwin path conversion.
13277 * util/misc.c: [__CYGWIN__] Add include and define.
13278 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
13279 for Cygwin 1.7.
13280 (make_system_path_relative_to_its_root): Simplify loop, replace early
13281 return by break.
13282 [__CYGWIN__] Add conversion to win32 path.
13283 Include "/" case in trailing slash removal.
13284
13285 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13286
13287 * kern/main.c (grub_load_config): Fix copy-pasted comment.
13288 Reported by: Seth Goldberg
13289
13290 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13291
13292 * commands/help.c (grub_cmd_help): Fix a typo.
13293 Reported by: Seth Goldberg
13294
13295 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13296
13297 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
13298 name and add N_.
13299 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
13300 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
13301 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
13302 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
13303 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
13304 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
13305 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
13306 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
13307 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
13308 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13309 * normal/context.c (GRUB_MOD_INIT): Likewise.
13310 * normal/main.c (GRUB_MOD_INIT): Likewise.
13311 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
13312 * term/serial.c (GRUB_MOD_INIT): Likewise.
13313 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
13314
13315 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13316
13317 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
13318 extra == 0.
13319
13320 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13321
13322 * commands/iorw.c: New file.
13323 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
13324 (iorw_mod_SOURCES): New variable.
13325 (iorw_mod_CFLAGS): Likewise.
13326 (iorw_mod_LDFLAGS): Likewise.
13327
13328 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13329
13330 Hotkey support
13331
13332 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
13333 * normal/main.c (hotkey_aliases): New variable.
13334 (grub_normal_add_menu_entry): Parse "--hotkey".
13335 * normal/menu_text.c (run_menu): Handle hotkeys.
13336
13337 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13338
13339 * kern/i386/coreboot/init.c (grub_machine_init): Call
13340 grub_machine_mmap_init on qemu.
13341
13342 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13343
13344 * boot/i386/qemu/boot.S: Add a missing .code16.
13345
13346 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 Use LBIO on coreboot.
13349
13350 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
13351 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
13352 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
13353 New declaration.
13354 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
13355 grub_machine_mmap_init on coreboot.
13356 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
13357 GRUB_LINUXBIOS_MEMBER_LINK.
13358 (grub_machine_mmap_iterate): Fix declaration.
13359 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
13360
13361 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13362
13363 Split coreboot and multiboot ports.
13364
13365 * conf/i386-multiboot.rmk: New file.
13366 * configure.ac: Add multiboot port.
13367 * include/grub/i386/multiboot/boot.h: New file.
13368 * include/grub/i386/multiboot/console.h: Likewise.
13369 * include/grub/i386/multiboot/init.h: Likewise.
13370 * include/grub/i386/multiboot/kernel.h: Likewise.
13371 * include/grub/i386/multiboot/loader.h: Likewise.
13372 * include/grub/i386/multiboot/memory.h: Likewise.
13373 * include/grub/i386/multiboot/serial.h: Likewise.
13374 * include/grub/i386/multiboot/time.h: Likewise.
13375 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
13376 * loader/multiboot.c: Likewise.
13377 * loader/multiboot_mbi2.c: Likewise.
13378 * util/grub-mkrescue.in: Generate multiboot rescue.
13379
13380 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13381
13382 * kern/parser.c (grub_parser_execute): Cope with read-only config.
13383
13384 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13385
13386 Merge handling of input and output terminals. Fix a hang.
13387
13388 * commands/terminal.c (abstract_terminal): New struct.
13389 (handle_command): New function. Based on grub_cmd_terminal_input.
13390 (grub_cmd_terminal_input): Use handle_command.
13391 (grub_cmd_terminal_output): Use handle_command.
13392
13393 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
13394
13395 Fix comment handling.
13396
13397 * tests/grub_script_comments.in: New testcase.
13398 * conf/tests.rmk: Rules for new testcase.
13399 * script/yylex.l: Updated flex rules.
13400
13401 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
13402
13403 * docs/grub.texi (play): Document that zero pitches produce rests.
13404 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
13405 if argc is 1.
13406
13407 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
13408
13409 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
13410 autogen issues.
13411
13412 2010-04-26 Christian Franke <franke@computer.org>
13413
13414 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
13415 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
13416 (grub_get_prefix): Remove function.
13417 * util/grub-emu.c (main): Replace grub_get_prefix () call by
13418 make_system_path_relative_to_its_root ().
13419 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
13420
13421 2010-04-24 Christian Franke <franke@computer.org>
13422
13423 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
13424 (kernel_img_LDFLAGS): Remove -static-libgcc.
13425
13426 2010-04-24 Christian Franke <franke@computer.org>
13427
13428 * configure.ac: Do not CHECK_BSS_START_SYMBOL
13429 and CHECK_END_SYMBOL if grub-emu is built.
13430 Unset TARGET_OBJ2ELF if grub-emu is built
13431 without module support.
13432
13433 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
13434
13435 Nilfs2 support.
13436
13437 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
13438 (grub_fstest_SOURCES): Likewise.
13439 (pkglib_MODULES): Add nilfs2.mod.
13440 (nilfs2_mod_SOURCES): New variable.
13441 (nilfs2_mod_CFLAGS): Likewise.
13442 (nilfs2_mod_LDFLAGS): Likewise.
13443 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
13444 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
13445 * fs/nilfs2.c: New file.
13446
13447 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
13448
13449 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
13450 is not supported.
13451
13452 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
13453
13454 Add grub-mkconfig support for NetBSD.
13455
13456 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
13457 * util/grub-mkconfig.in: export new NetBSD specific variables.
13458 * po/POTFILES-shell: added 10_netbsd.in.
13459 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
13460
13461 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
13462
13463 Fix emu build with grub-emu-pci and grub-emu-modules.
13464
13465 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
13466 functions.
13467 * include/grub/libpciaccess.h: New file.
13468 * conf/any-emu.rmk: Update kernel headers for emu build.
13469
13470 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13471
13472 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
13473
13474 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13475
13476 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
13477
13478 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13479
13480 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
13481 Retrieve chosen/bootpath if bootpath isn't hardcoded.
13482 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
13483 util/ieee1275/ofpath.c.
13484 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
13485 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
13486 * include/grub/sparc64/ieee1275/boot.h
13487 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
13488 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
13489 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
13490 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
13491 const char *.
13492 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
13493 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
13494 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
13495 install.
13496
13497 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
13498
13499 * util/grub-mkconfig.in: Corrected two == equality tests.
13500 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
13501 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
13502 expect a number appended to it.
13503 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
13504 expects a number appended to it.
13505
13506 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
13509
13510 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13511
13512 * util/hostdisk.c (make_device_name): Change to new partition naming.
13513
13514 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13515
13516 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
13517
13518 2010-04-17 Christian Franke <franke@computer.org>
13519
13520 * Makefile.in: Add missing localedir setting.
13521
13522 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
13523
13524 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
13525 mistake in r2156. Noticed by Anthony Fok.
13526
13527 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
13528 @localedir@.
13529 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
13530
13531 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
13532
13533 Fix a spurious, uninitialized variable warning.
13534
13535 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
13536 Initialize variable, shdr.
13537 (grub_freebsd_load_elfmodule): Likewise.
13538 (grub_freebsd_load_elf_meta): Likewise.
13539
13540 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
13541
13542 Fix for escaped dollar in double quoted strings.
13543
13544 * script/yylex.l: Updated flex rules.
13545 * conf/tests.rmk: Rule for new testcase.
13546 * tests/grub_script_dollar.in: New testcase.
13547
13548 2010-04-13 Carles Pina i Estany <carles@pina.cat>
13549 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
13550
13551 Enclose all translated strings in grub.cfg in single quotes, and
13552 escape them appropriately (Ubuntu bug #552921).
13553
13554 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
13555 * util/grub.d/10_hurd.in: Use it.
13556 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
13557 * util/grub.d/10_linux.in (linux_entry): Likewise.
13558
13559 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13560
13561 Fix cygwin compilation.
13562
13563 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
13564 * include/grub/misc.h (__register_frame_info)
13565 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
13566 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
13567 * kern/misc.c (__register_frame_info)
13568 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
13569 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
13570
13571 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13572
13573 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
13574
13575 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13576
13577 Unify libgcc processing.
13578
13579 * Makefile.in (kernel_img_LDFLAGS): New variable.
13580 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
13581 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
13582 overwriting.
13583 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
13584 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
13585 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
13586 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
13587 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
13588 overwriting. Remove -lgcc and -static-libgcc
13589 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
13590 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
13591 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
13592 (kernel_img_LDFLAGS): Append instead of overwriting.
13593 Remove -lgcc and -static-libgcc
13594 * conf/sparc64-ieee1275.rmk: Likewise.
13595 * include/grub/powerpc/libgcc.h: Move to ...
13596 * include/grub/libgcc.h: .. this.
13597 * include/grub/libgcc.h: Don't export most of the function on x86.
13598 (__bswapsi2): New export.
13599 (__bswapdi2): Likewise.
13600 * include/grub/mips/libgcc.h: Removed.
13601 * include/grub/sparc64/libgcc.h: Likewise.
13602
13603 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13604
13605 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
13606 disk_info_msg (conflicts with gettexting into languages with cases).
13607
13608 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13609
13610 Add grub-probe support for NetBSD.
13611
13612 * util/getroot.c (find_root_device): Convert block device to
13613 character device on NetBSD.
13614 * util/probe.c (probe): Require character device on NetBSD.
13615 * util/hostdisk.c: NetBSD specific headers.
13616 (configure_device_driver): new function to tune device driver
13617 parameters (currently only for NetBSD floppy driver).
13618 (grub_util_biosdisk_open): NetBSD specific code (get disk size
13619 via disklabel ioctl).
13620 (open_device): call configure_device_driver on NetBSD.
13621 (convert_system_partition_to_system_disk): NetBSD specific code.
13622 (device_is_wholedisk): Likewise.
13623 (grub_util_biosdisk_get_grub_dev): Likewise.
13624 (make_device_name): Fixed a typo in bsd_part_str.
13625 * configure.ac: check for opendisk() and getrawpartition() on
13626 NetBSD and set LIBUTIL.
13627 * Makefile.in: add LIBUTIL to LIBS.
13628
13629 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
13630
13631 Documentation fix.
13632
13633 * util/grub-script-check.c: Better help message.
13634
13635 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
13636
13637 Fix FreeBSD build.
13638
13639 * configure.ac: Flex version check.
13640 * conf/common.rmk: Add -Wno-error to sh.mod.
13641 * script/yylex.l: Remove all #pragma.
13642
13643 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13644
13645 * include/grub/util/misc.h (canonicalise_file_name): Add missing
13646 prototype.
13647 Reported by: Seth Goldberg.
13648
13649 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13650
13651 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
13652 Rename "module" to "module2".
13653 Reported by: Seth Goldberg.
13654
13655 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13656
13657 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
13658 EXPORT_FUNC.
13659 Reported by: Seth Goldberg.
13660
13661 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13662
13663 * lib/posix_wrap/locale.h: Add missing file.
13664 Reported by: Seth Goldberg.
13665
13666 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 grub-emu module load support.
13669
13670 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
13671 NO_DYNAMIC_MODULES switched to this.
13672 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
13673 (CFLAGS): Likewise.
13674 * conf/any-emu.rmk: Generate symlist.
13675 (kernel_img_HEADERS): Add util/datetime.h.
13676 (kernel_img_HEADERS) [sdl]: Add sdl.h.
13677 (kernel_img_HEADERS) [libusb]: Add libusb.h.
13678 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
13679 kern/$(target_cpu)/cache.S.
13680 * configure.ac (grub-emu-modules): New option.
13681 * genmk.rb: Handle multiple source lists.
13682 * include/grub/sdl.h: New file.
13683 * include/grub/libusb.h: Likewise.
13684 * util/grub-emu.c (main): Hanle (host) root.
13685 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
13686 GRUB_ERR_UNKNOWN_DEVICE.
13687 * util/misc.c: Move mm functions to ...
13688 * util/mm.c: ... here. All users updated.
13689
13690 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
13691
13692 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
13693 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
13694 missing files.
13695 (maintainer-clean): Remove libgcrypt-grub.
13696
13697 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
13700
13701 2010-04-09 EFI Coder <eficoder@hotmail.com>
13702
13703 * normal/menu_text.c (print_message): Clean up the message and show
13704 the Fn information when on EFI
13705 * term/efi/console.c (grub_console_checkkey): Add F4 support.
13706
13707 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
13708
13709 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
13710 All users updated.
13711 * normal/crypto.c (read_crypto_list): Likewise.
13712 * normal/dyncmd.c (read_command_list): Likewise.
13713 * normal/term.c (read_terminal_list): Likewise.
13714 * normal/main.c (read_lists): Use explicit prefix.
13715 (read_lists_hook): Use read_lists.
13716 (grub_normal_execute): Likewise.
13717
13718 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
13719
13720 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
13721 Reported by: Thomas Schmitt.
13722 Add -no-emul-boot to grub-mkisofs parameters.
13723
13724 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
13725
13726 * font/font.c: Indented.
13727
13728 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
13729
13730 Elif support to GRUB script (by Deepak Vankadaru).
13731
13732 * tests/grub_script_if.in: New testcase.
13733 * conf/tests.rmk: Rule for new testcase.
13734 * script/parser.y: Grammar rules for elif.
13735
13736 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
13737
13738 While and until loops support to GRUB script.
13739
13740 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
13741 (grub_script_create_cmdwhile): New function prototype.
13742 (grub_script_execute_cmdwhile): New function prototype.
13743 * script/execute.c (grub_script_execute_cmdwhile): New function.
13744 * script/parser.y (command): New commands.
13745 (whilecmd): New grammar rule.
13746 (untilcmd): New grammar rule.
13747 * script/script.c (grub_script_create_cmdwhile): New function.
13748 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
13749 function.
13750
13751 * tests/grub_script_while1.in: New testcase.
13752 * conf/tests.rmk: Rule for new testcase.
13753
13754 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
13755
13756 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
13757 as *.jpg.
13758
13759 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
13760
13761 GRUB_BACKGROUND support.
13762
13763 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
13764 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
13765
13766 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
13767
13768 Load fonts and modules for gfxmenu in grub-mkconfig.
13769 Idea by: Mario Vazquez
13770
13771 * util/grub.d/00_header.in: Load pf2 and image modules.
13772
13773 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
13774
13775 grub-mkconfig multiple terminal support.
13776
13777 * util/grub-mkconfig.in: Handle multiple terminals correctly.
13778 * util/grub.d/00_header.in: Likewise.
13779
13780 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
13781
13782 * Makefile.in: Specify files explicitly instead of using $< and $@ since
13783 we use cd $(srcdir).
13784
13785 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
13786
13787 * util/grub.d/10_linux.in: Only use the first word of
13788 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
13789 spaces in GRUB_DISTRIBUTOR.
13790 * util/grub.d/10_kfreebsd.in: Likewise.
13791 * util/grub.d/10_hurd.in: Likewise.
13792
13793 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
13794
13795 Fix unit testing framework for Qemu 0.12.
13796
13797 * tests/util/grub-shell.in: Remove -serial stdio option.
13798
13799 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13800
13801 POSIX header file wrappers.
13802
13803 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
13804 equivalents.
13805 * lib/posix_wrap/ctype.h: Likewise.
13806 * lib/posix_wrap/errno.h: Likewise.
13807 * lib/posix_wrap/langinfo.h: Likewise.
13808 * lib/posix_wrap/limits.h: Likewise.
13809 * lib/posix_wrap/localcharset.h: Likewise.
13810 * lib/posix_wrap/stdint.h: Likewise.
13811 * lib/posix_wrap/stdio.h: Likewise.
13812 * lib/posix_wrap/stdlib.h: Likewise.
13813 * lib/posix_wrap/string.h: Likewise.
13814 * lib/posix_wrap/sys/types.h: Likewise.
13815 * lib/posix_wrap/unistd.h: Likewise.
13816 * lib/posix_wrap/wchar.h: Likewise.
13817 * lib/posix_wrap/wctype.h: Likewise.
13818 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
13819 (grub_script.yy.h): Likewise.
13820 * script/yylex.l: Remove POSIX emulation #defines.
13821 * Makefile.in (POSIX_CFLAGS): New variable.
13822 (GNULIB_UTIL_CFLAGS): Likewise.
13823
13824 Regexp support.
13825
13826 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
13827 (regexp_mod_SOURCES): New variable.
13828 (regexp_mod_CFLAGS): Likewise.
13829 (regexp_mod_LDFLAGS): Likewise.
13830 * commands/regexp.c: New file.
13831 * gnulib/regcomp.c: New file. Imported from gnulib.
13832 * gnulib/regex.c: Likewise.
13833 * gnulib/regex_internal.c: Likewise.
13834 * gnulib/regex_internal.h: Likewise.
13835 * gnulib/regexec.c: Likewise.
13836 * gnulib/regex.h: Likewise.
13837
13838 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13839
13840 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
13841 unsupported video mode types.
13842
13843 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13844
13845 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
13846
13847 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13848
13849 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
13850 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
13851
13852 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
13853
13854 Remove unused grub_vga_get_font.
13855
13856 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
13857 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
13858
13859 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13860
13861 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
13862 * include/grub/misc.h: Likewise.
13863
13864 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13865
13866 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
13867 for which failure is fatal.
13868
13869 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13870
13871 * util/grub-install.in: Use mkdir -p to create grub directory.
13872 * util/i386/efi/grub-install.in: Likewise.
13873 * util/ieee1275/grub-install.in: Likewise.
13874
13875 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13876
13877 * Makefile.in (LEX): new variable.
13878
13879 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13880
13881 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
13882 `=' and added double quotes on operands of this equality test.
13883
13884 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
13885
13886 * Makefile.in (uninstall): Remove a leftover debug echo.
13887 Reported by: Grégoire Sutre
13888
13889 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
13890
13891 MIPS multiboot2 support.
13892
13893 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
13894 (multiboot2_mod_SOURCES): New variable.
13895 (multiboot2_mod_CFLAGS): Likewise.
13896 (multiboot2_mod_LDFLAGS): Likewise.
13897 (multiboot2_mod_ASFLAGS): Likewise.
13898 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
13899 definition.
13900 (MULTIBOOT_ENTRY_REGISTER): Likewise.
13901 (MULTIBOOT_MBI_REGISTER): Likewise.
13902 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
13903 (MULTIBOOT_ELF32_MACHINE): Likewise.
13904 (MULTIBOOT_ELF64_MACHINE): Likewise.
13905 * include/grub/mips/multiboot.h: New file.
13906 * include/grub/video.h (grub_video_driver_id): New type
13907 GRUB_VIDEO_DRIVER_SM712.
13908 (grub_video_get_info_and_fini): Export.
13909 (grub_video_get_palette): Likewise.
13910 (grub_video_get_driver_id): Likewise.
13911 * include/multiboot2.h: Resynced with spec.
13912 * loader/i386/multiboot.c: Moved from here ...
13913 * loader/multiboot.c: ... here. All users updated.
13914 (grub_multiboot_boot): Use platform-specific macros.
13915 * loader/i386/multiboot_elfxx.c: Moved from here ...
13916 * loader/multiboot_elfxx.c: ... here. All users updated.
13917 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
13918 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
13919 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
13920
13921 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13922
13923 Import gnulib argp module.
13924
13925 * gnulib/argp-ba.c: New file.
13926 * gnulib/argp-eexst.c: Likewise.
13927 * gnulib/argp-fmtstream.c: Likewise.
13928 * gnulib/argp-fmtstream.h: Likewise.
13929 * gnulib/argp-fs-xinl.c: Likewise.
13930 * gnulib/argp-help.c: Likewise.
13931 * gnulib/argp-namefrob.h: Likewise.
13932 * gnulib/argp-parse.c: Likewise.
13933 * gnulib/argp-pin.c: Likewise.
13934 * gnulib/argp-pv.c: Likewise.
13935 * gnulib/argp-pvh.c: Likewise.
13936 * gnulib/argp-version-etc.c: Likewise.
13937 * gnulib/argp-version-etc.h: Likewise.
13938 * gnulib/argp-xinl.c: Likewise.
13939 * gnulib/argp.h: Likewise.
13940
13941 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 * kern/device.c (grub_device_iterate): Clear errors after failed
13944 opening device.
13945
13946 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13947
13948 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
13949 returned by firmware.
13950
13951 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13952
13953 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
13954 compilation on coreboot and qemu
13955
13956 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
13957
13958 * include/multiboot2.h: Resync with spec.
13959
13960 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
13961
13962 Multiboot2 tag support
13963
13964 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
13965 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
13966 Remove loader/multiboot_loader.c.
13967 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
13968 (grub_multiboot2_real_boot): Likewise.
13969 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
13970 (grub_get_multiboot_mmap_count): New proto.
13971 (grub_fill_multiboot_mmap): Likewise.
13972 (grub_multiboot_set_video_mode): Likewise.
13973 (grub_multiboot_set_console): Likewise.
13974 (grub_multiboot_load): Likewise.
13975 (grub_multiboot_load_elf): Likewise.
13976 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
13977 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
13978 * include/multiboot.h: Resynced with specification.
13979 * include/multiboot2.h: Resynced with specification.
13980 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
13981 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
13982 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
13983 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
13984 users updated.
13985 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
13986 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
13987 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
13988 Removed.
13989 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
13990 Moved from here...
13991 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
13992 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
13993 Moved from here...
13994 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
13995 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
13996 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
13997 All users updated.
13998 * loader/i386/multiboot_mbi2.c: New file.
13999
14000 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 Resync with gnulib.
14003
14004 * Makefile.in (GNULIB_CFLAGS): New variable.
14005 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
14006 (grub_script_check_CFLAGS): New variable.
14007 * gnulib/alloca.h: Resync with gnulib.
14008 * gnulib/error.c: Likewise.
14009 * gnulib/error.h: Likewise.
14010 * gnulib/fnmatch.c: Likewise.
14011 * gnulib/fnmatch_loop.c: Likewise.
14012 * gnulib/getdelim.c: Likewise.
14013 * gnulib/getline.c: Likewise.
14014 * gnulib/getopt.c: Likewise.
14015 * gnulib/getopt1.c: Likewise.
14016 * gnulib/getopt_int.h: Likewise.
14017 * gnulib/gettext.h: Likewise.
14018 * gnulib/progname.c: Likewise.
14019 * gnulib/progname.h: Likewise.
14020
14021 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
14022
14023 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
14024 which is the case with --disabled-nls.
14025
14026 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
14027 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
14028 * util/misc.c: Likewise.
14029 * util/mkisofs/mkisofs.c: Likewise.
14030 * util/mkisofs/mkisofs.h: Likewise.
14031
14032 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14033
14034 Simplify Apple CC support.
14035
14036 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
14037 Add 0 byte at the end not to have a symbol with empty target.
14038 * mmap/i386/pc/mmap_helper.S: Likewise.
14039 * genmk.rb: Ignore errors 2030 and 2050.
14040 * kern/i386/pc/startup.S: Use LOCAL when possible.
14041
14042 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
14043
14044 Testcase and the fix for final semicolon on cmdline.
14045
14046 * tests/grub_script_final_semicolon.in: New testcase.
14047 * conf/tests.rmk: Rules for the new testcase.
14048 * script/parser.y: Grammar fix.
14049
14050 2010-03-26 BVK Chaitanya <bvk@localhost>
14051
14052 Blank lines testcase for GRUB script.
14053
14054 * tests/grub_script_blanklines.in: New testcase.
14055 * conf/tests.rmk: Rules for the new testcase.
14056
14057 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14058
14059 Don't use __FILE__.
14060
14061 * genmk.rb: Add -DGRUB_FILE to all C targets.
14062 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
14063 * include/grub/list.h: Likewise.
14064 * include/grub/misc.h: Likewise.
14065 * include/grub/mm.h: Likewise.
14066 * include/grub/test.h: Likewise.
14067 * kern/mm.c: Likewise.
14068 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
14069
14070 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14071
14072 Sunpc partitions support.
14073
14074 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
14075 (grub_fstest_SOURCES): Likewise.
14076 (pkglib_MODULES): Add part_sunpc.mod.
14077 (part_sunpc_mod_SOURCES): New variable.
14078 (part_sunpc_mod_CFLAGS): Likewise.
14079 (part_sunpc_mod_LDFLAGS): Likewise.
14080 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
14081 * partmap/sunpc.c: New file.
14082
14083 2010-03-26 BVK Chaitanya <bvk@localhost>
14084
14085 For loop support to GRUB script.
14086
14087 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
14088 (grub_script_create_cmdfor): New function prototype.
14089 (grub_script_execute_cmdfor): New function prototype.
14090 * script/execute.c (grub_script_execute_cmdfor): New function.
14091 * script/parser.y (command): New for command.
14092 (forcmd): New grammar rule.
14093 * script/script.c (grub_script_create_cmdfor): New function.
14094 * util/grub-script-check.c (grub_script_execute_cmdfor): New
14095 function.
14096 * tests/grub_script_for1.in: New testcase.
14097 * conf/tests.rmk: Rules for new testcase.
14098
14099 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14100
14101 Nested partitions
14102
14103 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
14104 'partition' is NULL, grub_partition_get_start already does that.
14105 * commands/loadenv.c (check_blocklists): Likewise.
14106 (write_blocklists): Likewise.
14107 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
14108 (grub_fstest_SOURCES): Likewise.
14109 (pkglib_MODULES): Add part_bsd.mod.
14110 (part_bsd_mod_SOURCES): New variable.
14111 (part_bsd_mod_CFLAGS): Likewise.
14112 (part_bsd_mod_LDFLAGS): Likewise.
14113 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
14114 (grub_emu_SOURCES): Likewise.
14115 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14116 * include/grub/bsdlabel.h: New file.
14117 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
14118 'get_name'.
14119 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
14120 (grub_partition_map_list): New variable.
14121 (grub_partition_map_register): Inline.
14122 (grub_partition_map_unregister): Likewise.
14123 (FOR_PARTITION_MAPS): New macro.
14124 (grub_partition_map_iterate): Removed.
14125 (grub_partition_get_start): Handle nested partitions.
14126 * include/grub/msdos_partition.h: Remove bsd-related entries.
14127 (grub_pc_partition): Remove.
14128 * kern/disk.c (grub_disk_close): Free partition data.
14129 (grub_disk_adjust_range): Handle nested partitions.
14130 * kern/partition.c (grub_partition_map_probe): New function.
14131 (grub_partition_probe): Parse name to number, handle subpartitions.
14132 (get_partmap): New function.
14133 (grub_partition_iterate): Handle subpartitions.
14134 (grub_partition_get_name): Likewise.
14135 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
14136 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
14137 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
14138 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
14139 Set 'number'.
14140 (acorn_partition_map_probe): Remove.
14141 (acorn_partition_map_get_name): Likewise.
14142 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
14143 Set 'number'.
14144 Set 'index' to 0 since there can be only one partition entry per sector.
14145 (amiga_partition_map_probe): Remove.
14146 (amiga_partition_map_get_name): Likewise.
14147 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
14148 Set 'number'.
14149 Set 'offset' and 'index' to real positions of partitions.
14150 (apple_partition_map_probe): Remove.
14151 (apple_partition_map_get_name): Likewise.
14152 * partmap/bsdlabel.c: New file.
14153 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
14154 Set 'number'.
14155 Allocate 'data' so it can be correctly freed.
14156 Set 'index' to offset inside sector.
14157 (gpt_partition_map_probe): Remove.
14158 (gpt_partition_map_get_name): Likewise.
14159 * partmap/msdos.c (grub_partition_parse): Remove.
14160 (pc_partition_map_iterate): Don't force raw access.
14161 Set 'number'.
14162 Make 'ext_offset' a local variable.
14163 (pc_partition_map_probe): Remove.
14164 (pc_partition_map_get_name): Remove.
14165 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
14166 Set 'number'.
14167 (sun_partition_map_probe): Remove.
14168 (sun_partition_map_get_name): Likewise.
14169 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
14170 (grub_pcpart_type): Likewise.
14171 * util/hostdisk.c (open_device): Handle new numbering scheme.
14172 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
14173 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
14174 * util/grub-probe.c (probe_partmap): Handle nested paritions.
14175 * util/grub-install.in: Insert all subpartition modules.
14176 * util/ieee1275/grub-install.in: Likewise.
14177
14178 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
14179
14180 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
14181 grammar.
14182
14183 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
14184
14185 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
14186
14187 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
14188
14189 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
14190 match where 'make install' puts them.
14191 * util/i386/efi/grub-install.in: Likewise.
14192
14193 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
14194
14195 * .bzrignore: Add gentrigtables, grub-script-check,
14196 grub_script_check_init.c, grub_script_check_init.h, and
14197 trigtables.c.
14198
14199 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
14200
14201 * kern/parser.c: Indented.
14202
14203 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
14204
14205 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
14206
14207 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
14208
14209 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
14210 alpha_mask_size == 0 case.
14211
14212 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
14213
14214 GRUB shell lexer and parser improvements.
14215
14216 * conf/any-emu.rmk: Build rule updates.
14217 * conf/common.rmk: Likewise.
14218 * conf/i386-coreboot.rmk: Likewise.
14219 * conf/i386-efi.rmk: Likewise.
14220 * conf/i386-ieee1275.rmk: Likewise.
14221 * conf/i386-pc.rmk: Likewise.
14222 * conf/powerpc-ieee1275.rmk: Likewise.
14223 * conf/x86_64-efi.rmk: Likewise.
14224
14225 * configure.ac: Configure check for flex.
14226
14227 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
14228 types.
14229 (grub_lexer_param): Struct member updates.
14230 (grub_parser_param): Likewise.
14231 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
14232 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
14233 (grub_script_lexer_init): Prototype update.
14234 (grub_script_lexer_record_start): Likewise.
14235 (grub_script_lexer_record_stop): Likewise.
14236 (grub_script_lexer_yywrap): New function prototype.
14237 (grub_script_lexer_fini): Likewise.
14238 (grub_script_execute_argument_to_string): Removed by...
14239 (grub_script_execute_argument_to_argv): ...better version.
14240
14241 * script/execute.c (ROUND_UPTO): New macro.
14242 (grub_script_execute_cmdline): Out of memory fixes.
14243 (grub_script_execute_menuentry): Likewise.
14244 (grub_script_execute_argument_to_string): Removed. Update all
14245 users by...
14246 (grub_script_execute_argument_to_argv): ...better version.
14247 * script/function.c (grub_script_function_create): Use
14248 grub_script_execute_argument_to_argv instead of
14249 grub_script_execute_argument_to_string.
14250
14251 * script/lexer.c (check_varstate): Removed.
14252 (check_textstate): Removed.
14253 (grub_script_lexer_record_start): Likewise.
14254 (grub_script_lexer_record_stop): Likewise.
14255 (recordchar): Replaced with...
14256 (grub_script_lexer_record): ...new function.
14257 (nextchar): Removed.
14258 (grub_script_lexer_init): Rewritten.
14259 (grub_script_yylex): Rewritten.
14260 (append_newline): New function.
14261 (grub_script_lexer_yywrap): New function.
14262 (grub_script_lexer_fini): New function.
14263 (grub_script_yyerror): Sets error flag.
14264
14265 * script/yylex.l: New file.
14266 (grub_lexer_yyfree): Wrapper for flex yyffre.
14267 (grub_lexer_yyalloc): Likewise.
14268 (grub_lexer_yyrealloc): Likewise.
14269 * script/parser.y: Refactored.
14270
14271 * script/script.c (grub_script_arg_add): Out of memory fixes.
14272 (grub_script_add_arglist): Likewise.
14273 (grub_script_create_cmdline): Likewise.
14274 (grub_script_create_cmdmenu): Likewise.
14275 (grub_script_add_cmd): Likewise.
14276 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
14277 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
14278 unnecessary code.
14279
14280 * tests/grub_script_echo1.in: New testcase.
14281 * tests/grub_script_vars1.in: New testcase.
14282 * tests/grub_script_echo_keywords.in: New testcase.
14283
14284 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14285
14286 Remove some redundancy in build system.
14287
14288 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
14289 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
14290 (TARGET_LDFLAGS): Add -nostdlib.
14291 (TARGET_IMG_LDFLAGS): Likewise.
14292 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
14293 anything since mmap isn't available.
14294 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
14295 Add util/time.c.
14296 (pkglib_MODULES): Remove reboot.mod.
14297 (reboot_mod_SOURCES): Removed.
14298 (reboot_mod_CFLAGS): Likewise.
14299 (reboot_mod_LDFLAGS): Likewise.
14300 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
14301 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
14302 (DEFSYMFILES): Add kernel_syms.lst.
14303 (kernel_img_HEADERS): Add common headers.
14304 (symlist.c): New target.
14305 (kernel_syms.lst): Likewise.
14306 (pkglib_MODULES): Add memdisk.mod.
14307 (memdisk_mod_SOURCES): New variable.
14308 (memdisk_mod_CFLAGS): Likewise.
14309 (memdisk_mod_LDFLAGS): Likewise.
14310 (pkglib_MODULES): Add reboot.mod.
14311 (reboot_mod_SOURCES): New variable.
14312 (reboot_mod_CFLAGS): Likewise.
14313 (reboot_mod_LDFLAGS): Likewise.
14314 (pkglib_MODULES): Add date.mod.
14315 (date_mod_SOURCES): New variable.
14316 (date_mod_CFLAGS): Likewise.
14317 (date_mod_LDFLAGS): Likewise.
14318 (pkglib_MODULES): Add datehook.mod.
14319 (datehook_mod_SOURCES): New variable.
14320 (datehook_mod_CFLAGS): Likewise.
14321 (datehook_mod_LDFLAGS): Likewise.
14322 (pkglib_MODULES): Add lsmmap.mod.
14323 (lsmmap_mod_SOURCES): New variable.
14324 (lsmmap_mod_CFLAGS): Likewise.
14325 (lsmmap_mod_LDFLAGS): Likewise.
14326 (pkglib_MODULES): Add boot.mod.
14327 (boot_mod_SOURCES): New variable.
14328 (boot_mod_CFLAGS): Likewise.
14329 (boot_mod_LDFLAGS): Likewise.
14330 * conf/i386-coreboot.rmk: Removed redundant parts.
14331 * conf/i386-ieee1275.rmk: Likewise.
14332 * conf/i386-pc.rmk: Likewise.
14333 * conf/mips-yeeloong.rmk: Likewise.
14334 * conf/mips.rmk: Likewise.
14335 * conf/powerpc-ieee1275.rmk: Likewise.
14336 * conf/sparc64-ieee1275.rmk: Likewise.
14337 * conf/x86_64-efi.rmk: Likewise.
14338 * conf/i386-coreboot.rmk: Moved qemu parts ..
14339 * conf/i386-qemu.rmk: ... here
14340 * conf/i386-efi.rmk: Moved common parts to...
14341 * conf/x86-efi.rmk: ... here.
14342 * conf/i386.rmk: Added modules common to all x86 variants.
14343 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
14344 * disk/memdisk.c: Remove grub/machine/kernel.h.
14345 * gensymlist.sh.in: Include symbol.h.
14346 * hook/datehook.c: Correct module name.
14347 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
14348 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
14349 * include/grub/i386/efi/serial.h: New file.
14350 * include/grub/x86_64/efi/serial.h: Likewise.
14351 * util/time.c: Likewise.
14352 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
14353
14354 2010-03-14 Colin King <colin.king@ubuntu.com>
14355 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
14356
14357 Shrink the pre-partition-table part of boot.img by eight bytes.
14358
14359 * boot/i386/pc/boot.S (ERR): New macro.
14360 (chs_mode): Use ERR.
14361 (geometry_error): Likewise.
14362 (hd_probe_error): Remove. This is only used once, so we wrwite
14363 it inline instead.
14364 (read_error): Instead of printing read_error_string, just set up
14365 %si and fall through to ...
14366 (error_message): ... this new function, also used by ERR.
14367
14368 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
14369
14370 Speed up consecutive hostdisk operations on the same device.
14371
14372 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
14373 (grub_util_biosdisk_open): Initialise disk->data.
14374 (struct linux_partition_cache): New structure.
14375 (linux_find_partition): Cache partition start positions; these are
14376 expensive to compute on every read and write.
14377 (open_device): Cache open file descriptor in disk->data, so that we
14378 don't have to reopen it and flush the buffer cache for consecutive
14379 operations on the same device.
14380 (grub_util_biosdisk_close): New function.
14381 (grub_util_biosdisk_dev): Set `close' member.
14382
14383 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
14384 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
14385 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14386 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
14387 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
14388
14389 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14390
14391 Compile parts of grub-emu as modules.
14392
14393 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
14394 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
14395 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
14396 (all-local): Add $(GRUB_EMU).
14397 (install-local): Install $(GRUB_EMU).
14398 (uninstall): Uninstall $(GRUB_EMU).
14399 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
14400 * kern/dl.c: Likewise.
14401 * commands/sleep.c: Not include machine/time.h.
14402 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
14403 (COMMON_CFLAGS): Likewise.
14404 (sbin_UTILITIES): Remove grub-emu.
14405 (grub_emu_SOURCES): Removed.
14406 (kernel_img_RELOCATABLE): New variable.
14407 (pkglib_PROGRAMS): Add kernel.img.
14408 (kernel_img_SOURCES): New variable
14409 (kernel_img_CFLAGS): Likewise.
14410 (kernel_img_LDFLAGS): Likewise.
14411 (TARGET_NO_STRIP): Likewise.
14412 (TARGET_NO_DYNAMIC_MODULES): Likewise.
14413 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
14414 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
14415 (grub-emu): New target.
14416 (GRUB_EMU): New variable.
14417 * configure.ac: Whitelist -emu as possible x86_64 architecture.
14418 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
14419 * loader/xnu.c: Likewise.
14420 * include/grub/pci.h: Likewise.
14421 * genemuinit.sh: New file.
14422 * genemuinitheader.sh: Likewise.
14423 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
14424 Support TARGET_NO_DYNAMIC_MODULES.
14425 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
14426 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
14427 * disk/loopback.c: Likewise.
14428 * font/font_cmd.c: Likewise.
14429 * partmap/acorn.c: Likewise.
14430 * partmap/amiga.c: Likewise.
14431 * partmap/apple.c: Likewise.
14432 * partmap/gpt.c: Likewise.
14433 * partmap/msdos.c: Likewise.
14434 * partmap/sun.c: Likewise.
14435 * parttool/msdospart.c: Likewise.
14436 * term/gfxterm.c: Likewise.
14437 * video/bitmap.c: Likewise.
14438 * video/readers/jpeg.c: Likewise.
14439 * video/readers/png.c: Likewise.
14440 * video/readers/tga.c: Likewise.
14441 * video/video.c: Likewise.
14442 * util/grub-emu.c (read_command_list): Removed.
14443 (main): Don't call util_init_nls.
14444 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
14445 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
14446
14447 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14448
14449 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
14450 date.mod, datehook.mod.
14451 (datetime_mod_SOURCES): New variable.
14452 (datetime_mod_CFLAGS): Likewise.
14453 (datetime_mod_LDFLAGS): Likewise.
14454 (date_mod_SOURCES): Likewise.
14455 (date_mod_CFLAGS): Likewise.
14456 (date_mod_LDFLAGS): Likewise.
14457 (datehook_mod_SOURCES): Likewise.
14458 (datehook_mod_CFLAGS): Likewise.
14459 (datehook_mod_LDFLAGS): Likewise.
14460 * conf/sparc64-ieee1275.rmk: Likewise.
14461 * lib/ieee1275/datetime.c: New file.
14462
14463 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14464
14465 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
14466 (ieee1275_fb_mod_SOURCES): New variable.
14467 (ieee1275_fb_mod_CFLAGS): Likewise.
14468 (ieee1275_fb_mod_LDFLAGS): Likewise.
14469 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
14470 New proto.
14471 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
14472 (HEAP_MAX_ADDR): Likewise.
14473 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
14474 type.
14475 Correct stop condition.
14476 (grub_ieee1275_devices_iterate): New function.
14477 * video/ieee1275.c: New file.
14478
14479 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14480
14481 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
14482
14483 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
14484 as scratch.
14485 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
14486 SCRATCH_PAD_DISKBOOT as scratch.
14487 (bootit): Pass Openfirmware pointer in %o4.
14488 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
14489 of 0x200000.
14490 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
14491 with util/grub-mkrawimage.c.
14492 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
14493 * include/grub/aout.h (AOUT_MID_SUN): New definition.
14494 (grub_aout_get_type) [GRUB_UTIL]: Removed.
14495 (grub_aout_load) [GRUB_UTIL]: Likewise.
14496 * include/grub/kernel.h (grub_modules_get_end): New proto.
14497 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
14498 (SCRATCH_PAD_BOOT): New definition.
14499 (SCRATCH_PAD_DISKBOOT): Likewise.
14500 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
14501 * include/grub/sparc64/ieee1275/ieee1275.h
14502 (grub_ieee1275_original_stack): New variable
14503 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
14504 New definition
14505 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
14506 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
14507 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
14508 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
14509 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
14510 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
14511 (grub_platform_image_format_t): New type.
14512 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
14513 * kern/main.c (grub_modules_get_end)
14514 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
14515 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
14516 (codestart): Switch stacks.
14517 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
14518 variable.
14519 (grub_heap_init): Use grub_modules_get_end.
14520 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
14521 stack.
14522 * util/grub-mkrawimage.c (generate_image): Support sparc64.
14523 (main): Likewise.
14524 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
14525
14526 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
14527
14528 * util/grub-mkrescue.in: Base ISO UUID on UTC.
14529
14530 2010-03-08 Matt Kraai <kraai@ftbfs.org>
14531
14532 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
14533 bug #559005).
14534
14535 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
14536
14537 * genmoddep.awk: Output all missing symbols and not only first.
14538
14539 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
14540
14541 * NEWS: Put the date of 1.98 release.
14542
14543 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
14544
14545 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
14546 ft2build.h.
14547
14548 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
14549
14550 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
14551 completition in the middle of string.
14552
14553 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
14554
14555 * util/grub-mkrescue.in: Use mktemp with explicit template.
14556
14557 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
14558
14559 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
14560
14561 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
14562
14563 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
14564 right pointer.
14565
14566 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
14567
14568 Fix FreeBSD compilation.
14569
14570 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
14571 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
14572
14573 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
14574
14575 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
14576
14577 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14578
14579 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
14580
14581 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14582
14583 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
14584
14585 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
14586
14587 Support relative image path in theme file.
14588
14589 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
14590 (image_set_property): Handle theme_dir and relative path.
14591
14592 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14593
14594 * configure.ac: Alias amd64 to x86_64.
14595
14596 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14597
14598 * NEWS: mention multiboot on EFI.
14599
14600 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14601
14602 * kern/main.c (grub_load_modules): Handle errors from init functions of
14603 embeded modules.
14604
14605 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14606
14607 * normal/autofs.c (autoload_fs_module): Handle errors.
14608
14609 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14610
14611 Disable linux.mod on qemu-mips since it's not functional and leads
14612 to compilation failure.
14613
14614 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
14615 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
14616 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
14617 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
14618 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
14619 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
14620 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
14621 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
14622 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
14623 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
14624 Reported by: BVK Chaitanya
14625
14626 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
14627
14628 * INSTALL: Add gettext as a dependency and add qemu to a new section
14629 "Prerequisites for make-check".
14630
14631 2010-03-04 Christian Franke <franke@computer.org>
14632
14633 * util/grub-pe2elf.c: Add missing include "progname.h".
14634
14635 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14636
14637 * normal/crypto.c (read_crypto_list): Fix a typo.
14638 Reported by: Seth Goldberg.
14639
14640 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14641
14642 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
14643 Reported by: Seth Goldberg.
14644
14645 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14646
14647 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
14648 ascii.bitmaps.
14649
14650 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * genmk.rb: Remove terminal*.lst in make clean.
14653 Reported by: Seth Goldberg.
14654
14655 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
14656
14657 * util/i386/efi/grub-install.in: Copy gettext files.
14658
14659 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
14660
14661 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
14662
14663 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
14664
14665 Wait for user entry basing on presence of output rather than on errors.
14666
14667 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
14668 (grub_install_newline_hook): Likewise.
14669 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
14670 * normal/menu.c (show_menu): Check line_counter to determine presence
14671 of output.
14672 * normal/term.c (grub_normal_line_counter): New variable.
14673 (grub_normal_get_line_counter): New function.
14674 (grub_install_newline_hook): Likewise.
14675
14676 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
14677
14678 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
14679
14680 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
14681
14682 * configure.ac: Update version to 1.98.
14683
14684 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
14685
14686 * util/grub.d/10_linux.in (linux_entry): Don't default to
14687 gfxpayload=keep if Linux doesn't support video handover.
14688
14689 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
14690
14691 Don't compile video modules on yeeloong since video subsystem is part
14692 of kernel.
14693
14694 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
14695 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
14696 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
14697 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
14698 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
14699 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
14700 * include/grub/bitmap_scale.h: Likewise.
14701 * include/grub/bufio.h: Likewise.
14702 * include/grub/font.h: Likewise.
14703 * include/grub/gfxterm.h: Likewise.
14704 * include/grub/video.h: Likewise.
14705 * include/grub/vbe.h: Don't include video_fb.h.
14706 * video/i386/pc/vbe.c: Include video_fb.h.
14707 * commands/i386/pc/vbetest.c: Include video.h.
14708
14709 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
14710
14711 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
14712 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
14713 default entry if GRUB_SAVEDEFAULT=true. This allows using
14714 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
14715 saving a new default on every boot.
14716
14717 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 * normal/crypto.c (read_crypto_list): Fix a memory leak.
14720 * normal/term.c (read_terminal_list): Likewise.
14721 * normal/main.c (grub_normal_init_page): Likewise.
14722 (grub_normal_read_line_real): Likewise.
14723
14724 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
14725
14726 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
14727 memory leak.
14728 Reported by: Seth Goldberg.
14729
14730 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
14731
14732 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
14733 duplicate declaration of `start'.
14734
14735 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
14736
14737 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
14738 filename.
14739 Reported by: Georgy Buranov
14740
14741 2010-02-20 Carles Pina i Estany <carles@pina.cat>
14742
14743 * util/grub-mkrawimage.c (usage): Change string formatting to
14744 improve gettext.
14745
14746 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14747
14748 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
14749 backspace keys.
14750
14751 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
14752
14753 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
14754 Reported by: Michael Suchanek.
14755
14756 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14757
14758 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
14759 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
14760
14761 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
14762
14763 Remove any reference to non-free fonts.
14764
14765 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
14766 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
14767 uses non-free components.
14768 * font/font.c (grub_font_get_name): Remove example name.
14769 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
14770 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
14771 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
14772 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
14773
14774 2010-02-16 Georgy Buranov <gburanov@gmail.com>
14775
14776 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
14777
14778 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
14779
14780 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
14781 Double divisor.
14782 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
14783 features.
14784 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
14785
14786 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
14787
14788 * gensymlist.sh.in: Use TARGET_CC instead of CC.
14789
14790 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14791
14792 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
14793 * docs/grub.texi (Command-line and menu entry commands): Document play
14794 command.
14795
14796 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14797
14798 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
14799 parse arguments as inline tempo and notes. Move code for playing notes
14800 to...
14801 (play): ... new function.
14802
14803 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14804
14805 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
14806 grub_uint16_t instead of short.
14807 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
14808 disk from little endian to cpu endianness.
14809
14810 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
14811
14812 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
14813 GRUB_TICKS_PER_SECOND instead of 120.
14814
14815 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14816
14817 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
14818 escape sequence after \e.
14819
14820 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14821
14822 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
14823 non-ASCII characters.
14824
14825 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14826
14827 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
14828 set root in single quotes to prevent \, from being unescaped.
14829
14830 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14831
14832 Prevent unknown commands from stopping menuentry execution.
14833
14834 * script/execute.c (grub_script_execute_cmdline): Print error after
14835 unknown command.
14836
14837 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14838
14839 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
14840 Reported by: Pavel Pisa.
14841
14842 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14843
14844 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
14845
14846 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14847
14848 Merge grub_ieee1275_map_physical into grub_map and rename to
14849 grub_ieee1275_map
14850
14851 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
14852 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
14853 Remove.
14854 * kern/ieee1275/openfw.c (grub_map): Rename to ...
14855 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
14856 necessary.
14857 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
14858
14859 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14860
14861 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
14862 opening and not after.
14863
14864 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
14867 constants.
14868
14869 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14870
14871 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
14872 (alloc_phys): Use ALIGN_UP instead of align_addr.
14873
14874 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14875
14876 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
14877
14878 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14879
14880 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
14881
14882 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14883
14884 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
14885 verbose dprintf.
14886
14887 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14888
14889 Fix over-4GiB seek on sparc64.
14890
14891 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
14892 Replace pos_i and pos_lo with pos. All users updated.
14893 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
14894 New constant.
14895 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
14896 Likewise.
14897 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
14898 and pos_lo.
14899
14900 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14901
14902 * util/grub-mkrawimage.c (main): Call set_program_name.
14903
14904 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14905
14906 Properly align 64-bit targets.
14907
14908 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
14909 (generate_image): Use ALIGN_ADDR.
14910
14911 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 Properly create cross-endian images.
14914
14915 * include/grub/types.h (grub_host_to_target_addr): New macro
14916 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
14917
14918 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
14919
14920 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
14921
14922 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
14923
14924 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
14925
14926 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
14927 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
14928 (grub_linux_boot): Divide by 64K when on VESA.
14929
14930 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
14931
14932 Support GRUB_GFXPAYLOAD_LINUX.
14933
14934 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
14935 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
14936
14937 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
14938
14939 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
14940 to show messages instead of discarding them.
14941 Process errors after executing command and not before. Keep old method
14942 too as precaution.
14943
14944 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
14945
14946 * configure.ac: Check for ft2build.h.
14947
14948 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14949
14950 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
14951
14952 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14953
14954 * genkernsyms.sh.in: Use TARGET_CC.
14955
14956 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
14957
14958 * NEWS: Update.
14959
14960 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14961
14962 * include/grub/multiboot2.h: Remove leftover file.
14963 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
14964 * include/grub/partition.h [GRUB_UTIL]: Likewise.
14965
14966 2010-02-07 Yves Blusseau <blusseau@zetam.org>
14967
14968 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
14969
14970 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14971
14972 Fix warnings in grub-emu when compiling with maximum warning options.
14973
14974 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
14975 (grub_arch_modules_addr): Return 0 and not NULL.
14976 * util/misc.c (ENABLE_RELOCATABLE): New definition.
14977 (xstrdup): Use newstr instead of dup.
14978 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
14979 of disk to dsk to avoid shadowing.
14980 (find_free_slot): Fix prototype.
14981 * util/getroot.c (grub_util_is_dmraid): Make static.
14982 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
14983 Add missing prototype.
14984 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
14985
14986 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14987
14988 * loader/i386/linux.c (grub_linux_setup_video): Handle error
14989 appropriately.
14990
14991 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14992
14993 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
14994 code out.
14995
14996 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14997
14998 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
14999 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
15000 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
15001 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
15002 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
15003 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
15004
15005 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15006
15007 * include/grub/err.h (grub_err_printf): Don't export.
15008
15009 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15010
15011 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
15012
15013 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15014
15015 * include/grub/i18n.h (grub_gettext_dummy): Removed.
15016 * kern/misc.c (grub_gettext_dummy): Make static.
15017
15018 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15019
15020 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
15021 by non-valid ones.
15022 * kern/term.c (grub_putchar): Likewise.
15023
15024 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15025
15026 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
15027 buggy hook call and memory leak.
15028
15029 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15030
15031 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
15032
15033 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15034
15035 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
15036
15037 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15038
15039 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
15040 modevar.
15041 Return grub_errno on allocation error.
15042
15043 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15044
15045 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
15046
15047 2010-02-06 Yves Blusseau <blusseau@zetam.org>
15048
15049 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
15050 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
15051
15052 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
15055 non-pxe disk.
15056 (grub_pxefs_open): Likewise.
15057
15058 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15059
15060 * util/grub.d/10_hurd.in: Add --class information to menuentries.
15061 * util/grub.d/10_kfreebsd.in: Likewise.
15062 * util/grub.d/10_linux.in: Likewise.
15063
15064 2010-02-06 Colin D Bennett <colin@gibibit.com>
15065
15066 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
15067 (gfxmenu_mod_SOURCES): New variable.
15068 (gfxmenu_mod_CFLAGS): Likewise.
15069 (gfxmenu_mod_LDFLAGS): Likewise.
15070 * include/grub/term.h (grub_term_set_current_output): Declare
15071 argument as const.
15072 * docs/gfxmenu-theme-example.txt: New file.
15073 * gfxmenu/gfxmenu.c: Likewise.
15074 * gfxmenu/gui_box.c: Likewise.
15075 * gfxmenu/gui_canvas.c: Likewise.
15076 * gfxmenu/gui_circular_progress.c: Likewise.
15077 * gfxmenu/gui_image.c: Likewise.
15078 * gfxmenu/gui_label.c: Likewise.
15079 * gfxmenu/gui_list.c: Likewise.
15080 * gfxmenu/gui_progress_bar.c: Likewise.
15081 * gfxmenu/gui_string_util.c: Likewise.
15082 * gfxmenu/gui_util.c: Likewise.
15083 * gfxmenu/icon_manager.c: Likewise.
15084 * gfxmenu/model.c: Likewise.
15085 * gfxmenu/named_colors.c: Likewise.
15086 * gfxmenu/theme_loader.c: Likewise.
15087 * gfxmenu/view.c: Likewise.
15088 * gfxmenu/widget-box.c: Likewise.
15089 * include/grub/gfxmenu_model.h: Likewise.
15090 * include/grub/gfxmenu_view.h: Likewise.
15091 * include/grub/gfxwidgets.h: Likewise.
15092 * include/grub/gui.h: Likewise.
15093 * include/grub/gui_string_util.h: Likewise.
15094 * include/grub/icon_manager.h: Likewise.
15095
15096 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15097
15098 Agglomerate scrolling in gfxterm.
15099
15100 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
15101 (grub_virtual_screen_setup): Initialise 'total_screen'.
15102 (write_char): Split to ...
15103 (paint_char): ... this ...
15104 (write_char): ... and this.
15105 (paint_char): Handle delayed scrolling.
15106 (draw_cursor): Likewise.
15107 (scroll_up): Split to ...
15108 (real_scroll): ... this ...
15109 (scroll_up): ... and this.
15110 (real_scroll): Handle multi-line scroll and draw below-the-bottom
15111 characters.
15112 (grub_gfxterm_refresh): Call real_scroll.
15113
15114 2010-02-06 Colin D Bennett <colin@gibibit.com>
15115
15116 * include/grub/misc.h (grub_iscntrl): New inline function.
15117 (grub_isalnum): Likewise.
15118 (grub_strtol): Likewise.
15119
15120 2010-02-06 Colin D Bennett <colin@gibibit.com>
15121
15122 * normal/menu_text.c (get_entry_number): Move from here ...
15123 * normal/menu.c (get_entry_number): ... moved here.
15124 * include/grub/menu.h (grub_menu_get_default_entry_index):
15125 New prototype.
15126 * normal/menu.c (grub_menu_get_default_entry_index): New function.
15127 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
15128 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
15129 (grub_menu_viewer_should_return): Likewise.
15130 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
15131 * normal/menu_text.c (run_menu): Enable menu switching.
15132 * normal/menu_viewer.c (should_return): New variable.
15133 (menu_viewer_changed): Likewise.
15134 (grub_menu_viewer_show_menu): Handle menu viewer changes.
15135 (grub_menu_viewer_should_return): New function.
15136 (menuviewer_write_hook): Likewise.
15137 (grub_menu_viewer_init): Likewise.
15138
15139 2010-02-06 Colin D Bennet <colin@gibibit.com>
15140 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15141
15142 Support for gfxterm in a window.
15143
15144 * include/grub/gfxterm.h: New file.
15145 * include/grub/video.h (struct grub_video_rect): New declaration.
15146 (grub_video_rect_t): Likewise.
15147 * term/gfxterm.c (struct grub_gfxterm_window): New type.
15148 (refcount): New variable.
15149 (render_target): Likewise.
15150 (window): Likewise.
15151 (repaint_callback): Likewise.
15152 (grub_virtual_screen_setup): Use 'render_target'.
15153 (init_window): New function.
15154 (grub_gfxterm_init_window): Likewise.
15155 (grub_gfxterm_init): Check reference counter.
15156 Use init_window.
15157 (destroy_window): New function.
15158 (grub_gfxterm_destroy_window): Likewise.
15159 (grub_gfxterm_fini): Check reference counter.
15160 Use destroy_window.
15161 (redraw_screen_rect): Restore viewport.
15162 Use 'render_target' and 'window'.
15163 Call 'repaint_callback'.
15164 (write_char): Use 'render_target'.
15165 (draw_cursor): Likewise.
15166 (scroll_up): Restore viewport.
15167 Use 'render_target' and 'window'.
15168 Call 'repaint_callback'.
15169 (grub_gfxterm_cls): Likewise.
15170 (grub_gfxterm_refresh): Use 'window'.
15171 (grub_gfxterm_set_repaint_callback): New function.
15172 (grub_gfxterm_background_image_cmd): Use 'window'.
15173 (grub_gfxterm_get_term): New function.
15174 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
15175
15176 2010-02-06 Colin D Bennett <colin@gibibit.com>
15177
15178 Bitmap scaling support.
15179
15180 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
15181 (bitmap_scale_mod_SOURCES): New variable.
15182 (bitmap_scale_mod_CFLAGS): Likewise.
15183 (bitmap_scale_mod_LDFLAGS): Likewise.
15184 * include/grub/bitmap_scale.h: New file.
15185 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
15186 (background_image_cmd_options): New variable.
15187 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
15188 (cmd): Rename and change type to ...
15189 (background_image_cmd_handle): ... this. All users updated.
15190 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
15191 * video/bitmap_scale.c: New file.
15192
15193 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15194
15195 SDL support.
15196
15197 * Makefile.in (LIBSDL): New variable.
15198 (enable_grub_emu_sdl): Likewise.
15199 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
15200 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
15201 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
15202 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
15203 * util/sdl.c: New file.
15204
15205 2010-02-06 Colin D Bennett <colin@gibibit.com>
15206 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15207
15208 Double buffering support.
15209
15210 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
15211 * include/grub/video.h: Update comment.
15212 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
15213 New type.
15214 (grub_video_fb_doublebuf_blit_init): New prototype.
15215 * term/gfxterm.c (scroll_up): Support double buffering.
15216 (grub_gfxterm_refresh): Likewise.
15217 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
15218 (grub_video_fb_doublebuf_blit_init): Likewise.
15219 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
15220 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
15221 'displayed_page', 'render_page' and 'update_screen'.
15222 (grub_video_vbe_fini): Free offscreen buffer.
15223 (doublebuf_pageflipping_commit): New function.
15224 (doublebuf_pageflipping_update_screen): Likewise.
15225 (doublebuf_pageflipping_init): Likewise.
15226 (double_buffering_init): Likewise.
15227 (grub_video_vbe_setup): Enable doublebuffering.
15228 (grub_video_vbe_swap_buffers): Implement.
15229 (grub_video_vbe_set_active_render_target): Handle double buffering.
15230 (grub_video_vbe_get_active_render_target): Likewise.
15231 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
15232 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
15233 (grub_video_vbe_enable_double_buffering): Likewise.
15234 (grub_video_vbe_swap_buffers): Use update_screen.
15235 (grub_video_set_mode): Use double buffering.
15236
15237 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15238
15239 * maintainance/gentrigtables.py: Remove.
15240 * lib/trig.c: Likewise.
15241
15242 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
15243
15244 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
15245 `trigtables.c'.
15246 (trigtables.c): New rule.
15247 (gentrigtables): Likewise.
15248 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
15249
15250 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15251
15252 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
15253 integer constants.
15254
15255 2010-02-06 Colin D Bennet <colin@gibibit.com>
15256
15257 Trigonometry support.
15258
15259 * include/grub/trig.h: New file.
15260 * lib/trig.c: Likewise.
15261 * maintainance/gentrigtables.py: Likewise.
15262 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
15263 (trig_mod_SOURCES): New variable.
15264 (trig_mod_CFLAGS): Likewise.
15265 (trig_mod_LDFLAGS): Likewise.
15266
15267 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15268
15269 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
15270 disk devices.
15271
15272 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15273
15274 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
15275 error.
15276
15277 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
15278
15279 * util/hostdisk.c (open_device): Don't use partition device when reading
15280 before the partition.
15281 (grub_util_biosdisk_read): Don't read from partition and before the
15282 partition in single operation.
15283 (grub_util_biosdisk_write): Don't write to partition and before the
15284 partition in single operation.
15285
15286 2010-02-03 Torsten Landschoff <torsten@debian.org>
15287
15288 * kern/disk.c (grub_disk_read): Fix offset computation when reading
15289 last sectors.
15290
15291 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
15292
15293 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
15294 CDROM reads.
15295 (grub_biosdisk_write): Refuse to write to CDROM.
15296
15297 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
15298
15299 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
15300
15301 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
15302
15303 * font/font.c (find_glyph): Check that bmp_idx is available before
15304 using it.
15305 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
15306 with (font == NULL).
15307
15308 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
15309
15310 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
15311
15312 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
15313
15314 * include/grub/script_sh.h (sourcecode): Add const qualifier.
15315 * util/grub-script-check.c (getline): Fix empty lines case.
15316
15317 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
15318
15319 * Makefile.in (check): Exit with fail status when one of the tests
15320 fails.
15321 * tests/example_functional_test.c (example_test): Fix reversed assert.
15322 * tests/example_unit_test.c (example_test): Likewise.
15323
15324 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
15325
15326 * util/grub.d/10_linux.in: This script does not use any of the
15327 contents of gettext.sh, only the external command `gettext', so stop
15328 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
15329 the same prefix as GRUB.)
15330 * util/grub.d/10_kfreebsd.in: Likewise.
15331
15332 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15333
15334 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
15335 of the line.
15336
15337 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15338
15339 * kern/disk.c (grub_disk_read): Fix offset computation when reading
15340 last sectors.
15341
15342 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15343
15344 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
15345 having a 4KiB and not 32KiB buffer size.
15346
15347 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15348
15349 * util/hostfs.c: Include `<errno.h>'.
15350 (grub_hostfs_read): Handle errors from fseeko() and fread().
15351
15352 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15353
15354 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
15355 loop when using read hooks on files whose size isn't sector-aligned.
15356
15357 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15358
15359 Remove unused parameter.
15360
15361 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
15362 (grub_iso9660_open): Remove initialization of `data->length'.
15363
15364 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15365
15366 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
15367 memleak conditions.
15368
15369 2010-01-27 Carles Pina i Estany <carles@pina.cat>
15370
15371 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
15372 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
15373
15374 2010-01-26 Carles Pina i Estany <carles@pina.cat>
15375
15376 * util/bin2h.c (usage): Fix warning (space after backslash).
15377
15378 2010-01-26 Carles Pina i Estany <carles@pina.cat>
15379
15380 * font/font.c: Include `grub/fontformat.h.
15381 Remove font file format constants.
15382 (grub_font_load): Use the new macros.
15383 * include/grub/fontformat.h: New file.
15384 * util/grub-mkfont.c: Include `grub/fontformat.c'.
15385 (write_font_pf2): Use the new macros.
15386
15387 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
15388
15389 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
15390 does.
15391
15392 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
15393
15394 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
15395
15396 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
15397 (_start): Macroify `0x7F'.
15398
15399 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
15400 (make_install_device): Use "(pxe)" as fallback prefix when booting
15401 via PXE.
15402
15403 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
15404
15405 * configure.ac: Reset LIBS after check for libgcc symbols.
15406
15407 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
15408
15409 * util/hostdisk.c (open_device): Add trailing newline to debug
15410 message.
15411
15412 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
15413
15414 * configure.ac: Check for `limits.h'.
15415 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
15416
15417 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
15418
15419 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
15420 capitalize error strings.
15421
15422 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
15423
15424 * util/grub.d/10_hurd.in: Add a recovery mode.
15425
15426 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
15427
15428 * configure.ac: Check for libgcc symbols with -nostdlib.
15429
15430 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
15431
15432 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
15433
15434 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15435
15436 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
15437 stack since heap may be unavailable at that point.
15438 (grub_ofconsole_gotoxy): Likewise.
15439
15440 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15441
15442 * configure.ac: Check for _restgpr_14_x.
15443 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
15444 and _savegpr_* prototypes.
15445
15446 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
15447
15448 Use generic grub_reboot() for i386-efi.
15449
15450 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
15451 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
15452 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
15453
15454 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
15457 presence of "prefix" variable as it breaks when normal.mod is
15458 embedded.
15459
15460 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
15461
15462 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
15463 stack since heap is unavailable at that point.
15464
15465 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
15466
15467 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
15468 (grub_freebsd_bootinfo): Rewritten.
15469 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
15470
15471 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
15472
15473 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
15474
15475 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
15476
15477 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
15478 domain now.
15479
15480 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
15481
15482 * util/misc.c (make_system_path_relative_to_its_root): Change the work
15483 around for handling "/" to the correct fix. Fix a memory leak. Use
15484 xstrdup instead of strdup.
15485
15486 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
15489
15490 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15491
15492 Optimise glyph lookup by Basic Multilingual Plane lookup array.
15493
15494 * font/font.c (struct grub_font): New member 'bmp_idx'.
15495 (font_init): Initialise 'bmp_idx'.
15496 (load_font_index): Fill 'bmp_idx'.
15497 (find_glyph): Make inline. Use bmp_idx for BMP characters.
15498
15499 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15500
15501 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
15502 unnecessary calls.
15503
15504 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15505
15506 Move context handling out of the kernel.
15507
15508 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
15509 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
15510 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
15511 * conf/i386-efi.rmk: Likewise.
15512 * conf/i386-ieee1275.rmk: Likewise.
15513 * conf/i386-pc.rmk: Likewise.
15514 * conf/powerpc-ieee1275.rmk: Likewise.
15515 * conf/sparc64-ieee1275.rmk: Likewise.
15516 * conf/x86_64-efi.rmk: Likewise.
15517 * include/grub/env.h: Include grub/menu.h.
15518 (grub_env_var_type): Removed.
15519 (grub_env_var): Replaced field 'type' with 'global'.
15520 (grub_env_find): New prototype.
15521 (grub_env_context_open): Remove EXPORT_FUNC.
15522 (grub_env_context_close): Likewise.
15523 (grub_env_export): Likewise.
15524 (grub_env_set_data_slot): Removed.
15525 (grub_env_get_data_slot): Likewise.
15526 (grub_env_unset_data_slot): Likewise.
15527 (grub_env_unset_menu): New prototype.
15528 (grub_env_set_menu): Likewise.
15529 (grub_env_get_menu): Likewise.
15530 * include/grub/env_private.h: New file.
15531 * include/grub/normal.h (grub_context_init): New prototype.
15532 (grub_context_fini): Likewise.
15533 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
15534 * normal/context.c (grub_cmd_export): ... to here.
15535 * kern/env.c: Include env_private.h.
15536 (HASHSZ): Moved to include/grub/env_private.h.
15537 (grub_env_context): Likewise.
15538 (grub_env_sorted_var): Likewise.
15539 (current_context): Renamed from this ...
15540 (grub_current_context): ...to this. 'static' removed. All users updated.
15541 (grub_env_find): Removed 'static'.
15542 (grub_env_context_open): Moved to normal/context.c.
15543 (grub_env_context_close): Likewise.
15544 (grub_env_export): Likewise.
15545 (mangle_data_slot_name): Removed.
15546 (grub_env_set_data_slot): Likewise.
15547 (grub_env_get_data_slot): Likewise.
15548 (grub_env_unset_data_slot): Likewise.
15549 * kern/main.c (grub_set_root_dev): Don't export root.
15550 It will be done later.
15551 (grub_main): Don't export prefix.
15552 It will be done later.
15553 * normal/context.c: New file.
15554 * normal/main.c (free_menu): Use grub_env_unset_menu.
15555 (grub_normal_add_menu_entry): Use grub_env_get_menu.
15556 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
15557 (GRUB_MOD_INIT(normal)): Call grub_context_init.
15558 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
15559
15560 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15561
15562 setpci support.
15563
15564 * commands/setpci.c: New file.
15565 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
15566 (setpci_mod_SOURCES): New variable.
15567 (setpci_mod_CFLAGS): Likewise.
15568 (setpci_mod_LDFLAGS): Likewise.
15569
15570 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15571
15572 Byte-addressable PCI configuration space.
15573
15574 * bus/pci.c (grub_pci_make_address): Use byte address instead of
15575 dword address.
15576 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
15577 GRUB_PCI_REG_CACHELINE.
15578 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
15579 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
15580 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
15581 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
15582 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
15583 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
15584 grub_pci_make_address.
15585 (lock_rom_area): Likewise.
15586 * commands/lspci.c (grub_lspci_iter): Use macroses
15587 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
15588 of grub_pci_make_address.
15589 * disk/ata.c (grub_ata_pciinit): Likewise.
15590 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
15591 (GRUB_PCI_REG_VENDOR): Likewise.
15592 (GRUB_PCI_REG_DEVICE): Likewise.
15593 (GRUB_PCI_REG_COMMAND): Likewise.
15594 (GRUB_PCI_REG_STATUS): Likewise.
15595 (GRUB_PCI_REG_REVISION): Likewise.
15596 (GRUB_PCI_REG_CLASS): Likewise.
15597 (GRUB_PCI_REG_CACHELINE): Likewise.
15598 (GRUB_PCI_REG_LAT_TIMER): Likewise.
15599 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
15600 (GRUB_PCI_REG_BIST): Likewise.
15601 (GRUB_PCI_REG_ADDRESSES): Likewise.
15602 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
15603 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
15604 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
15605 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
15606 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
15607 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
15608 (GRUB_PCI_REG_CIS_POINTER): Likewise.
15609 (GRUB_PCI_REG_SUBVENDOR): Likewise.
15610 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
15611 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
15612 (GRUB_PCI_REG_CAP_POINTER): Likewise.
15613 (GRUB_PCI_REG_IRQ_LINE): Likewise.
15614 (GRUB_PCI_REG_IRQ_PIN): Likewise.
15615 (GRUB_PCI_REG_MIN_GNT): Likewise.
15616 (GRUB_PCI_REG_MAX_LAT): Likewise.
15617 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
15618 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
15619 * video/efi_uga.c (find_framebuf): Likewise.
15620 * video/sm712.c (grub_video_sm712_setup): Likewise.
15621 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
15622 space.
15623
15624 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
15625
15626 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
15627 can be reliably determined to be supported.
15628
15629 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
15630
15631 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
15632 that VESA is supported.
15633 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
15634 supported.
15635
15636 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15637
15638 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
15639
15640 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
15641
15642 * util/misc.c (make_system_path_relative_to_its_root): Work around
15643 special-casing of "/", as previous incarnation of this routine did.
15644
15645 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15646
15647 Fix any-emu compilation.
15648
15649 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
15650 * grub_bin2h_SOURCES: New variable.
15651
15652 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
15653
15654 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
15655
15656 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
15657
15658 * util/grub.d/00_header.in: Fix handling of locale_dir.
15659
15660 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15661
15662 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
15663 as possible unifont location (Gentoo).
15664 Reported by: Alexander Brüning
15665
15666 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15667
15668 Don't try to generate lists for kernel.img.
15669
15670 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
15671 (pkglib_MODULES): Remove kernel.img.
15672 (kernel_img_EXPORTS): Removed.
15673 (kernel_img_RELOCATABLE): New variable.
15674 * conf/x86_64-efi.rmk: Likewise.
15675 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
15676
15677 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15678
15679 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
15680 grub_xasprintf or grub_snprintf.
15681 (grub_vsprintf): Likewise.
15682 (grub_snprintf): New proto.
15683 (grub_vsnprintf): Likewise.
15684 (grub_xasprintf): Likewise.
15685 (grub_xvasprintf): Likewise.
15686 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
15687 (grub_sprintf): Removed.
15688 (grub_vsnprintf): New function.
15689 (grub_snprintf): Likewise.
15690 (grub_xvasprintf): Likewise.
15691 (grub_xasprintf): Likewise.
15692 (grub_vsprintf): Renamed to ...
15693 (grub_vsnprintf_real): ...this. New argument max_len.
15694
15695 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
15696
15697 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
15698 fix grub-script-check warning.
15699
15700 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15701
15702 * include/grub/font.h (grub_font_load): Fix prototype.
15703
15704 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15705
15706 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
15707
15708 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15709
15710 * include/grub/x86_64/at_keyboard.h: New file.
15711
15712 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15713
15714 * loader/mips/linux.c: Include missing grub/i18n.h.
15715
15716 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
15717
15718 * normal/menu.c (notify_execution_failure): Clarify error message.
15719
15720 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
15721
15722 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
15723 return value (and revert all return statements). Update users.
15724
15725 2010-01-20 Dan Merillat <debian@dan.merillat.org>
15726
15727 * kern/device.c (grub_device_iterate): Allocate new part_ent
15728 structure based on sizeof (*p) rather than sizeof (p->next), to
15729 account for structure padding.
15730
15731 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
15732 disk is NULL, which might happen for LVM physical volumes with no
15733 LVM signature.
15734
15735 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
15736
15737 * loader/mips/linux.c (grub_cmd_initrd)
15738 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
15739
15740 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
15741
15742 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
15743 (grub_video_video_init, grub_video_bitmap_init)
15744 (grub_font_manager_init, grub_term_gfxterm_init)
15745 (grub_at_keyboard_init): New extern declarations.
15746 (grub_machine_init): Initialize gfxterm and at_keyboard.
15747
15748 * kern/main.c (grub_main): Revert grub_printf delay kludge.
15749
15750 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
15751 `gfxterm.mod' into core image.
15752
15753 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
15754 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
15755 (kernel_img_FORMAT): Copy to ...
15756
15757 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
15758 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
15759 (kernel_img_FORMAT): ... here, and ...
15760
15761 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
15762 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
15763 (kernel_img_FORMAT): ... here.
15764
15765 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
15766 and input (at_keyboard) terminals in kernel.
15767 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
15768
15769 (pkglib_MODULES): Remove `pci.mod'.
15770 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
15771 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
15772 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
15773 (at_keyboard_mod_LDFLAGS): Remove variables.
15774
15775 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
15776
15777 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
15778
15779 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
15780
15781 * include/grub/mips/libgcc.h: Only export symbols for functions
15782 that libgcc provides.
15783
15784 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
15785
15786 MIPS support.
15787
15788 * bus/bonito.c: New file.
15789 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
15790 GRUB_PCI_NUM_DEVICES.
15791 * term/i386/pc/serial.c: Move to ...
15792 * term/serial.c: ... here. All users updated.
15793 * util/i386/pc/grub-mkimage.c: Move to ...
15794 * util/grub-mkrawimage.c: ... here. All users updated.
15795 * term/i386/pc/at_keyboard.c: Move to ...
15796 * term/at_keyboard.c: ... here. All users updated.
15797 * conf/mips-qemu-mips.rmk: New file.
15798 * conf/mips-yeeloong.rmk: Likewise.
15799 * conf/mips.rmk: Likewise.
15800 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
15801 mipsel-qemu-mips.
15802 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
15803 to port addresses.
15804 (grub_ata_pciinit): Support CS5536.
15805 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
15806 * font/font_cmd.c (loadfont_command): Open file before passing it to
15807 grub_font_load.
15808 (pseudo_file_read): New function.
15809 (pseudo_file_close): Likewise.
15810 (pseudo_fs): New structure.
15811 (load_font_module): New function.
15812 (GRUB_MOD_INIT(font_manager)): Load embedded font.
15813 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
15814 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
15815 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
15816 * include/grub/i386/at_keyboard.h: Split into ...
15817 * include/grub/at_keyboard.h: ... this ...
15818 * include/grub/i386/at_keyboard.h: ... and this.
15819 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
15820 New prototype.
15821 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
15822 updated.
15823 (grub_elf64_size): Likewise.
15824 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
15825 filename.
15826 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
15827 * include/grub/i386/coreboot/serial.h: Rewritten.
15828 * include/grub/i386/ieee1275/serial.h: Include
15829 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
15830 * include/grub/i386/pc/serial.h: Moved from here ...
15831 * include/grub/serial.h: ... to here. All users updated.
15832 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
15833 (GRUB_PCI_NUM_BUS): Likewise.
15834 (GRUB_PCI_NUM_DEVICES): Likewise.
15835 (grub_pci_device_map_range): Add missing volatile keyword.
15836 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
15837 * include/grub/mips/at_keyboard.h: New file.
15838 * include/grub/mips/cache.h: Likewise.
15839 * include/grub/mips/io.h: Likewise.
15840 * include/grub/mips/kernel.h: Likewise.
15841 * include/grub/mips/libgcc.h: Likewise.
15842 * include/grub/mips/pci.h: Likewise.
15843 * include/grub/mips/qemu-mips/boot.h: Likewise.
15844 * include/grub/mips/qemu-mips/kernel.h: Likewise.
15845 * include/grub/mips/qemu-mips/loader.h: Likewise.
15846 * include/grub/mips/qemu-mips/memory.h: Likewise.
15847 * include/grub/mips/qemu-mips/serial.h: Likewise.
15848 * include/grub/mips/qemu-mips/time.h: Likewise.
15849 * include/grub/mips/relocator.h: Likewise.
15850 * include/grub/mips/time.h: Likewise.
15851 * include/grub/mips/types.h: Likewise.
15852 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
15853 * include/grub/mips/yeeloong/boot.h: Likewise.
15854 * include/grub/mips/yeeloong/kernel.h: Likewise.
15855 * include/grub/mips/yeeloong/loader.h: Likewise.
15856 * include/grub/mips/yeeloong/memory.h: Likewise.
15857 * include/grub/mips/yeeloong/pci.h: Likewise.
15858 * include/grub/mips/yeeloong/serial.h: Likewise.
15859 * include/grub/mips/yeeloong/time.h: Likewise.
15860 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
15861 * kern/elf.c (grub_elf32_size): New parameter. All users
15862 updated.
15863 (grub_elf64_size): Likewise.
15864 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
15865 Load modules before saying "Welcome to GRUB!".
15866 Call grub_refresh after saying "Welcome to GRUB!".
15867 * kern/mips/cache.S: New file.
15868 * kern/mips/cache_flush.S: Likewise.
15869 * kern/mips/dl.c: Likewise.
15870 * kern/mips/init.c: Likewise.
15871 * kern/mips/qemu-mips/init.c: Likewise.
15872 * kern/mips/startup.S: Likewise.
15873 * kern/mips/yeeloong/init.c: Likewise.
15874 * kern/term.c (grub_putcode): Handle NULL terminal.
15875 (grub_getcharwidth): Likewise.
15876 (grub_getkey): Likewise.
15877 (grub_checkkey): Likewise.
15878 (grub_getkeystatus): Likewise.
15879 (grub_getxy): Likewise.
15880 (grub_getwh): Likewise.
15881 (grub_gotoxy): Likewise.
15882 (grub_cls): Likewise.
15883 (grub_setcolorstate): Likewise.
15884 (grub_setcolor): Likewise.
15885 (grub_getcolor): Likewise.
15886 (grub_refresh): Likewise.
15887 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
15888 (write_jump): Add hatch nop.
15889 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
15890 * lib/mips/setjmp.S: New file.
15891 * loader/mips/linux.c: Likewise.
15892 * term/i386/pc/at_keyboard.c: Move from here ...
15893 * term/at_keyboard.c: ... to here.
15894 * term/i386/pc/serial.c: Moved from here ...
15895 * term/serial.c: ... to here. All users updated.
15896 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
15897 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
15898 (serial_translate_key_sequence): Avoid deadlock.
15899 (grub_serial_getkey): Handle backspace.
15900 (grub_serial_putchar): Fix newline handling.
15901 * util/i386/pc/grub-mkimage.c: Move from here ...
15902 * util/grub-mkrawimage.c: ... to here. All users updated.
15903 (generate_image): New parameters 'font_path' and 'format'.
15904 Support embedding font.
15905 Use grub_host_to_target* instead of grub_cpu_to_le*.
15906 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
15907 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
15908 (options): New option "--font".
15909 (usage): Likewise.
15910 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
15911 (main): Handle "--font".
15912 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
15913 (grub_virtual_screen_setup): Set bg_color_display.
15914 (redraw_screen_rect): Use bg_color_display instead of incorrect
15915 bg_color.
15916 (grub_gfxterm_cls): Likewise.
15917 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
15918 Support embedding config file.
15919 (add_segments): Likewise.
15920 (options): New option "--config".
15921 (main): Handle "--config".
15922 * video/sm712.c: New file.
15923
15924 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15925
15926 Fix parallel builds.
15927
15928 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
15929 font.c depend on ascii.h).
15930
15931 2010-01-12 Carles Pina i Estany <carles@pina.cat>
15932
15933 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
15934
15935 2010-01-11 Carles Pina i Estany <carles@pina.cat>
15936
15937 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
15938 By default: disabled.
15939 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
15940 parameter.
15941
15942 2010-01-10 Carles Pina i Estany <carles@pina.cat>
15943
15944 * font/font.c: Update copyright years.
15945 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
15946
15947 2010-01-10 Carles Pina i Estany <carles@pina.cat>
15948
15949 * font/font.c: Include `ascii.h'.
15950 (ASCII_BITMAP_SIZE): New macro.
15951 (ascii_font_glyph): Define.
15952 (ascii_glyph_lookup): New function.
15953 (grub_font_get_string_width): Change comment. If glyph not found, use
15954 ascii_glyph_lookup.
15955 (grub_font_get_glyph_with_fallback): If glyph not available returns
15956 ascii_glyph_lookup.
15957 * util/grub-mkfont.c (file_formats): New enum.
15958 (options): Add `ascii-bitmaps' new option.
15959 (usage): Add `asii-bitmaps' new option.
15960 (write_font_ascii_bitmap): New function.
15961 (write_font): Rename to ...
15962 (write_font_p2): ... this. Remove print_glyphs call.
15963 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
15964 used. Call print_glyphs.
15965 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
15966
15967 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
15968
15969 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
15970 (grub_bin2h_SOURCES): New variable.
15971 * util/bin2h.c: New file.
15972
15973 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15974
15975 * include/multiboot.h: Resynced with spec.
15976 * include/multiboot2.h: Likewise.
15977 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
15978 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
15979
15980 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15981
15982 * include/grub/term.h (grub_term_register_input,
15983 grub_term_register_output): Check return of terminal init()
15984 routines, and abort if errors are raised.
15985
15986 * commands/terminal.c: Update copyright year.
15987
15988 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15989
15990 * commands/terminal.c (grub_cmd_terminal_input)
15991 (grub_cmd_terminal_output): Check return of terminal init()
15992 routines, and abort if errors are raised.
15993
15994 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
15995
15996 * include/grub/i386/bsd.h: Fix include pathes.
15997
15998 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
15999
16000 Add missing *BSD copyright headers.
16001
16002 * include/grub/aout.h: Add BSD licence.
16003 * include/grub/i386/bsd.h: Parts under different licences moved to ...
16004 * include/grub/i386/freebsd_linker.h: ... here,
16005 * include/grub/i386/freebsd_reboot.h: ... here,
16006 * include/grub/i386/netbsd_bootinfo.h: ... here,
16007 * include/grub/i386/netbsd_reboot.h: ... here,
16008 * include/grub/i386/openbsd_bootarg.h: ... here,
16009 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
16010 licence to each file.
16011
16012 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16013
16014 * acinclude.m4: Remove `nop' assembly instruction; it's not
16015 implemented by all architectures.
16016
16017 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16018
16019 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
16020 ELILO. This is no longer necessary.
16021
16022 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
16023
16024 Added new tool, grub-scrit-check to verify grub.cfg syntax.
16025
16026 * util/grub-script-check.c: grub-script-check tool.
16027 * conf/common.rmk: Make rules for grub-script-check.
16028
16029 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16030
16031 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
16032 spotting it back in 2008. Shame on me for forgetting he did.
16033
16034 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
16035
16036 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16037
16038 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
16039 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
16040 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
16041 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
16042 (GRUB_VIDEO_TYPE_EFI): Rename to ...
16043 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
16044
16045 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
16046
16047 * include/grub/test.h: Add license header.
16048 * tests/example_functional_test.c: Likewise.
16049 * tests/example_unit_test.c: Likewise.
16050 * tests/lib/functional_test.c: Likewise.
16051 * tests/lib/test.c: Likewise.
16052 * tests/lib/unit_test.c: Likewise.
16053
16054 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
16055
16056 Use flag-based instead of hook-based video mode selection and "auto"
16057 keyword.
16058
16059 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
16060 (grub_video_set_mode): Changed prototype. All users updated.
16061 (grub_video_check_mode_flag): New inline function.
16062 * video/video.c (parse_modespec): New function.
16063 (grub_video_set_mode): Parse flags and keywords.
16064
16065 2010-01-17 Carles Pina i Estany <carles@pina.cat>
16066
16067 * util/misc.c (grub_util_info): Fix the order of the parameters in a
16068 fprintf call.
16069
16070 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
16071
16072 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
16073
16074 2010-01-16 Carles Pina i Estany <carles@pina.cat>
16075
16076 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
16077 string.
16078 * util/grub-emu.c (usage): Likewise.
16079 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
16080 * util/i386/efi/grub-mkimage.c (usage): Likewise.
16081 * util/i386/pc/grub-mkimage.c (usage): Likewise.
16082 * util/i386/pc/grub-setup.c (usage): Likewise.
16083
16084 2010-01-16 Carles Pina i Estany <carles@pina.cat>
16085
16086 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
16087 the message.
16088 (grub_util_info): Likewise.
16089 (grub_util_error): Likewise.
16090 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
16091 and/or new lines in `grub_util_warna', `grub_util_info',
16092 `grub_util_error' calls.
16093 * util/getroot.c: Likewise.
16094 * util/grub-editenv.c: Likewise.
16095 * util/grub-emu.c: Likewise.
16096 * util/grub-fstest.c: Likewise.
16097 * util/grub-mkdevicemap.c: Likewise.
16098 * util/grub-mkfont.c: Likewise.
16099 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16100 * util/grub-mkrelpath.c: Likewise.
16101 * util/grub-pe2elf.c: Likewise.
16102 * util/grub-probe.c: Likewise.
16103 * util/hostdisk.c: Likewise.
16104 * util/i386/efi/grub-mkimage.c: Likewise.
16105 * util/i386/pc/grub-mkimage.c: Likewise.
16106 * util/i386/pc/grub-setup.c: Likewise.
16107 * util/ieee1275/ofpath.c: Likewise.
16108 * util/mkisofs/eltorito.c: Likewise.
16109 * util/mkisofs/rock.c: Likewise.
16110 * util/mkisofs/write.c: Likewise.
16111 * util/raid.c: Likewise.
16112 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
16113 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16114
16115 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16116
16117 Enable multiboot on non-pc.
16118
16119 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
16120 multiboot.mod and multiboot2.mod to ...
16121 * conf/i386.rmk (pkglib_MODULES): ... here.
16122 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
16123 Moved to ...
16124 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
16125 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
16126 Moved to ...
16127 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
16128 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
16129 Moved to ...
16130 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
16131 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
16132 Moved to ...
16133 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
16134 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
16135 relocator.mod.
16136 (ata_mod_SOURCES): Removed.
16137 (ata_mod_CFLAGS): Likewise.
16138 (ata_mod_LDFLAGS): Likewise.
16139 (relocator_mod_SOURCES): Removed.
16140 (relocator_mod_CFLAGS): Likewise.
16141 (relocator_mod_ASFLAGS): Likewise.
16142 (relocator_mod_LDFLAGS): Likewise.
16143 Include i386.mk.
16144 * include/grub/x86_64/multiboot.h: New file.
16145 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
16146 Terminate EFI.
16147
16148 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16149
16150 Video multiboot support.
16151
16152 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
16153 New prototype.
16154 * include/multiboot.h: Resynced with multiboot specification.
16155 * include/multiboot2.h: Likewise.
16156 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
16157 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
16158 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
16159 (HAS_VGA_TEXT): Likewise.
16160 (accepts_video): New variable.
16161 (grub_multiboot_set_accepts_video): New function.
16162 (grub_multiboot_get_mbi_size): Account for video structures.
16163 (set_video_mode): New function.
16164 (retrieve_video_parameters): Likewise.
16165 (grub_multiboot_make_mbi): Fill video fields.
16166
16167 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16168
16169 Video driver ids.
16170
16171 * include/grub/video.h (grub_video_driver_id): New type.
16172 (grub_video_adapter): New member 'id'. All users updated.
16173 (grub_video_get_driver_id): New proto.
16174 * video/video.c (grub_video_get_driver_id): New function.
16175
16176 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16177
16178 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
16179 `var=val'.
16180
16181 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16182
16183 * normal/cmdline.c (print_completion): Gettextizze.
16184
16185 2001-01-14 Carles Pina i Estany <carles@pina.cat>
16186
16187 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
16188
16189 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16190
16191 * gettext/gettext.c (grub_gettext_translate): Push and pop
16192 grub_errno.
16193 (grub_gettext_delete_list): Change comment style.
16194 * kern/err.c (grub_error): Gettextizze.
16195 (grub_fatal): Gettextizze.
16196
16197 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
16198
16199 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
16200 (grub_linux16_real_boot): ... this.
16201 * kern/i386/loader.S: Likewise.
16202 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
16203 (grub_linux16_boot): New function. Switches to text mode and calls
16204 grub_linux16_real_boot().
16205
16206 * loader/i386/bsd.c: Include `<grub/video.h>'.
16207 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
16208 text mode before calling grub_unix_real_boot().
16209
16210 * loader/i386/multiboot.c: Include `<grub/video.h>'.
16211 (grub_multiboot_boot): Switch to text mode before calling
16212 grub_relocator32_boot().
16213
16214 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
16215 (grub_chainloader_boot): Switch to text mode before calling
16216 grub_chainloader_real_boot().
16217
16218 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16219 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16220
16221 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
16222 non-empty value.
16223
16224 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16225 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16226
16227 * util/grub.d/00_header.in: Define a "savedefault" function for use
16228 in menu entries.
16229 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
16230
16231 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16232 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16233
16234 * util/grub-mkconfig_lib.in (save_default_entry): Only set
16235 saved_entry if boot_once is unset.
16236 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
16237 previous saved entry (i.e. grub-reboot).
16238
16239 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16240
16241 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
16242
16243 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16244
16245 * util/grub.d/00_header.in: Use `set var=val' rather than plain
16246 `var=val'.
16247 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
16248
16249 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16250
16251 * util/grub-reboot.in: Fix --version output.
16252 * util/grub-set-default.in: Likewise.
16253
16254 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16255
16256 * util/grub.d/00_header.in: Silently ignore zero-sized environment
16257 blocks.
16258
16259 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16260
16261 * util/grub.d/00_header.in: Quote the value assigned to `default',
16262 in case it contains spaces.
16263
16264 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16265
16266 * util/grub.d/30_os-prober.in: Fix merge error that moved a
16267 `save_default_entry' call from the macosx case to the linux case.
16268
16269 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16270 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
16271
16272 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
16273 in `chosen' environment variable.
16274 * normal/menu_text.c (get_entry_number): Check if the variable
16275 matches the title of a menu entry.
16276 (run_menu): Pass menu to get_entry_number.
16277
16278 * util/grub-reboot.in: New file.
16279 * util/grub-set-default.in: New file.
16280 * conf/common.rmk (grub-reboot): New utility.
16281 (grub-set-default): New utility.
16282
16283 * util/grub-mkconfig_lib.in (save_default_entry): New function.
16284 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
16285 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
16286 move it to `saved_entry' for the next boot. Load environment on
16287 initialisation.
16288 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
16289 * util/grub.d/10_hurd.in: Likewise.
16290 * util/grub.d/10_linux.in (linux_entry): Likewise.
16291 * util/grub.d/10_windows.in: Likewise.
16292 * util/grub.d/30_os-prober.in: Likewise.
16293
16294 * util/grub-install.in: Create environment block.
16295 * util/i386/efi/grub-install.in: Likewise.
16296 * util/ieee1275/grub-install.in: Likewise.
16297 * util/sparc64/ieee1275/grub-install.in: Likewise.
16298
16299 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
16300
16301 Unit testing framework for GRUB.
16302
16303 * Makefile.in: Test framework build rules for 'make check'.
16304 * conf/tests.rmk: Build rules for individual tests and framework.
16305
16306 * include/grub/test.h: Header file for whitebox tests.
16307 * tests/lib/functional_test.c: Framework support for whitebox
16308 functional tests.
16309 * tests/lib/test.c: Common whitebox testing code for unit and
16310 functional tests.
16311 * tests/lib/unit_test.c: Framework support for whitebox unit
16312 tests.
16313
16314 * tests/util/grub-shell-tester.in: Support utility for grub-script
16315 tests.
16316 * tests/util/grub-shell.in: Utility to execute grub-script
16317 commands in a Qemu instance.
16318
16319 * tests/example_functional_test.c: Example whitebox functional
16320 test.
16321 * tests/example_grub_script_test.in: Example grub-script test.
16322 * tests/example_scripted_test.in: Example scripted test.
16323 * tests/example_unit_test.c: Example whitebox unit test.
16324
16325 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16326
16327 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
16328 Add loader/i386/multiboot_mbi.c.
16329 (multiboot2_mod_SOURCES): Likewise.
16330 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
16331 (multiboot2_mod_SOURCES): Likewise.
16332 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
16333 (grub_multiboot_make_mbi): Likewise.
16334 (grub_multiboot_free_mbi): Likewise.
16335 (grub_multiboot_init_mbi): Likewise.
16336 (grub_multiboot_add_module): Likewise.
16337 (grub_multiboot_set_bootdev): Likewise.
16338 * loader/i386/multiboot.c (mbi): Removed.
16339 (mbi_dest): Likewise.
16340 (alloc_mbi): New variable.
16341 (grub_multiboot_payload_size): Removed. All users updated.
16342 (grub_multiboot_pure_size): New variable.
16343 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
16344 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
16345 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
16346 (grub_fill_multiboot_mmap): Likewise.
16347 (grub_multiboot_get_bootdev): Likewise.
16348 (grub_multiboot): Use multiboot_mbi functions.
16349 * loader/i386/multiboot_mbi.c: New file.
16350
16351 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16352
16353 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
16354 it would result in module crash.
16355
16356 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16357
16358 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
16359 (grub_ofconsole_getwh): Split to ...
16360 (grub_ofconsole_getwh): ... this.
16361 (grub_ofconsole_dimensions): ...and this.
16362 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
16363
16364 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
16365
16366 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
16367
16368 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16369
16370 * loader/i386/pc/multiboot2.c: Removed stalled file.
16371
16372 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16373
16374 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
16375 Reported by: Grégoire Sutre
16376
16377 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
16378
16379 * util/misc.c (canonicalize_file_name): New function.
16380 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
16381 instead of realpath().
16382
16383 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
16384
16385 * util/grub-install.in (usage): Clarify meaning of --root-directory,
16386 and make it clearer that it's optional. Based on confusion
16387 witnessed on IRC.
16388
16389 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16390
16391 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
16392 in premature implicit newline.
16393
16394 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16395
16396 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
16397 which resulted in garbled command line at the end of screen.
16398
16399 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
16400
16401 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
16402 initialization with similar approach as with other Linux loaders.
16403
16404 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
16405
16406 Fix i386-ieee1275 build.
16407
16408 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
16409 and grub_term_height() for video_{width,height} initialization.
16410
16411 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
16412
16413 Fix grub-emu build.
16414
16415 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
16416
16417 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16418 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
16419
16420 Support for multiple terminals.
16421
16422 * Makefile.in (pkglib_DATA): terminal.lst.
16423 (terminal.lst): New target.
16424 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
16425 (GRUB_MOD_INIT(handler)): Likewise.
16426 (GRUB_MOD_FINI(handler)): Likewise.
16427 * commands/help.c (grub_cmd_help): Handle multiple terminals.
16428 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
16429 * commands/sleep.c (do_print): Use grub_term_restore_pos.
16430 (grub_cmd_sleep): Use grub_term_save_pos.
16431 * commands/terminal.c: New file.
16432 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
16433 commands/terminal.c and lib/charset.c.
16434 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
16435 (pkglib_MODULES): Add terminal.mod.
16436 (terminal_mod_SOURCES): New variable.
16437 (terminal_mod_CFLAGS): Likewise.
16438 (terminal_mod_LDFLAGS): Likewise.
16439 * genhandlerlist.sh: Don't handle terminals.
16440 * genmk.rb: Generate terminal-*.lst.
16441 * genterminallist.sh: New file.
16442 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
16443 (grub_is_valid_utf8): Likewise.
16444 (grub_utf8_to_ucs4_alloc): Likewise.
16445 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
16446 (grub_menu_register_viewer): Changed argument.
16447 (grub_menu_try_text): New proto.
16448 (grub_gfxmenu_try_hook): New declaration.
16449 * include/grub/normal.h (grub_normal_exit_level): New declaration.
16450 (grub_menu_init_page): Additional argument term.
16451 (grub_normal_init_page): Likewise.
16452 (grub_cmdline_get): Arguments simplified.
16453 (grub_utf8_to_ucs4_alloc): Removed.
16454 (grub_print_ucs4): Additional argument term.
16455 (grub_getstringwidth): Likewise.
16456 (grub_print_message_indented): Likewise.
16457 (grub_menu_text_register_instances): New proto.
16458 (grub_show_menu): Likewise.
16459 (read_terminal_list): Likewise.
16460 (grub_set_more): Likewise.
16461 * include/grub/parser.h: Include handler.h.
16462 * include/grub/reader.h: Rewritten.
16463 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
16464 (GRUB_TERM_WIDTH): Changed to function.
16465 (GRUB_TERM_HEIGHT): Likewise.
16466 (GRUB_TERM_BORDER_WIDTH): Likewise.
16467 (GRUB_TERM_BORDER_HEIGHT): Likewise.
16468 (GRUB_TERM_NUM_ENTRIES): Likewise.
16469 (GRUB_TERM_ENTRY_WIDTH): Likewise.
16470 (GRUB_TERM_CURSOR_X): Likewise.
16471 (grub_term_input_class): Likewise.
16472 (grub_term_output_class): Likewise.
16473 (grub_term_outputs_disabled): New declaration.
16474 (grub_term_inputs_disabled): Likewise.
16475 (grub_term_outputs): Likewise.
16476 (grub_term_inputs): Likewise.
16477 (grub_term_register_input): Rewritten.
16478 (grub_term_register_output): Likewise.
16479 (grub_term_unregister_input): Likewise.
16480 (grub_term_unregister_output): Likewise.
16481 (FOR_ACTIVE_TERM_INPUTS): New macro.
16482 (FOR_DISABLED_TERM_INPUTS): Likewise.
16483 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
16484 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
16485 * include/grub/terminfo.h: Add oterm argument to all protypes.
16486 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
16487 Use grub_rescue_run.
16488 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
16489 All users updated.
16490 * kern/reader.c: Removed. All users updated.
16491 * kern/rescue_reader.c (grub_rescue_init): Removed.
16492 (grub_rescue_reader): Likewise.
16493 (grub_register_rescue_reader): Likewise.
16494 (grub_rescue_run): New function based on kern/reader.c.
16495 * kern/term.c: Adapted for multiterm.
16496 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
16497 (grub_is_valid_utf8): Likewise.
16498 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
16499 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
16500 right terminal.
16501 * loader/i386/linux.c (grub_linux_boot): Likewise.
16502 * normal/auth.c (grub_username_get): New function.
16503 (grub_auth_check_authentication): Use grub_username_get.
16504 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
16505 * normal/color.c: Adapt for multiterm.
16506 * normal/main.c (read_config_file): Don't use grub_reader_loop.
16507 (grub_normal_init_page): Additional argument term.
16508 (read_lists): Call read_terminal_lists.
16509 (grub_enter_normal_mode): Call grub_cmdline_run.
16510 Handle grub_normal_exit_level.
16511 (grub_cmd_normal): Make reentrant.
16512 (grub_cmd_normal_exit): New function.
16513 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
16514 * normal/menu.c: Adapt for multiterm.
16515 * normal/menu_entry.c: Likewise.
16516 * normal/menu_text.c: Likewise.
16517 * normal/menu_viewer.c: Removed. All users updated.
16518 * normal/term.c: New file.
16519 * util/console.c: Change order of includes to workaround a bug in
16520 ncurses headers.
16521 * term/terminfo.c: New argument oterm on all exported functions.
16522 All users updated.
16523 * util/grub-editenv.c (grub_term_input_class): Removed.
16524 (grub_term_output_class): Likewise.
16525
16526 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
16527
16528 Make loader output a bit more user-friendly.
16529
16530 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
16531 is being loaded. Likewise for the Hurd.
16532
16533 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
16534 that kernel of FreeBSD ${version} is being loaded.
16535
16536 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
16537 grub_dprintf().
16538 (grub_cmd_initrd): Likewise.
16539 * util/grub.d/10_linux.in (linux_entry): Print message indicating
16540 that Linux ${version} is being loaded. Likewise for initrd.
16541
16542 2010-01-09 Carles Pina i Estany <carles@pina.cat>
16543
16544 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
16545
16546 2010-01-08 Carles Pina i Estany <carles@pina.cat>
16547
16548 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
16549 (GRUB_MOD_INIT): Gettextizze.
16550 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
16551 (GRUB_MOD_INIT): Gettextizze.
16552 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
16553 (grub_cmd_linux): Capitalise Linux.
16554 (GRUB_MOD_INIT): Gettextizze.
16555 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
16556 (grub_cmd_linux): Capitalise Linux.
16557 (GRUB_MOD_INIT): Gettextizze.
16558 * loader/i386/linux.c: Include `<grub/i18n.h>'.
16559 (grub_cmd_linux): Capitalise Linux.
16560 (GRUB_MOD_INIT): Gettextizze.
16561 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
16562 (GRUB_MOD_INIT): Gettextizze.
16563 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
16564 (grub_cmd_linux): Capitalise Linux.
16565 (GRUB_MOD_INIT): Gettextizze.
16566 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
16567 (grub_cpu_xnu_init): Gettextizze.
16568 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
16569 (GRUB_MOD_INIT): Gettextizze.
16570 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
16571 (GRUB_MOD_INIT): Gettextizze.
16572 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
16573 (grub_linux_load64): Capitalise Linux.
16574 (GRUB_MOD_INIT): Gettextizze.
16575 * loader/xnu.c: Include `<grub/i18n.h>'.
16576 (GRUB_MOD_INIT): Gettextizze.
16577 * po/POTFILES: Add `loader/efi/appleloader.c',
16578 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
16579 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
16580 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
16581 `loader/i386/xnu.c', `loader/multiboot_loader.c',
16582 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
16583 and `loader/xnu.c'.
16584
16585 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
16586
16587 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
16588
16589 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
16590
16591 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
16592 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
16593 * util/mkisofs/mkisofs.c (main): Readjust --version output.
16594
16595 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
16596
16597 Reset Multiboot 2 support. New loader implements the draft in
16598 /branches/multiboot2 and shares as much code as possible with the
16599 production Multiboot 1 implementation.
16600
16601 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
16602 * loader/multiboot2.c: Likewise.
16603 * loader/i386/multiboot_helper.S: Likewise.
16604 * include/multiboot2.h: Replace with latest version from the draft
16605 in /branches/multiboot2.
16606
16607 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
16608 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
16609 and `loader/multiboot2.c'.
16610 (pkglib_MODULES): Add `multiboot2.mod'.
16611 (multiboot2_mod_SOURCES): New variable.
16612 (multiboot2_mod_LDFLAGS): Likewise.
16613 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
16614
16615 * conf/i386-pc.rmk: Likewise.
16616
16617 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
16618 (multiboot_mod_SOURCES): Remove variable.
16619 (multiboot_mod_LDFLAGS): Likewise.
16620 (multiboot_mod_CFLAGS): Likewise.
16621
16622 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
16623 `<multiboot2.h>' instead of `<multiboot.h>'.
16624 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
16625 (MULTIBOOT_HEADER_MAGIC): New macros.
16626
16627 * loader/multiboot_loader.c (module_version_status): Remove variable.
16628 (find_multi_boot2_header): Remove function.
16629 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
16630 logic. Always check for the Multiboot version we're compiling for.
16631 (grub_cmd_module_loader): Likewise.
16632 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
16633 command instead of `multiboot'.
16634
16635 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
16636
16637 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
16638 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
16639 all users.
16640
16641 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
16642 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16643
16644 Fix breakage introduced with previous commit.
16645
16646 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
16647 commands.
16648 * normal/handler.c (read_handler_list): Revert part of previous commit
16649 affecting this file.
16650 * normal/main.c (read_lists): Move read_handler_list() call back to ...
16651 (grub_normal_execute): ... here.
16652
16653 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
16654
16655 Merge prefix-redefinition-fix branch.
16656
16657 * normal/autofs.c (read_fs_list): Make function capable of being
16658 run multiple times, gracefuly replacing the previous data
16659 structures.
16660 * normal/dyncmd.c (read_command_list): Likewise.
16661 * normal/handler.c (read_handler_list): Likewise.
16662 * normal/main.c (read_lists): New function. Calls all the
16663 list reading functions.
16664 (grub_normal_execute): Use read_lists() instead of calling all
16665 list reading functions explicitly. Register read_lists() as a
16666 variable hook attached to ${prefix}.
16667
16668 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16669
16670 Merge crypto branch.
16671
16672 * Makefile.in (pkglib_DATA): Add crypto.lst.
16673 (crypto.lst): New target.
16674 * commands/hashsum.c: New file.
16675 * commands/password.c (check_password): Use grub_crypto_memcmp.
16676 * commands/password_pbkdf2.c: New file.
16677 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
16678 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
16679 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
16680 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
16681 -I$(srcdir)/lib/libgcrypt_wrap.
16682 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
16683 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
16684 password_pbkdf2.mod.
16685 (crypto_mod_SOURCES): New variable.
16686 (crypto_mod_CFLAGS): Likewise.
16687 (crypto_mod_LDFLAGS): Likewise.
16688 (hashsum_mod_SOURCES): New variable.
16689 (hashsum_mod_CFLAGS): Likewise.
16690 (hashsum_mod_LDFLAGS): Likewise.
16691 (pbkdf2_mod_SOURCES): New variable.
16692 (pbkdf2_mod_CFLAGS): Likewise.
16693 (pbkdf2_mod_LDFLAGS): Likewise.
16694 (password_pbkdf2_mod_SOURCES): New variable.
16695 (password_pbkdf2_mod_CFLAGS): Likewise.
16696 (password_pbkdf2_mod_LDFLAGS): Likewise.
16697 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
16698 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
16699 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
16700 Include conf/gcry.rmk.
16701 * include/grub/auth.h: Rewritten.
16702 * include/grub/crypto.h: New file.
16703 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
16704 * include/grub/normal.h (read_crypto_list): New prototype.
16705 * lib/crypto.c: New file.
16706 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
16707 * lib/pbkdf2.c: Likewise.
16708 * normal/auth.c (grub_auth_strcmp): Removed.
16709 (grub_iswordseparator): Likewise.
16710 (grub_auth_strword): Likewise.
16711 (is_authenticated): Use grub_strword.
16712 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
16713 and grub_strword. Pass entered password to authentication callback.
16714 * normal/crypto.c: New file.
16715 * normal/main.c: Call read_crypto_list.
16716 * util/grub-mkpasswd-pbkdf2.c: New file.
16717 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
16718
16719 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
16720
16721 Fix descent and ascent calculation.
16722
16723 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
16724 (options): New option "asce".
16725 (usage): Likewise.
16726 (add_char): Ignore invalid glyphs for descent calculation.
16727 Calculate ascent from actual content.
16728 (print_glyphs): Use 'asce'.
16729 (write_font): Likewise. Allow ascent override.
16730 (main): Handle "asce" option.
16731
16732 2010-01-06 Carles Pina i Estany <carles@pina.cat>
16733
16734 * kern/err.c: Include `<grub/i18n.h>'.
16735 (grub_print_error): Add full stop. Gettextizze.
16736 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
16737 (grub_bsd_load_elf): Capitalise ELF.
16738 (grub_cmd_freebsd_loadenv): Add `s' in error string.
16739 (grub_cmd_freebsd_module): Likewise.
16740 (grub_cmd_freebsd_module_elf): Likewise.
16741 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
16742
16743 2010-01-06 Carles Pina i Estany <carles@pina.cat>
16744
16745 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
16746 * commands/search_file.c (HELP_MESSAGE): New macro.
16747 * commands/search_label.c (HELP_MESSAGE): Likewise.
16748 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
16749 * po/POTFILES: Add `commands/search_file.c',
16750 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
16751 `commands/search.c'.
16752
16753 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
16754
16755 * config.rpath: Update from Gnulib.
16756
16757 2010-01-05 Yves Blusseau <blusseau@zetam.org>
16758
16759 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
16760
16761 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
16762
16763 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
16764
16765 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16766
16767 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
16768 arguments to fread so that we get a return value in bytes, rather
16769 than something that will normally be rounded down to 0.
16770 Adjust error handling to avoid producing garbage when size_t is not
16771 the same size as long long.
16772
16773 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16774
16775 * util/mkisofs/write.c (padblock_write): Check return value of
16776 fread.
16777
16778 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
16779
16780 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
16781 floppy images now.
16782
16783 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
16784
16785 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
16786
16787 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
16788 instead of manual alignment.
16789 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
16790 verbose). Avoid attempts to read past end of the device
16791 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
16792 but GRUB_DISK_CACHE_SIZE may exceed that).
16793
16794 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
16795
16796 * commands/crc.c (grub_cmd_crc): Abort on read errors.
16797 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
16798 it to upper layer.
16799
16800 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16801
16802 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
16803 New constant.
16804 (grub_efi_piwg_device_path): New structure
16805 (grub_efi_piwg_device_path_t): New type.
16806 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
16807 (devpath_1): Transform to a structure. All users updated.
16808 (devpath_2): Likewise.
16809 (devpath_3): Likewise.
16810 (devpath_4): Likewise.
16811 (devpath_5): Likewise.
16812
16813 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16814
16815 * loader/efi/appleloader.c: Restored. Update all users.
16816
16817 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
16818
16819 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
16820
16821 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
16822 (struct boot_blocklist): Move from here ...
16823 * include/grub/i386/pc/boot.h [ASM_FILE]
16824 (struct grub_boot_blocklist): ... to here. Update all users.
16825 (setup): Only initialize `start' member of `first_block'
16826 structure. Add assert() calls to verify the other members.
16827
16828 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
16829 (generate_image): Fix broken blocklist length initialization.
16830 Add assert() call to verify blocklist `segment' field.
16831
16832 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
16833
16834 * loader/efi/appleloader.c: Remove. Update all users.
16835
16836 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
16837
16838 * boot/i386/pc/boot.S: Update copyright year.
16839 * boot/i386/pc/cdboot.S: Likewise.
16840 * boot/i386/pc/diskboot.S: Likewise.
16841 * boot/i386/pc/lnxboot.S: Likewise.
16842 * boot/i386/pc/pxeboot.S: Likewise.
16843 * bus/pci.c: Likewise.
16844 * commands/cmp.c: Likewise.
16845 * commands/help.c: Likewise.
16846 * commands/hexdump.c: Likewise.
16847 * commands/i386/pc/halt.c: Likewise.
16848 * commands/i386/pc/play.c: Likewise.
16849 * commands/i386/pc/vbeinfo.c: Likewise.
16850 * commands/ls.c: Likewise.
16851 * commands/test.c: Likewise.
16852 * disk/dmraid_nvidia.c: Likewise.
16853 * disk/i386/pc/biosdisk.c: Likewise.
16854 * disk/ieee1275/nand.c: Likewise.
16855 * disk/ieee1275/ofdisk.c: Likewise.
16856 * disk/lvm.c: Likewise.
16857 * disk/raid.c: Likewise.
16858 * disk/raid6_recover.c: Likewise.
16859 * disk/scsi.c: Likewise.
16860 * fs/affs.c: Likewise.
16861 * fs/cpio.c: Likewise.
16862 * fs/ext2.c: Likewise.
16863 * fs/hfs.c: Likewise.
16864 * fs/iso9660.c: Likewise.
16865 * fs/ntfs.c: Likewise.
16866 * fs/sfs.c: Likewise.
16867 * fs/udf.c: Likewise.
16868 * fs/ufs.c: Likewise.
16869 * fs/xfs.c: Likewise.
16870 * gencmdlist.sh: Likewise.
16871 * genmk.rb: Likewise.
16872 * include/grub/disk.h: Likewise.
16873 * include/grub/efi/api.h: Likewise.
16874 * include/grub/efi/efi.h: Likewise.
16875 * include/grub/efi/pe32.h: Likewise.
16876 * include/grub/elf.h: Likewise.
16877 * include/grub/fs.h: Likewise.
16878 * include/grub/i386/at_keyboard.h: Likewise.
16879 * include/grub/i386/pc/memory.h: Likewise.
16880 * include/grub/i386/pc/vbe.h: Likewise.
16881 * include/grub/i386/pci.h: Likewise.
16882 * include/grub/i386/tsc.h: Likewise.
16883 * include/grub/ieee1275/ieee1275.h: Likewise.
16884 * include/grub/ntfs.h: Likewise.
16885 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
16886 * include/grub/sparc64/libgcc.h: Likewise.
16887 * include/grub/symbol.h: Likewise.
16888 * include/grub/types.h: Likewise.
16889 * include/multiboot2.h: Likewise.
16890 * io/gzio.c: Likewise.
16891 * kern/device.c: Likewise.
16892 * kern/disk.c: Likewise.
16893 * kern/efi/efi.c: Likewise.
16894 * kern/efi/mm.c: Likewise.
16895 * kern/elf.c: Likewise.
16896 * kern/file.c: Likewise.
16897 * kern/i386/dl.c: Likewise.
16898 * kern/i386/pc/init.c: Likewise.
16899 * kern/i386/pc/startup.S: Likewise.
16900 * kern/ieee1275/ieee1275.c: Likewise.
16901 * kern/ieee1275/init.c: Likewise.
16902 * kern/main.c: Likewise.
16903 * kern/mm.c: Likewise.
16904 * kern/powerpc/dl.c: Likewise.
16905 * kern/sparc64/dl.c: Likewise.
16906 * kern/x86_64/dl.c: Likewise.
16907 * lib/hexdump.c: Likewise.
16908 * loader/efi/appleloader.c: Likewise.
16909 * loader/i386/ieee1275/linux.c: Likewise.
16910 * loader/i386/pc/chainloader.c: Likewise.
16911 * loader/i386/pc/linux.c: Likewise.
16912 * loader/i386/pc/multiboot2.c: Likewise.
16913 * loader/ieee1275/multiboot2.c: Likewise.
16914 * loader/multiboot2.c: Likewise.
16915 * loader/multiboot_loader.c: Likewise.
16916 * loader/powerpc/ieee1275/linux.c: Likewise.
16917 * normal/completion.c: Likewise.
16918 * normal/menu_entry.c: Likewise.
16919 * partmap/apple.c: Likewise.
16920 * util/grub.d/10_hurd.in: Likewise.
16921 * util/hostfs.c: Likewise.
16922 * video/readers/png.c: Likewise.
16923
16924 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
16925
16926 * include/grub/misc.h (GNUC_PREREQ): New macro.
16927 (ATTRIBUTE_ERROR): New macro.
16928 * include/grub/list.h (grub_bad_type_cast_real): Use
16929 ATTRIBUTE_ERROR.
16930
16931 2010-01-03 Carles Pina i Estany <carles@pina.cat>
16932
16933 * normal/menu_text.c (print_message): Change messages.
16934
16935 2010-01-03 Carles Pina i Estany <carles@pina.cat>
16936
16937 * normal/menu_entry.c (store_completion): Gettextizze.
16938
16939 2010-01-03 Carles Pina i Estany <carles@pina.cat>
16940
16941 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
16942
16943 2010-01-03 Carles Pina i Estany <carles@pina.cat>
16944
16945 * po/POTFILES: Sort correctly.
16946
16947 2010-01-03 Carles Pina i Estany <carles@pina.cat>
16948
16949 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
16950 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
16951 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
16952 full stop.
16953 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
16954 summary. Gettextizze the strings.
16955 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
16956 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
16957 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
16958 full stop.
16959 (GRUB_MOD_INIT): Remove command name from summary.
16960 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
16961 summary.
16962 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
16963 * term/i386/pc/serial.c (options): Add full stops.
16964 (GRUB_MOD_INIT): Remove command name from the summary.
16965
16966 2010-01-03 Carles Pina i Estany <carles@pina.cat>
16967
16968 * commands/acpi.c: Gettextizze help strings and/or options. Include
16969 `grub/i18n.h' if needed.
16970 * commands/blocklist.c: Likewise.
16971 * commands/boot.c: Likewise.
16972 * commands/cat.c: Likewise.
16973 * commands/cmp.c: Likewise.
16974 * commands/configfile.c: Likewise.
16975 * commands/crc.c: Likewise.
16976 * commands/date.c: Likewise.
16977 * commands/echo.c: Likewise.
16978 * commands/efi/fixvideo.c: Likewise.
16979 * commands/efi/loadbios.c: Likewise.
16980 * commands/gptsync.c: Likewise.
16981 * commands/halt.c: Likewise.
16982 * commands/handler.c: Likewise.
16983 * commands/hdparm.c: Likewise.
16984 * commands/hexdump.c: Likewise.
16985 * commands/i386/cpuid.c: Likewise.
16986 * commands/i386/pc/drivemap.c: Likewise.
16987 * commands/i386/pc/halt.c: Likewise.
16988 * commands/i386/pc/pxecmd.c: Likewise.
16989 * commands/i386/pc/vbeinfo.c: Likewise.
16990 * commands/i386/pc/vbetest.c: Likewise.
16991 * commands/ieee1275/suspend.c: Likewise.
16992 * commands/keystatus.c: Likewise.
16993 * commands/loadenv.c: Likewise.
16994 * commands/ls.c: Likewise.
16995 * commands/lsmmap.c: Likewise.
16996 * commands/lspci.c: Likewise.
16997 * commands/memrw.c: Likewise.
16998 * commands/minicmd.c: Likewise.
16999 * commands/parttool.c: Likewise.
17000 * commands/password.c: Likewise.
17001 * commands/probe.c: Likewise.
17002 * commands/read.c: Likewise.
17003 * commands/reboot.c: Likewise.
17004 * commands/search.c: Likewise.
17005 * commands/sleep.c: Likewise.
17006 * commands/test.c: Likewise.
17007 * commands/true.c: Likewise.
17008 * commands/usbtest.c: Likewise.
17009 * commands/videotest.c: Likewise.
17010 * commands/xnu_uuid.c: Likewise.
17011 * disk/loopback.c: Likewise.
17012 * hello/hello.c: Likewise.
17013 * loader/i386/bsd.c: Likewise.
17014 * term/i386/pc/serial.c: Likewise.
17015 * po/POTFILES: Add new files.
17016
17017 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
17018
17019 * term/i386/pc/at_keyboard.c
17020 (keyboard_controller_wait_untill_ready): Rename to ...
17021 (keyboard_controller_wait_until_ready): ... this. Update all users.
17022
17023 2010-01-01 Carles Pina i Estany <carles@pina.cat>
17024
17025 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
17026 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
17027 string using string width.
17028 * normal/menu_text.c (grub_print_message_indented): Use
17029 grub_print_spaces and not print_spaces.
17030 (print_timeout): Likewise.
17031 (print_spaces): Move to...
17032 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
17033
17034 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
17035
17036 Import from Gnulib.
17037
17038 * gnulib/getdelim.c: New file.
17039 * gnulib/getline.c: Likewise.
17040
17041 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
17042
17043 * include/grub/list.h (grub_assert_fail): Removed.
17044 (grub_bad_type_cast_real): New function.
17045 (grub_bad_type_cast): New macro.
17046 (GRUB_AS_LIST): Use grub_bad_type_cast.
17047 (GRUB_AS_LIST_P): Likewise.
17048 (GRUB_AS_NAMED_LIST): Likewise.
17049 (GRUB_AS_NAMED_LIST_P): Likewise.
17050 (GRUB_AS_PRIO_LIST): Likewise.
17051 (GRUB_AS_PRIO_LIST_P): Likewise.
17052 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
17053
17054 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
17055
17056 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
17057 Fix syntax error.
17058
17059 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
17060
17061 * configure.ac: Check for TARGET_CFLAGS initialization before we
17062 initialize it ourselves (sigh).
17063 Move a few modifications to TARGET_CFLAGS to be unconditional
17064 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
17065 eh_frame)
17066
17067 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
17068 * term/i386/pc/at_keyboard.c
17069 (keyboard_controller_wait_untill_ready): Likewise.
17070 (keyboard_controller_led): Rename `led_status' paramter to avoid
17071 name conflict.
17072
17073 2009-12-28 Carles Pina i Estany <carles@pina.cat>
17074
17075 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
17076 quotes.
17077
17078 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17079
17080 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
17081
17082 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17083
17084 * normal/menu_text.c (grub_print_message_indented): Prevent
17085 past-the-end-of-array dereference.
17086
17087 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17088
17089 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
17090 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
17091
17092 2009-12-27 Carles Pina i Estany <carles@pina.cat>
17093
17094 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
17095 * normal/main.c (grub_normal_read_line): Remove a space from the
17096 default prompt.
17097
17098 2009-12-27 Carles Pina i Estany <carles@pina.cat>
17099
17100 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
17101 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17102 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
17103 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
17104 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17105 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17106 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
17107
17108 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17109
17110 * video/readers/jpeg.c (cmd): Declare.
17111 (grub_cmd_jpegtest): Use `grub_command_t' type.
17112 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
17113 Assign to `cmd'.
17114 (GRUB_MOD_FINI): Use `cmd' to unregister.
17115 * video/readers/png.c (cmd): Declare.
17116 (grub_cmd_pngtest): Use `grub_command_t' type.
17117 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
17118 Assign to `cmd'.
17119 (GRUB_MOD_FINI): Use `cmd' to unregister.
17120 * video/readers/tga.c (cmd): Declare.
17121 (grub_cmd_tgatest): Use `grub_command_t' type.
17122 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
17123 Assign to `cmd'.
17124 (GRUB_MOD_FINI): Use `cmd' to unregister.
17125
17126 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17127
17128 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
17129 stops.
17130 * kern/corecmd.c (grub_register_core_commands): Likewise.
17131 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
17132 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
17133 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
17134 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17135 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
17136 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
17137 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
17138 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
17139 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17140 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17141 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
17142 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
17143 * normal/handler.c (insert_handler): Likewise.
17144 * normal/main.c (GRUB_MOD_INIT): Likewise.
17145 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
17146
17147 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17148
17149 * commands/help.c (grub_cmd_help): Print the command name before the
17150 summary.
17151 (GRUB_MOD_INIT): Remove command name from the summary.
17152 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
17153 string as summary.
17154 * lib/arg.c (find_long): Print the command name before the summary.
17155 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
17156 summary.
17157 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
17158 * commands/cat.c (GRUB_MOD_INIT): Likewise.
17159 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
17160 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17161 * commands/crc.c (GRUB_MOD_INIT): Likewise.
17162 * commands/date.c (GRUB_MOD_INIT): Likewise.
17163 * commands/echo.c (GRUB_MOD_INIT): Likewise.
17164 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
17165 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
17166 * commands/handler.c (GRUB_MOD_INIT): Likewise.
17167 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
17168 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
17169 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
17170 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
17171 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
17172 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
17173 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
17174 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
17175 * commands/ls.c (GRUB_MOD_INIT): Likewise.
17176 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
17177 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
17178 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
17179 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
17180 * commands/password.c (GRUB_MOD_INIT): Likewise.
17181 * commands/probe.c (GRUB_MOD_INIT): Likewise.
17182 * commands/read.c (GRUB_MOD_INIT): Likewise.
17183 * commands/search.c (GRUB_MOD_INIT): Likewise.
17184 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
17185 * commands/test.c (GRUB_MOD_INIT): Likewise.
17186 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
17187 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
17188 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
17189 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
17190 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
17191 * lib/arg.c (GRUB_MOD_INIT): Likewise.
17192 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
17193 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
17194 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
17195 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
17196 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
17197 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
17198 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
17199 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
17200
17201 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17202
17203 Use search command for preliminar UUID search.
17204
17205 * commands/search.c: Split into ...
17206 * commands/search_wrap.c: ...this
17207 * commands/search.c: ...and this.
17208 * commands/search_file.c: New file.
17209 * commands/search_label.c: New file.
17210 * commands/search_uuid.c: New file.
17211 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
17212 Add commands/search_wrap.c, commands/search_file.c,
17213 commands/search_label.c and commands/search_uuid.c.
17214 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
17215 (search_mod_SOURCES): Set to commands/search_wrap.c.
17216 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
17217 search_label.mod.
17218 (search_fs_file_mod_SOURCES): New variable.
17219 (search_fs_file_mod_CFLAGS): Likewise.
17220 (search_fs_file_mod_LDFLAGS): Likewise.
17221 (search_label_mod_SOURCES): Likewise.
17222 (search_label_mod_CFLAGS): Likewise.
17223 (search_label_mod_LDFLAGS): Likewise.
17224 (search_fs_uuid_mod_SOURCES): New variable.
17225 (search_fs_uuid_mod_CFLAGS): Likewise.
17226 (search_fs_uuid_mod_LDFLAGS): Likewise.
17227 (fs_file_mod_SOURCES): Removed.
17228 (fs_file_mod_CFLAGS): Likewise.
17229 (fs_file_mod_LDFLAGS): Likewise.
17230 (fs_uuid_mod_SOURCES): Removed.
17231 (fs_uuid_mod_CFLAGS): Likewise.
17232 (fs_uuid_mod_LDFLAGS): Likewise.
17233 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
17234 Set to util/grub-install.in.
17235 * disk/fs_file.c: Removed.
17236 * disk/fs_uuid.c: Likewise.
17237 * include/grub/search.h: New file.
17238 * util/grub-install.in: Handle sparc64.
17239 Create and use load.cfg.
17240 * util/sparc64/ieee1275/grub-install.in: Removed.
17241
17242 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17243
17244 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
17245 Ignore return status if CF is cleared.
17246 (grub_biosdisk_get_diskinfo_standard): Likewise.
17247
17248 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
17249
17250 * term/i386/pc/at_keyboard.c
17251 (keyboard_controller_wait_untill_ready): New function.
17252 (grub_keyboard_controller_write, grub_keyboard_controller_read)
17253 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
17254 for keyboard polling, rather than duplicate the same loop. This
17255 saves a few bytes in code size.
17256
17257 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17258
17259 Support for (pxe[:server[:gateway]]) syntax and
17260 use environment variable for PXE.
17261
17262 * commands/i386/pc/pxecmd.c (options): Removed.
17263 (print_ip): Removed.
17264 (grub_cmd_pxe): Removed
17265 (grub_cmd_pxe_unload): New function.
17266 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
17267 (grub_pxe_your_ip): Made static.
17268 (grub_pxe_default_server_ip): Likewise.
17269 (grub_pxe_default_gateway_ip): Likewise.
17270 (grub_pxe_blksize): Likewise.
17271 (parse_ip): New function.
17272 (grub_pxe_open): Support server and gateway specification.
17273 (grub_pxe_close): Free disk->data.
17274 (grub_pxefs_open): Use disk->data.
17275 (grub_pxefs_read): Likewise.
17276 (grub_env_write_readonly): New function.
17277 (set_mac_env): Likewise.
17278 (set_env_limn_ro): Likewise.
17279 (parse_dhcp_vendor): Likewise.
17280 (grub_pxe_detect): Set the environment variables.
17281 (set_ip_env): New function.
17282 (write_ip_env): Likewise.
17283 (grub_env_write_pxe_default_server): Likewise.
17284 (grub_env_write_pxe_default_gateway): Likewise.
17285 (grub_env_write_pxe_blocksize): Likewise.
17286 (GRUB_MOD_INIT(pxe)): Set environment variables.
17287 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
17288 (grub_pxe_mac_addr_t): ... this. All users updated.
17289 (grub_pxe_your_ip): Removed.
17290 (grub_pxe_server_ip): Likewise.
17291 (grub_pxe_gateway_ip): Likewise.
17292 (grub_pxe_blksize): Likewise.
17293
17294 2009-12-25 Carles Pina i Estany <carles@pina.cat>
17295
17296 * commands/help.c: Include `<grub/i18n.h>'.
17297 (grub_cmd_help): Gettextizze.
17298 (GRUB_MOD_INIT): Likewise.
17299 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
17300 (GRUB_MOD_INIT): Gettextizze.
17301 * commands/search.c: Include `<grub/i18n.h>'.
17302 (options): Gettextizze.
17303 (GRUB_MOD_INIT): Gettextizze.
17304 * lib/arg.c: Include `<grub/i18n.h>'.
17305 (help_options): Gettextizze.
17306 (find_long): Likewise.
17307 (grub_arg_show_help): Likewise.
17308 * normal/dyncmd.c: Include `<grub/i18n.h>'.
17309 (read_command_list): Gettextizze.
17310 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
17311 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
17312
17313 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
17314
17315 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
17316 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
17317 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
17318 (led_status): New variable.
17319 (keyboard_controller_led): New function.
17320 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
17321 update led status for caps lock, num lock and scroll lock.
17322
17323 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
17324
17325 * util/hostdisk.c (open_device): Fix a comment.
17326
17327 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17328
17329 * util/grub-install.in (host_os): New variable.
17330 * util/i386/efi/grub-install.in (host_os): Likewise.
17331
17332 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17333
17334 * util/mkisofs/write.c (padblock_write): Abort when given an
17335 excedingly large embed image, instead of silently truncating it.
17336
17337 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17338
17339 * include/multiboot.h: Indentation fixes.
17340
17341 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17342
17343 * include/multiboot.h (struct multiboot_aout_symbol_table)
17344 (struct multiboot_elf_section_header_table): New structure
17345 declarations (stolen from GRUB Legacy).
17346 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
17347 table information.
17348
17349 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
17350 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
17351 type aliases.
17352
17353 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17354
17355 * include/multiboot.h: Make comments src2texi-friendly.
17356
17357 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17358
17359 For consistency with [multiboot]/docs/boot.S.
17360
17361 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
17362 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
17363 (MULTIBOOT_MAGIC2): Rename from this ...
17364 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
17365
17366 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17367
17368 * include/multiboot.h: Remove `<grub/types.h>'.
17369 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
17370 types. Update all users.
17371
17372 2009-12-25 Carles Pina i Estany <carles@pina.cat>
17373
17374 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
17375 `couldn't' and `can not' by `cannot'.
17376 * commands/i386/pc/drivemap.c: Likewise.
17377 * disk/ata.c: Likewise.
17378 * disk/ieee1275/nand.c: Likewise.
17379 * fs/affs.c: Likewise.
17380 * fs/fat.c: Likewise.
17381 * fs/hfs.c: Likewise.
17382 * fs/hfsplus.c: Likewise.
17383 * fs/iso9660.c: Likewise.
17384 * fs/jfs.c: Likewise.
17385 * fs/minix.c: Likewise.
17386 * fs/reiserfs.c: Likewise.
17387 * fs/sfs.c: Likewise.
17388 * fs/udf.c: Likewise.
17389 * fs/ufs.c: Likewise.
17390 * fs/xfs.c: Likewise.
17391 * loader/powerpc/ieee1275/linux.c: Likewise.
17392 * loader/sparc64/ieee1275/linux.c: Likewise.
17393 * util/grub-probe.c: Likewise.
17394 * util/misc.c: Likewise.
17395
17396 2009-12-24 Carles Pina i Estany <carles@pina.cat>
17397
17398 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
17399 grub_errno calls.
17400 * commands/acpi.c: Likewise.
17401 * commands/blocklist.c: Likewise.
17402 * commands/efi/loadbios.c: Likewise.
17403 * commands/i386/pc/drivemap.c: Likewise.
17404 * commands/loadenv.c: Likewise.
17405 * commands/memrw.c: Likewise.
17406 * commands/password.c: Likewise.
17407 * commands/videotest.c: Likewise.
17408 * disk/ata.c: Likewise.
17409 * disk/ata_pthru.c: Likewise.
17410 * disk/dmraid_nvidia.c: Likewise.
17411 * disk/ieee1275/nand.c: Likewise.
17412 * disk/ieee1275/ofdisk.c: Likewise.
17413 * disk/loopback.c: Likewise.
17414 * disk/lvm.c: Likewise.
17415 * disk/mdraid_linux.c: Likewise.
17416 * disk/raid.c: Likewise.
17417 * disk/raid6_recover.c: Likewise.
17418 * disk/scsi.c: Likewise.
17419 * efiemu/main.c: Likewise.
17420 * efiemu/mm.c: Likewise.
17421 * efiemu/pnvram.c: Likewise.
17422 * efiemu/symbols.c: Likewise.
17423 * font/font.c: Likewise.
17424 * fs/cpio.c: Likewise.
17425 * fs/hfsplus.c: Likewise.
17426 * fs/iso9660.c: Likewise.
17427 * fs/jfs.c: Likewise.
17428 * fs/minix.c: Likewise.
17429 * fs/ntfs.c: Likewise.
17430 * fs/ntfscomp.c: Likewise.
17431 * fs/reiserfs.c: Likewise.
17432 * fs/ufs.c: Likewise.
17433 * fs/xfs.c: Likewise.
17434 * gettext/gettext.c: Likewise.
17435 * include/grub/auth.h: Likewise.
17436 * kern/elf.c: Likewise.
17437 * kern/file.c: Likewise.
17438 * kern/ieee1275/init.c: Likewise.
17439 * kern/ieee1275/mmap.c: Likewise.
17440 * kern/ieee1275/openfw.c: Likewise.
17441 * kern/powerpc/dl.c: Likewise.
17442 * kern/sparc64/dl.c: Likewise.
17443 * lib/arg.c: Likewise.
17444 * loader/i386/bsd.c: Likewise.
17445 * loader/i386/bsdXX.c: Likewise.
17446 * loader/i386/efi/linux.c: Likewise.
17447 * loader/i386/efi/xnu.c: Likewise.
17448 * loader/i386/ieee1275/linux.c: Likewise.
17449 * loader/i386/linux.c: Likewise.
17450 * loader/i386/multiboot.c: Likewise.
17451 * loader/i386/pc/linux.c: Likewise.
17452 * loader/i386/pc/multiboot2.c: Likewise.
17453 * loader/i386/xnu.c: Likewise.
17454 * loader/ieee1275/multiboot2.c: Likewise.
17455 * loader/macho.c: Likewise.
17456 * loader/machoXX.c: Likewise.
17457 * loader/multiboot2.c: Likewise.
17458 * loader/multiboot_loader.c: Likewise.
17459 * loader/powerpc/ieee1275/linux.c: Likewise.
17460 * loader/sparc64/ieee1275/linux.c: Likewise.
17461 * loader/xnu.c: Likewise.
17462 * loader/xnu_resume.c: Likewise.
17463 * mmap/i386/pc/mmap.c: Likewise.
17464 * normal/menu_viewer.c: Likewise.
17465 * partmap/acorn.c: Likewise.
17466 * partmap/amiga.c: Likewise.
17467 * partmap/apple.c: Likewise.
17468 * script/lexer.c: Likewise.
17469 * term/gfxterm.c: Likewise.
17470 * term/i386/pc/serial.c: Likewise.
17471 * term/i386/pc/vga.c: Likewise.
17472 * term/ieee1275/ofconsole.c: Likewise.
17473 * term/terminfo.c: Likewise.
17474 * video/bitmap.c: Likewise.
17475 * video/efi_gop.c: Likewise.
17476 * video/efi_uga.c: Likewise.
17477 * video/fb/video_fb.c: Likewise.
17478 * video/i386/pc/vbe.c: Likewise.
17479 * video/readers/tga.c: Likewise.
17480 * video/video.c: Likewise.
17481
17482 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
17483
17484 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
17485 * commands/lspci.c: Likewise.
17486 * commands/probe.c: Likewise.
17487 * commands/xnu_uuid.c: Likewise.
17488 * conf/i386-coreboot.rmk: Likewise.
17489 * conf/i386-efi.rmk: Likewise.
17490 * conf/i386-ieee1275.rmk: Likewise.
17491 * conf/i386-pc.rmk: Likewise.
17492 * conf/powerpc-ieee1275.rmk: Likewise.
17493 * conf/sparc64-ieee1275.rmk: Likewise.
17494 * conf/x86_64-efi.rmk: Likewise.
17495 * fs/i386/pc/pxe.c: Likewise.
17496 * gettext/gettext.c: Likewise.
17497 * include/grub/efi/graphics_output.h: Likewise.
17498 * include/grub/i386/pc/memory.h: Likewise.
17499 * kern/env.c: Likewise.
17500 * kern/i386/qemu/startup.S: Likewise.
17501 * lib/i386/pc/biosnum.c: Likewise.
17502 * lib/i386/relocator.c: Likewise.
17503 * lib/i386/relocator_asm.S: Likewise.
17504 * lib/relocator.c: Likewise.
17505 * loader/i386/bsd.c: Likewise.
17506 * loader/i386/multiboot.c: Likewise.
17507 * loader/i386/pc/chainloader.c: Likewise.
17508 * loader/i386/xnu.c: Likewise.
17509 * loader/xnu.c: Likewise.
17510 * normal/main.c: Likewise.
17511 * normal/menu_text.c: Likewise.
17512 * util/getroot.c: Likewise.
17513 * util/grub-mkconfig_lib.in: Likewise.
17514 * util/grub.d/00_header.in: Likewise.
17515 * util/i386/pc/grub-mkimage.c: Likewise.
17516 * util/mkisofs/eltorito.c: Likewise.
17517 * util/mkisofs/exclude.h: Likewise.
17518 * util/mkisofs/hash.c: Likewise.
17519 * util/mkisofs/iso9660.h: Likewise.
17520 * util/mkisofs/joliet.c: Likewise.
17521 * util/mkisofs/mkisofs.c: Likewise.
17522 * util/mkisofs/mkisofs.h: Likewise.
17523 * util/mkisofs/multi.c: Likewise.
17524 * util/mkisofs/name.c: Likewise.
17525 * util/mkisofs/rock.c: Likewise.
17526 * util/mkisofs/tree.c: Likewise.
17527 * util/mkisofs/write.c: Likewise.
17528 * video/efi_gop.c: Likewise.
17529
17530 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
17531
17532 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
17533 size counting.
17534
17535 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
17536
17537 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
17538 * genmk.rb (class SCRIPT): Modify the target file instead of source.
17539
17540 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
17541
17542 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
17543 (GRUB_MOD_INIT(memrw)): Update help line.
17544
17545 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
17546
17547 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
17548 Use grub_extcmd_t. All users updated.
17549 (options): New variable.
17550 (grub_cmd_read): Restructure for readability. Support "-v" option.
17551 (grub_cmd_write): Restructure for readability.
17552
17553 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
17554
17555 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
17556
17557 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
17558
17559 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
17560 with the actual contents of the correspondending make variable.
17561 * util/grub-mkrescue.in (pkglib_DATA): New variable.
17562 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
17563 specifying `*.lst' and `efiemu??.o'
17564
17565 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
17566
17567 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
17568 after function name.
17569 Noticed by Rene Engelhard <rene@debian.org>.
17570
17571 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
17572
17573 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
17574 (options): New variable.
17575 (iospace): Likewise.
17576 (grub_lspci_iter): List IO spaces if "-i" was given.
17577 (grub_cmd_lspci): Parse options.
17578 (GRUB_MOD_INIT(lspci)): Use extcmd.
17579 (GRUB_MOD_FINI(lspci)): Likewise.
17580
17581 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
17582
17583 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
17584 `function' keyword.
17585 Patch by Tony Mancill <tmancill@debian.org>.
17586
17587 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
17588
17589 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
17590 (grub_uhci_portstatus): Likewise.
17591 (grub_uhci_portstatus): Add necessary delay.
17592 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
17593
17594 2009-12-21 Carles Pina i Estany <carles@pina.cat>
17595
17596 * commands/acpi.c (options): Fix capitalizations and/or full stops.
17597 (GRUB_MOD_INIT): Likewise.
17598 * commands/boot.c (GRUB_MOD_INIT): Likewise.
17599 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
17600 * commands/echo.c (options): Fix capitalizations and/or full stops.
17601 * commands/efi/loadbios.c (enable_rom_area): Likewise.
17602 (enable_rom_area): Likewise.
17603 (GRUB_MOD_INIT): Likewise.
17604 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
17605 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
17606 * commands/handler.c (GRUB_MOD_INIT): Likewise.
17607 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
17608 * commands/hexdump.c (options): Likewise.
17609 * commands/i386/cpuid.c (options): Likewise.
17610 (GRUB_MOD_INIT): Likewise.
17611 * commands/i386/pc/drivemap.c (options): Likewise.
17612 (GRUB_MOD_INIT): Likewise.
17613 * commands/i386/pc/halt (options): Likewise.
17614 (GRUB_MOD_INIT): Likewise.
17615 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
17616 * commands/i386/pc/pxecmd.c (options): Likewise.
17617 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
17618 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
17619 * commands/keystatus.c (options): Likewise.
17620 (GRUB_MOD_INIT): Likewise.
17621 * commands/loadenv.c (options): Likewise.
17622 * commands/ls.c (options): Likewise.
17623 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
17624 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
17625 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
17626 * commands/parttool.c (helpmsg): Likewise.
17627 * commands/probe.c (options): Likewise.
17628 * commands/read.c (GRUB_MOD_INIT): Likewise.
17629 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
17630 * commands/search.c (options): Likewise.
17631 * commands/sleep.c (options): Likewise.
17632 * commands/test.c (GRUB_MOD_INIT): Likewise.
17633 * commands/true.c (GRUB_MOD_INIT): Likewise.
17634 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
17635 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
17636 * lib/arg.c (help_options): Likewise.
17637 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
17638 `$(XGETTEXT)'.
17639 * po/POTFILES: Add `commands/loadenv.c'.
17640
17641 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
17642
17643 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
17644 instead of specifying them explicit.
17645
17646 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
17647
17648 * NEWS: Add grub-probe support for GNU/Hurd.
17649
17650 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
17651
17652 * NEWS: gettext was added after 1.97.
17653
17654 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
17655
17656 * util/mkisofs/msdos_partition.h: New file (based on
17657 include/grub/msdos_partition.h).
17658 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
17659 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
17660 (ld_options, main): Recognize --protective-msdos-label.
17661 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
17662 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
17663 (padblock_write): If `use_protective_msdos_label' is set, patch a
17664 protective DOS-style label in the output image.
17665
17666 * util/grub-mkrescue.in: Use --protective-msdos-label.
17667
17668 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
17669
17670 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
17671 boot.
17672
17673 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
17674
17675 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
17676 variables.
17677 (ld_options, main): Recognize `--embedded-boot'.
17678 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
17679 declarations.
17680 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
17681 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
17682 (padblock_write): Likewise. Rewrite to support embedded boot image.
17683
17684 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
17685 for BIOS-based disk boot instead of only ElTorito.
17686
17687 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
17688
17689 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
17690 build (not needed for bootstrap).
17691
17692 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
17693
17694 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
17695 from i386-pc build (not needed for bootstrap).
17696 Rewrite a pair of strings.
17697
17698 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
17699
17700 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
17701
17702 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
17703
17704 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
17705
17706 2009-12-21 Andreas Born <futur.andy@googlemail.com>
17707
17708 * kern/env.c (grub_env_context_open): Mark exported variable for
17709 reexport.
17710
17711 2009-12-21 Andreas Born <futur.andy@googlemail.com>
17712
17713 * kern/env.c (grub_env_export): Create nonexistent variables before
17714 exporting.
17715
17716 2009-12-20 Carles Pina i Estany <carles@pina.cat>
17717
17718 * include/grub/auth.h: Include `<grub/i18n.h>'.
17719 (GRUB_GET_PASSWORD): Gettextizze string.
17720 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
17721 menu_text.c.
17722 (grub_utf8_to_ucs4_alloc): Fix indentation.
17723 (grub_print_ucs4): Likewise.
17724 (grub_getstringwidth): Likewise.
17725 (print_message_indented): New declaration.
17726 * normal/auth.c: Include `<grub/i18n.h>'.
17727 (grub_auth_check_authentication): Gettexttize string.
17728 * normal/cmdline.c: Include `<grub/i18n.h>'.
17729 (grub_cmdline_get): Gettextizze.
17730 * normal/color.c: Include `<grub/i18n.h>'.
17731 (grub_parse_color_name_pair): Gettexttize strings.
17732 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
17733 string (use `print_message_indented').
17734 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
17735 `include/grub/normal.h'.
17736 (print_message_indented): Renamed to ...
17737 (grub_print_message_indented): ... this. Remove `static' qualifer (now
17738 used in normal/main.c).
17739 (print_message): Use `grub_print_message_indented' instead of
17740 `print_message_indented'.
17741 (print_timeout): Likewise.
17742 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
17743 (grub_normal_print_device_info): Gettexttize strings.
17744 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
17745
17746 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
17747
17748 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
17749 of arguments. Return number of tokens and not arguments. All users
17750 updated.
17751
17752 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
17753
17754 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
17755 non-MSDOS paritions.
17756
17757 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17758
17759 * include/grub/types.h (UNUSED): Removed since it conflicts with
17760 NetBSD headers. All users changed to direct __attribute__ ((unused)).
17761 Reported by Grégoire Sutre.
17762
17763 2009-12-19 Carles Pina i Estany <carles@pina.cat>
17764
17765 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
17766 (grub_print_ucs4_alloc): Likewise.
17767 (grub_getstringwidth): Likewise.
17768 * normal/main.c (grub_normal_init_page): Gettextize version string.
17769 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
17770 (getstringwidth): Renamed to ...
17771 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
17772 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
17773 (grub_print_ucs4): Remove `static' qualifer (now used in
17774 normal/main.c).
17775 * po/POTFILES: Add normal/main.c.
17776
17777 2009-12-19 Carles Pina i Estany <carles@pina.cat>
17778
17779 * normal/menu_text.c (STANDARD_MARGIN): New macro.
17780 (print_message_indented): Add `margin_left' and `margin_right'
17781 parameters.
17782 (print_message): Update `print_message_indented' calls. Adds '\n' to the
17783 strings.
17784 (print_timeout): Use `print_message_indented' to print the message.
17785 Deletes `second_stage' parameter.
17786 (run_menu): Update `print_timeout' calls.
17787
17788 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
17789
17790 Fix console palette on OpenFirmware.
17791
17792 * term/ieee1275/ofconsole.c (MAX): Removed.
17793 (colors): Redone based on VGA palette.
17794 (grub_ofconsole_setcolor): Discard brightness bit since only 8
17795 colors are supported.
17796 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
17797
17798 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
17799
17800 Fix potential EfiEmu double prepare.
17801
17802 * efiemu/main.c (prepared): New variable
17803 (grub_efiemu_unload): Set prepare to '0'.
17804 (grub_efiemu_prepare): Return if already prepared. Set prepared.
17805
17806 set_virtual_address_map support.
17807
17808 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
17809 prototype.
17810 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
17811 prototype.
17812 (grub_efiemu_crc32): Likewise.
17813 (grub_efiemu_crc64): Likewise.
17814 (grub_efiemu_set_virtual_address_map): Likewise.
17815 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
17816 New definition.
17817 (grub_autoefi_set_virtual_address_map): Likewise.
17818 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
17819 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
17820 Restructure flow to accomodate it.
17821 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
17822 (grub_efiemu_crc): Recompute CRC32.
17823 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
17824 (efiemu_ptv_relocated): ... this. Made global. All users updated.
17825 * efiemu/symbols.c (relocated_handle): New variable.
17826 (grub_efiemu_free_syms): Free relocated_handle.
17827 (grub_efiemu_alloc_syms): Allocate relocated_handle.
17828 (grub_efiemu_write_sym_markers): New function.
17829 (grub_efiemu_set_virtual_address_map): Likewise.
17830
17831 Newer XNU parameters.
17832
17833 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
17834 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
17835 (grub_xnu_fill_devicetree): New prototype.
17836 (grub_xnu_heap_real_start): New variable.
17837 * loader/xnu.c (get_name_ptr): New function.
17838 (grub_xnu_load_driver): Fill namelen and name.
17839
17840 64-bit xnu support.
17841
17842 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
17843 and 'loader/macho64.c'.
17844 * conf/i386-pc.rmk: Likewise.
17845 * conf/x86_64-efi.rmk: Likewise.
17846 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
17847 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
17848 * include/grub/macho.h (grub_macho_segment64): New structure.
17849 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
17850 (grub_macho_size32): ... to this.
17851 (grub_macho32_get_entry_point): Renamed from ...
17852 (grub_macho_get_entry_point32): ... to this.
17853 (grub_macho_contains_macho64): New prototype.
17854 (grub_macho_size64): Likewise.
17855 (grub_macho_get_entry_point64): Likewise.
17856 (grub_macho32_load): Renamed from ...
17857 (grub_macho_load32): ... to this.
17858 (grub_macho32_filesize): Renamed from ...
17859 (grub_macho_filesize32): ... to this.
17860 (grub_macho32_readfile): Renamed from ...
17861 (grub_macho_readfile32): ... to this.
17862 (grub_macho_filesize64): New prototype.
17863 (grub_macho_readfile64): Likewise.
17864 (grub_macho_parse32): Likewise.
17865 (grub_macho_parse64): Likewise.
17866 * loader/macho.c: Split into ...
17867 * loader/machoXX.c: ... and this. Replace 32 with XX.
17868 * loader/macho32.c: New file.
17869 * loader/macho64.c: Likewise.
17870 * loader/xnu.c (grub_xnu_is_64bit): New variable.
17871 (grub_cmd_xnu_kernel): Make 32-bit only.
17872 (grub_cmd_xnu_kernel64): New function.
17873 (grub_xnu_load_driver): Support Mach-O 64.
17874 (grub_cmd_xnu_mkext): Likewise.
17875 * util/grub.d/30_os-prober.in (osx_entry): New function.
17876 Generate entries for 64-bit boot too.
17877
17878 Eliminate ad-hoc tree format in XNU and EfiEmu.
17879
17880 * efiemu/main.c (grub_efiemu_prepare): Update comment.
17881 * efiemu/pnvram.c: Rewritten to use environment variables.
17882 All users updated.
17883
17884 Inline utf16_to_utf8.
17885
17886 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
17887 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
17888 All users updated.
17889 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
17890
17891 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
17892 * commands/usbtest.c (grub_usb_get_string): ... move here.
17893 (usb_print_str): Fix error handling.
17894 * include/grub/usb.h (grub_usb_get_string): Remove.
17895
17896 UTF-8 to UTF-16 transformation.
17897
17898 * conf/common.rmk (pkglib_MODULES): Add charset.mod
17899 (charset_mod_SOURCES): New variable.
17900 (charset_mod_CFLAGS): Likewise.
17901 (charset_mod_LDFLAGS): Likewise.
17902 * include/grub/utf.h: New file.
17903 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
17904
17905 Support for device properties.
17906
17907 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
17908 (grub_xnu_devprop_device_header): Likewise.
17909 (grub_xnu_devprop_device_descriptor): Likewise.
17910 (grub_xnu_devprop_add_device): New prototype.
17911 (grub_xnu_devprop_remove_device): Likewise.
17912 (grub_xnu_devprop_remove_property): Likewise.
17913 (grub_xnu_devprop_add_property_utf8): Likewise.
17914 (grub_xnu_devprop_add_property_utf16): Likewise.
17915 (grub_cpu_xnu_init): Likewise.
17916 (grub_cpu_xnu_fini): Likewise.
17917 (grub_cpu_xnu_unload): Likewise.
17918 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
17919 (property_descriptor): Likewise.
17920 (devices): New variable.
17921 (grub_xnu_devprop_remove_property): New function.
17922 (grub_xnu_devprop_add_device): Likewise.
17923 (grub_xnu_devprop_remove_device): Likewise.
17924 (grub_xnu_devprop_add_property): Likewise.
17925 (grub_xnu_devprop_add_property_utf8): Likewise.
17926 (grub_xnu_devprop_add_property_utf16): Likewise.
17927 (hextoval): Likewise.
17928 (grub_cpu_xnu_fill_devprop): Likewise.
17929 (grub_cmd_devprop_load): Likewise.
17930 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
17931 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
17932 (cmd_devprop_load): New variable.
17933 (grub_cpu_xnu_init): New function.
17934 (grub_cpu_xnu_fini): Likewise.
17935 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
17936 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
17937 (grub_cmd_xnu_devtree): Likewise.
17938 (hextoval): New function.
17939 (unescape): Likewise.
17940 (grub_xnu_fill_devicetree): Likewise.
17941
17942 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
17943 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
17944
17945 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
17946
17947 Workaround for broken ATI VBE.
17948
17949 * video/i386/pc/vbe.c (last_set_mode): New variable.
17950 (grub_vbe_set_video_mode): Set 'last_set_mode'.
17951 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
17952 (grub_video_vbe_setup): Don't check for reserved flag.
17953
17954 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
17955
17956 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
17957 the `find' command.
17958
17959 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
17960
17961 UUID support for HFS.
17962
17963 * fs/hfs.c (grub_hfs_uuid): New function.
17964 (grub_hfs_fs): New value .uuid.
17965 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
17966
17967 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
17968
17969 Fix a segfault with parsing unknown long options.
17970
17971 * util/grub-mkrelpath.c (options): Zero terminate it.
17972
17973 2009-12-13 Carles Pina i Estany <carles@pina.cat>
17974
17975 * include/grub/misc.h (grub_puts): New declaration.
17976 (grub_puts_): Likewise.
17977 * kern/misc.c (grub_puts): New definition.
17978 (grub_puts_): Likewise.
17979
17980 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
17981
17982 * util/grub-probe.c (probe): Improve error message.
17983
17984 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
17985
17986 * loader/i386/multiboot_elfxx.c
17987 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
17988 initialization.
17989
17990 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
17991
17992 Relocator framework
17993
17994 * loader/i386/xnu_helper.S: Removed. All users updated.
17995 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
17996 (relocator_mod_SOURCES): New variable.
17997 (relocator_mod_CFLAGS): Likewise.
17998 (relocator_mod_LDFLAGS): Likewise.
17999 (relocator_mod_ASFLAGS): Likewise.
18000 * conf/x86_64.rmk: Likewise.
18001 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
18002 (grub_multiboot_payload_entry_offset): Likewise.
18003 (grub_multiboot_forward_relocator): Likewise.
18004 (grub_multiboot_forward_relocator_end): Likewise.
18005 (grub_multiboot_backward_relocator): Likewise.
18006 (grub_multiboot_backward_relocator_end): Likewise.
18007 (grub_multiboot_payload_eip): New variable.
18008 (grub_multiboot_payload_orig): Likewise.
18009 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
18010 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
18011 * include/grub/i386/memory.h
18012 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
18013 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
18014 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
18015 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
18016 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
18017 * include/grub/i386/relocator.h: New file.
18018 * include/grub/x86_64/relocator.h: Likewise.
18019 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
18020 (XNU_RELOCATOR): New macro.
18021 (grub_xnu_launcher_start): Remove.
18022 (grub_xnu_launcher_end): Likewise.
18023 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
18024 (grub_xnu_heap_real_start): Remove.
18025 (grub_xnu_heap_start): Change to void *. All users updated.
18026 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
18027 * lib/i386/relocator.c: New file.
18028 * lib/i386/relocator_asm.S: Likewise.
18029 * lib/i386/relocator_backward.S: Likewise.
18030 * lib/mips/relocator.c: Likewise.
18031 * lib/mips/relocator_asm.S: Likewise.
18032 * lib/relocator.c: Likewise.
18033 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
18034 (entry): Removed.
18035 (playground): Likewise.
18036 (grub_multiboot_payload_orig): New variable.
18037 (grub_multiboot_payload_dest): Likewise.
18038 (grub_multiboot_payload_size): Likewise.
18039 (grub_multiboot_payload_eip): Likewise.
18040 (grub_multiboot_payload_esp): Likewise.
18041 (grub_multiboot_boot): Use grub_relocator32_boot.
18042 (grub_multiboot_unload): Free relocators.
18043 (grub_multiboot): Setup stack. Use relocators.
18044 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
18045 (grub_multiboot_load_elfXX): Use relocators.
18046 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
18047 (grub_multiboot_payload_size): Likewise.
18048 (grub_multiboot_payload_dest): Likewise.
18049 (grub_multiboot_payload_entry_offset): Likewise.
18050 (grub_multiboot_forward_relocator): Likewise.
18051 (grub_multiboot_backward_relocator): Likewise.
18052 (grub_multiboot_real_boot): Likewise.
18053 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
18054 (grub_xnu_entry_point): Likewise.
18055 (grub_xnu_arg1): Likewise.
18056 (grub_xnu_stack): Likewise.
18057 (grub_xnu_launch): Removed.
18058 (grub_xnu_boot_resume): New function.
18059 (grub_xnu_boot): Use relocators.
18060 * loader/i386/xnu_helper.S: Removed.
18061 * loader/xnu.c (grub_xnu_heap_start): New variable.
18062 (grub_xnu_heap_size): Likewise.
18063 (grub_xnu_heap_malloc): Use relocators.
18064 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
18065
18066 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18067
18068 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
18069 anything.
18070
18071 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18072
18073 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
18074 GRUB_ERR_NONE before calling grub_env_set.
18075
18076 2009-12-12 Robert Millan <rmh@aybabtu.com>
18077
18078 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
18079 * genmk.rb (video): New variable.
18080 (CLEANFILES, VIDEOFILES): Add #{video}.
18081 (#{video}): New target rule.
18082 * genvideolist.sh: New file.
18083 * Makefile.in (pkglib_DATA): Add video.lst.
18084 (video.lst): New target rule.
18085 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
18086 `video.lst'.
18087 * util/grub.d/30_os-prober.in: Replace `vbe' with
18088 ${GRUB_VIDEO_BACKEND}.
18089
18090 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
18091
18092 * THANKS: Add David Miller.
18093
18094 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
18095
18096 libpciaccess support.
18097
18098 * Makefile.in (LIBPCIACCESS): New variable.
18099 (enable_grub_emu_pci): Likewise.
18100 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
18101 util/pci.c and commands/lspci.c.
18102 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
18103 * configure.ac (grub-emu-pci): New option.
18104 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
18105 (grub_pci_device_unmap_range): Likewise.
18106 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
18107 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
18108 (grub_pci_address_t) [!GRUB_UTIL]: New type.
18109 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
18110 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
18111 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
18112 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
18113 * include/grub/pciutils.h: New file.
18114 * util/pci.c: Likewise.
18115
18116 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
18117
18118 * util/misc.c: Don't include <errno.h> twice.
18119
18120 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
18121
18122 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
18123 name in an error message.
18124 (grub_biosdisk_rw): Likewise.
18125
18126 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18127
18128 Eliminate NTFS 4Gib barrier.
18129
18130 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
18131 (read_run_data): Likewise.
18132 (grub_ntfs_read_run_list): Likewise.
18133 (grub_ntfs_read_block): Likewise.
18134 (grub_ntfs_iterate_dir): Likewise.
18135 (read_mft): Likewise.
18136 (read_data): Likewise.
18137 Use COM_LOG_LEN.
18138 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
18139 to avoid 64-bit division
18140 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
18141 (grub_ntfs_rlst): Use grub_disk_addr_t.
18142
18143 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18144
18145 Eliminate grub-fstest 4Gib barrier.
18146
18147 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
18148 (read_file): Fix error reporting.
18149
18150 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18151
18152 Eliminate hexdump 4Gib barrier.
18153
18154 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
18155 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
18156
18157 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18158
18159 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
18160 Fixes amarsh bug.
18161
18162 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
18163
18164 Remove miscellaneous files in distclean target.
18165
18166 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
18167
18168 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
18169
18170 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
18171 if they're already set. This resolves the conflict between my
18172 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
18173 fixing the --grub-probe option again.
18174 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
18175 change on 2009-10-06, so that we now once again source
18176 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
18177
18178 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
18179
18180 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
18181 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
18182 `util/devicemap.c'.
18183
18184 2009-12-08 Carles Pina i Estany <carles@pina.cat>
18185
18186 * include/grub/misc.h (grub_printf_): New declaration.
18187 * kern/misc.c (grub_printf_): New definition.
18188 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
18189 instead of `grub_printf' and `_'.
18190 * normal/menu_entry.c (store_completion): Likewise.
18191 (run): Likewise.
18192 (grub_menu_entry_run): Likewise.
18193 * normal/menu_text.c (grub_wait_after_message): Likewise.
18194 (notify_booting): Likewise.
18195 (notify_fallback): Likewise.
18196 (notify_execution_failure): Likewise.
18197
18198 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
18199
18200 * configure.ac: Check for vasprintf.
18201 * util/misc.c (asprintf): Move allocation from here ...
18202 (vasprintf): ... to here. New function.
18203 (xasprintf): New function.
18204 * include/grub/util/misc.h (vasprintf, xasprintf): Add
18205 prototypes.
18206 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18207 * util/grub-mkfont.c (write_font): Likewise.
18208 * util/grub-probe.c (probe): Likewise.
18209 * util/hostdisk.c (make_device_name): Likewise.
18210
18211 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
18212
18213 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
18214 anything even prefixed with 'cdrom' as a cdrom.
18215
18216 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
18217
18218 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
18219 mount points.
18220
18221 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18222
18223 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
18224 grub_gettext_msg_list.
18225 (grub_gettext_gettranslation_from_position): Return const char *
18226 and not char *.
18227 (grub_gettext_translate): Add the translated strings into a list,
18228 returns from the list if existing there.
18229 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
18230 (grub_gettext_delete_list): Delete the list.
18231 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
18232 lang environment variable is changed.
18233 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
18234
18235 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
18236
18237 Rename kernel.mod to kernel.img.
18238
18239 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
18240 (kernel_mod_EXPORTS): Rename to ...
18241 (kernel_img_EXPORTS): ... this.
18242 (kernel_mod_SOURCES): Rename to ...
18243 (kernel_img_SOURCES): ... this.
18244 (kernel_mod_HEADERS): Rename to ...
18245 (kernel_img_HEADERS): ... this. All users updated.
18246 (kernel_mod_CFLAGS): Rename to ...
18247 (kernel_img_CFLAGS): ... this.
18248 (kernel_mod_ASFLAGS): Rename to ...
18249 (kernel_img_ASFLAGS): ... this.
18250 (kernel_mod_LDFLAGS): Rename to ...
18251 (kernel_img_LDFLAGS): ... this.
18252 * conf/x86_64-efi.rmk: Likewise.
18253 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
18254 (read_kernel_image): ... this. All users updated.
18255 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
18256
18257 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18258
18259 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
18260 (print_spaces): New function.
18261 (grub_print_ucs4): New function.
18262 (getstringwidth): New function.
18263 (print_message_indented): New function.
18264 (print_message): Gettexttize strings using print_message_indented.
18265 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
18266 width.
18267 (get_entry_number): Gettextize and uses dynamic terminal width.
18268 (notify_booting, notify_fallback, notify_execution_failure):
18269 Gettextize.
18270 * normal/menu_entry.c (store_completion): Cleanup the gettextized
18271 string.
18272 (run): Likewise.
18273 (grub_menu_entry_run): Likewise.
18274 * PO/POTFILES: Add normal/menu_entry.c.
18275
18276 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
18277
18278 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
18279
18280 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18281
18282 * util/grub-install.in: Install gettext .mo files.
18283 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
18284
18285 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18286
18287 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
18288 grub_dprintf.
18289
18290 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
18291
18292 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
18293 non-firmware-dependant one in realmode.S takes precedence.
18294
18295 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
18296
18297 * commands/halt.c: Replace misc arch-specific headers with
18298 `<grub/misc.h>'.
18299 * commands/reboot.c: Likewise.
18300 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
18301 `<grub/misc.h>'.
18302 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
18303 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
18304 (kernel_img_SOURCES): ... to here.
18305
18306 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
18307 * include/grub/i386/pc/init.h: Likewise.
18308 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
18309 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
18310
18311 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
18312
18313 * include/grub/i386/halt.h: Remove.
18314 * include/grub/i386/reboot.h: Likewise.
18315
18316 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
18317
18318 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
18319
18320 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
18321 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
18322 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
18323 "progname.h"
18324 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
18325 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18326 (usage): Add missing comma in printf.
18327
18328 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
18329
18330 Use the same reboot approach on i386 coreboot and qemu as we do on
18331 BIOS.
18332
18333 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
18334 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
18335 * kern/i386/reboot.c: Remove.
18336 * include/grub/i386/reboot.h (grub_reboot): Export function.
18337 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
18338 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
18339 0xf000:0xfff0 instead of 0xffff:0x0000.
18340 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
18341 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
18342
18343 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
18344
18345 Fix $srcdir != $objdir build.
18346
18347 * Makefile.in (po/%.po): Rewrite as ...
18348 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
18349
18350 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18351
18352 Fix GNU/Hurd grub-install crash.
18353 * util/grub-probe.c (probe): Try to access `path' only when it is not
18354 NULL.
18355
18356 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18357
18358 Correct module naming.
18359
18360 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
18361 (GRUB_MOD_INIT(efi_uga)): ... to this
18362 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
18363 (GRUB_MOD_FINI(efi_uga)): ... to this
18364 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
18365 (GRUB_MOD_INIT(efi_gop)): ... to this
18366 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
18367 (GRUB_MOD_FINI(efi_gop)): ... to this
18368
18369 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
18370
18371 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
18372 translatable.
18373 (usage): Translate `arg' strings using gettext().
18374 Thanks to Jordi Mallach for the suggestion.
18375
18376 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18377
18378 GOP support. Based on patch from Bean
18379 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
18380
18381 * video/efi_gop.c: New file.
18382 * include/grub/efi/graphics_output.h: Likewise.
18383 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
18384 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
18385 variables.
18386 * conf/x86_64-efi.rmk: Likewise.
18387
18388 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18389
18390 Rename efi_fb to efi_uga.
18391
18392 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
18393 'efi_uga.mod'.
18394 (efi_fb_mod_SOURCES): Rename this ...
18395 (efi_uga_mod_SOURCES): ... to this.
18396 (efi_fb_mod_CFLAGS): Rename this ...
18397 (efi_uga_mod_CFLAGS): ... to this.
18398 (efi_fb_mod_LDFLAGS): Rename this ...
18399 (efi_uga_mod_LDFLAGS): ... to this.
18400 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
18401 'efi_uga.mod'.
18402 (efi_fb_mod_SOURCES): Rename this ...
18403 (efi_uga_mod_SOURCES): ... to this.
18404 (efi_fb_mod_CFLAGS): Rename this ...
18405 (efi_uga_mod_CFLAGS): ... to this.
18406 (efi_fb_mod_LDFLAGS): Rename this ...
18407 (efi_uga_mod_LDFLAGS): ... to this.
18408 * video/efi_fb.c: Move this ...
18409 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
18410
18411 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
18412
18413 * po/README: New file. Explain our PO file workflow.
18414
18415 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
18416
18417 * po/ChangeLog: Remove. Move relevant entries back to ...
18418 * ChangeLog: ... here.
18419 * po/ca.po: Remove (now handled by TLP).
18420 * po/id.po: Likewise.
18421 * po/zh_CN.po: Likewise.
18422 * Makefile.in (LINGUAS): Initialize in a way that supports
18423 empty set.
18424
18425 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
18426
18427 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
18428 reliing on po/LINGUAS.
18429 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
18430 (po/%.po): ... this.
18431
18432 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18433
18434 * util/i386/efi/grub-mkimage.c: Include "progname.h".
18435 (main): Use `program_name' instead of nonexistent `progname'.
18436
18437 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18438
18439 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
18440 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
18441
18442 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
18443
18444 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
18445 commit.
18446 * conf/i386-efi.rmk: Likewise.
18447 * conf/i386-ieee1275.rmk: Likewise.
18448 * conf/powerpc-ieee1275.rmk: Likewise.
18449 * conf/sparc64-ieee1275.rmk: Likewise.
18450 * conf/x86_64-efi.rmk: Likewise.
18451
18452 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18453
18454 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
18455
18456 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18457
18458 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
18459
18460 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
18461
18462 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
18463 (grub_mkdevicemap_SOURCES): New variable.
18464 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
18465 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
18466 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
18467 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
18468 (grub_mkdevicemap_SOURCES): Remove.
18469 * conf/i386-efi.rmk: Likewise.
18470 * conf/i386-ieee1275.rmk: Likewise.
18471 * conf/i386-pc.rmk: Likewise.
18472 * conf/powerpc-ieee1275.rmk: Likewise.
18473 * conf/sparc64-ieee1275.rmk: Likewise.
18474 * conf/x86_64-efi.rmk: Likewise.
18475 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
18476 (usage): Fix strings to use `program_name'.
18477 (main): Initialize gettext.
18478 * util/grub-editenv.c: Likewise.
18479 * util/grub-emu.c: Likewise.
18480 * util/grub-fstest.c: Likewise.
18481 * util/grub-mkdevicemap.c: Likewise.
18482 * util/grub-mkfont.c: Likewise.
18483 * util/grub-mkrelpath.c: Likewise.
18484 * util/grub-pe2elf.c: Likewise.
18485 * util/grub-probe.c: Likewise.
18486 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
18487 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
18488 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18489
18490 * util/misc.c: Include `"progname.h"'.
18491 (progname): Remove variable.
18492 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
18493
18494 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
18495
18496 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
18497 printf and print a newline after the menuentry header line.
18498 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
18499
18500 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
18501
18502 autoconf >= 2.60 support $(localedir).
18503
18504 * INSTALL: Note that autoconf 2.60 is required.
18505 * configure.ac (AC_PREREQ): Bump to 2.60.
18506 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
18507 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
18508
18509 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
18510
18511 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
18512 aclocal is run.
18513
18514 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
18515
18516 * normal/main.c (grub_normal_read_line): Fix off-by-one
18517 buffer overflow.
18518
18519 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
18520
18521 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
18522 "parser.grub" in grub_command_execute() call.
18523
18524 2009-11-24 Carles Pina i Estany <carles@pina.cat>
18525
18526 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
18527 * conf/i386-efi.rmk: Likewise.
18528 * conf/i386-ieee1275.rmk: Likewise.
18529 * conf/i386-pc.rmk: Likewise.
18530 * conf/powerpc-ieee1275.rmk: Likewise.
18531 * conf/sparc64-ieee1275.rmk: Likewise.
18532 * conf/x86_64-efi.rmk: Likewise.
18533 * gettext/gettex.c: Include <grub/i18n.h>.
18534 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
18535 here ...
18536 * include/grub/i18n.h: ... to here
18537 * include/grub/i18n.h: ... to here.
18538 * kern/misc.c: Include <grub/i18n.h>
18539 (grub_gettext_dummy): Move above user.
18540
18541 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
18542
18543 * util/Makefile.in (install-local): Convert a `for' into a normal
18544 shell expansion.
18545
18546 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
18547
18548 * autogen.sh: Add automake call.
18549 * config.guess: Remove.
18550 * config.sub: Likewise.
18551 * install-sh: Likewise.
18552
18553 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
18554
18555 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
18556
18557 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
18558
18559 * util/Makefile.in (install-local): Convert a make `$(foreach)'
18560 function to a normal shell `for'.
18561
18562 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
18563
18564 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
18565
18566 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
18567
18568 * util/grub-mkrelpath.c: New file.
18569 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
18570 (grub_mkrelpath_SOURCES): New variable.
18571 * include/grub/util/misc.h: New function prototype.
18572 * util/misc.c (make_system_path_relative_to_its_root): New function.
18573
18574 * util/grub-mkconfig_lib.in (bindir): New variable.
18575 (grub_mkrelpath): Likewise.
18576 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
18577
18578 * util/probe.c (probe): Make the file path relative to its root.
18579 Change a info message to use the GRUB path. Enable again the
18580 check if we can read the file with GRUB facilities.
18581
18582 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
18583 to its root.
18584
18585 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
18586
18587 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
18588 platform.
18589
18590 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
18591
18592 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
18593 strncmp().
18594
18595 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
18596
18597 * util/getroot.c (grub_util_is_dmraid): New function.
18598 (grub_util_get_dev_abstraction): Treat dmraid and multipath
18599 devices as normal ones, not as LVM.
18600
18601 2009-11-23 Carles Pina i Estany <carles@pina.cat>
18602
18603 * conf/common.rmk: Add grub-gettext_lib target and updates
18604 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
18605 LDFLAGS.
18606 * gettext/gettext.c: New file. (Reads mo files).
18607 * include/grub/file.h (grub_file_pread): New prototype.
18608 * include/grub/i18n.h (_): New prototype.
18609 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
18610 prototypes.
18611 * kern/misc.c (grub_gettext_dummy): New function.
18612 * normal/menu_text.c: Include <grub/i18n.h>.
18613 * normal/menu_text.c (print_timeout): Gettexttize string.
18614 * normal/menu_text.c (print_message): Gettexttize string.
18615 * po/POTFILES: Add `normal/menu_text.c'.
18616 * po/ca.po: Add new translations.
18617 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
18618 gettext module and defines locale_dir and lang in grub.cfg.
18619 * NEWS: Add gettext support.
18620
18621 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
18622
18623 * util/hostdisk.c: Include `<grub/i18n.h>'.
18624 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
18625 (make_device_name): Rewrite using asprintf.
18626 (convert_system_partition_to_system_disk): Replace 0 with NULL.
18627 (find_system_device): If a device is not found, generate one just
18628 by reusing the OS path name.
18629 (read_device_map): Make it permissible for device.map not to exist.
18630
18631 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
18632
18633 * script/sh/execute.c: Move from here ...
18634 * script/execute.c: ... to here. Update all users.
18635 * script/sh/function.c: Move from here ...
18636 * script/function.c: ... to here. Update all users.
18637 * script/sh/lexer.c: Move from here ...
18638 * script/lexer.c: ... to here. Update all users.
18639 * script/sh/main.c: Move from here ...
18640 * script/main.c: ... to here. Update all users.
18641 * script/sh/parser.y: Move from here ...
18642 * script/parser.y: ... to here. Update all users.
18643 * script/sh/script.c: Move from here ...
18644 * script/script.c: ... to here. Update all users.
18645
18646 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
18647
18648 * configure.ac: Detect all `emu' platforms. Define
18649 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
18650 --enable-grub-emu logic. Disable include/grub/machine
18651 symlink on `emu' platforms.
18652
18653 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
18654 * gensymlist.sh.in: Likewise.
18655
18656 * include/grub/i386/coreboot/machine.h: Remove file.
18657 * include/grub/i386/efi/machine.h: Likewise.
18658 * include/grub/i386/ieee1275/machine.h: Likewise.
18659 * include/grub/i386/pc/machine.h: Likewise.
18660 * include/grub/i386/qemu/machine.h: Likewise.
18661 * include/grub/powerpc/ieee1275/machine.h: Likewise.
18662 * include/grub/sparc64/ieee1275/machine.h: Likewise.
18663 * include/grub/x86_64/efi/machine.h: Likewise.
18664
18665 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
18666 * commands/halt.c: Likewise.
18667 * commands/reboot.c: Likewise.
18668 * include/grub/autoefi.h: Likewise.
18669 * include/grub/i386/at_keyboard.h: Likewise.
18670 * include/grub/i386/kernel.h: Likewise.
18671 * include/grub/i386/loader.h: Likewise.
18672 * include/grub/i386/pc/memory.h: Likewise.
18673 * kern/dl.c: Likewise.
18674 * kern/i386/coreboot/init.c: Likewise.
18675 * loader/i386/bsd.c: Likewise.
18676 * loader/i386/linux.c: Likewise.
18677 * loader/multiboot_loader.c: Likewise.
18678 * term/i386/pc/serial.c: Likewise.
18679 * term/usb_keyboard.c: Likewise.
18680
18681 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
18682 `<grub/machine/machine.h>'
18683 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
18684 * util/misc.c: Remove `<grub/machine/machine.h>' and
18685 `<grub/machine/time.h>'.
18686
18687 * Makefile.in (enable_grub_emu): Remove variable.
18688 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
18689
18690 * conf/any-emu.rmk: New file.
18691 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
18692 (grub_emu_init.c): Move from here ...
18693 * conf/any-emu.rmk: ... to here.
18694
18695 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
18696 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
18697 * conf/any-emu.rmk: ... to here.
18698
18699 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
18700
18701 * include/grub/parser.h (grub_parser_register): Document need
18702 of `name' parameter.
18703 * normal/main.c (grub_normal_read_line): Simplify prompt string.
18704 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
18705 "sh" to "grub".
18706
18707 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
18708
18709 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
18710 `$(XGETTEXT)'.
18711 * include/grub/i18n.h (N_): New macro.
18712 * util/mkisofs/mkisofs.h: Likewise.
18713 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
18714 around N_().
18715 (usage): Use gettext() to translate help strings when printing them.
18716
18717 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
18718
18719 Based on patch from Bean
18720 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
18721
18722 * video/efi_fb.c: New file.
18723 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
18724 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
18725 variables.
18726 * conf/x86_64-efi.rmk: Likewise.
18727
18728 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
18729
18730 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
18731 * util/i386/pc/grub-setup.c: Likewise.
18732
18733 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18734
18735 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
18736 <hurd/fs.h>
18737 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
18738 file_get_storage_info to implement grub_guess_root_device.
18739
18740 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
18741
18742 * Makefile.in (target): Use make's builtin $(shell) function
18743 instead of calling directly $(SHELL) to create the locale directories,
18744 inside the $(foreach) function.
18745
18746 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
18747
18748 * util/grub-mkrescue.in: Print an error and usage if output option
18749 has not been given.
18750
18751 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
18752
18753 Patch from Loïc Minier <loic.minier@ubuntu.com>.
18754 * util/grub.d/30_os-prober.in: Cope with Linux entries where
18755 root and /boot are on different devices.
18756
18757 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
18758
18759 Fix build for srcdir != objdir.
18760
18761 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
18762 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
18763 $(srcdir).
18764 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
18765 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
18766 reference for input.
18767
18768 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
18769
18770 * util/grub-mkrescue.in: Use source directory direcly (without copiing
18771 or hardlinking it). Remove -J option, Joliet is not compatible with
18772 multiple source directories.
18773
18774 2009-11-21 Carles Pina i Estany <carles@pina.cat>
18775 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
18776
18777 * util/grub-mkrescue.in: Recognize `--override-directory' option.
18778 (process_input_dir): New function. Process an arbitrary input
18779 directory.
18780 Misc adjustments to support both "override mode" and system-wide mode.
18781
18782 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
18783
18784 * configure.ac (UNIFONT_BDF): Rename to ...
18785 (FONT_SOURCE): ... this. Update all users.
18786
18787 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
18788
18789 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
18790 to the list of unifont files to look for.
18791
18792 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
18793
18794 Patch from Joe Auricchio <jauricchio@gmail.com>
18795 * commands/minicmd.c (grub_mini_cmd_clear): New function.
18796 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
18797 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
18798
18799 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
18800
18801 * Makefile.in (install-local): Add a missing backslash.
18802
18803 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
18804
18805 * include/grub/x86_64/io.h: New file.
18806
18807 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
18808
18809 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
18810 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
18811 Include `"progname.h"'.
18812 (main): Initialize gettext.
18813 * util/i386/pc/grub-setup.c: Gettexttize.
18814 * util/i386/pc/grub-mkimage.c: Likewise.
18815
18816 * Makefile.in (po/*.po): Redefine as ...
18817 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
18818
18819 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
18820
18821 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
18822
18823 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
18824 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
18825 (program_name): Remove.
18826 (main): Initialize gettext support.
18827 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
18828 Include `<libintl.h>'.
18829 (_): New macro.
18830
18831 * util/mkisofs/eltorito.c: Gettexttize.
18832 * util/mkisofs/joliet.c: Likewise.
18833 * util/mkisofs/mkisofs.c: Likewise.
18834 * util/mkisofs/multi.c: Likewise.
18835 * util/mkisofs/rock.c: Likewise.
18836 * util/mkisofs/tree.c: Likewise.
18837 * util/mkisofs/write.c: Likewise.
18838
18839 * po/POTFILES: Update with new files.
18840
18841 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
18842
18843 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
18844 * util/mkisofs/iso9660.h: Likewise.
18845 * util/mkisofs/joliet.c: Likewise.
18846 * util/mkisofs/mkisofs.c: Likewise.
18847 * util/mkisofs/mkisofs.h: Likewise.
18848 * util/mkisofs/rock.c: Likewise.
18849 * util/mkisofs/tree.c: Likewise.
18850 * util/mkisofs/write.c: Likewise.
18851
18852 * util/mkisofs/eltorito.c (rcsid): Remove.
18853 * util/mkisofs/hash.c: Likewise.
18854 * util/mkisofs/joliet.c: Likewise.
18855 * util/mkisofs/name.c: Likewise.
18856 * util/mkisofs/rock.c: Likewise.
18857 * util/mkisofs/tree.c: Likewise.
18858 * util/mkisofs/write.c: Likewise.
18859
18860 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
18861
18862 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
18863 instead of static allocation.
18864 * util/mkisofs/match.h: Likewise.
18865
18866 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
18867
18868 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
18869 and `util/grub.d/10_linux.in'.
18870 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
18871 translatable Shell files.
18872
18873 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
18874
18875 * Makefile.in ($(srcdir)/aclocal.m4): New target.
18876
18877 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
18878
18879 * INSTALL: Document Automake is needed for bootstrap.
18880 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
18881 * util/grub.d/10_kfreebsd.in (bindir): New variable.
18882 Add gettext initialization.
18883 (kfreebsd_entry): Make menuentry output translatable.
18884
18885 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
18886
18887 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
18888 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
18889 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
18890 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
18891 (LINGUAS): Auto-generate using `po/LINGUAS'.
18892 * po/LINGUAS: New file.
18893
18894 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
18895
18896 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
18897 other things).
18898 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
18899 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
18900 bindtextdomain() calls for gettext initialization.
18901
18902 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
18903
18904 * gnulib/progname.c: New file (imported from Gnulib).
18905 * gnulib/progname.h: Likewise.
18906 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
18907 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
18908 (usage): Replace `progname' with `program_name'.
18909 (main): Use set_program_name() for program name initialization.
18910
18911 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
18912
18913 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
18914 from here ...
18915 * Makefile.in (CPPFLAGS): ... to here.
18916
18917 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
18918
18919 * aclocal.m4: Move from here ...
18920 * acinclude.m4: ... to here.
18921 * autogen.sh: Add call to `aclocal'.
18922 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
18923
18924 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
18925
18926 * Makefile.in (CLEANFILES): Add `po/*.mo'.
18927 (LINGUAS): New variable.
18928 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
18929 (install-local): Install MO files.
18930 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
18931 * include/grub/i18n.h: New file.
18932 * po/POTFILES: New file.
18933 * po/ca.po: New file.
18934 * util/grub.d/10_linux.in (bindir): New variable.
18935 Add gettext initialization.
18936 (linux_entry): Make menuentry output translatable.
18937 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
18938 (usage): Make --help output translatable.
18939 (main): Initialize gettext.
18940
18941 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
18942
18943 * import_gcry.py: New file (written by Vladimir with minor
18944 adjustments).
18945 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
18946 ciphers.
18947 * INSTALL: Document that Python is required for bootstrap.
18948
18949 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
18950
18951 Import ciphers from libgcrypt 1.4.4.
18952
18953 * lib/libgcrypt/cipher/ChangeLog
18954 * lib/libgcrypt/cipher/ac.c
18955 * lib/libgcrypt/cipher/arcfour.c
18956 * lib/libgcrypt/cipher/bithelp.h
18957 * lib/libgcrypt/cipher/blowfish.c
18958 * lib/libgcrypt/cipher/camellia-glue.c
18959 * lib/libgcrypt/cipher/camellia.c
18960 * lib/libgcrypt/cipher/camellia.h
18961 * lib/libgcrypt/cipher/cast5.c
18962 * lib/libgcrypt/cipher/cipher.c
18963 * lib/libgcrypt/cipher/crc.c
18964 * lib/libgcrypt/cipher/des.c
18965 * lib/libgcrypt/cipher/dsa.c
18966 * lib/libgcrypt/cipher/ecc.c
18967 * lib/libgcrypt/cipher/elgamal.c
18968 * lib/libgcrypt/cipher/hash-common.c
18969 * lib/libgcrypt/cipher/hash-common.h
18970 * lib/libgcrypt/cipher/hmac-tests.c
18971 * lib/libgcrypt/cipher/md.c
18972 * lib/libgcrypt/cipher/md4.c
18973 * lib/libgcrypt/cipher/md5.c
18974 * lib/libgcrypt/cipher/primegen.c
18975 * lib/libgcrypt/cipher/pubkey.c
18976 * lib/libgcrypt/cipher/rfc2268.c
18977 * lib/libgcrypt/cipher/rijndael-tables.h
18978 * lib/libgcrypt/cipher/rijndael.c
18979 * lib/libgcrypt/cipher/rmd.h
18980 * lib/libgcrypt/cipher/rmd160.c
18981 * lib/libgcrypt/cipher/rsa.c
18982 * lib/libgcrypt/cipher/seed.c
18983 * lib/libgcrypt/cipher/serpent.c
18984 * lib/libgcrypt/cipher/sha1.c
18985 * lib/libgcrypt/cipher/sha256.c
18986 * lib/libgcrypt/cipher/sha512.c
18987 * lib/libgcrypt/cipher/tiger.c
18988 * lib/libgcrypt/cipher/twofish.c
18989 * lib/libgcrypt/cipher/whirlpool.c
18990
18991 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
18992
18993 Fix build for systems without error().
18994
18995 * gnulib/error.c: New file (imported from Gnulib).
18996 * gnulib/error.h: Likewise.
18997 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
18998 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
18999 (this variable is now used by error()).
19000
19001 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19002
19003 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
19004 instead of relying that char is signed.
19005
19006 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19007
19008 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
19009 blocksize different from specified.
19010 (grub_pxefs_read): Likewise.
19011
19012 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19013
19014 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
19015
19016 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
19017 (grub_ata_readwrite): Likewise. Update 2 format strings.
19018 (grub_atapi_read): Likewise.
19019
19020 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
19021 * conf/i386.rmk (pkglib_MODULES): ... to here ...
19022 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
19023 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
19024 (ata_mod_LDFLAGS): Move from here ...
19025 * conf/i386.rmk: ... to here ...
19026 * conf/x86_64-efi.rmk: ... and here.
19027 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
19028 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
19029
19030 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19031
19032 Relicense multiboot.h, with RMS' blessing.
19033
19034 * include/multiboot.h: Change to X11 license.
19035
19036 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
19037
19038 Support --version in grub-mkisofs.
19039
19040 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
19041 (OPTION_VERSION): New macro.
19042 (ld_options): Recognize --version.
19043 (usage): Move `program_name' from here ...
19044 (program_name): ... to here. Add `static' qualifier.
19045 (main): Recognize `OPTION_VERSION'.
19046
19047 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
19048
19049 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
19050 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
19051
19052 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19053
19054 Fix help2man generation for mkisofs.
19055
19056 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
19057 (usage): Send output to stdout (rather than stderr).
19058
19059 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19060
19061 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
19062 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
19063 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
19064 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
19065 (bin_SCRIPTS): Add `grub-mkfloppy'.
19066 (grub_mkfloppy_SOURCES): New variable.
19067
19068 * util/grub-mkrescue.in: New file.
19069 * util/i386/pc/grub-mkfloppy.in: New file.
19070
19071 * util/i386/coreboot/grub-mkrescue.in: Remove.
19072 * util/i386/pc/grub-mkrescue.in: Remove.
19073
19074 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19075
19076 * include/grub/multiboot.h (struct grub_multiboot_header): Move
19077 from here ...
19078 * include/multiboot.h (struct multiboot_header): ... to here. Update
19079 all users.
19080 * include/grub/multiboot.h (struct grub_multiboot_info): Move
19081 from here ...
19082 * include/multiboot.h (struct multiboot_info): ... to here. Update
19083 all users.
19084 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
19085 from here ...
19086 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
19087 Update all users.
19088 * include/grub/multiboot.h (struct grub_mod_list): Move
19089 from here ...
19090 * include/multiboot.h (struct multiboot_mod_list): ... to here.
19091 Update all users.
19092
19093 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19094
19095 * include/multiboot2.h (multiboot_word): Rename from this ...
19096 (multiboot2_word): ... to this. Update all users.
19097 (multiboot_header): Rename from this ...
19098 (multiboot2_header): ... to this. Update all users.
19099 (multiboot_tag_header): Rename from this ...
19100 (multiboot2_tag_header): ... to this. Update all users.
19101 (multiboot_tag_start): Rename from this ...
19102 (multiboot2_tag_start): ... to this. Update all users.
19103 (multiboot_tag_name): Rename from this ...
19104 (multiboot2_tag_name): ... to this. Update all users.
19105 (multiboot_tag_module): Rename from this ...
19106 (multiboot2_tag_module): ... to this. Update all users.
19107 (multiboot_tag_memory): Rename from this ...
19108 (multiboot2_tag_memory): ... to this. Update all users.
19109 (multiboot_tag_unused): Rename from this ...
19110 (multiboot2_tag_unused): ... to this. Update all users.
19111 (multiboot_tag_end): Rename from this ...
19112 (multiboot2_tag_end): ... to this. Update all users.
19113
19114 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19115
19116 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
19117 this platform we should support Multiboot1 first.
19118
19119 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
19120 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
19121 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
19122
19123 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
19124
19125 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
19126 of write calls (converting them to fwrite() if they aren't already).
19127 (get_torito_desc): Likewise.
19128 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
19129
19130 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
19131
19132 * util/i386/pc/grub-install.in: Move from here ...
19133 * util/grub-install.in: ... to here. Update all users.
19134
19135 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
19136
19137 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
19138
19139 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
19140
19141 Support for El Torito without floppy emulation.
19142
19143 * util/mkisofs/eltorito.c: Include `<errno.h>'.
19144 (init_boot_catalog): Improve error handling.
19145 (get_torito_desc): Don't use floppy emulation unless requested by
19146 user. Patch boot information table when requested via
19147 `-boot-info-table'.
19148 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
19149 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
19150 (use_boot_info_table): New variables.
19151 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
19152 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
19153 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
19154 `--eltorito-emul-floppy'.
19155 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
19156 and `OPTION_ELTORITO_EMUL_FLOPPY'.
19157 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
19158 (use_boot_info_table, get_731): New prototypes.
19159 * util/mkisofs/write.c (get_731): New function.
19160
19161 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
19162
19163 Fix the generation of the man page.
19164
19165 * util/pc/i386/grub-install.in: Source
19166 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
19167
19168 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
19169
19170 Large file support for grub-mkisofs.
19171
19172 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
19173 * util/mkisofs/mkisofs.c (next_extent, last_extent)
19174 (session_start): Upgrade type to `uint64_t'. Update all users.
19175 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
19176 (struct directory_entry): Upgrade type of `starting_block' and
19177 `size' to `uint64_t'. Update all users.
19178 (struct deferred): Remove unused structure.
19179 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
19180 Update all users.
19181 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
19182 file is larger than `UINT32_MAX'.
19183 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
19184 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
19185 return value.
19186 (struct deferred_write): Upgrade type of `extent' and `size' to
19187 `uint64_t'. Update all users.
19188 (last_extent_written): Upgrade type to `uint64_t'. Update all
19189 users.
19190 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
19191 Update all users. Upgrade type of `remain' to `int64_t' and
19192 `use' to `size_t'. Use error() to handle fread() errors.
19193 (write_files): Rely on write_one_file() rather than calling
19194 xfwrite() directly.
19195
19196 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
19197
19198 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
19199
19200 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19201
19202 * util/mkisofs/fnmatch.c: Remove.
19203 * util/mkisofs/getopt1.c: Likewise.
19204 * util/mkisofs/getopt.c: Likewise.
19205 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
19206 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
19207 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
19208 `gnulib/getopt1.c' and `gnulib/getopt.c'.
19209 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
19210
19211 * configure.ac: Detect `mingw32msvc' host_os.
19212 Check for lstat(), getuid() and getgid().
19213
19214 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
19215 instances of `u_char' with `uint8_t'.
19216
19217 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
19218 [!HAVE_GETUID] (getuid): New function (stub).
19219 [!HAVE_GETGID] (getgid): Likewise.
19220 [!HAVE_LSTAT] (lstat): Likewise.
19221 [!S_IROTH] (S_IROTH): New macro (dummy).
19222 [!S_IRGRP] (S_IRGRP): Likewise.
19223
19224 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19225
19226 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
19227 conditional expression).
19228
19229 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19230
19231 Import from Gnulib.
19232
19233 * gnulib/fnmatch.c: New file.
19234 * gnulib/fnmatch.h: Likewise.
19235 * gnulib/fnmatch_loop.c: Likewise.
19236 * gnulib/getopt.c: Likewise.
19237 * gnulib/getopt.h: Likewise.
19238 * gnulib/getopt1.c: Likewise.
19239 * gnulib/getopt_int.h: Likewise.
19240 * gnulib/gettext.h: Likewise.
19241
19242 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19243
19244 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
19245 * normal/handler.c (read_handler_list): Likewise.
19246
19247 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19248
19249 Misc cleanup.
19250
19251 * kern/command.c (grub_register_command_prio): Use
19252 grub_zalloc() instead of explicitly zeroing data.
19253 * kern/list.c: Include `<grub/mm.h>'.
19254 (grub_named_list_find): Replace `0' with `NULL'.
19255 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
19256 (fs_module_list): Change type to `grub_named_list_t'. Update all
19257 users.
19258 * normal/dyncmd.c (read_command_list): Add space between function
19259 call and parenthesis.
19260 * normal/handler.c (read_handler_list): Likewise.
19261
19262 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19263
19264 * normal/auth.c (punishment_delay): Moved from here ...
19265 (grub_auth_strcmp): ... to here (inside function).
19266
19267 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19268
19269 * include/grub/list.h (struct grub_named_list): Remove `const'
19270 qualifier from `name'.
19271 (struct grub_prio_list): Likewise.
19272
19273 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19274
19275 * normal/auth.c: Include `<grub/time.h>'.
19276 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
19277
19278 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19279
19280 * normal/auth.c (punishment_delay): New variable.
19281 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
19282 (grub_auth_check_authentication): Punish failed login attempts with
19283 an incremental (2^N) delay.
19284
19285 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19286
19287 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
19288 path with $(srcdir).
19289
19290 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
19291
19292 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
19293
19294 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19295
19296 * util/i386/coreboot/grub-mkrescue.in: New file.
19297 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
19298 variables.
19299
19300 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
19301 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
19302 * configure.ac: Add header and function checks to satisfy grub-mkisofs
19303 requirements.
19304 * util/mkisofs/defaults.h: New file.
19305 * util/mkisofs/eltorito.c: Likewise.
19306 * util/mkisofs/exclude.h: Likewise.
19307 * util/mkisofs/fnmatch.c: Likewise.
19308 * util/mkisofs/getopt.c: Likewise.
19309 * util/mkisofs/getopt1.c: Likewise.
19310 * util/mkisofs/hash.c: Likewise.
19311 * util/mkisofs/include/fctldefs.h: Likewise.
19312 * util/mkisofs/include/mconfig.h: Likewise.
19313 * util/mkisofs/include/prototyp.h: Likewise.
19314 * util/mkisofs/include/statdefs.h: Likewise.
19315 * util/mkisofs/iso9660.h: Likewise.
19316 * util/mkisofs/joliet.c: Likewise.
19317 * util/mkisofs/match.c: Likewise.
19318 * util/mkisofs/match.h: Likewise.
19319 * util/mkisofs/mkisofs.c: Likewise.
19320 * util/mkisofs/mkisofs.h: Likewise.
19321 * util/mkisofs/multi.c: Likewise.
19322 * util/mkisofs/name.c: Likewise.
19323 * util/mkisofs/rock.c: Likewise.
19324 * util/mkisofs/tree.c: Likewise.
19325 * util/mkisofs/write.c: Likewise.
19326
19327 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
19328
19329 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
19330 being insecure.
19331
19332 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19333
19334 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
19335 `grub-mkimage' (and use $0 when possible).
19336
19337 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19338
19339 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
19340 error message for excessively large memory map.
19341
19342 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19343
19344 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
19345 executable bit.
19346
19347 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19348
19349 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
19350 message for coreboot users.
19351
19352 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
19353
19354 Fix build with GNU gold.
19355
19356 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
19357 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
19358 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
19359 link addresses.
19360 * aclocal.m4: Likewise.
19361
19362 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
19363
19364 * configure.ac (AC_PREREQ): Bump to 2.59d.
19365 * INSTALL: Make it more clear when Autoconf and Ruby are
19366 needed and when to run `./autogen.sh'.
19367
19368 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19369
19370 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
19371 OSes.
19372
19373 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19374
19375 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
19376
19377 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19378
19379 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
19380 giving it to GNU Mach.
19381
19382 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19383
19384 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
19385 GNU partition number to get internal GRUB partition number.
19386
19387 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19388
19389 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
19390 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
19391
19392 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
19393
19394 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
19395 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
19396 case.
19397
19398 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
19399
19400 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
19401
19402 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
19403
19404 Fix build problem.
19405
19406 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
19407 `-isystem=$(srcdir)/include'.
19408
19409 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
19410
19411 * util/i386/pc/grub-install.in: Remove hint that device.map should be
19412 checked (grub-install doesn't currently rely on it).
19413
19414 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
19415
19416 Revert SVN r2660.
19417
19418 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
19419 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
19420 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
19421 * conf/i386-ieee1275.rmk: Likewise.
19422 * conf/i386-pc.rmk: Likewise.
19423 * conf/powerpc-ieee1275.rmk: Likewise.
19424 * conf/sparc64-ieee1275.rmk: Likewise.
19425 * conf/x86_64-efi.rmk: Likewise.
19426
19427 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
19428
19429 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
19430
19431 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
19432
19433 * include/grub/misc.h: Stop checking for APPLE_CC.
19434
19435 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
19436
19437 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
19438 doesn't cause an infinite call loop.
19439
19440 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
19441
19442 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
19443 strings.
19444
19445 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19446
19447 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
19448 variable.
19449 * Makefile.in: Likewise.
19450
19451 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19452
19453 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
19454
19455 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19456
19457 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
19458
19459 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19460
19461 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
19462
19463 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19464
19465 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
19466 from here ...
19467 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
19468
19469 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19470
19471 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
19472 in $(MAKEINFO) invocation. This makes it clear in output that
19473 errors are being ignored.
19474
19475 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19476
19477 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
19478 from here ...
19479 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
19480 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
19481 * conf/i386-ieee1275.rmk: Likewise.
19482 * conf/i386-pc.rmk: Likewise.
19483 * conf/powerpc-ieee1275.rmk: Likewise.
19484 * conf/sparc64-ieee1275.rmk: Likewise.
19485 * conf/x86_64-efi.rmk: Likewise.
19486
19487 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
19488
19489 * util/grub-editenv.c (main): If only a command is given, use
19490 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
19491 (usage): FILENAME is now optional and has a default.
19492
19493 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
19494
19495 Improve grub-mkconfig performance when there are several menu
19496 entries on a single filesystem.
19497
19498 * util/grub.d/10_linux.in (linux_entry): Cache the output of
19499 prepare_grub_to_access_device.
19500 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
19501 * util/grub.d/30_os-prober.in: Likewise.
19502
19503 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19504
19505 * util/grub.d/10_freebsd.in: Remove.
19506 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
19507 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
19508
19509 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19510
19511 * docs/grub.cfg: Fix example usage of *BSD loaders.
19512
19513 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
19514
19515 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
19516 grub_util_error() call.
19517
19518 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
19519
19520 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
19521 `reserved_first_sector' member.
19522 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
19523 `reserved_first_sector' to 1.
19524 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
19525 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
19526 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
19527 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
19528 filesystems which begin at first sector.
19529 (options): New option --skip-fs-probe.
19530 (main): Handle --skip-fs-probe and pass it to setup().
19531
19532 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
19533
19534 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
19535 (memset): Fix function prototype.
19536
19537 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
19538 2009-10-25 Vasily Averin <vvs@parallels.com>
19539
19540 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
19541 `dirent.direntlen == 0'.
19542
19543 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
19544
19545 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
19546 `cpio'.
19547 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
19548
19549 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
19550
19551 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
19552 `__trampoline_setup' and `__ucmpdi2'.
19553 * include/grub/powerpc/libgcc.h: Only export symbols for functions
19554 that libgcc provides.
19555
19556 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
19557
19558 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
19559 * include/grub/sparc64/libgcc.h (memset): Likewise.
19560 * include/grub/misc.h (memset, memcmp): New function prototypes.
19561
19562 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
19563
19564 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
19565 `cpio'.
19566 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
19567
19568 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
19569
19570 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
19571 * docs/grub.cfg: Compensate for recent change in multiboot
19572 loader (since 2009-08-14 it won't pass filename to payload).
19573 * util/grub.d/10_hurd.in: Likewise.
19574
19575 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
19576
19577 * config.guess: Update to latest version from config git
19578 repository.
19579 * config.sub: Likewise.
19580
19581 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
19582
19583 Fix build on sparc64.
19584
19585 * configure.ac: Perform checks for libgcc symbols before
19586 adding `-nostdlib' to LDFLAGS.
19587
19588 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19589
19590 Let user specify OpenBSD root device.
19591
19592 * loader/i386/bsd.c (openbsd_root): New variable.
19593 (openbsd_opts): New option 'root'.
19594 (OPENBSD_ROOT_ARG): New macro.
19595 (grub_openbsd_boot): Use 'openbsd_root'.
19596 (grub_cmd_openbsd): Fill 'openbsd_root'.
19597
19598 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
19599
19600 * NEWS: Misc adjustments.
19601
19602 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19603
19604 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
19605
19606 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
19607
19608 * configure.ac: Bump version to 1.97.
19609
19610 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
19611
19612 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
19613 -mno-3dnow on x86 architectures. Some toolchains enable these
19614 features by default, but they rely on registers that aren't enabled
19615 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
19616
19617 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
19618
19619 Make entry text a bit more readable.
19620
19621 * util/grub.d/10_linux.in: Add `with' before `Linux'.
19622
19623 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
19624
19625 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
19626
19627 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
19628
19629 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
19630 operations.
19631
19632 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
19633
19634 * configure.ac: Add missing dollar.
19635
19636 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
19637
19638 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
19639
19640 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
19641 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
19642 exports.
19643 * include/grub/sparc64/libgcc.h: Likewise. Use
19644 preprocessor conditionals.
19645
19646 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
19647
19648 * conf/common.rmk (grub-dumpbios): Remove rule.
19649 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
19650 * util/grub-dumpbios.in: Remove file.
19651
19652 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
19653
19654 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
19655 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
19656
19657 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
19658 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
19659 users.
19660
19661 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
19662 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
19663 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
19664 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
19665 users.
19666
19667 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
19668
19669 * term/tparm.c: Switch to GPLv3.
19670
19671 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
19672
19673 * include/grub/i386/cpuid.h: Add header protection.
19674
19675 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
19676
19677 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
19678
19679 * include/grub/i386/cpuid.h: New file.
19680 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
19681 (has_longmode): Rename to ...
19682 (grub_cpuid_has_longmode): ... this. Update all users. Remove
19683 `static' attribute.
19684 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
19685 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
19686 on a CPU that doesn't implement AMD64 instruction set.
19687
19688 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
19689
19690 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
19691 that version.texi is rebuilt on version number changes.
19692
19693 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
19694
19695 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
19696 Fixes bug #27602.
19697
19698 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
19699
19700 * util/i386/pc/grub-install.in: Source
19701 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
19702 that the --grub-probe option will work.
19703 * util/sparc64/ieee1275/grub-install.in: Likewise.
19704
19705 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
19706
19707 * configure.ac: Bump version to 1.97~beta4.
19708
19709 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
19710
19711 Resync grub-mkdevicemap in x86_64-efi.
19712
19713 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
19714 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
19715 `util/devicemap.c'.
19716
19717 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
19718
19719 * util/grub-editenv.c (create_envblk_file): Write new block with a
19720 .new suffix and then rename it into place, to ensure atomic
19721 creation.
19722
19723 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
19724
19725 Do not automatically install headers.
19726
19727 * Makefile.in (include_DATA): Remove. Update all users.
19728
19729 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
19730
19731 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
19732 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
19733
19734 * util/osdetect.lua: Remove.
19735 * script/lua/lauxlib.c: Likewise.
19736 * script/lua/ldebug.c: Likewise.
19737 * script/lua/grub_main.c: Likewise.
19738 * script/lua/lauxlib.h: Likewise.
19739 * script/lua/ldebug.h: Likewise.
19740 * script/lua/ltablib.c: Likewise.
19741 * script/lua/liolib.c: Likewise.
19742 * script/lua/lstrlib.c: Likewise.
19743 * script/lua/lualib.h: Likewise.
19744 * script/lua/ldo.c: Likewise.
19745 * script/lua/ldump.c: Likewise.
19746 * script/lua/ldo.h: Likewise.
19747 * script/lua/loslib.c: Likewise.
19748 * script/lua/lundump.c: Likewise.
19749 * script/lua/grub_lib.c: Likewise.
19750 * script/lua/ldblib.c: Likewise.
19751 * script/lua/lundump.h: Likewise.
19752 * script/lua/lmem.c: Likewise.
19753 * script/lua/grub_lib.h: Likewise.
19754 * script/lua/lmathlib.c: Likewise.
19755 * script/lua/lstate.c: Likewise.
19756 * script/lua/ltm.c: Likewise.
19757 * script/lua/lvm.c: Likewise.
19758 * script/lua/lmem.h: Likewise.
19759 * script/lua/lstate.h: Likewise.
19760 * script/lua/ltm.h: Likewise.
19761 * script/lua/ltable.c: Likewise.
19762 * script/lua/lvm.h: Likewise.
19763 * script/lua/llex.c: Likewise.
19764 * script/lua/lgc.c: Likewise.
19765 * script/lua/grub_lua.h: Likewise.
19766 * script/lua/loadlib.c: Likewise.
19767 * script/lua/lfunc.c: Likewise.
19768 * script/lua/lopcodes.c: Likewise.
19769 * script/lua/lparser.c: Likewise.
19770 * script/lua/ltable.h: Likewise.
19771 * script/lua/llex.h: Likewise.
19772 * script/lua/lgc.h: Likewise.
19773 * script/lua/lfunc.h: Likewise.
19774 * script/lua/lbaselib.c: Likewise.
19775 * script/lua/lopcodes.h: Likewise.
19776 * script/lua/lparser.h: Likewise.
19777 * script/lua/lzio.c: Likewise.
19778 * script/lua/linit.c: Likewise.
19779 * script/lua/lobject.c: Likewise.
19780 * script/lua/llimits.h: Likewise.
19781 * script/lua/lstring.c: Likewise.
19782 * script/lua/lzio.h: Likewise.
19783 * script/lua/lapi.c: Likewise.
19784 * script/lua/lcode.c: Likewise.
19785 * script/lua/lua.h: Likewise.
19786 * script/lua/lobject.h: Likewise.
19787 * script/lua/lstring.h: Likewise.
19788 * script/lua/lapi.h: Likewise.
19789 * script/lua/lcode.h: Likewise.
19790 * script/lua/luaconf.h: Likewise.
19791
19792 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
19793
19794 * docs/grub.texi (Command-line and menu entry commands): Document
19795 date and echo commands.
19796
19797 2009-09-24 Pavel Roskin <proski@gnu.org>
19798
19799 * include/grub/kernel.h (struct grub_module_header): Remove
19800 `grub_module_header_types'. Make `type' unsigned. Make `size'
19801 32-bit on all platforms.
19802 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
19803 8-bit field. Use grub_host_to_target32() for `size'.
19804 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
19805 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
19806 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
19807
19808 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
19809
19810 Fix "lost keypress" bug in at_keyboard.
19811
19812 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
19813 Checks for readyness of input buffer (without flushing it).
19814 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
19815 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
19816
19817 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
19818
19819 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
19820 size check within GRUB_MACHINE_PCBIOS section.
19821
19822 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
19823
19824 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
19825 return value.
19826 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
19827 KEYBOARD_ISREADY check.
19828 (grub_at_keyboard_checkkey): Rename to ...
19829 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
19830 Remove gratuitous cast.
19831
19832 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
19833
19834 * configure.ac: Call AC_PROG_MKDIR_P.
19835 * Makefile.in (docs/stamp-vti): Create docs directory. Create
19836 version.texi in $(builddir) rather than $(srcdir).
19837 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
19838 to makeinfo's @include search path.
19839
19840 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
19841
19842 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
19843
19844 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
19845
19846 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
19847 for `*.dpkg-new'.
19848
19849 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
19850
19851 Build info documentation. Some code borrowed from Automake.
19852
19853 * configure.ac: Check for makeinfo.
19854 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
19855 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
19856 docs/version.texi.
19857 (MOSTLYCLEANFILES): Add vti.tmp.
19858 (docs/version.texi, docs/stamp-vti): Update automatically.
19859 (docs/grub.info): Build info documentation. Use --force and ignore
19860 errors for now.
19861 (all-local): Add $(INFOS).
19862 (install-local): Install info files.
19863 (uninstall): Uninstall info files.
19864 * docs/version.texi: Remove from revision control. This file is
19865 automatically generated on build now.
19866 * gendistlist.sh: Add `*.info'.
19867
19868 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
19869
19870 * kern/term.c: Fix indentation.
19871
19872 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
19873
19874 * util/hostdisk.c: Fix a comment.
19875
19876 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
19877
19878 Fix regression introduced in r2539.
19879
19880 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
19881 to 0xA1.
19882
19883 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
19884
19885 * util/grub.d/30_os-prober.in: Don't throw away stderr from
19886 os-prober. Under normal operation, it does not print anything to
19887 stderr; if it does, we need to debug it, and throwing away stderr
19888 makes that excessively difficult.
19889
19890 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
19891
19892 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
19893
19894 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
19895
19896 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
19897 AC_LANG_PROGRAM from autoconf.
19898 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
19899 prototypes (fixes warning).
19900
19901 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
19902 `--disable-werror' was used.
19903
19904 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
19905
19906 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
19907 uninitialized `lastaddr'.
19908
19909 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19910
19911 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
19912
19913 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
19914
19915 * commands/test.c (get_fileinfo): Return immediately if
19916 grub_fs_probe fails.
19917
19918 2009-09-14 José Martínez <xosemp@gmail.com>
19919
19920 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
19921
19922 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
19923
19924 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
19925 output.
19926
19927 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
19928
19929 * configure.ac: Remove --enable-grub-pe2elf. Only build
19930 grub-pe2elf when needed by the build system itself.
19931 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
19932
19933 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
19934
19935 * configure.ac: Bump version to 1.97~beta3.
19936 * docs/version.texi: Likewise.
19937
19938 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
19939
19940 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
19941 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
19942 from here ...
19943 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
19944 (grub_linux_setup_video): ... to here (with some adjustments).
19945
19946 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
19947
19948 Fix memory corruption issue (spotted by Colin Watson).
19949
19950 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
19951 causing returned size to be stored in an incorrect memory location.
19952 Fix use of uninitialized value when storing the returned size.
19953
19954 2009-09-12 Yves Blusseau <blusseau@zetam.org>
19955
19956 Change clean rules to properly remove files
19957
19958 * genmk.rb: add new clean rules
19959 * Makefile.in (clean): add the new targets
19960 (mostlyclean): likewise
19961
19962 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
19963
19964 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
19965 to grub_uint64_t.
19966 * fs/ntfs.c (init_file): Understand 64-bit sizes for
19967 non-resident files.
19968
19969 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
19970
19971 * configure.ac: Don't look for help2man when cross-compiling. Fixes
19972 part of bug #27349.
19973
19974 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
19975
19976 * util/grub-mkconfig.in: Make the created config mode 400 and
19977 print a warning if it fails.
19978
19979 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
19980
19981 * util/grub.d/40_custom.in: Ask user to type custom entries below
19982 comment, rather than below 'exec tail' line.
19983
19984 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
19985
19986 * util/grub.d/40_custom.in: Make sure that the explanatory text is
19987 visible in grub.cfg.
19988
19989 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
19990
19991 * util/grub.d/40_custom.in: Make it a little clearer how to use this
19992 file.
19993
19994 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
19995
19996 * docs/grub.cfg: Add an example menu entry for memtest86+.
19997
19998 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
19999
20000 * config.guess: Update to latest version from config git.
20001 * config.sub: Likewise.
20002
20003 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
20004
20005 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
20006 unknown-command case. Fixes bug #27320.
20007
20008 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
20009
20010 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
20011 `help' if the command exists.
20012
20013 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
20014
20015 * INSTALL: Require GCC 4.1.3 or later.
20016
20017 2009-09-06 Yves Blusseau <blusseau@zetam.org>
20018
20019 * Makefile.in (RMKFILES): add i386-qemu.rmk
20020 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
20021 $(srcdir)/stamp-h.in
20022
20023 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
20024
20025 * util/grub-probe.c (probe): Comment out buggy codepath, which
20026 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
20027 should be re-enabled after 1.97.
20028
20029 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
20030
20031 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
20032 find searches for.
20033
20034 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
20035
20036 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
20037 unnecessary calls to grub_error.
20038
20039 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
20040
20041 * NEWS: Mention `keystatus' and Unicode fonts.
20042
20043 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
20044
20045 * configure.ac: Bump version to 1.97~beta2.
20046 * docs/version.texi: Likewise.
20047
20048 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
20049
20050 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
20051 containing unwind information in some cases where it previously did
20052 not. Use -fno-dwarf2-cfi-asm if available to restore the old
20053 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
20054 discussion.
20055
20056 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
20057
20058 Embedding loadenv module into grub-emu
20059
20060 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
20061 commands/loadenv.c
20062 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
20063 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
20064 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
20065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
20066 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
20067 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
20068
20069 2009-09-03 Magnus Granberg <zorry@ume.nu>
20070
20071 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
20072 include -fPIE in the default specs.
20073 * configure.ac: Check if pie_possible is yes and add -fno-PIE
20074 to TARGET_CFLAGS.
20075
20076 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
20077
20078 * INSTALL: Note that GNU Bison 2.3 or later is required.
20079
20080 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
20081
20082 * kern/i386/pc/startup.S: Fix typo.
20083
20084 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20085
20086 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
20087 according to GCS.
20088
20089 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20090
20091 * docs/grub.texi (Naming convention): Describe one-based partition
20092 numbering.
20093 (Device syntax): Likewise.
20094 (File name syntax): Likewise.
20095 (Block list syntax): Likewise.
20096 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
20097 menu.lst.
20098 (File name syntax): Likewise.
20099 (Command-line and menu entry commands): Document acpi, blocklist,
20100 crc, export, insmod, keystatus, ls, set, and unset commands.
20101
20102 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20103
20104 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
20105 to avoid implying that only one of --shift, --ctrl, or --alt may be
20106 used.
20107
20108 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20109
20110 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
20111 rather than comparing against S_IFREG, which will almost never work.
20112
20113 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
20114
20115 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
20116 (write_blocklists): Likewise.
20117
20118 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
20119
20120 * script/lua/grub_lua.h (fputs): Supply a format string as the first
20121 argument to grub_printf.
20122
20123 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
20124
20125 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
20126 non GNU test.
20127
20128 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20129
20130 * kern/file.c (grub_file_read): Spelling fix
20131
20132 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20133
20134 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
20135 loading of headers in some cases.
20136
20137 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
20138
20139 * configure.ac: Bump version to 1.97~beta1.
20140 * docs/version.texi: Likewise.
20141
20142 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20143
20144 * include/grub/i386/xnu.h: Add license header.
20145 include grub/err.h explicitly.
20146
20147 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
20148
20149 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
20150 to `ufs' in the vfs.root.mountfrom kernel parameter.
20151
20152 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
20153
20154 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
20155
20156 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
20157 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
20158
20159 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
20160 `ARRAY_SIZE' macro.
20161
20162 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20163
20164 * kern/file.c (grub_file_read): Check offset.
20165 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
20166 * fs/jfs.c (grub_jfs_read_file): Likewise.
20167 * fs/ntfs.c (grub_ntfs_read): Likewise.
20168 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
20169 * fs/minix.c (grub_minix_read_file): Correct offset check.
20170 * fs/ufs.c (grub_ufs_read_file): Likewise.
20171
20172 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20173
20174 * term/i386/pc/console.c (bios_data_area): Cast
20175 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
20176
20177 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20178
20179 1-bit optimised blitters.
20180
20181 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
20182 prototype.
20183 (grub_video_fbblit_replace_24bit_1bit): Likewise.
20184 (grub_video_fbblit_replace_16bit_1bit): Likewise.
20185 (grub_video_fbblit_replace_8bit_1bit): Likewise.
20186 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
20187 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
20188 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
20189 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
20190 function.
20191 (grub_video_fbblit_replace_24bit_1bit): Likewise.
20192 (grub_video_fbblit_replace_16bit_1bit): Likewise.
20193 (grub_video_fbblit_replace_8bit_1bit): Likewise.
20194 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
20195 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
20196 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
20197 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
20198 when possible.
20199 * video/video.c (grub_video_get_blit_format): Return
20200 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
20201
20202 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20203
20204 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
20205 the first argument to grub_printf.
20206
20207 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20208 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
20209
20210 Add `getkeystatus' terminal method. Add a new `keystatus' command
20211 to query it.
20212
20213 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
20214 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
20215 modifier key bitmasks.
20216 (struct grub_term_input): Add `getkeystatus' member.
20217 (grub_getkeystatus): Add prototype.
20218 * kern/term.c (grub_getkeystatus): New function.
20219
20220 * include/grub/i386/pc/memory.h
20221 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
20222 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
20223 Data Area layout.
20224 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
20225 (grub_console_term_input): Set `getkeystatus' member.
20226 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
20227 constants.
20228 (grub_usb_keyboard_getreport): Likewise.
20229 (grub_usb_keyboard_checkkey): Likewise.
20230 (grub_usb_keyboard_getkeystatus): New function.
20231 (grub_usb_keyboard_term): Set `getkeystatus' member.
20232
20233 * commands/keystatus.c: New file.
20234 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
20235 (keystatus_mod_SOURCES): New variable.
20236 (keystatus_mod_CFLAGS): Likewise.
20237 (keystatus_mod_LDFLAGS): Likewise.
20238 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
20239 commands/keystatus.c.
20240 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20241 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20242 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20244 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20245 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20246
20247 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20248
20249 Split befs.mod and afs.mod into *_be.mod and *.mod
20250
20251 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
20252 (grub_fstest_SOURCES): Likewise.
20253 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
20254 (afs_be_mod_SOURCES): New variable.
20255 (afs_be_mod_CFLAGS): Likewise.
20256 (afs_be_mod_LDFLAGS): Likewise.
20257 (befs_be_mod_SOURCES): Likewise.
20258 (befs_be_mod_CFLAGS): Likewise.
20259 (befs_be_mod_LDFLAGS): Likewise.
20260 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
20261 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20262 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20263 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
20264 (grub_emu_SOURCES): Likewise.
20265 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20266 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20267 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20268 * fs/afs_be.c: New file.
20269 * fs/befs_be.c: New file.
20270 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
20271 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
20272 (U16): Replaced with ...
20273 (grub_afs_to_cpu16): ...this. All users updated.
20274 (U32): Replaced with ...
20275 (grub_afs_to_cpu32): ...this. All users updated.
20276 (U64): Replaced with ...
20277 (grub_afs_to_cpu64): ...this. All users updated.
20278 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
20279 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
20280 (grub_afs_validate_sblock): Check only one endianness.
20281 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
20282 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
20283 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
20284 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
20285 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
20286 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
20287 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
20288 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
20289
20290 2009-08-26 Bean <bean123ch@gmail.com>
20291
20292 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
20293 64-bit number.
20294 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
20295 (grub_xfs_inode_block): Change return type to grub_uint64_t.
20296 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
20297
20298 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20299
20300 NetBSD memory map support.
20301
20302 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
20303 (grub_netbsd_btinfo_mmap_header): New structure.
20304 (grub_netbsd_btinfo_mmap_entry): Likewise.
20305 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
20306
20307 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20308
20309 Enable bsd.mod on coreboot.
20310
20311 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
20312 (bsd_mod_SOURCES): New variable.
20313 (bsd_mod_CFLAGS): Likewise.
20314 (bsd_mod_LDFLAGS): Likewise.
20315 (bsd_mod_ASFLAGS): Likewise.
20316 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
20317 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
20318
20319 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20320
20321 Cleanup NetBSD root support.
20322
20323 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
20324 grub_bsd_get_device.
20325 Fix typo.
20326
20327 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
20328
20329 * util/grub.d/00_header.in: Move check for the video backend of
20330 gfxterm from here ...
20331 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
20332 a suitable video backend.
20333
20334 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20335
20336 Fix breakage in grub-setup.
20337
20338 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
20339 "msdos_partition_map".
20340
20341 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20342
20343 Fix breakage in normal/auth.c.
20344
20345 * normal/auth.c (grub_iswordseparator): New function.
20346
20347 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20348
20349 Authentication support.
20350
20351 * commands/password.c: New file.
20352 * conf/common.rmk (pkglib_MODULES): Add password.mod.
20353 (password_mod_SOURCES): New variable.
20354 (password_mod_CFLAGS): Likewise.
20355 (password_mod_LDFLAGS): Likewise.
20356 (normal_mod_SOURCES): Add normal/auth.c.
20357 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
20358 normal/auth.c.
20359 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20360 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20361 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20363 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20364 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20365 * include/grub/auth.h: New file.
20366 * include/grub/err.h (grub_err_t): New enum value
20367 GRUB_ERR_ACCESS_DENIED.
20368 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
20369 'users'.
20370 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
20371 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
20372 users updated.
20373 * normal/auth.c: New file.
20374 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
20375 (grub_cmdline_run): Don't allow to go to command line without
20376 authentication.
20377 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
20378 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
20379 menuentry without superuser rights.
20380 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
20381 user isn't a superuser.
20382
20383 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20384
20385 Save space by inlining misc.c functions.
20386
20387 * kern/misc.c (grub_iswordseparator): Made static.
20388 * kern/misc.c (grub_strcat): Moved from here ...
20389 * include/grub/misc.h (grub_strcat): ... here. Inlined.
20390 * kern/misc.c (grub_strncat): Moved from here ...
20391 * include/grub/misc.h (grub_strncat): ... here. Inlined.
20392 * kern/misc.c (grub_strcasecmp): Moved from here ...
20393 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
20394 * kern/misc.c (grub_strncasecmp): Moved from here ...
20395 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
20396 * kern/misc.c (grub_isalpha): Moved from here ...
20397 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
20398 * kern/misc.c (grub_isdigit): Moved from here ...
20399 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
20400 * kern/misc.c (grub_isgraph): Moved from here ...
20401 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
20402 * kern/misc.c (grub_tolower): Moved from here ...
20403 * include/grub/misc.h (grub_tolower): ... here. Inlined.
20404
20405 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20406
20407 * script/sh/function.c (grub_script_function_find): Cut error message
20408 not to flood terminal.
20409 * script/sh/lexer.c (grub_script_yylex): Remove command line length
20410 limit.
20411 * script/sh/script.c (grub_script_arg_add): Duplicate string.
20412
20413 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
20414
20415 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
20416 `report' grub_uint8_t *.
20417 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
20418 Use a 50-millisecond timeout rather than just repeating
20419 grub_usb_keyboard_getreport 50 times.
20420 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
20421
20422 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20423
20424 Rename *_partition_map to part_*
20425
20426 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
20427 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
20428 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
20429 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
20430 All users updated.
20431 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
20432 All users updated.
20433 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
20434 * util/grub-probe.c (probe_partmap): Don't transform partition name
20435 to get module name.
20436
20437 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20438
20439 Fix OpenBSD and NetBSD support.
20440
20441 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
20442 memory address conflict.
20443 (OPENBSD_MMAP_ACPI): New definition.
20444 (OPENBSD_MMAP_NVS): Likewise.
20445 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
20446 and OPENBSD_MMAP_NVS.
20447 Add memory map terminator
20448 Explicit cast when calling grub_unix_real_boot.
20449 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
20450
20451 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20452
20453 Let user specify NetBSD root device.
20454
20455 * loader/i386/bsd.c (netbsd_root): New variable.
20456 (netbsd_opts): New option 'root'.
20457 (NETBSD_ROOT_ARG): New macro.
20458 (grub_netbsd_boot): Use 'netbsd_root'.
20459 (grub_bsd_unload): Free 'netbsd_root'.
20460 (grub_cmd_netbsd): Fill 'netbsd_root'.
20461
20462 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20463
20464 Support for 64-bit NetBSD.
20465
20466 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
20467 point when booting non-FreeBSD.
20468
20469 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20470
20471 Support --no-smp and --no-acpi for NetBSD.
20472
20473 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
20474 (NETBSD_AB_NOACPI): Likewise.
20475 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
20476 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
20477
20478 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
20479
20480 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
20481 errors.
20482 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
20483 errors. Call grub_error when needed.
20484
20485 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
20486
20487 * commands/search.c (search_fs): Try searching without autoload first.
20488 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
20489 filesystem module explicitly for faster booting.
20490
20491 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
20492
20493 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
20494
20495 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
20496
20497 * util/grub.d/30_os-prober.in: Disable os-prober if
20498 `GRUB_DISABLE_OS_PROBER' was set to true.
20499
20500 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
20501
20502 * partmap/pc.c: Rename to ...
20503 * partmap/msdos.c: ... this. Update all users.
20504 (grub_pc_partition_map): Rename to ...
20505 (grub_msdos_partition_map): ... this. Update all users.
20506
20507 * parttool/pcpart.c: Rename to ...
20508 * parttool/msdospart.c: ... this. Update all users.
20509
20510 * include/grub/pc_partition.h: Rename to ...
20511 * include/grub/msdos_partition.h: ... this. Update all users.
20512 (grub_pc_partition_bsd_entry): Rename to ...
20513 (grub_msdos_partition_bsd_entry): ... this. Update all users.
20514 (grub_pc_partition_disk_label): Rename to ...
20515 (grub_msdos_partition_disk_label): ... this. Update all users.
20516 (grub_pc_partition_entry): Rename to ...
20517 (grub_msdos_partition_entry): ... this. Update all users.
20518 (grub_pc_partition_mbr): Rename to ...
20519 (grub_msdos_partition_mbr): ... this. Update all users.
20520 (grub_pc_partition): Rename to ...
20521 (grub_msdos_partition): ... this. Update all users.
20522 (grub_pc_partition_is_empty): Rename to ...
20523 (grub_msdos_partition_is_empty): ... this. Update all users.
20524 (grub_pc_partition_is_extended): Rename to ...
20525 (grub_msdos_partition_is_extended): ... this. Update all users.
20526 (grub_pc_partition_is_bsd): Rename to ...
20527 (grub_msdos_partition_is_bsd): ... this. Update all users.
20528
20529 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
20530 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
20531 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
20532 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
20533 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
20534 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
20535 (gpt_mod_LDFLAGS): Rename to ...
20536 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
20537 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
20538 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
20539 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
20540 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
20541 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
20542 (part_gpt_mod_LDFLAGS): ... this.
20543 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
20544 `pcpart.mod' to `msdospart.mod'.
20545 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
20546 to ...
20547 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
20548 (msdospart_mod_LDFLAGS): ... this.
20549
20550 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
20551
20552 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
20553 (openbsd_opts): Likewise.
20554 (netbsd_opts): Likewise.
20555 (freebsd_flags): Added 0 terminator.
20556 (openbsd_flags): Likewise.
20557 (netbsd_flags): Likewise.
20558 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
20559 (grub_cmd_freebsd): Transformed into extended command.
20560 (grub_cmd_openbsd): Likewise.
20561 (grub_cmd_netbsd): Likewise.
20562 (cmd_freebsd): Changed type to grub_extcmd_t.
20563 (cmd_openbsd): Likewise.
20564 (cmd_netbsd): Likewise.
20565 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
20566 grub_cmd_openbsd as extended commands.
20567 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
20568 cmd_netbsd and cmd_openbsd
20569
20570 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
20571
20572 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
20573
20574 2009-08-21 Pavel Roskin <proski@gnu.org>
20575
20576 * Makefile.in (install-local): When checking if a file is in the
20577 build directory, use "test -e" to detect symlinks.
20578
20579 * Makefile.in (install-local): Remove all files in
20580 $(DESTDIR)$(pkglibdir) before installing new files there.
20581
20582 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
20583
20584 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
20585 grub-mkelfimage.
20586
20587 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
20588
20589 * util/grub-mkconfig.in: Don't use gfxterm by default if not
20590 explicitly specified by the user.
20591
20592 2009-08-18 Pavel Roskin <proski@gnu.org>
20593
20594 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
20595 grub_uint8_t pointer for data.
20596 * include/grub/fbutil.h (struct grub_video_fbblit_info):
20597 Likewise.
20598 * video/fb/fbutil.c: Remove unnecessary casts.
20599
20600 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
20601
20602 VBE cleanup.
20603
20604 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
20605 (grub_vbe_set_video_mode): Save active mode info
20606 only after setting the mode.
20607 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
20608 second argument.
20609
20610 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
20611
20612 Rename variables for clarity.
20613
20614 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
20615 (active_vbe_mode_info): ... this. All users updated.
20616 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
20617 All users updated.
20618 (initial_mode): Rename to ...
20619 (initial_vbe_mode): ... this. All users updated.
20620 (mode_in_use): Rename to ..
20621 (vbe_mode_in_use): ... this. All users updated.
20622 (mode_list): Rename to ..
20623 (vbe_mode_list): ... this. All users updated.
20624 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
20625 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
20626 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
20627 'mode_list_size' to 'vbe_mode_list_size'.
20628 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
20629 'best_mode_info' to 'best_vbe_mode_info' and
20630 'best_mode' to 'best_vbe_mode'
20631
20632 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
20633
20634 Remove duplicate grub_video_fb_get_video_ptr.
20635
20636 * include/grub/fbutil.h (get_data_ptr): Rename to ...
20637 (grub_video_fb_get_video_ptr): ... this.
20638 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
20639 * video/fb/fbutil.c: Add comment about addressing.
20640 (get_data_ptr): Rename to ...
20641 (grub_video_fb_get_video_ptr): ... this. All users updated.
20642 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
20643
20644 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
20645
20646 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
20647 grub_dprintf() that was just added.
20648
20649 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
20650
20651 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
20652 (DEFAULT_VIDEO_MODE): Remove macros.
20653 (grub_linux_boot): Remove assumption that Linux has FB support,
20654 and use "text" as default video mode.
20655
20656 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
20657
20658 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
20659 grub_dprintf.
20660 * fs/fat.c (grub_fat_read_data): Likewise.
20661
20662 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
20663
20664 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
20665 payload.
20666 (grub_module): Likewise.
20667
20668 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
20669
20670 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
20671 mbi->cmdline but free playground.
20672
20673 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
20674
20675 Handle group offset on UFS1.
20676
20677 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
20678 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
20679
20680 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
20681
20682 Split ufs.mod into ufs1.mod and ufs2.mod.
20683
20684 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
20685 (grub_fstest_SOURCES): Likewise.
20686 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
20687 (ufs_mod_SOURCES): Remove.
20688 (ufs_mod_CFLAGS): Likewise.
20689 (ufs_mod_LDFLAGS): Likewise.
20690 (ufs1_mod_SOURCES): New variable.
20691 (ufs1_mod_CFLAGS): Likewise.
20692 (ufs1_mod_LDFLAGS): Likewise.
20693 (ufs2_mod_SOURCES): New variable.
20694 (ufs2_mod_CFLAGS): Likewise.
20695 (ufs2_mod_LDFLAGS): Likewise.
20696 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
20697 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
20698 Likewise.
20699 (grub_emu_SOURCES): Likewise.
20700 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20701 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20702 (grub_setup_SOURCES): Likewise.
20703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20704 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
20705 (grub_setup_SOURCES): Likewise.
20706 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
20707 Likewise.
20708 * fs/ufs2.c: New file.
20709 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
20710
20711 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
20712
20713 Framebuffer split.
20714
20715 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
20716 subsystem at the end.
20717 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
20718 (video_fb_mod_SOURCES): New variable.
20719 (video_fb_mod_CFLAGS): Likewise.
20720 (video_fb_mod_LDFLAGS): Likewise.
20721 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
20722 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
20723 * video/i386/pc/vbeblit.c: Moved from here ...
20724 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
20725 * video/i386/pc/vbefill.c: Moved from here ...
20726 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
20727 * video/i386/pc/vbeutil.c: Moved from here ...
20728 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
20729 * include/grub/i386/pc/vbeblit.h: Moved from here ...
20730 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
20731 * include/grub/i386/pc/vbefill.h: Moved from here ...
20732 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
20733 * include/grub/i386/pc/vbeutil.h: Moved from here ...
20734 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
20735 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
20736 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
20737 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
20738 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
20739 (grub_video_adapter): Added 'get_info_and_fini'.
20740 (grub_video_get_info_and_fini): New prototype.
20741 (grub_video_set_mode): make modestring const char *.
20742 * loader/i386/linux.c (grub_linux_setup_video): Use
20743 grub_video_get_info_and_fini.
20744 (grub_linux_boot): Move modesetting just before booting.
20745 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
20746 grub_video_get_info_and_fini.
20747 * video/i386/pc/vbe.c: Moved framebuffer part ...
20748 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
20749 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
20750 grub_video_fbstd_colors and grub_video_fb_set_palette.
20751 (grub_video_vbe_init): Clear 'framebuffer' variable and use
20752 grub_video_fb_init.
20753 (grub_video_vbe_fini): Use grub_video_fb_fini.
20754 (grub_video_vbe_setup): Use framebuffer.render_target instead of
20755 render_target and use grub_video_fb_set_active_render_target and
20756 grub_video_fb_set_palette.
20757 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
20758 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
20759 (grub_video_vbe_adapter): Use framebuffer.
20760 * video/video.c (grub_video_get_info_and_fini): New function.
20761 (grub_video_set_mode): Make modestring const char *.
20762 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
20763 values are already initialised.
20764
20765 2009-08-14 Pavel Roskin <proski@gnu.org>
20766
20767 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
20768 ABS and APPLE_CC.
20769 * boot/i386/pc/diskboot.S: Likewise.
20770 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
20771 sectors allow compilation on MacOSX.
20772 * conf/i386-pc.rmk: Enable unconditional compilation of
20773 lnxboot.img.
20774
20775 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
20776
20777 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
20778 * util/grub.d/00_header.in: Enter interruptible sleep if
20779 GRUB_HIDDEN_TIMEOUT is set.
20780
20781 2009-08-13 Yves Blusseau <blusseau@zetam.org>
20782
20783 * include/grub/symbol.h: Add the LOCAL macro.
20784 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
20785 starting with "L_".
20786
20787 2009-08-13 Pavel Roskin <proski@gnu.org>
20788
20789 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
20790 any modern compilers we support.
20791
20792 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
20793 Use local labels starting with "L_" so that Apple assembler
20794 knows they are local.
20795
20796 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
20797
20798 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
20799 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
20800 (bsd_kernel_types): ... this enum.
20801
20802 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
20803 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
20804 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
20805
20806 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
20807 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
20808 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
20809 messages.
20810
20811 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
20812
20813 * util/grub-dumpdevtree: Moved from here ...
20814 * util/i386/efi/grub-dumpdevtree: ... to here.
20815 (hexify): New function. Converts a string to its hex version.
20816 Generate hex versions of "efi" and "device-properties" by calling
20817 hexify() on the ASCII strings rather than by hardcoding numbers.
20818
20819 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
20820
20821 * fs/jfs.c: Update copyright year.
20822
20823 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
20824
20825 * util/grub.d/00_header.in: Fix a comment.
20826 * util/grub.d/10_linux.in: Likewise.
20827 * util/grub.d/10_windows.in: Likewise.
20828 * util/grub.d/10_hurd.in: Likewise.
20829
20830 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
20831
20832 * util/grub-mkconfig.in: Allow the user to specify the used font
20833 with GRUB_FONT.
20834
20835 2009-08-08 Pavel Roskin <proski@gnu.org>
20836
20837 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
20838 available, xfs.mod needs it now.
20839
20840 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
20841 the "g" modifier in sed when the intention is to strip something
20842 once. This fixes comparison of kernels with multiple dashes.
20843
20844 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
20845 on it. Add missing space before closing bracket. Fix
20846 misleading formatting.
20847
20848 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
20849
20850 * docs/grub.texi: Major overhaul. Remove all sections that are
20851 specific to GRUB Legacy, or mostly composed of Legacy-specific
20852 information.
20853
20854 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
20855
20856 * docs/version.texi: New file. Provides version information for
20857 grub.texi.
20858
20859 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
20860
20861 * docs/grub.texi: Update CVS information to SVN.
20862 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
20863
20864 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
20865
20866 * util/grub-mkconfig.in: Remove a wrong `fi'.
20867
20868 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
20869
20870 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
20871 (grub_jfs_uuid): New function.
20872 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
20873
20874 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
20875
20876 * util/grub-mkconfig_lib.in (font_path): Move the functionality
20877 of it to ...
20878 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
20879 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
20880
20881 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
20882
20883 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
20884 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
20885 Update all users.
20886
20887 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
20888 not just "vmlinu[zx]".
20889 Moved from here ...
20890 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
20891 all users.
20892
20893 * util/grub.d/10_linux.in (find_latest): Moved from here ...
20894 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
20895 all users.
20896
20897 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
20898
20899 * util/grub.d/10_freebsd.in: Use an absolute device path for
20900 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
20901
20902 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
20903
20904 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
20905 handling of multiple abstraction modules.
20906
20907 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
20908
20909 Fix a bug resulting in black screen when loading Linux using a
20910 packed video mode.
20911
20912 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
20913 function.
20914
20915 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
20916 (grub_vbe_bios_getset_dac_palette_width): New function.
20917 (grub_vbe_bios_get_dac_palette_width)
20918 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
20919 grub_vbe_bios_getset_dac_palette_width()).
20920
20921 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
20922 check for return status.
20923 (grub_vbe_get_video_mode_info): When getting information for a packed
20924 mode (<= 8 bpp), obtain DAC palette width using
20925 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
20926 {red,green,blue}_mark_size.
20927
20928 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
20929
20930 * commands/search.c (options): Fix help output to match actual code.
20931
20932 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
20933
20934 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
20935 of homegrown code.
20936
20937 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20938
20939 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
20940 on XFS or ReiserFS.
20941
20942 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20943
20944 Support Apple partition map with sector size different from 512 bytes.
20945
20946 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
20947 (apple_partition_map_iterate): Respect 'aheader.blocksize'
20948 and 'apart.partmap_size'.
20949
20950 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20951 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
20952
20953 Fix cpuid command.
20954
20955 * commands/i386/cpuid.c (options): New variable.
20956 (grub_cmd_cpuid): Return real error.
20957 (GRUB_MOD_INIT(cpuid)): Declare options.
20958
20959 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
20960
20961 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
20962 valid.
20963
20964 2009-07-31 Bean <bean123ch@gmail.com>
20965
20966 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
20967 log2_inode.
20968 (grub_fshelp_node): Move inode field to the end.
20969 (grub_xfs_data): Remove inode field.
20970 (grub_xfs_inode_block): Calculate inode size using sblock.
20971 (grub_xfs_inode_offset): Likewise.
20972 (grub_xfs_read_inode): Calculate inode size using sblock.
20973 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
20974 (grub_xfs_iterate_dir): Calculate inode size using sblock.
20975 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
20976 to match inode size.
20977 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
20978 not accessible when data is null.
20979 (grub_xfs_open): Likewise.
20980
20981 2009-07-31 Bean <bean123ch@gmail.com>
20982
20983 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
20984 Don't change pv->disk if it's already set.
20985
20986 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
20987 (grub_raid_register): ... here.
20988 (grub_raid_rescan): Removed.
20989
20990 * include/grub/raid.h (grub_raid_rescan): Removed.
20991
20992 * util/grub-fstest.c: Remove include file <grub/raid.h>.
20993 (fstest): Replace grub_raid_rescan with module fini function followed
20994 by init function.
20995
20996 * util/grub-probe.c: Add include file <grub/raid.h>.
20997 (probe_raid_level): New function.
20998 (probe): Detect abstraction by walking the disk device, support two
20999 level of abstraction (LVM on RAID) when detecting partition map.
21000
21001 2009-07-31 Pavel Roskin <proski@gnu.org>
21002
21003 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
21004 to grub_zalloc(), it was erroneous.
21005 Reported by Bean <bean123ch@gmail.com>
21006
21007 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
21008
21009 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
21010 embedding zone, not only the first one.
21011
21012 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
21013
21014 * term/gfxterm.c (clear_char): New function.
21015 (grub_virtual_screen_setup): Use clear_char.
21016 (scroll_up): Likewise.
21017 (grub_virtual_screen_cls): Likewise.
21018
21019 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
21020
21021 * util/deviceiter.c (get_acceleraid_disk_name): New static
21022 function.
21023 (grub_util_iterate_devices): Handle Accelraid devices.
21024 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
21025
21026 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
21027
21028 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
21029 separator for the suggested gfxpayload string (';' collides with the
21030 parser and needs escaping).
21031
21032 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
21033
21034 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
21035 Clear direction flag before jumping to OS.
21036 (grub_multiboot2_real_boot): Likewise.
21037
21038 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21039
21040 * util/i386/pc/grub-install: Fix parsing of --disk-module
21041 option.
21042
21043 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21044
21045 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
21046 when embedding.
21047
21048 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
21049
21050 * util/grub-mkconfig.in (package_version): New variable.
21051 Use it do display the version.
21052
21053 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21054
21055 * kern/file.c (grub_file_open): Revert to previous check with
21056 grub_errno.
21057
21058 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21059
21060 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
21061 from help line. It's out of sync with code.
21062
21063 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21064
21065 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
21066 entries on failed boot.
21067
21068 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21069
21070 * kern/file.c (grub_file_open): Fix an error check.
21071
21072 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
21073
21074 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
21075 partition map couldn't be identified.
21076
21077 2009-07-23 Pavel Roskin <proski@gnu.org>
21078
21079 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
21080 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
21081 case of little endian words becomes just an optimization.
21082 Respect const modifier.
21083 (md5_final): Use code that doesn't depend on endianness.
21084
21085 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
21086 to avoid loss of upper bits if align is unsigned and shorter
21087 than addr.
21088
21089 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
21090
21091 UUID support for UFS
21092
21093 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
21094 (grub_ufs_uuid): New function.
21095 (grub_ufs_fs): add .uuid
21096
21097 2009-07-21 Pavel Roskin <proski@gnu.org>
21098
21099 * kern/dl.c (grub_dl_check_header): Make static.
21100
21101 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
21102
21103 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
21104 add drivemap for Vista. It breaks Windows 7.
21105
21106 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
21107
21108 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
21109 128 bytes
21110
21111 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21112
21113 Add BFS support
21114
21115 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
21116 (grub_fstest_SOURCES): Likewise.
21117 (pkglib_MODULES): Add befs.mod.
21118 (befs_mod_SOURCES): New variable.
21119 (befs_mod_CFLAGS): Likewise.
21120 (befs_mod_LDFLAGS): Likewise.
21121 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21122 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21123 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21124 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21125 (grub_setup_SOURCES): Likewise.
21126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21127 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21128 (grub_setup_SOURCES): Likewise.
21129 * fs/befs.c: New file.
21130 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
21131 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
21132 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
21133 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
21134 (B_KEY_INDEX_ALIGN): New declaration.
21135 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
21136 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
21137 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
21138 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
21139 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
21140 (grub_afs_mount) [MODE_BFS]: Likewise.
21141 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
21142 (grub_afs_fs): Use GRUB_AFS_FSNAME
21143 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
21144 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
21145 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
21146 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
21147
21148 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
21149
21150 * util/getroot.c (find_root_device): Add support for MacOSX.
21151 * util/hostdisk.c: Likewise.
21152
21153 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21154
21155 * font/font.c (find_glyph): Check whether a font is present to avoid
21156 segmentation fault.
21157
21158 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
21159
21160 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
21161
21162 2009-07-20 Pavel Roskin <proski@gnu.org>
21163
21164 * configure.ac: Trim excessively wordy excuses.
21165
21166 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21167
21168 Add symlink, mtime and label support to AtheFS.
21169
21170 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
21171 (grub_afs_iterate_dir): Handle symlinks.
21172 (grub_afs_open): Use grub_afs_read_symlink.
21173 (grub_afs_dir): Likewise.
21174 Pass mtime.
21175 (grub_afs_label): New function.
21176 (grub_afs_fs): Add grub_afs_label.
21177 (grub_afs_read_symlink): New function.
21178
21179 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21180
21181 Fix AtheFS support.
21182
21183 * fs/afs.c: Fix comments style.
21184 (grub_afs_blockrun): Declare as packed.
21185 (grub_afs_datastream): Likewise.
21186 (grub_afs_bnode): Likewise.
21187 (grub_afs_btree): Likewise.
21188 (grub_afs_sblock): Likewise.
21189 Declare `name' as char.
21190 (grub_afs_inode): Declare as packed.
21191 Change void *vnode to grub_uint32_t unused.
21192 (grub_afs_iterate_dir): Check that key_size is positive.
21193 (grub_afs_mount): Don't read superblock twice.
21194 (grub_afs_dir): Don't free node in case of error,
21195 grub_fshelp_find_file already handles this.
21196 (grub_afs_open): Likewise.
21197
21198 2009-07-19 Pavel Roskin <proski@gnu.org>
21199
21200 * Makefile.in: Remove LIBLZO and enable_lzo.
21201 * conf/i386-pc.rmk: Remove lzo support.
21202 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
21203 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
21204 support.
21205 * kern/i386/pc/lzo1x.S: Remove.
21206 * kern/i386/pc/startup.S: Remove lzo support.
21207 * util/i386/pc/grub-mkimage.c: Likewise.
21208
21209 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
21210
21211 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
21212 * fs/xfs.c (grub_xfs_dir): Likewise.
21213 * fs/afs.c (grub_afs_dir): Likewise.
21214 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
21215 (grub_iso9660_open): Likewise.
21216 * fs/jfs.c (grub_jfs_open): Likewise.
21217 * fs/ext2.c (grub_ext2_dir): Likewise.
21218 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
21219 * script/sh/lexer.c (grub_script_yylex): Likewise.
21220
21221 2009-07-16 Pavel Roskin <proski@gnu.org>
21222
21223 * configure.ac: Never add "-c" to CFLAGS.
21224
21225 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
21226
21227 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
21228 grub_cv_cc_efiemu should be used.
21229
21230 * configure.ac: Typo fixes.
21231
21232 * kern/mm.c (grub_zalloc): New function.
21233 (grub_debug_zalloc): Likewise.
21234 * include/grub/mm.h: Declare grub_zalloc() and
21235 grub_debug_zalloc().
21236 * util/misc.c (grub_zalloc): New function.
21237 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
21238 instead of grub_malloc(), remove unneeded initializations.
21239 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
21240 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
21241 * commands/parttool.c (grub_cmd_parttool): Likewise.
21242 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
21243 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
21244 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
21245 * disk/usbms.c (grub_usbms_finddevs): Likewise.
21246 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
21247 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
21248 (grub_cmd_efiemu_pnvram): Likewise.
21249 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
21250 * fs/iso9660.c (grub_iso9660_mount): Likewise.
21251 (grub_iso9660_iterate_dir): Likewise.
21252 * fs/jfs.c (grub_jfs_opendir): Likewise.
21253 * fs/ntfs.c (list_file): Likewise.
21254 (grub_ntfs_mount): Likewise.
21255 * kern/disk.c (grub_disk_open): Likewise.
21256 * kern/dl.c (grub_dl_load_core): Likewise.
21257 * kern/elf.c (grub_elf_file): Likewise.
21258 * kern/env.c (grub_env_context_open): Likewise.
21259 (grub_env_set): Likewise.
21260 (grub_env_set_data_slot): Likewise.
21261 * kern/file.c (grub_file_open): Likewise.
21262 * kern/fs.c (grub_fs_blocklist_open): Likewise.
21263 * loader/i386/multiboot.c (grub_module): Likewise.
21264 * loader/xnu.c (grub_xnu_create_key): Likewise.
21265 (grub_xnu_create_value): Likewise.
21266 * normal/main.c (grub_normal_add_menu_entry): Likewise.
21267 (read_config_file): Likewise.
21268 * normal/menu_entry.c (make_screen): Likewise.
21269 * partmap/sun.c (sun_partition_map_iterate): Likewise.
21270 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
21271 * script/sh/script.c (grub_script_parse): Likewise.
21272 * video/bitmap.c (grub_video_bitmap_create): Likewise.
21273 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
21274 * video/readers/png.c (grub_png_output_byte): Likewise.
21275 (grub_video_reader_png): Likewise.
21276
21277 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21278
21279 Enable all targets that can be built by default
21280
21281 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
21282 grub-mkfont and grub-fstest if they can be built
21283
21284 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21285
21286 Fix hang and segmentation fault in grub-emu-usb
21287
21288 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
21289 * util/usb.c (grub_libusb_devices): likewise
21290 (grub_libusb_init): rename to ...
21291 (GRUB_MOD_INIT (libusb)):...this
21292 (grub_libusb_fini): rename to ..
21293 (GRUB_MOD_FINI (libusb)):...this
21294 * disk/usbms.c (grub_usbms_transfer): fix retry logic
21295 * include/grub/disk.h (grub_raid_init): removed, it's useless
21296 (grub_raid_fini): likewise
21297 (grub_lvm_init): likewise
21298 (grub_lvm_fini): likewise
21299 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
21300 by grub_init_all
21301
21302 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21303
21304 Fix libusb
21305
21306 * Makefile.in (LIBUSB): new macro
21307 * genmk.rb (Utility/print_tail): new method
21308 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
21309 (top level): call util.print_tail at the end.
21310
21311 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21312
21313 Make FreeBSD accept zpool.cache
21314
21315 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
21316 type is /boot/zfs/zpool.cache
21317
21318 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21319
21320 Fix 64-bit efiemu
21321
21322 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
21323 correct wrong typedef
21324 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
21325
21326 2009-07-15 Pavel Roskin <proski@gnu.org>
21327
21328 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
21329 * kern/disk.c (struct grub_disk_cache): Likewise.
21330
21331 * commands/probe.c (options): Typo fix.
21332
21333 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
21334 Increase to 0x5a to accommodate FAT32. Adjust other offsets
21335 accordingly.
21336 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
21337
21338 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
21339 the end of "Error" to make the message more readable.
21340
21341 * boot/i386/pc/boot.S (kernel_segment): Remove.
21342 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
21343 for destination.
21344
21345 * boot/i386/pc/boot.S (boot_version): Remove.
21346 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
21347 Remove.
21348
21349 * include/grub/i386/pc/boot.h: Sort all offsets.
21350 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
21351 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
21352 * boot/i386/pc/boot.S: Assert location of every offset listed in
21353 include/grub/i386/pc/boot.h.
21354
21355 2009-07-13 Pavel Roskin <proski@gnu.org>
21356
21357 * include/grub/i386/coreboot/machine.h: Rename
21358 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
21359 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
21360 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
21361
21362 * kern/dl.c: Force native word size to suppress warnings when
21363 compiling grub-emu.
21364
21365 * kern/device.c (grub_device_iterate): Change struct part_ent to
21366 hold the name, not a pointer to it. Use one grub_malloc() per
21367 partition, not two. Free partition_name if grub_malloc() fails.
21368 Set ents to NULL only before grub_partition_iterate() is called.
21369
21370 2009-07-11 Bean <bean123ch@gmail.com>
21371
21372 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
21373 childname.
21374
21375 2009-07-10 Bean <bean123ch@gmail.com>
21376 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
21377
21378 * kern/ieee1275/openfw.c (grub_children_iterate)
21379 (grub_devalias_iterate): Fix size evaluation for property or path
21380 strings, which was broken since r2132.
21381
21382 2009-07-07 Pavel Roskin <proski@gnu.org>
21383
21384 * commands/search.c (search_file): Merge into ...
21385 (search_fs): ... this. Accept search type as argument.
21386 (grub_cmd_search): Pass search type to search_fs().
21387
21388 * include/grub/util/console.h: New file.
21389 * util/console.c: Use it instead of grub/machine/console.h.
21390 * util/grub-emu.c: Likewise.
21391
21392 * lib/arg.c (find_long_option): Remove.
21393 (find_long): Add `len' argument, make `s' const char *.
21394 (grub_arg_parse): Parse long options in place, not in a
21395 temporary buffer.
21396
21397 2009-07-06 Pavel Roskin <proski@gnu.org>
21398
21399 * commands/search.c (search_fs): Fix potential NULL pointer
21400 dereference.
21401
21402 * commands/search.c (search_fs): Replace QUID macro with quid_fn
21403 function pointer.
21404
21405 2009-07-06 Daniel Mierswa <impulze@impulze.org>
21406
21407 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
21408 comparison.
21409
21410 2009-07-05 Pavel Roskin <proski@gnu.org>
21411
21412 * include/grub/i386/linux.h (struct linux_kernel_params):
21413 Restore padding3, it's still needed.
21414
21415 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
21416 FreeBSD.
21417 * util/osdetect.lua: Likewise.
21418
21419 2009-07-05 Bean <bean123ch@gmail.com>
21420
21421 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
21422
21423 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
21424 (grub_lua_getenv): Likewise.
21425 (grub_lua_setenv): Likewise.
21426 (save_errno): New function.
21427 (push_result): Likewise.
21428 (grub_lua_enum_device): Likewise.
21429 (grub_lua_enum_file): Likewise.
21430 (grub_lua_file_open): Likewise.
21431 (grub_lua_file_close): Likewise.
21432 (grub_lua_file_seek): Likewise.
21433 (grub_lua_file_read): Likewise.
21434 (grub_lua_file_getline): Likewise.
21435 (grub_lua_file_getsize): Likewise.
21436 (grub_lua_file_getpos): Likewise.
21437 (grub_lua_file_eof): Likewise.
21438 (grub_lua_file_exist): Likewise.
21439 (grub_lua_add_menu): Likewise.
21440
21441 * script/lua/grub_lua.h (isupper): New inline function.
21442 (islower): Likewise.
21443 (ispunct): Likewise.
21444 (isxdigit): Likewise.
21445 (strcspn): Change to normal function.
21446 (strpbkr): New function declaration.
21447 (memchr): Likewise.
21448
21449 * script/lua/grub_main.c (scan_str): New function.
21450 (strcspn): Likewise.
21451 (strpbrk): Likewise.
21452 (memchr): Likewise.
21453
21454 * script/lua/linit.c (lualibs): Enable the string library.
21455
21456 * util/osdetect.lua: New file.
21457
21458 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
21459
21460 * include/grub/i386/linux.h (struct linux_kernel_params): Add
21461 `capabilities' member.
21462
21463 2009-07-02 Pavel Roskin <proski@gnu.org>
21464
21465 * genparttoollist.sh: Add missing newline at the end.
21466
21467 2009-07-01 Pavel Roskin <proski@gnu.org>
21468
21469 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
21470
21471 * util/hostdisk.c (open_device): Remove `const' from
21472 `sysctl_size', as sysctlbyname() can change it (in this case it
21473 doesn't actually happen).
21474
21475 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
21476 using signed long int constants.
21477
21478 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
21479 constant to avoid a warning on FreeBSD.
21480
21481 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
21482 where it's needed.
21483
21484 * Makefile.in: Install include/grub/machine symlink.
21485
21486 * Makefile.in: When installing symlinks, use "cp -fR", which
21487 works on FreeBSD and MacOSX.
21488 From Yves Blusseau <cl7m42e02@sneakemail.com>
21489
21490 * kern/dl.c (grub_dl_resolve_symbol): Make static.
21491 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
21492
21493 * util/misc.c: Move grub_reboot() and grub_halt() ...
21494 * util/grub-emu.c: ... here. Make main_env static.
21495 * include/grub/util/misc.h: Remove main_env.
21496
21497 * kern/mm.c: Use correct format to print size_t.
21498
21499 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
21500 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
21501 * kern/powerpc/dl.c: Likewise.
21502 * kern/sparc64/dl.c: Likewise.
21503 * kern/x86_64/dl.c: Likewise.
21504
21505 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
21506
21507 Fix grub-emu build on sparc64-ieee1275.
21508
21509 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
21510 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
21511
21512 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
21513
21514 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
21515 (grub_reboot, grub_halt): New functions.
21516
21517 * util/i386/pc/misc.c: Delete. Update all users.
21518 * util/sparc64/ieee1275/misc.c: Likewise.
21519 * util/powerpc/ieee1275/misc.c: Likewise.
21520
21521 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
21522
21523 * conf/i386.rmk (setjmp_mod_SOURCES)
21524 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
21525 * conf/common.rmk (setjmp_mod_SOURCES)
21526 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
21527 to use $(target_cpu).
21528 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
21529 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
21530 * conf/powerpc-ieee1275.rmk: Likewise.
21531 * conf/sparc64-ieee1275.rmk: Likewise.
21532
21533 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
21534 $(target_cpu) for kern/$(target_cpu)/dl.c.
21535 * conf/i386-efi.rmk: Likewise.
21536 * conf/i386-ieee1275.rmk: Likewise.
21537 * conf/x86_64-efi.rmk: Likewise.
21538 * conf/i386-coreboot.rmk: Likewise.
21539 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
21540 $(target_cpu) for kern/$(target_cpu)/dl.c and for
21541 kern/$(target_cpu)/cache.S.
21542 * conf/sparc64-ieee1275.rmk: Likewise.
21543
21544 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
21545
21546 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
21547 type to `grub_uint8_t', and adjust `padding9' accordingly.
21548
21549 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
21550
21551 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
21552
21553 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
21554 assembly in final jump, using register constraints.
21555
21556 (grub_linux_boot): For text mode, initialize `have_vga' using
21557 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
21558
21559 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
21560 right before the final jump.
21561
21562 Set `video_mode' to 0x3.
21563
21564 Document initialization of `video_page', `video_mode' and
21565 `video_ega_bx'.
21566
21567 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
21568
21569 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
21570 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
21571 and set GRUB_LINUX_FLAG_QUIET appropriately.
21572
21573 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
21574
21575 Fix build on Debian / sparc.
21576
21577 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
21578
21579 2009-06-28 Pavel Roskin <proski@gnu.org>
21580
21581 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
21582 fix a warning.
21583
21584 * util/grub.d/10_linux.in: Match SUSE style initrd names.
21585
21586 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
21587
21588 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
21589 `err'.
21590
21591 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
21592
21593 Revert r2338.
21594
21595 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
21596 file can't be opened. grub_file_open() is already supposed to set
21597 grub_errno / grub_errmsg appropriately.
21598 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21599
21600 2009-06-27 Pavel Roskin <proski@gnu.org>
21601 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
21602
21603 * include/grub/dl.h: Include grub/elf.h.
21604 (struct grub_dl): Add symtab field.
21605 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
21606 GRUB_MODULES_MACHINE_READONLY.
21607 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
21608 of the header for read-only modules.
21609 (grub_dl_unload): Free mod->symtab for read-only modules.
21610 * kern/i386/dl.c: Use mod->symtab.
21611 * kern/powerpc/dl.c: Likewise.
21612 * kern/sparc64/dl.c: Likewise.
21613 * kern/x86_64/dl.c: Likewise.
21614
21615 * conf/i386-qemu.rmk: New file.
21616 * kern/i386/qemu/startup.S: Likewise.
21617 * kern/i386/qemu/mmap.c: Likewise.
21618 * boot/i386/qemu/boot.S: Likewise.
21619 * include/grub/i386/qemu/time.h: Likewise.
21620 * include/grub/i386/qemu/serial.h: Likewise.
21621 * include/grub/i386/qemu/kernel.h: Likewise.
21622 * include/grub/i386/qemu/console.h: Likewise.
21623 * include/grub/i386/qemu/boot.h: Likewise.
21624 * include/grub/i386/qemu/init.h: Likewise.
21625 * include/grub/i386/qemu/machine.h: Likewise.
21626 * include/grub/i386/qemu/loader.h: Likewise.
21627 * include/grub/i386/qemu/memory.h: Likewise.
21628
21629 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
21630 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
21631 [qemu] (pkglib_IMAGES): Add `boot.img'.
21632 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
21633 [qemu] (boot_img_FORMAT): New variables.
21634 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
21635 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
21636 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
21637 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
21638 [qemu] (kernel_img_FORMAT): New variables.
21639
21640 * configure.ac: Recognise `i386-qemu'.
21641
21642 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
21643 (for no compression).
21644 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
21645 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
21646 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
21647 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
21648 ifdefs).
21649
21650 2009-06-27 Pavel Roskin <proski@gnu.org>
21651
21652 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
21653 read.
21654 * efiemu/prepare32.c: Likewise.
21655 * efiemu/prepare64.c: Likewise.
21656
21657 2009-06-26 Pavel Roskin <proski@gnu.org>
21658
21659 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
21660 * include/grub/elf.h: Define symbols without "32" or "64" based
21661 on GRUB_TARGET_WORDSIZE.
21662 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
21663 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
21664 ELF definitions.
21665 * efiemu/loadcore64.c: Likewise.
21666 * loader/i386/bsd32.c: Likewise.
21667 * loader/i386/bsd64.c: Likewise.
21668 * kern/dl.c: Remove own ELF definitions.
21669 * util/i386/efi/grub-mkimage.c: Likewise.
21670
21671 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
21672
21673 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
21674 segment 0x0 unconditionally, because the reference generated by
21675 GAS is an absolute address.
21676
21677 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
21678
21679 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
21680 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
21681
21682 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
21683
21684 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
21685 indexes. Check for -f explicitly.
21686 (search_file): Improve error message.
21687 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
21688
21689 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
21690
21691 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
21692 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
21693
21694 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
21695
21696 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
21697 * conf/i386-ieee1275.rmk: Likewise.
21698 * conf/i386-coreboot.rmk: Likewise.
21699
21700 * kern/i386/pc/startup.S (grub_stop): Remove function.
21701 * kern/i386/ieee1275/startup.S: Likewise.
21702 * kern/i386/coreboot/startup.S: Likewise.
21703 * kern/i386/misc.S (grub_stop): New function.
21704
21705 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
21706
21707 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
21708 * kern/i386/realmode.S (real_to_prot): ... to here.
21709
21710 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
21711
21712 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
21713 with `kernel.img'.
21714 (kernel_elf_SOURCES): Rename to ...
21715 (kernel_img_SOURCES): ... this.
21716 (kernel_elf_HEADERS): Rename to ...
21717 (kernel_img_HEADERS): ... this. Update all users.
21718 (kernel_elf_ASFLAGS): Rename to ...
21719 (kernel_img_ASFLAGS): ... this.
21720 (kernel_elf_CFLAGS): Rename to ...
21721 (kernel_img_CFLAGS): ... this.
21722 (kernel_elf_LDFLAGS): Rename to ...
21723 (kernel_img_LDFLAGS): ... this.
21724 * conf/i386-coreboot.rmk: Likewise.
21725 * conf/powerpc-ieee1275.rmk: Likewise.
21726
21727 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
21728 with "kernel.img".
21729
21730 2009-06-21 Pavel Roskin <proski@gnu.org>
21731
21732 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
21733 to match nested functions.
21734 * loader/sparc64/ieee1275/linux.c: Likewise.
21735
21736 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
21737
21738 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
21739
21740 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
21741 all i386 platforms.
21742
21743 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
21744
21745 Fix asm file handling on ELF, and remove workarounds.
21746
21747 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
21748 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
21749 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
21750 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
21751
21752 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
21753
21754 Load BSD ELF modules
21755
21756 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
21757 and loader/i386/bsd64.c
21758 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
21759 (FREEBSD_MODTYPE_ELF_MODULE): New definition
21760 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
21761 (grub_freebsd_load_elfmodule32): New declaration
21762 (grub_freebsd_load_elfmoduleobj64): Likewise
21763 (grub_freebsd_load_elf_meta32): Likewise
21764 (grub_freebsd_load_elf_meta64): Likewise
21765 (grub_freebsd_add_meta): Likewise
21766 (grub_freebsd_add_meta_module): Likewise
21767 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
21768 (grub_freebsd_add_meta_module): Likewise and move module-specific
21769 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
21770 (grub_cmd_freebsd): Add elf-kernel specific parts
21771 based on grub_freebsd_add_meta_module
21772 (grub_cmd_freebsd_module): Add type parsing moved from
21773 grub_freebsd_add_meta_module
21774 (grub_cmd_freebsd_module_elf): New function
21775 (cmd_freebsd_module_elf): New variable
21776 (GRUB_MOD_INIT): Register freebsd_module_elf
21777 * loader/i386/bsd32.c: New file
21778 * loader/i386/bsd64.c: Likewise
21779 * loader/i386/bsdXX.c: Likewise
21780 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
21781 (grub_elf64_load): Likewise
21782 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
21783 All users updated
21784 (grub_elf64_load_hook_t): Likewise
21785
21786 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
21787
21788 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
21789 variable.
21790 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
21791 don't write a menu entry for recovery mode.
21792
21793 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
21794
21795 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
21796 after it's no longer needed.
21797
21798 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
21799
21800 * include/grub/i386/loader.h (grub_linux_prot_size)
21801 (grub_linux_tmp_addr, grub_linux_real_addr)
21802 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
21803 GRUB_MACHINE_PCBIOS.
21804 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
21805 common grub_util_info() call to ...
21806 (generate_image): ... here.
21807 Fix use of uninitialized memory, comparison of signed with
21808 unsigned integers and memory leak.
21809 Remove bogus module address message.
21810
21811 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21812
21813 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
21814 grub_raid_register
21815 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
21816
21817 2009-06-19 Pavel Roskin <proski@gnu.org>
21818
21819 * configure.ac: Remove stray AC_MSG_CHECKING.
21820
21821 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
21822
21823 * disk/scsi.c (grub_scsi_open): use continue instead of big if
21824
21825 2009-06-18 Pavel Roskin <proski@gnu.org>
21826
21827 * conf/common.rmk: Add fs_file.mod.
21828 * disk/fs_file.c: New file.
21829 * include/grub/disk.h (enum grub_disk_dev_id): Add
21830 GRUB_DISK_DEVICE_FILE_ID.
21831
21832 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
21833
21834 Fix build with Apple's toolchain. Part 2
21835
21836 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
21837 a fake start
21838
21839 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
21840
21841 Fix build with Apple's toolchain. Part 1
21842
21843 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
21844 for long calls
21845 * configure.ac: remove a leftover AC_MSG_RESULT
21846 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
21847 Apple's toolchain
21848
21849 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
21850
21851 Fix warnings
21852
21853 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
21854 (decomp_block): initialize ch
21855 use grub_memcpy instead of memcpy
21856
21857 2009-06-17 Pavel Roskin <proski@gnu.org>
21858
21859 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
21860 version, use declarations needed to use vga_text as the startup
21861 console.
21862
21863 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
21864 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
21865 the kernel.
21866 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
21867 and grub_at_keyboard_fini(), it's done on module load and
21868 unload.
21869
21870 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
21871
21872 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
21873 file can't be found.
21874 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21875
21876 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
21877
21878 Fix newline handling
21879
21880 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
21881 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
21882 (grub_script_yylex): don't segfault on unterminated script
21883 newline terminates command and variable
21884
21885 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
21886
21887 avoid double grub_adjust_range call. Bug reported by David Simner
21888
21889 * kern/disk.c (grub_disk_write): change to raw disk access before
21890 calling disk_read
21891
21892 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
21893
21894 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
21895 spaces, for the benefit of help2man.
21896 * util/i386/efi/grub-mkimage.c (usage): Likewise.
21897
21898 2009-06-16 Pavel Roskin <proski@gnu.org>
21899
21900 * kern/i386/halt.c: Include grub/machine/init.h.
21901 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
21902
21903 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
21904
21905 * util/grub.d/30_os-prober.in: Use ${root} in the generated
21906 drivemap menuentry.
21907
21908 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
21909
21910 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
21911 `echo' command.
21912
21913 2009-06-16 Pavel Roskin <proski@gnu.org>
21914
21915 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
21916 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
21917 save %dx, we only need %dl and we never change it.
21918 * boot/i386/pc/cdboot.S: Don't set the root drive.
21919 * boot/i386/pc/pxeboot.S: Likewise.
21920 * include/grub/i386/pc/boot.h: Remove
21921 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
21922 GRUB_BOOT_MACHINE_DRIVE_CHECK.
21923 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
21924 * kern/i386/pc/init.c (make_install_device): Remove references
21925 to grub_root_drive.
21926 * kern/i386/pc/startup.S: Likewise.
21927 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
21928
21929 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
21930
21931 xnu_uuid command
21932
21933 * commands/xnu_uuid.c: new file
21934 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
21935 (xnu_uuid_mod_SOURCES): new variable
21936 (xnu_uuid_mod_CFLAGS): likewise
21937 (xnu_uuid_mod_LDFLAGS): likewise
21938 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
21939 * conf/i386-ieee1275.rmk: likewise
21940 * conf/i386-pc.rmk: likewise
21941 * conf/powerpc-ieee1275.rmk: likewise
21942 * conf/sparc64-ieee1275.rmk: likewise
21943 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
21944
21945 2009-06-16 Pavel Roskin <proski@gnu.org>
21946
21947 * configure.ac: Avoid '==' in test command, it's not portable.
21948
21949 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
21950
21951 Probe command
21952
21953 * commands/probe.c: new file
21954 * conf/common.rmk (pkglib_MODULES): add probe.mod
21955 (probe_mod_SOURCES): new variable
21956 (probe_mod_CFLAGS): likewise
21957 (probe_mod_LDFLAGS): likewise
21958 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
21959 * conf/i386-ieee1275.rmk: likewise
21960 * conf/i386-pc.rmk: likewise
21961 * conf/powerpc-ieee1275.rmk: likewise
21962 * conf/sparc64-ieee1275.rmk: likewise
21963
21964 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
21965
21966 Fix handling of string like \"hello\" and "a
21967 b"
21968
21969 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
21970 (grub_script_yylex): fix parsing of quoting, escaping and newline
21971
21972 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
21973
21974 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
21975 handling
21976
21977 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
21978
21979 * util/grub-mkconfig.in: Fix parsing of --output option.
21980
21981 2009-06-12 Pavel Roskin <proski@gnu.org>
21982
21983 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
21984 genmk.rb don't need to be generated or installed.
21985
21986 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21987
21988 * commands/i386/pc/drivemap_int13h.S: add more comments
21989
21990 2009-06-11 Pavel Roskin <proski@gnu.org>
21991
21992 * Makefile.in (uninstall): Uninstall manuals.
21993
21994 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
21995 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
21996 and update-grub_lib in two places.
21997 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
21998
21999 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
22000 a compiler warning.
22001
22002 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
22003 `entry_lo' to fix variable shadowing.
22004
22005 2009-06-11 Christian Franke <franke@computer.org>
22006
22007 * kern/misc.c (__enable_execute_stack): Add missing return type
22008 to prevent gcc warning.
22009
22010 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22011
22012 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
22013
22014 2009-06-11 Pavel Roskin <proski@gnu.org>
22015
22016 * Makefile.in: Don't rely on any scripts being executable.
22017 Always use $(SHELL) to run shell scripts.
22018
22019 * configure.ac: Always define ___main if using -nostdlib. This
22020 fixes tests on Cygwin.
22021
22022 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
22023
22024 UDF fix
22025
22026 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
22027 is in bytes and not in blocks
22028
22029 2009-06-11 Pavel Roskin <proski@gnu.org>
22030
22031 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
22032 warning.
22033
22034 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22035
22036 * util/grub.d/30_os-prober.in: Fix a comment. Source
22037 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
22038 to set the root device. Place drivemap command in the generated
22039 chain entry.
22040
22041 2009-06-11 Pavel Roskin <proski@gnu.org>
22042
22043 * configure.ac: Remove host_m32. Issues with 64-bit utilities
22044 have long been resolved.
22045
22046 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
22047
22048 * util/grub.d/10_linux.in: Capitalise "Linux".
22049
22050 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
22051
22052 2009-06-11 Pavel Roskin <proski@gnu.org>
22053
22054 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
22055 fix a gcc warning and ensure that the function won't ever exit.
22056
22057 * kern/i386/ieee1275/init.c: Add missing prototype for
22058 grub_stop_floppy().
22059
22060 * loader/ieee1275/multiboot2.c [__i386__]: Include
22061 grub/cpu/multiboot.h.
22062
22063 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
22064 casts to short - they are not portable and cause warnings. Fix
22065 use of uninitialized values in input_buf. Use ARRAY_SIZE.
22066
22067 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
22068
22069 Drivemap fixes
22070
22071 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
22072 new function
22073 (grub_get_root_biosnumber_saved): new variable
22074 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
22075 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
22076 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
22077 %dx after the call if necessary
22078 * conf/common.rmk (pkglib_MODULES): remove boot.mod
22079 (boot_mod_SOURCES): remove
22080 (boot_mod_CFLAGS): remove
22081 (boot_mod_LDFLAGS): remove
22082 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
22083 (boot_mod_SOURCES): new variable
22084 (boot_mod_CFLAGS): likewise
22085 (boot_mod_LDFLAGS): likewise
22086 * conf/i386-efi.rmk: likewise
22087 * conf/i386-ieee1275.rmk: likewise
22088 * conf/i386-pc.rmk: likewise
22089 * conf/powerpc-ieee1275.rmk: likewise
22090 * conf/sparc64-ieee1275.rmk: likewise
22091 * conf/x86_64-efi.rmk: likewise
22092 * include/grub/i386/pc/biosnum.h: new file
22093 * lib/i386/pc/biosnum.c: likewise
22094 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
22095 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
22096 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
22097
22098 2009-06-10 Pavel Roskin <proski@gnu.org>
22099
22100 * io/gzio.c (test_header): Don't reuse one buffer for all data.
22101 Use separate variables. Read only the file size at the end, but
22102 not the checksum that we don't use.
22103
22104 * kern/file.c (grub_file_read): Use void pointer for the buffer.
22105 Adjust all callers.
22106
22107 * kern/ieee1275/openfw.c: Remove libc includes.
22108 * kern/ieee1275/cmain.c: Likewise.
22109 * include/grub/ieee1275/ieee1275.h: Likewise.
22110
22111 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
22112 compiler warnings.
22113
22114 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
22115
22116 * Makefile.in: Remove all trailing whitespace.
22117 * conf/i386-pc.rmk: Likewise.
22118 * conf/powerpc-ieee1275.rmk: Likewise.
22119 * conf/sparc64-ieee1275.rmk: Likewise.
22120 * docs/grub.texi: Likewise.
22121 * docs/texinfo.tex: Likewise.
22122 * disk/fs_uuid.c: Likewise.
22123 * disk/lvm.c: Likewise.
22124 * disk/scsi.c: Likewise.
22125 * disk/ata.c: Likewise.
22126 * disk/ieee1275/ofdisk.c: Likewise.
22127 * disk/i386/pc/biosdisk.c: Likewise.
22128 * disk/host.c: Likewise.
22129 * disk/raid.c: Likewise.
22130 * disk/efi/efidisk.c: Likewise.
22131 * disk/usbms.c: Likewise.
22132 * disk/memdisk.c: Likewise.
22133 * disk/loopback.c: Likewise.
22134 * kern/powerpc/dl.c: Likewise.
22135 * kern/device.c: Likewise.
22136 * kern/dl.c: Likewise.
22137 * kern/sparc64/dl.c: Likewise.
22138 * kern/ieee1275/ieee1275.c: Likewise.
22139 * kern/term.c: Likewise.
22140 * kern/fs.c: Likewise.
22141 * kern/i386/dl.c: Likewise.
22142 * kern/i386/pc/startup.S: Likewise.
22143 * kern/i386/pc/init.c: Likewise.
22144 * kern/i386/pc/mmap.c: Likewise.
22145 * kern/i386/pc/lzo1x.S: Likewise.
22146 * kern/i386/ieee1275/init.c: Likewise.
22147 * kern/i386/realmode.S: Likewise.
22148 * kern/i386/tsc.c: Likewise.
22149 * kern/partition.c: Likewise.
22150 * kern/corecmd.c: Likewise.
22151 * kern/file.c: Likewise.
22152 * kern/efi/efi.c: Likewise.
22153 * kern/efi/init.c: Likewise.
22154 * kern/efi/mm.c: Likewise.
22155 * kern/main.c: Likewise.
22156 * kern/err.c: Likewise.
22157 * kern/env.c: Likewise.
22158 * kern/disk.c: Likewise.
22159 * kern/generic/millisleep.c: Likewise.
22160 * kern/generic/rtc_get_time_ms.c: Likewise.
22161 * kern/misc.c: Likewise.
22162 * kern/parser.c: Likewise.
22163 * genmk.rb: Likewise.
22164 * configure.ac: Likewise.
22165 * boot/i386/pc/diskboot.S: Likewise.
22166 * boot/i386/pc/pxeboot.S: Likewise.
22167 * boot/i386/pc/boot.S: Likewise.
22168 * boot/i386/pc/lnxboot.S: Likewise.
22169 * boot/i386/pc/cdboot.S: Likewise.
22170 * parttool/pcpart.c: Likewise.
22171 * video/readers/tga.c: Likewise.
22172 * video/video.c: Likewise.
22173 * video/bitmap.c: Likewise.
22174 * lib/envblk.c: Likewise.
22175 * lib/i386/setjmp.S: Likewise.
22176 * fs/xfs.c: Likewise.
22177 * fs/afs.c: Likewise.
22178 * fs/fat.c: Likewise.
22179 * fs/ntfs.c: Likewise.
22180 * fs/udf.c: Likewise.
22181 * fs/affs.c: Likewise.
22182 * fs/iso9660.c: Likewise.
22183 * fs/hfs.c: Likewise.
22184 * fs/fshelp.c: Likewise.
22185 * fs/ext2.c: Likewise.
22186 * fs/jfs.c: Likewise.
22187 * fs/reiserfs.c: Likewise.
22188 * fs/hfsplus.c: Likewise.
22189 * fs/minix.c: Likewise.
22190 * fs/cpio.c: Likewise.
22191 * fs/sfs.c: Likewise.
22192 * fs/ufs.c: Likewise.
22193 * efiemu/prepare.c: Likewise.
22194 * efiemu/loadcore_common.c: Likewise.
22195 * efiemu/runtime/efiemu.sh: Likewise.
22196 * efiemu/runtime/efiemu.S: Likewise.
22197 * efiemu/runtime/efiemu.c: Likewise.
22198 * efiemu/pnvram.c: Likewise.
22199 * efiemu/main.c: Likewise.
22200 * efiemu/i386/pc/cfgtables.c: Likewise.
22201 * efiemu/i386/loadcore64.c: Likewise.
22202 * efiemu/i386/loadcore32.c: Likewise.
22203 * efiemu/loadcore.c: Likewise.
22204 * efiemu/symbols.c: Likewise.
22205 * efiemu/mm.c: Likewise.
22206 * include/grub/autoefi.h: Likewise.
22207 * include/grub/datetime.h: Likewise.
22208 * include/grub/term.h: Likewise.
22209 * include/grub/hfs.h: Likewise.
22210 * include/grub/lvm.h: Likewise.
22211 * include/grub/i386/tsc.h: Likewise.
22212 * include/grub/i386/linux.h: Likewise.
22213 * include/grub/i386/xnu.h: Likewise.
22214 * include/grub/i386/efiemu.h: Likewise.
22215 * include/grub/i386/pc/biosdisk.h: Likewise.
22216 * include/grub/i386/pc/memory.h: Likewise.
22217 * include/grub/i386/pc/vbe.h: Likewise.
22218 * include/grub/parttool.h: Likewise.
22219 * include/grub/video.h: Likewise.
22220 * include/grub/memory.h: Likewise.
22221 * include/grub/fs.h: Likewise.
22222 * include/grub/partition.h: Likewise.
22223 * include/grub/xnu.h: Likewise.
22224 * include/grub/efi/api.h: Likewise.
22225 * include/grub/efi/pe32.h: Likewise.
22226 * include/grub/efi/memory.h: Likewise.
22227 * include/grub/multiboot.h: Likewise.
22228 * include/grub/usbdesc.h: Likewise.
22229 * include/grub/multiboot2.h: Likewise.
22230 * include/grub/acpi.h: Likewise.
22231 * include/grub/efiemu/efiemu.h: Likewise.
22232 * include/grub/disk.h: Likewise.
22233 * include/grub/ieee1275/ieee1275.h: Likewise.
22234 * include/grub/net.h: Likewise.
22235 * include/grub/machoload.h: Likewise.
22236 * include/grub/macho.h: Likewise.
22237 * include/multiboot.h: Likewise.
22238 * genmoddep.awk: Likewise.
22239 * normal/main.c: Likewise.
22240 * normal/menu_entry.c: Likewise.
22241 * normal/menu_viewer.c: Likewise.
22242 * normal/completion.c: Likewise.
22243 * normal/cmdline.c: Likewise.
22244 * normal/misc.c: Likewise.
22245 * normal/datetime.c: Likewise.
22246 * bus/usb/usbtrans.c: Likewise.
22247 * bus/usb/ohci.c: Likewise.
22248 * bus/usb/uhci.c: Likewise.
22249 * bus/usb/usb.c: Likewise.
22250 * mmap/efi/mmap.c: Likewise.
22251 * mmap/i386/pc/mmap_helper.S: Likewise.
22252 * mmap/i386/pc/mmap.c: Likewise.
22253 * mmap/i386/mmap.c: Likewise.
22254 * mmap/i386/uppermem.c: Likewise.
22255 * mmap/mmap.c: Likewise.
22256 * commands/acpi.c: Likewise.
22257 * commands/echo.c: Likewise.
22258 * commands/blocklist.c: Likewise.
22259 * commands/loadenv.c: Likewise.
22260 * commands/usbtest.c: Likewise.
22261 * commands/boot.c: Likewise.
22262 * commands/parttool.c: Likewise.
22263 * commands/search.c: Likewise.
22264 * commands/cat.c: Likewise.
22265 * commands/i386/pc/play.c: Likewise.
22266 * commands/i386/pc/drivemap.c: Likewise.
22267 * commands/i386/pc/vbeinfo.c: Likewise.
22268 * commands/i386/pc/acpi.c: Likewise.
22269 * commands/i386/pc/vbetest.c: Likewise.
22270 * commands/ls.c: Likewise.
22271 * commands/cmp.c: Likewise.
22272 * commands/test.c: Likewise.
22273 * commands/efi/acpi.c: Likewise.
22274 * commands/gptsync.c: Likewise.
22275 * commands/help.c: Likewise.
22276 * partmap/amiga.c: Likewise.
22277 * partmap/apple.c: Likewise.
22278 * partmap/acorn.c: Likewise.
22279 * partmap/pc.c: Likewise.
22280 * partmap/sun.c: Likewise.
22281 * partmap/gpt.c: Likewise.
22282 * script/sh/lexer.c: Likewise.
22283 * script/sh/function.c: Likewise.
22284 * font/font.c: Likewise.
22285 * font/font_cmd.c: Likewise.
22286 * loader/powerpc/ieee1275/linux.c: Likewise.
22287 * loader/efi/chainloader.c: Likewise.
22288 * loader/multiboot_loader.c: Likewise.
22289 * loader/macho.c: Likewise.
22290 * loader/i386/multiboot.c: Likewise.
22291 * loader/i386/linux.c: Likewise.
22292 * loader/i386/pc/linux.c: Likewise.
22293 * loader/i386/pc/multiboot2.c: Likewise.
22294 * loader/i386/pc/chainloader.c: Likewise.
22295 * loader/i386/pc/xnu.c: Likewise.
22296 * loader/i386/bsd_trampoline.S: Likewise.
22297 * loader/i386/efi/linux.c: Likewise.
22298 * loader/i386/multiboot_elfxx.c: Likewise.
22299 * loader/i386/bsd_helper.S: Likewise.
22300 * loader/i386/bsd.c: Likewise.
22301 * loader/i386/linux_trampoline.S: Likewise.
22302 * loader/i386/xnu_helper.S: Likewise.
22303 * loader/i386/xnu.c: Likewise.
22304 * loader/i386/bsd_pagetable.c: Likewise.
22305 * loader/i386/multiboot_helper.S: Likewise.
22306 * loader/xnu.c: Likewise.
22307 * loader/xnu_resume.c: Likewise.
22308 * io/gzio.c: Likewise.
22309 * term/efi/console.c: Likewise.
22310 * term/terminfo.c: Likewise.
22311 * term/ieee1275/ofconsole.c: Likewise.
22312 * term/i386/pc/serial.c: Likewise.
22313 * term/i386/pc/vesafb.c: Likewise.
22314 * term/i386/pc/vga.c: Likewise.
22315 * term/usb_keyboard.c: Likewise.
22316 * term/gfxterm.c: Likewise.
22317 * aclocal.m4: Likewise.
22318 * util/lvm.c: Likewise.
22319 * util/grub.d/30_os-prober.in: Likewise.
22320 * util/grub.d/10_hurd.in: Likewise.
22321 * util/console.c: Likewise.
22322 * util/grub-macho2img.c: Likewise.
22323 * util/grub-probe.c: Likewise.
22324 * util/hostfs.c: Likewise.
22325 * util/i386/pc/grub-mkimage.c: Likewise.
22326 * util/i386/pc/grub-setup.c: Likewise.
22327 * util/i386/efi/grub-mkimage.c: Likewise.
22328 * util/grub-mkconfig.in: Likewise.
22329 * util/raid.c: Likewise.
22330 * util/resolve.c: Likewise.
22331 * util/grub-mkdevicemap.c: Likewise.
22332 * util/grub-emu.c: Likewise.
22333 * util/getroot.c: Likewise.
22334 * util/hostdisk.c: Likewise.
22335 * util/usb.c: Likewise.
22336 * util/grub-editenv.c: Likewise.
22337 * util/misc.c: Likewise.
22338
22339 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
22340
22341 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
22342 `genparttoollist.sh'.
22343 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
22344 Add `*.sh' to the list find searches for and change `mdate.sh'
22345 to `mdate-sh'.
22346
22347 2009-06-10 Pavel Roskin <proski@gnu.org>
22348
22349 * include/grub/multiboot2.h: Provide compatibility defines for
22350 multiboot2.h.
22351 * include/multiboot2.h: Include stdint.h only if needed, using
22352 angle brackets.
22353 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
22354 grub/multiboot2.h.
22355 * loader/ieee1275/multiboot2.c: Likewise.
22356 * loader/multiboot2.c: Likewise.
22357 * loader/multiboot_loader.c: Likewise.
22358
22359 * configure.ac: Use -nostdlib when probing for the target. It
22360 should not be required to have libc for the target.
22361
22362 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
22363 they fail without libc headers for the target.
22364 * include/grub/powerpc/libgcc.h: Use weak attribute for all
22365 exports.
22366 * include/grub/sparc64/libgcc.h: Likewise. Don't use
22367 preprocessor conditionals.
22368
22369 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
22370 build system doesn't need to be aware of the tar.c internals.
22371
22372 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
22373
22374 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
22375
22376 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
22377
22378 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
22379 disk limit to 26 for IDE, Virtio, Xen and SCSI.
22380
22381 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
22382
22383 * util/i386/pc/grub-install.in: Change the error message if UUIDs
22384 aren't available if ata.mod gets used.
22385
22386 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
22387
22388 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
22389 initialising controller.
22390 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
22391
22392 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22393
22394 * util/i386/pc/grub-install.in: Add a parameter --disk-module
22395 to choose between ata and biosdisk module on i386-pc.
22396
22397 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
22398
22399 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
22400 Subclass and Programming Interface fields in terms of the 3 byte
22401 Class Code register.
22402 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
22403
22404 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
22405 interface is OHCI. Add grub_dprintf for symmetry with
22406 bus/usb/uhci.c.
22407 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
22408 interface is UHCI. Add interf variable for programming
22409 interface. Print interface with class/subclass.
22410
22411 * bus/usb/ohci.c: Set interf with correct field.
22412
22413 * bus/usb/uhci.c: Remove unneeded doubled lines.
22414 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
22415 Remove whitespace inside comment.
22416
22417 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
22418
22419 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
22420 as fallback an equivalent option without depth.
22421
22422 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
22423
22424 Not fail if unable to retrieve C/H/S on LBA disks
22425
22426 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
22427 if unable to retrieve C/H/S on LBA disks
22428
22429 2009-06-08 Pavel Roskin <proski@gnu.org>
22430
22431 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
22432 about aliasing.
22433
22434 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22435
22436 * Makefile.in (uninstall): Remove all $lib_DATA files.
22437
22438 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
22439
22440 Bugfix: install on partitionless device
22441
22442 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
22443 is a whole disk
22444
22445 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22446
22447 * Makefile.in (uninstall): Remove all $include_DATA files.
22448
22449 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22450
22451 * commands/true.c: New file. Implement the true and false commands.
22452 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
22453 (true_mod_SOURCES): New variable.
22454 (true_mod_CFLAGS): Likewise.
22455 (true_mod_LDFLAGS): Likewise.
22456
22457 2009-06-05 Colin D Bennett <colin@gibibit.com>
22458
22459 Optimized font character lookup using binary search instead of linear
22460 search. Fonts now are required to have the character index ordered by
22461 code point.
22462
22463 * font/font.c (load_font_index): Verify that fonts have ordered
22464 character indices.
22465 (find_glyph): Use binary search instead of linear search to find a
22466 character in a font.
22467
22468 2009-06-05 Michael Scherer <misc@mandriva.org>
22469
22470 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
22471 uses case sensitive btree.
22472 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
22473 only for case insensitive filesystems.
22474
22475 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
22476
22477 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
22478 * conf/common.rmk (search_mod_CFLAGS): likewise
22479
22480 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22481
22482 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
22483 compensate a compiler bug
22484
22485 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22486
22487 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
22488 instead of '\b'
22489
22490 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22491
22492 Definitions for creating asm symbols with Apple's CC
22493
22494 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
22495 [APPLE_CC] (VARIABLE): likewise
22496
22497 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22498
22499 Disable lnxboot.img when compiled
22500 with Apple's CC
22501
22502 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
22503 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
22504 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
22505 [! APPLE_CC] (CODE_LENG): skip
22506 [! APPLE_CC] (setup_sects): likewise
22507 [! APPLE_CC]: skip filling
22508
22509 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22510
22511 Address in trampolines based on 32-bit registers when compiled
22512 with Apple's CC
22513
22514 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
22515 for addresses
22516 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
22517
22518 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22519
22520 Avoid aliases when compiling with Apple's CC for PCBIOS machine
22521
22522 * kern/misc.c [APPLE_CC] (memcpy): new function
22523 [APPLE_CC] (memmove): likewise
22524 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
22525 (memcpy): define alias conditionally on !APPLE_CC
22526 (memset): likewise
22527 (abort): likewise
22528 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
22529 APPLE_CC are defined
22530 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
22531 (grub_assert_fail): make prototype conditional
22532
22533 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22534
22535 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
22536
22537 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
22538 grub-macho2img
22539 (CLEANFILES): add grub-macho2img
22540 (grub_macho2img_SOURCES): new variable
22541 * kern/i386/pc/startup.S (bss_start): new variable
22542 (bss_end): likewise
22543 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
22544 * util/grub-macho2img.c: new file
22545
22546 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22547
22548 Use objconv when compiling with Apple's CC
22549
22550 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
22551 (efiemu64.o): likewise
22552 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
22553 when compiling with Apple's CC
22554 (efiemu64_s.o): likewise
22555 * configure.ac: check for objconv when compiling with Apple's CC
22556 * genmk.rb: use objconv for modules when compiled with Apple's CC
22557
22558 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22559
22560 Define segment as well as section when compiling with
22561 Apple's CC
22562
22563 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
22564 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
22565 (efiemu_convert_pointer): likewise
22566 (efiemu_set_virtual_address_map): likewise
22567 (efiemu_convert_pointer): likewise
22568 (efiemu_getcrc32): likewise
22569 (init_crc32_table): likewise
22570 (reflect): likewise
22571 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
22572 (GRUB_MOD_DEP): likewise
22573
22574 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22575
22576 Allow a compilation without -mcmodel=large
22577
22578 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
22579 when compiled without -mcmodel=large
22580 (filter_memory_map): remove memory post 4 GiB when compiled
22581 without -mcmodel=large
22582 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
22583 TARGET_CFLAGS when -mcmodel=large isn't supported
22584
22585 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22586
22587 Remove nested functions in efiemu core
22588
22589 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
22590
22591 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22592
22593 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
22594
22595 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
22596 temporary storage
22597 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
22598 using Apple's CC
22599 (grub_cpu_is_tsc_supported): likewise
22600 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
22601
22602 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22603
22604 Absolute addressing through constant with Apple's cc
22605
22606 * kern/i386/pc/startup.S: Define necessary constants
22607 and address through it when using ABS with Apple's CC
22608 * boot/i386/pc/diskboot.S: likewise
22609 * boot/i386/pc/boot.S: likewise
22610 * boot/i386/pc/lnxboot.S: likewise
22611 * boot/i386/pc/cdboot.S: likewise
22612 * mmap/i386/pc/mmap_helper.S: likewise
22613 * commands/i386/pc/drivemap_int13h.S: likewise
22614
22615 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22616
22617 Check if compiler is apple cc
22618
22619 * Makefile.in (ASFLAGS): new variable
22620 (TARGET_ASFLAGS): likewise
22621 (TARGET_MODULE_FORMAT): likewise
22622 (TARGET_APPLE_CC): likewise
22623 (OBJCONV): likewise
22624 (TARGET_IMG_CFLAGS): likewise
22625 (TARGET_CPPFLAGS): add includedir
22626 * configure.ac: call grub_apple_cc and grub_apple_target_cc
22627 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
22628 Check for linker script only if compiler isn't Apple's CC
22629 (TARGET_MODULE_FORMAT): set
22630 (TARGET_APPLE_CC): likewise
22631 (TARGET_ASFLAGS): likewise
22632 (ASFLAGS): likewise
22633 Check for objcopy only if compiler isn't Apple's CC
22634 Check for BSS symbol only if compiler isn't Apple's CC
22635 * genmk.rb: adapt nm options if we use Apple's utils
22636 * aclocal.m4 (grub_apple_cc): new test
22637 (grub_apple_target_cc): likewise
22638
22639 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22640
22641 Simplify sed expressions and improve awk
22642
22643 * Makefile.in (install-local): simplify sed expression
22644 * gencmdlist.sh: likewise
22645 * genmoddep.awk: avoid adding module as a dependency of itself
22646
22647 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22648
22649 Add missing start symbols
22650
22651 * boot/i386/pc/boot.S: add start
22652 * boot/i386/pc/pxeboot.S: likewise
22653
22654 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22655
22656 Fix wrong assumptions with grub-mkimage on EFI
22657
22658 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
22659 (relocate_addresses): consider both r_addend and value at offset
22660 (make_mods_section): zerofill modinfo and header
22661 (convert_elf): write prefix here
22662
22663 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22664
22665 Use .asciz instead of .string
22666
22667 * i386/pc/diskboot.S: use .asciz instead of .string
22668 * i386/pc/boot.S: likewise
22669 * include/grub/dl.h (GRUB_MOD_DEP): likewise
22670 (GRUB_MOD_NAME): likewise
22671
22672 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22673
22674 gfxpayload support
22675
22676 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
22677 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
22678 (grub_video_setup): remove
22679 (grub_video_set_mode): new prototype
22680 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
22681 (vid_mode): remove
22682 (linux_vesafb_res): compile only on PCBIOS
22683 (grub_linux_boot): support gfxpayload
22684 * loader/i386/pc/xnu.c (video_hook): new function
22685 (grub_xnu_set_video): support gfxpayload
22686 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
22687 (DEFAULT_VIDEO_HEIGHT): likewise
22688 (DEFAULT_VIDEO_FLAGS): likewise
22689 (DEFAULT_VIDEO_MODE): new definition
22690 (video_hook): new function
22691 (grub_gfxterm_init): use grub_video_set_mode
22692 * util/grub.d/30_os-prober.in: remove explicit modesetting before
22693 loading xnu
22694 * video/video.c (grub_video_setup): removed
22695 (grub_video_set_mode): new function based on grub_gfxterm_init and
22696 grub_video_setup
22697
22698 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22699
22700 Avoid calling biosdisk in drivemap
22701
22702 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
22703 (revparse_biosdisk): likewise
22704 (list_mappings): derive name from id directly
22705 (grub_cmd_drivemap): use tryparse_diskstring
22706
22707 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22708
22709 Script fixes
22710
22711 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
22712 (grub_lexer_param): add tokenonhold
22713 (grub_script_create_cmdline): remove cmdline. All callers updated
22714 (grub_script_function_create): make functionname
22715 grub_script_arg. All callers updated
22716 (grub_script_execute_argument_to_string): new prototype
22717 * kern/parser.c (state_transitions): reorder
22718 (grub_parser_cmdline_state): fix a bug and make more compact
22719 * script/sh/execute.c (grub_script_execute_argument_to_string):
22720 make global
22721 (grub_script_execute_cmdline): use new format
22722 * script/sh/function.c (grub_script_function_create): make functionname
22723 grub_script_arg. All callers updated
22724 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
22725 (grub_script_yylex): remove
22726 (grub_script_yylex2): renamed to ...
22727 (grub_script_yylex): ...renamed
22728 parse the expressions like a${b}c
22729 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
22730 (GRUB_PARSER_TOKEN_VAR): remove
22731 (GRUB_PARSER_TOKEN_NAME): likewise
22732 ("if"): declare as typeless
22733 ("while"): likewise
22734 ("function"): likewise
22735 ("else"): likewise
22736 ("then"): likewise
22737 ("fi"): likewise
22738 (text): remove
22739 (argument): likewise
22740 (script): accept empty scripts and make exit on error
22741 (arguments): use GRUB_PARSER_TOKEN_ARG
22742 (function): likewise
22743 (command): move error handling to script
22744 (menuentry): move grub_script_lexer_ref before
22745 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
22746 argument. All callers updated
22747
22748 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
22749
22750 Prevent GRUB from probing floppies during boot.
22751
22752 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
22753 * commands/search.c (options): Add --no-floppy.
22754 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
22755 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
22756 --no-floppy when searching for UUIDs.
22757
22758 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
22759
22760 Simplify the code duplication in commands/search.c.
22761
22762 * commands/search.c (search_label, search_fs_uuid): Merge into ...
22763 (search_fs): ... this. Update all users.
22764
22765 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
22766
22767 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
22768
22769 2009-05-28 Pavel Roskin <proski@gnu.org>
22770
22771 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
22772 Remove the original symlink explicitly.
22773
22774 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
22775 just one slash. That's how grub_fshelp_find_file() does it.
22776
22777 2009-05-26 Pavel Roskin <proski@gnu.org>
22778
22779 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
22780 to `str'.
22781
22782 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
22783 possibly unused.
22784
22785 2009-05-25 Christian Franke <franke@computer.org>
22786
22787 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
22788 register.
22789 (grub_atapi_identify): Add wait after drive select.
22790 (grub_ata_identify): Do more strict status register check before
22791 calling grub_atapi_identify (). Suppress error message if status
22792 register is 0x00 after command failure. Add status register
22793 check after PIO read to avoid bogus identify due to stuck DRQ.
22794 Thanks to Pavel Roskin for testing.
22795 (grub_device_initialize): Remove unsafe status register check.
22796 Thanks to 'phcoder' for problem report and patch.
22797 Prevent sign extension in debug message.
22798
22799 2009-05-23 Colin D Bennett <colin@gibibit.com>
22800
22801 Cleaned up `include/grub/normal.h'. Grouped prototypes by
22802 definition file, and functions defined in `normal/menu.c' have had
22803 their prototypes moved to `include/grub/menu.h' for consistency.
22804
22805 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
22806 from normal.h.
22807 (grub_menu_get_entry): Likewise.
22808 (grub_menu_get_timeout): Likewise.
22809 (grub_menu_set_timeout): Likewise.
22810 (grub_menu_execute_entry): Likewise.
22811 (grub_menu_execute_with_fallback): Likewise.
22812 (grub_menu_entry_run): Likewise.
22813
22814 * include/grub/normal.h: Re-ordered and grouped function
22815 prototypes by file that the function is defined in.
22816 (grub_menu_execute_callback): Removed; moved to menu.h.
22817 (grub_menu_get_entry): Likewise.
22818 (grub_menu_get_timeout): Likewise.
22819 (grub_menu_set_timeout): Likewise.
22820 (grub_menu_execute_entry): Likewise.
22821 (grub_menu_execute_with_fallback): Likewise.
22822 (grub_menu_entry_run): Likewise.
22823 (grub_menu_addentry): Renamed from this ...
22824 (grub_normal_add_menu_entry): ... to this.
22825
22826 * normal/main.c (grub_menu_addentry): Renamed from this ...
22827 (grub_normal_add_menu_entry): ... to this.
22828
22829 * script/sh/execute.c (grub_script_execute_menuentry): Update
22830 reference to renamed grub_menu_addentry function.
22831
22832 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
22833
22834 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
22835
22836 2009-05-22 Pavel Roskin <proski@gnu.org>
22837
22838 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
22839 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
22840 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
22841 compiling for the i386 targets, but not for the utilities.
22842
22843 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
22844 to grub_uint8_t.
22845 (grub_root_drive): Likewise.
22846 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
22847 remove alignment.
22848 (grub_root_drive): Change size to byte.
22849 (grub_start_addr): Remove.
22850 (grub_end_addr): Likewise.
22851 (grub_apm_bios_info): Likewise.
22852
22853 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
22854
22855 * normal/i386: Remove.
22856 * normal/powerpc: Likewise.
22857 * normal/sparc64: Likewise.
22858 * normal/x86_64: Likewise.
22859
22860 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
22861
22862 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
22863 * loader/i386/linux_trampoline.S: Fix indentation
22864 * loader/i386/xnu_helper.S: Likewise
22865
22866 2009-05-18 Colin D Bennett <colin@gibibit.com>
22867
22868 Display error messages when parsing a Lua statement fails.
22869 Previously, executing a syntactically invalid statement like
22870 ")foo" or "bar;" would silently fail.
22871
22872 * script/lua/grub_main.c (handle_lua_error): New function.
22873 (grub_lua_parse_line): Improved reporting of Lua parser and
22874 execution errors.
22875
22876 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22877
22878 Remove -Werror which causes build to fail on some systems
22879
22880 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
22881 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
22882 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
22883
22884 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22885
22886 trampoline for linux on 64-bit platform
22887
22888 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
22889 loader/i386/efi/linux_trampoline.S
22890 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
22891 declaration
22892 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
22893 here
22894 * loader/i386/linux_trampoline.S: moved here
22895 * loader/i386/efi/linux.c (allocate_pages): reserve space for
22896 trampoline
22897 (jumpvector): removed
22898 (grub_linux_trampoline_start): new declaration
22899 (grub_linux_trampoline_end): likewise
22900 (grub_linux_boot): use trampoline when on 64-bit platform
22901 * loader/i386/linux.c: likewise
22902
22903 2009-05-16 Pavel Roskin <proski@gnu.org>
22904
22905 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
22906 const to avoid a warning.
22907 (grub_lua_setenv): Likewise.
22908 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
22909 lmsg to fix a warning.
22910
22911 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
22912
22913 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
22914 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
22915 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
22916 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
22917 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
22918 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
22919 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
22920 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
22921
22922 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
22923
22924 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
22925
22926 2009-05-16 Bean <bean123ch@gmail.com>
22927
22928 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
22929 (lua_mod_SOURCES): New variable.
22930 (lua_mod_CFLAGS): Likewise.
22931 (lua_mod_LDFLAGS): Likewise.
22932
22933 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
22934 (setjmp_mod_SOURCES): New variable.
22935 (setjmp_mod_CFLAGS): Likewise.
22936 (setjmp_LDFLAGS): Likewise.
22937
22938 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
22939 (setjmp_mod_SOURCES): New variable.
22940 (setjmp_mod_CFLAGS): Likewise.
22941 (setjmp_LDFLAGS): Likewise.
22942
22943 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
22944 (setjmp_mod_SOURCES): New variable.
22945 (setjmp_mod_CFLAGS): Likewise.
22946 (setjmp_LDFLAGS): Likewise.
22947
22948 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
22949 (setjmp_mod_SOURCES): New variable.
22950 (setjmp_mod_CFLAGS): Likewise.
22951 (setjmp_LDFLAGS): Likewise.
22952
22953 * normal/i386/setjmp.S: Moved from here ...
22954 * lib/i386/setjmp.S: ... Moved here
22955 * normal/x86_64/setjmp.S: Moved from here ...
22956 * lib/x86_64/setjmp.S: ... Moved here
22957 * normal/powerpc/setjmp.S: Moved from here ...
22958 * lib/powerpc/setjmp.S: ... Moved here
22959 * normal/sparc64/setjmp.S: Moved from here ...
22960 * lib/sparc64/setjmp.S: ... Moved here
22961
22962 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
22963 returns_twice in mingw.
22964
22965 * script/lua/grub_lib.c: New file.
22966 * script/lua/grub_lib.h: Likewise.
22967 * script/lua/grub_lua.h: Likewise.
22968 * script/lua/grub_main.c: Likewise.
22969 * script/lua/lapi.c: Likewise.
22970 * script/lua/lapi.h: Likewise.
22971 * script/lua/lauxlib.c: Likewise.
22972 * script/lua/lauxlib.h: Likewise.
22973 * script/lua/lbaselib.c: Likewise.
22974 * script/lua/lcode.c: Likewise.
22975 * script/lua/lcode.h: Likewise.
22976 * script/lua/ldblib.c: Likewise.
22977 * script/lua/ldebug.c: Likewise.
22978 * script/lua/ldebug.h: Likewise.
22979 * script/lua/ldo.c: Likewise.
22980 * script/lua/ldo.h: Likewise.
22981 * script/lua/ldump.c: Likewise.
22982 * script/lua/lfunc.c: Likewise.
22983 * script/lua/lfunc.h: Likewise.
22984 * script/lua/lgc.c: Likewise.
22985 * script/lua/lgc.h: Likewise.
22986 * script/lua/linit.c: Likewise.
22987 * script/lua/liolib.c: Likewise.
22988 * script/lua/llex.c: Likewise.
22989 * script/lua/llex.h: Likewise.
22990 * script/lua/llimits.h: Likewise.
22991 * script/lua/lmathlib.c: Likewise.
22992 * script/lua/lmem.c: Likewise.
22993 * script/lua/lmem.h: Likewise.
22994 * script/lua/loadlib.c: Likewise.
22995 * script/lua/lobject.c: Likewise.
22996 * script/lua/lobject.h: Likewise.
22997 * script/lua/lopcodes.c: Likewise.
22998 * script/lua/lopcodes.h: Likewise.
22999 * script/lua/loslib.c: Likewise.
23000 * script/lua/lparser.c: Likewise.
23001 * script/lua/lparser.h: Likewise.
23002 * script/lua/lstate.c: Likewise.
23003 * script/lua/lstate.h: Likewise.
23004 * script/lua/lstring.c: Likewise.
23005 * script/lua/lstring.h: Likewise.
23006 * script/lua/lstrlib.c: Likewise.
23007 * script/lua/ltable.c: Likewise.
23008 * script/lua/ltable.h: Likewise.
23009 * script/lua/ltablib.c: Likewise.
23010 * script/lua/ltm.c: Likewise.
23011 * script/lua/ltm.h: Likewise.
23012 * script/lua/lua.h: Likewise.
23013 * script/lua/luaconf.h: Likewise.
23014 * script/lua/lualib.h: Likewise.
23015 * script/lua/lundump.c: Likewise.
23016 * script/lua/lundump.h: Likewise.
23017 * script/lua/lvm.c: Likewise.
23018 * script/lua/lvm.h: Likewise.
23019 * script/lua/lzio.c: Likewise.
23020 * script/lua/lzio.h: Likewise.
23021
23022 2009-05-16 Bean <bean123ch@gmail.com>
23023
23024 * include/grub/kernel.h (grub_module_header_types): Add type
23025 OBJ_TYPE_CONFIG.
23026
23027 * kern/main.c (grub_load_config): New function.
23028 (grub_main): Call grub_load_config to read boot config.
23029
23030 * grub-mkimage (generate_image): New parameter config_path.
23031 (options): New option --config.
23032 (main): Parse --config option, and pass it to generate_image.
23033
23034 2009-05-14 Christian Franke <franke@computer.org>
23035
23036 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
23037 This fixes build on Cygwin.
23038
23039 2009-05-14 Pavel Roskin <proski@gnu.org>
23040
23041 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
23042 jump. This saves two bytes, so the typical case of 2 swapped
23043 drives would fit 32 bytes.
23044
23045 2009-05-13 Pavel Roskin <proski@gnu.org>
23046
23047 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
23048 grub_uint32_t to avoid a warning.
23049
23050 * loader/i386/linux.c (allocate_pages): When assigning
23051 real_mode_mem, cast through grub_size_t to fix a warning. The
23052 code already makes sure that the value would fit a pointer.
23053 (grub_linux_setup_video): Cast render_target->data to
23054 grub_size_t to fix a warning.
23055
23056 2009-05-13 Javier Martín <lordhabbit@gmail.com>
23057
23058 * commands/i386/pc/drivemap.c: New file - implement drivemap
23059 command.
23060 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
23061 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
23062
23063 2009-05-13 Pavel Roskin <proski@gnu.org>
23064
23065 * util/i386/pc/grub-setup.c (setup): Remove unused variable
23066 embedding_area_exists.
23067
23068 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
23069
23070 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
23071 it easier to understand / work with.
23072 Improve warning messages for cases where there's no embedding area,
23073 or when it is too small (or core.img too large).
23074
23075 2009-05-13 Pavel Roskin <proski@gnu.org>
23076
23077 * loader/i386/pc/multiboot2.c: Add necessary includes for
23078 grub_multiboot2_real_boot().
23079
23080 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
23081 PX record is always little-endian. We only need the lower 2
23082 bytes of the mode.
23083
23084 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
23085 facilitate code reuse.
23086 (grub_cpio_mount): Use "struct head", not a char buffer. This
23087 fixes a warning reported by gcc 4.4.
23088
23089 * kernel/disk.c (grub_disk_read): Use void pointer for the
23090 buffer.
23091 (grub_disk_write): Use const void pointer for the buffer.
23092 Adjust all callers. Remove unnecessary casts.
23093
23094 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
23095
23096 * util/i386/pc/grub-install.in: Update copyright year.
23097
23098 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23099
23100 gptsync
23101
23102 * commands/gptsync.c: new file
23103 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
23104 (gptsync_mod_SOURCES): new variable
23105 (gptsync_mod_CFLAGS): likewise
23106 (gptsync_mod_LDFLAGS): likewise
23107 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
23108 new definition
23109 (GRUB_PC_PARTITION_TYPE_HFS): likewise
23110 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
23111 * conf/i386-ieee1275.rmk: likewise
23112 * conf/i386-pc.rmk: likewise
23113 * conf/powerpc-ieee1275.rmk: likewise
23114
23115 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23116
23117 Fixed grub-emu
23118
23119 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
23120 (grub_dl_ref): likewise
23121
23122 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
23123
23124 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
23125 split in two functions (one for msdos and one for gpt).
23126
23127 2009-05-08 Pavel Roskin <proski@gnu.org>
23128
23129 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
23130 not modified.
23131
23132 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
23133 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
23134 Initialize them with -1. Add sanity check for bad1. Eliminate
23135 nerr variable.
23136
23137 2009-05-08 David S. Miller <davem@davemloft.net>
23138
23139 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
23140
23141 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
23142
23143 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
23144 existence.
23145
23146 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
23147
23148 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23149 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
23150
23151 2009-05-05 David S. Miller <davem@davemloft.net>
23152
23153 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
23154
23155 2009-05-05 Pavel Roskin <proski@gnu.org>
23156
23157 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
23158 of grub_dl_ref() and grub_dl_unref().
23159 * commands/parttool.c: Remove preprocessor conditionals around
23160 grub_dl_ref() and grub_dl_unref().
23161 * fs/affs.c: Likewise.
23162 * fs/afs.c: Likewise.
23163 * fs/cpio.c: Likewise.
23164 * fs/ext2.c: Likewise.
23165 * fs/fat.c: Likewise.
23166 * fs/hfs.c: Likewise.
23167 * fs/hfsplus.c: Likewise.
23168 * fs/iso9660.c: Likewise.
23169 * fs/jfs.c: Likewise.
23170 * fs/minix.c: Likewise.
23171 * fs/ntfs.c: Likewise.
23172 * fs/reiserfs.c: Likewise.
23173 * fs/sfs.c: Likewise.
23174 * fs/udf.c: Likewise.
23175 * fs/ufs.c: Likewise.
23176 * fs/xfs.c: Likewise.
23177 * include/grub/dl.h: Likewise.
23178 * loader/xnu.c: Likewise.
23179
23180 2009-05-04 Pavel Roskin <proski@gnu.org>
23181
23182 * commands/acpi.c: Remove unused variable my_mod.
23183 * partmap/amiga.c: Likewise.
23184 * partmap/apple.c: Likewise.
23185 * partmap/gpt.c: Likewise.
23186 * partmap/pc.c: Likewise.
23187 * partmap/sun.c: Likewise.
23188 * term/gfxterm.c: Likewise.
23189 * term/i386/pc/vesafb.c: Likewise.
23190 * term/i386/pc/vga.c: Likewise.
23191
23192 2009-05-04 David S. Miller <davem@davemloft.net>
23193
23194 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
23195 pointer args to grub_ieee1275_get_property().
23196
23197 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
23198
23199 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
23200 devices, and do not traverse down under controller nodes.
23201
23202 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
23203 (grub_ofdisk_open): Use it to un-escape "," characters.
23204 * kern/disk.c (find_part_sep): New.
23205 (grub_disk_open): Use it to find the first non-escaped ','
23206 character in the disk name.
23207 * util/ieee1275/devicemap.c (escape_of_path): New.
23208 (grub_util_emit_devicemap_entry): Use it.
23209 * util/sparc64/ieee1275/grub-install.in: Update script to
23210 strip partition specifiers properly by not triggering on
23211 '\' escaped ',' characters.
23212
23213 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23214
23215 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
23216 to 0x300.
23217 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
23218 resolutions.
23219 (linux_vesafb_modes): Add a lot of additional modes to the list (based
23220 on documentation from Wikipedia).
23221
23222 2009-05-04 Pavel Roskin <proski@gnu.org>
23223
23224 * disk/ata.c: Spelling fixes.
23225 * disk/raid.c: Likewise.
23226 * disk/usbms.c: Likewise.
23227 * disk/dmraid_nvidia.c: Likewise.
23228 * kern/ieee1275/openfw.c: Likewise.
23229 * kern/ieee1275/init.c: Likewise.
23230 * kern/ieee1275/cmain.c: Likewise.
23231 * boot/i386/pc/cdboot.S: Likewise.
23232 * video/readers/png.c: Likewise.
23233 * video/i386/pc/vbe.c: Likewise.
23234 * fs/udf.c: Likewise.
23235 * fs/hfs.c: Likewise.
23236 * fs/reiserfs.c: Likewise.
23237 * efiemu/runtime/efiemu.c: Likewise.
23238 * efiemu/main.c: Likewise.
23239 * efiemu/mm.c: Likewise.
23240 * include/grub/elf.h: Likewise.
23241 * include/grub/xnu.h: Likewise.
23242 * include/grub/usbdesc.h: Likewise.
23243 * include/grub/usb.h: Likewise.
23244 * include/grub/script_sh.h: Likewise.
23245 * include/grub/lib/LzmaEnc.h: Likewise.
23246 * include/grub/efiemu/efiemu.h: Likewise.
23247 * include/grub/command.h: Likewise.
23248 * normal/menu.c: Likewise.
23249 * normal/main.c: Likewise.
23250 * normal/datetime.c: Likewise.
23251 * bus/usb/uhci.c: Likewise.
23252 * mmap/i386/uppermem.c: Likewise.
23253 * mmap/mmap.c: Likewise.
23254 * commands/acpi.c: Likewise.
23255 * commands/test.c: Likewise.
23256 * partmap/apple.c: Likewise.
23257 * font/font.c: Likewise.
23258 * loader/sparc64/ieee1275/linux.c: Likewise.
23259 * loader/macho.c: Likewise.
23260 * loader/i386/bsd_trampoline.S: Likewise.
23261 * loader/i386/bsd.c: Likewise.
23262 * loader/xnu.c: Likewise.
23263 * term/i386/pc/vesafb.c: Likewise.
23264 * term/usb_keyboard.c: Likewise.
23265 * util/resolve.c: Likewise.
23266 * util/getroot.c: Likewise.
23267
23268 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
23269
23270 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
23271
23272 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23273
23274 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
23275 build error.
23276
23277 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23278
23279 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
23280 parameter only available on BIOS.
23281
23282 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23283
23284 Removed wrong semicolon in declaration
23285
23286 * grub/misc.h (grub_dprintf): remove semicolon
23287
23288 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23289
23290 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
23291 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
23292 is done by grub_cmd_linux() now).
23293 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
23294 restore video to text mode.
23295 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
23296 indicates lack of "vga=" parameter. "vga=0" is mapped to
23297 `GRUB_LINUX_VID_MODE_NORMAL'.
23298
23299 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
23300
23301 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
23302 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
23303 and `normal/script.c'. Add `kern/rescue_reader.c',
23304 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
23305 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
23306 `grub_script.tab.c'.
23307
23308 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23309 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23311 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
23312 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23313
23314 * Makefile.in: Remove duplicated 2008 in Copyright line.
23315
23316 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23317
23318 * util/misc.c (grub_util_warn): New function. Emits a warning
23319 unconditionally.
23320 * include/grub/util/misc.h (grub_util_warn): New declaration.
23321
23322 * util/i386/pc/grub-install.in: Understand --force and pass it down
23323 to grub-setup.
23324
23325 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
23326 down to setup().
23327 (setup): Improve error messages and add warnings when requested to
23328 install in odd layouts. Refuse to install using blocklists unless
23329 --force was set.
23330
23331 2009-05-04 martin f. krafft <madduck@madduck.net>
23332
23333 * disk/raid.c (grub_raid_scan_device): Improve debug message.
23334
23335 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23336
23337 Updated copyright year
23338
23339 * fs/hfsplus.c: updated copyright year
23340
23341 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23342
23343 HFS+ UUID
23344
23345 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
23346 in the space previously used by unused3
23347 (grub_hfsplus_uuid): new function
23348 (grub_hfsplus_fs): added uuid field
23349
23350 2009-05-03 Pavel Roskin <proski@gnu.org>
23351
23352 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
23353 suppress warnings. It's no longer needed.
23354 * disk/host.c: Likewise.
23355 * disk/ata_pthru.c: Likewise.
23356 * disk/loopback.c: Likewise.
23357 * hook/datehook.c: Likewise.
23358 * parttool/pcpart.c: Likewise.
23359 * fs/i386/pc/pxe.c: Likewise.
23360 * fs/ntfscomp.c: Likewise.
23361 * efiemu/main.c: Likewise.
23362 * mmap/mmap.c: Likewise.
23363 * commands/crc.c: Likewise.
23364 * commands/hexdump.c: Likewise.
23365 * commands/hdparm.c: Likewise.
23366 * commands/acpi.c: Likewise.
23367 * commands/echo.c: Likewise.
23368 * commands/minicmd.c: Likewise.
23369 * commands/blocklist.c: Likewise.
23370 * commands/memrw.c: Likewise.
23371 * commands/loadenv.c: Likewise.
23372 * commands/usbtest.c: Likewise.
23373 * commands/lsmmap.c: Likewise.
23374 * commands/boot.c: Likewise.
23375 * commands/parttool.c: Likewise.
23376 * commands/configfile.c: Likewise.
23377 * commands/search.c: Likewise.
23378 * commands/ieee1275/suspend.c: Likewise.
23379 * commands/cat.c: Likewise.
23380 * commands/i386/pc/pxecmd.c: Likewise.
23381 * commands/i386/pc/play.c: Likewise.
23382 * commands/i386/pc/halt.c: Likewise.
23383 * commands/i386/pc/vbeinfo.c: Likewise.
23384 * commands/i386/pc/vbetest.c: Likewise.
23385 * commands/lspci.c: Likewise.
23386 * commands/date.c: Likewise.
23387 * commands/handler.c: Likewise.
23388 * commands/ls.c: Likewise.
23389 * commands/test.c: Likewise.
23390 * commands/cmp.c: Likewise.
23391 * commands/efi/loadbios.c: Likewise.
23392 * commands/efi/fixvideo.c: Likewise.
23393 * commands/halt.c: Likewise.
23394 * commands/help.c: Likewise.
23395 * commands/reboot.c: Likewise.
23396 * hello/hello.c: Likewise.
23397 * script/sh/main.c: Likewise.
23398 * loader/xnu.c: Likewise.
23399 * term/terminfo.c: Likewise.
23400 * term/i386/pc/serial.c: Likewise.
23401 * term/usb_keyboard.c: Likewise.
23402
23403 2009-05-03 David S. Miller <davem@davemloft.net>
23404
23405 * normal/menu.c: Include grub/parser.h
23406
23407 2009-05-03 Pavel Roskin <proski@gnu.org>
23408
23409 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
23410 not char*.
23411 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
23412 Suggested by Javier Martín <lordhabbit@gmail.com>
23413
23414 * util/i386/pc/grub-mkrescue.in: Allow for the case when
23415 efiemu??.o doesn't exist.
23416 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
23417 copying.
23418
23419 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
23420
23421 FreeBSD 64-bit support
23422
23423 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
23424 and loader/i386/bsd_trampoline.S
23425 (bsd_mod_ASFLAGS): new variable
23426 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
23427 (FREEBSD_MODTYPE_KERNEL64): likewise
23428 (grub_bsd64_trampoline_start): likewise
23429 (grub_bsd64_trampoline_end): likewise
23430 (grub_bsd64_trampoline_selfjump): likewise
23431 (grub_bsd64_trampoline_gdt): likewise
23432 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
23433 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
23434 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
23435 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
23436 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
23437 of "attrib" member
23438 * loader/i386/bsd_pagetable.c: new file
23439 * loader/i386/bsd_trampoline.S: likewise
23440 * loader/i386/bsd.c (ALIGN_QWORD): new macro
23441 (ALIGN_VAR): likewise
23442 (entry_hi): new variable
23443 (kern_end_mdofs): likewise
23444 (is_64bit): likewise
23445 (grub_freebsd_add_meta): use ALIGN_VAR
23446 (grub_e820_mmap): new declaration
23447 (grub_freebsd_add_mmap): new function
23448 (grub_freebsd_add_meta_module): support 64 bit kernels
23449 (grub_freebsd_list_modules): use ALIGN_VAR
23450 (gdt_descriptor): new declaration
23451 (grub_freebsd_boot): support 64 bit kernels
23452 (grub_bsd_elf64_hook): new function
23453 (grub_bsd_load_elf): support elf64
23454
23455 2009-05-03 Bean <bean123ch@gmail.com>
23456
23457 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
23458 after we get the result of if statement.
23459
23460 2009-05-03 Bean <bean123ch@gmail.com>
23461
23462 * Makefile.in (enable_efiemu): New variable.
23463
23464 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
23465 set.
23466 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
23467 path.
23468 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
23469 path, add -mno-red-zone option.
23470 (efiemu64_s.o): Likewise.
23471 (efiemu64.o): Use macro $^ for source file.
23472
23473 * configure.ac (--enable-efiemu): New option.
23474
23475 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23476
23477 xnu support
23478
23479 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
23480 (pkglib_MODULES): add xnu.mod
23481 (xnu_mod_SOURCES): new variable
23482 (xnu_mod_CFLAGS): likewise
23483 (xnu_mod_LDFLAGS): likewise
23484 (xnu_mod_ASFLAGS): likewise
23485 * conf/i386-pc.rmk: likewise
23486 * conf/x86_64-efi.rmk: likewise
23487 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
23488 new declaration
23489 * include/grub/i386/macho.h: new file
23490 * include/grub/i386/xnu.h: likewise
23491 * include/grub/macho.h: likewise
23492 * include/grub/machoload.h: likewise
23493 * include/grub/x86_64/macho.h: likewise
23494 * include/grub/x86_64/xnu.h: likewise
23495 * include/grub/xnu.h: likewise
23496 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
23497 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
23498 * loader/i386/efi/xnu.c: new file
23499 * loader/i386/pc/xnu.c: likewise
23500 * loader/i386/xnu.c: likewise
23501 * loader/i386/xnu_helper.S: likewise
23502 * loader/macho.c: likewise
23503 * loader/xnu.c: likewise
23504 * loader/xnu_resume.c: likewise
23505 * util/grub-dumpdevtree: likewise
23506 * include/grub/i386/pit.h: include grub/err.h
23507 (grub_pit_wait): export
23508 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
23509
23510 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
23511
23512 Efiemu
23513
23514 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
23515 _linux_efi, linux_efi.
23516 new files in grub-emu
23517 new targets efiemu32.o and efiemu64.o
23518 * loader/linux_normal_efiemu.c: likewise
23519 * loader/i386/efi/linux.c: added preliminary efiemu support
23520 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
23521 files to copy
23522 * include/grub/autoefi.h: new file
23523 * include/grub/i386/efiemu.h: likewise
23524 * include/grub/i386/pc/efiemu.h: likewise
23525 * include/grub/efi/api.h: add LL suffix when necessary
23526 new definitions relating to tables
23527 * include/grub/efiemu/efiemu.h: new file
23528 * include/grub/efiemu/runtime.h: likewise
23529 * efiemu/prepare.c: likewise
23530 * efiemu/loadcore_common.c: likewise
23531 * efiemu/loadcore64.c: likewise
23532 * efiemu/runtime/efiemu.sh: likewise
23533 * efiemu/runtime/efiemu.S: likewise
23534 * efiemu/runtime/efiemu.c: likewise
23535 * efiemu/runtime/config.h: likewise
23536 * efiemu/prepare32.c: likewise
23537 * efiemu/main.c: likewise
23538 * efiemu/modules/pnvram.c: likewise
23539 * efiemu/modules/i386: likewise
23540 * efiemu/modules/i386/pc: likewise
23541 * efiemu/modules/acpi.c: likewise
23542 * efiemu/i386/pc/cfgtables.c: likewise
23543 * efiemu/i386/loadcore64.c: likewise
23544 * efiemu/i386/loadcore32.c: likewise
23545 * efiemu/prepare64.c: likewise
23546 * efiemu/loadcore.c: likewise
23547 * efiemu/symbols.c: likewise
23548 * efiemu/mm.c: likewise
23549 * efiemu/loadcore32.c: likewise
23550
23551 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
23552
23553 ACPI spoofing
23554
23555 * commands/acpi.c: new file
23556 * commands/i386/pc/acpi.c: likewise
23557 * commands/efi/acpi.c: likewise
23558 * include/grub/acpi.h: likewise
23559 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
23560 (acpi_mod_SOURCES): new variable
23561 (acpi_mod_CFLAGS): likewise
23562 (acpi_mod_LDFLAGS): likewise
23563 * conf/i386-efi.rmk: likewise
23564 * conf/x86_64-efi.rmk: likewise
23565
23566 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
23567
23568 Missing part from mmap patch
23569
23570 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
23571 (grub_mmap_unregister)
23572 (grub_mmap_free_and_unregister): use grub_mmap_register
23573
23574 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
23575
23576 Mmap services
23577
23578 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
23579 * loader/i386/linux.c (find_mmap_size): likewise
23580 (allocate_pages): likewise
23581 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
23582 (grub_fill_multiboot_mmap): likewise
23583 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
23584 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
23585 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
23586 (OPENBSD_MMAP_RESERVED): likewise
23587 * include/grub/i386/pc/memory.h: include grub/memory.h
23588 (grub_lower_mem): removed
23589 (grub_upper_mem): likewise
23590 (GRUB_MACHINE_MEMORY_ACPI): new definition
23591 (GRUB_MACHINE_MEMORY_NVS): likewise
23592 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
23593 (GRUB_MACHINE_MEMORY_HOLE): likewise
23594 (grub_machine_mmap_register): likewise
23595 (grub_machine_mmap_unregister): likewise
23596 (grub_machine_get_upper): likewise
23597 (grub_machine_get_lower): likewise
23598 (grub_machine_get_post64): likewise
23599 * include/grub/i386/efi/memory.h: new file
23600 * include/grub/x86_64/efi/memory.h: likewise
23601 * include/grub/efi/memory.h: likewise
23602 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
23603 (mmap_mod_SOURCES): new variable
23604 (mmap_mod_LDFLAGS): likewise
23605 (mmap_mod_ASFLAGS): likewise
23606 * conf/i386-coreboot.rmk: likewise
23607 * conf/i386-ieee1275.rmk: likewise
23608 * conf/i386-efi.rmk: likewise
23609 * conf/x86_64-efi.rmk: likewise
23610 * include/grub/types.h (UINT_TO_PTR): new macro
23611 (PTR_TO_UINT32): likewise
23612 (PTR_TO_UINT64): likewise
23613 * include/grub/memory.h: new file
23614 * mmap/i386/pc/mmap.c: likewise
23615 * mmap/i386/pc/mmap_helper.S: likewise
23616 * mmap/i386/uppermem.c: likewise
23617 * mmap/mmap.c: likewise
23618 * mmap/efi/mmap.c: likewise
23619 * kern/i386/coreboot/init.c (grub_machine_init): don't use
23620 grub_upper_mem
23621 * kern/i386/pc/init.c (grub_lower_mem): removed variable
23622 (grub_upper_mem): likewise
23623 (grub_machine_init): don't use grub_upper_mem,
23624 make grub_lower_mem local
23625 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
23626 grub_mmap_iterate and grub_mmap_get_upper
23627 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
23628
23629 2009-05-02 Bean <bean123ch@gmail.com>
23630
23631 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
23632 script/sh/parser.y.
23633 (pkglib_MODULES): Add normal.mod and sh.mod.
23634 (normal_SOURCES): New variable.
23635 (normal_mod_CFLAGS): Likewise.
23636 (normal_mod_LDFLAGS): Likewise.
23637 (sh_mod_SOURCES): Likewise.
23638 (sh_mod_CFLAGS): Likewise.
23639 (sh_mod_LDFLAGS): Likewise.
23640
23641 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
23642 script/sh/lexer.c_DEPENDENCIES.
23643 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
23644 kern/rescue_reader.c and kern/rescue_parser.c.
23645 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
23646 (grub_emu_SOURCES): Change source files.
23647 (pkglib_MODULES): Remove normal.mod.
23648 (normal_SOURCES): Removed.
23649 (normal_mod_CFLAGS): Likewise.
23650 (normal_mod_LDFLAGS): Likewise.
23651 * conf/i386-coreboot.rmk: Likewise.
23652 * conf/i386-efi.rmk: Likewise.
23653 * conf/i386-ieee1276.rmk: Likewise.
23654 * conf/powerpc-ieee1275.rmk: Likewise.
23655 * conf/sparc64-ieee1275.rmk: Likewise.
23656 * conf/x86_64-efi.rmk: Likewise.
23657
23658 * include/grub/command.h (grub_command_execute): New inline function.
23659
23660 * include/grub/menu.h (grub_menu_entry): Removed commands field.
23661
23662 * include/grub/normal.h: Remove <grub/setjmp.h>.
23663 (grub_fs_module_list): Moved to normal/autofs.c.
23664 (grub_exit_env): Removed.
23665 (grub_command_execute): Likewise.
23666 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
23667 parameter script.
23668 (read_command_list): New function declaration.
23669 (read_fs_list): Likewise.
23670
23671 * include/parser.h: Include <grub/reader.h>.
23672 (grub_parser_split_cmdline): Change type of getline parameter.
23673 (grub_parser): New structure.
23674 (grub_parser_class): New variable.
23675 (grub_parser_execute): New function declaration.
23676 (grub_register_rescue_parser): Likewise.
23677 (grub_parser_register): New inline function.
23678 (grub_parser_unregister): Likewise.
23679 (grub_parser_get_current): Likewise.
23680 (grub_parser_set_current): Likewise.
23681
23682 * include/grub/reader.h: New file.
23683 * kern/reader.c: Likewise.
23684 * kern/rescue_parser.c: Likewise.
23685 * kern/rescue_reader.c: Likewise.
23686 * normal/autofs.c: Likewise.
23687 * normal/dyncmd.c: Likewise.
23688
23689 * include/grub/rescue.h: Removed.
23690 * normal/command.h: Likewise.
23691
23692 * include/grub/script.h: Moved to ...
23693 * include/grub/script_sh.h: ... Moved here.
23694 * normal/execute.c: Moved to ...
23695 * script/sh/execute.c: ... Moved here.
23696 * normal/function.c: Moved to ...
23697 * script/sh/function.c: ... Moved here.
23698 * normal/lexer.c: Moved to ...
23699 * script/sh/lexer.c: ... Moved here.
23700 * normal/parser.y: Moved to ...
23701 * script/sh/parser.y: ... Moved here.
23702 * normal/script.c: Moved to ...
23703 * script/sh/script.c: ... Moved here.
23704
23705 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
23706 <grub/reader.h>.
23707 (grub_exit_env): Removed.
23708 (fs_module_list): Moved to normal/autofs.c.
23709 (grub_file_getline): Don't handle comment here.
23710 (free_menu): Skip removed field entry->commands.
23711 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
23712 script parameter.
23713 (read_config_file): Removed nested parameter, change getline function.
23714 (grub_enter_normal_mode): Removed.
23715 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
23716 (read_command_list): Likewise.
23717 (autoload_fs_module): Moved to normal/autofs.c.
23718 (read_fs_list): Likewise.
23719 (reader_nested): New variable.
23720 (grub_normal_execute): Run parser.sh to switch to sh parser.
23721 (grub_cmd_rescue): Removed.
23722 (cmd_normal): Removed.
23723 (grub_cmd_normal): Unregister itself at the beginning. Don't register
23724 rescue command.
23725 (grub_cmdline_run): New function.
23726 (grub_normal_reader_init): Likewise.
23727 (grub_normal_read_line): Likewise.
23728 (grub_env_write_pager): Likewise.
23729 (cmdline): New variable.
23730 (grub_normal_reader): Likewise.
23731 (GRUB_MOD_INIT): Register normal reader and set as current, register
23732 pager hook, register normal command with grub_register_command_prio,
23733 so that it won't show up in command.lst.
23734 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
23735 grub_fs_autoload_hook.
23736
23737 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
23738 (grub_menu_execute_entry): Replace grub_script_execute with
23739 grub_parser_execute, change parameter to grub_command_execute.
23740
23741 * normal/menu_text.c: Remove <grub/script.h>.
23742
23743 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
23744 and <grub/parser.h>.
23745 (run): Change editor_getline to use new parser interface. Change
23746 parameter to grub_command_execute.
23747
23748 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
23749 <grub/reader.h> and <grub/parser.h>.
23750 (grub_load_normal_mode): Execute normal command.
23751 (grub_main): Call grub_register_core_commands,
23752 grub_register_rescue_parser and grub_register_rescue_reader, use
23753 grub_reader_loop to enter input loop.
23754
23755 * kern/parser.c (grub_parser_split_cmdline): Change type of
23756 getline parameter.
23757 (grub_parser_class): New variable.
23758 (grub_parser_execute): New function.
23759
23760 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
23761 * loader/multiboot2.c: Likewise.
23762 * loader/sparc64/ieee1275/linux.c: Likewise.
23763
23764 * util/grub-emu.c (read_command_list): New dummy function.
23765
23766 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
23767
23768 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
23769 count to 16 for CCISS and IDA.
23770
23771 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
23772
23773 * normal/menu_text.c (grub_wait_after_message): Print a newline
23774 after waiting for user input.
23775
23776 * loader/i386/linux.c: Include `<grub/normal.h>'.
23777 (grub_cmd_linux): Improve the error message about `ask' mode, by
23778 waiting for user input so it's not missed (we can do this, since
23779 user requested interaction).
23780
23781 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
23782
23783 Added missing lst to grub-mkrescue
23784
23785 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
23786 and ${input_dir}/parttool.lst
23787
23788 2009-04-30 David S. Miller <davem@davemloft.net>
23789
23790 * util/hostdisk.c (device_is_wholedisk): New function.
23791 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
23792 zero only if device_is_wholedisk() returns true.
23793
23794 * util/hostdisk.c (convert_system_partition_to_system_disk):
23795 Handle virtual disk devices named /dev/vdiskX as found on sparc
23796 and powerpc.
23797
23798 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
23799 lettered partition specifier is found, convert to numbered.
23800
23801 2009-04-29 David S. Miller <davem@davemloft.net>
23802
23803 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
23804 * include/grub/sparc64/ieee1275/memory.h: Likewise.
23805
23806 * normal/command.c: Add missing newline at end of file.
23807
23808 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
23809 warnings.
23810 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
23811 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
23812 grub_ofdisk_read): Likewise, and deal similarly with the fact that
23813 ihandles have a 32-bit type but need to be stored in a "void *".
23814
23815 2009-04-28 Pavel Roskin <proski@gnu.org>
23816
23817 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
23818 not disk. Adjust all dependencies.
23819 (grub_fs_uuid_close): Use grub_device_close(), not
23820 grub_disk_close().
23821
23822 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
23823 parent's partition, don't copy it by reference, as it gets freed
23824 on close.
23825
23826 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
23827
23828 Preboot hooks support
23829
23830 * commands/boot.c (struct grub_preboot_t): new declaration
23831 (preboots_head): new variable
23832 (preboots_tail): likewise
23833 (grub_loader_register_preboot_hook): new function
23834 (grub_loader_unregister_preboot_hook): likewise
23835 (grub_loader_set): launch preboot hooks
23836 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
23837 (grub_loader_register_preboot_hook): new declaration
23838 (grub_loader_unregister_preboot_hook): likewise
23839
23840 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
23841
23842 Warning fix
23843
23844 * disk/scsi.c (grub_scsi_open): added missing cast when
23845 calling grub_dprintf
23846
23847 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
23848
23849 Bug and warning fixes
23850
23851 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
23852 declaration
23853 * commands/test.c (test_parse): fixed bug with file tests and corrected
23854 declaration of find_file
23855
23856 2009-04-26 Pavel Roskin <proski@gnu.org>
23857
23858 * Makefile.in: Don't install empty manual pages if help2man is
23859 missing. Use help2man option for output, not shell redirection.
23860
23861 2009-04-26 David S. Miller <davem@davemloft.net>
23862
23863 * util/grub-mkdevicemap.c (make_device_map): Add missing
23864 NESTED_FUNC_ATTR to process_device().
23865
23866 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
23867
23868 Test command
23869
23870 * commands/test.c: rewritten to use bash-like test
23871
23872 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
23873
23874 Parttool autoloading and improvements
23875
23876 * Makefile.in (pkglib_DATA): add parttool.lst
23877 (parttool.lst): new target
23878 * genmk.rb: generate parttool-*
23879 (CLEANFILES): add #{parttool}
23880 (PARTTOOLFILES): new variable
23881 * genparttoollist.sh: new file
23882 * parttool/pcpart.c (grub_pcpart_boot): more feedback
23883 (grub_pcpart_type): likewise
23884 * commands/parttool.c (helpmsg): new variable
23885 (grub_cmd_parttool): output help if not enough arguments are supplied
23886 autoload modules
23887 (GRUB_MOD_INIT(parttool)): use helpmsg
23888
23889 2009-04-24 David S. Miller <davem@davemloft.net>
23890
23891 Avoiding opening same device multiple times in device iterator.
23892
23893 * kern/device.c: (grub_device_iterate): Define struct part_ent,
23894 and use it to build a list of partitions in iterate_disk() and
23895 iterate_partition().
23896
23897 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
23898 on disk->data.
23899
23900 * disk/ieee1275/nand.c (grub_nand_iterate): Return
23901 grub_devalias_iterate() result instead of unconditional 0.
23902 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
23903 Also, capture hook return value, either directly or via
23904 grub_children_iterate(), and propagate to caller.
23905 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
23906 grub_children_iterate): Return value is now 'int' instead of
23907 'grub_err_t'.
23908 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
23909 like a proper iterator, stopping when hooks return non-zero.
23910 (grub_devalias_iterate): Likewise.
23911
23912 2009-04-23 David S. Miller <davem@davemloft.net>
23913
23914 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
23915
23916 2009-04-22 David S. Miller <davem@davemloft.net>
23917
23918 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
23919 is larger than address_cells, use that value for address_cells too.
23920
23921 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
23922 IEEE1275_MAX_PATH_LEN): Define.
23923 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
23924 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
23925 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
23926 'devtype'. Explicitly NULL terminate devalias expansion.
23927
23928 * util/sparc64/ieee1275/misc.c: New file.
23929 * util/sparc64/ieee1275/grub-setup.c: New file.
23930 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
23931 * util/sparc64/ieee1275/grub-mkimage.c: New file.
23932 * util/sparc64/ieee1275/grub-install.in: New file.
23933 * util/ieee1275/ofpath.c: New file.
23934 * util/ieee1275/devicemap.c: New file.
23935 * util/devicemap.c: New file.
23936 * util/deviceiter.c: New file.
23937 * kern/sparc64/ieee1275/init.c: New file.
23938 * include/grub/util/ofpath.h: New file.
23939 * include/grub/util/deviceiter.h: New file.
23940 * util/grub-mkdevicemap.c: Include deviceiter.h.
23941 Implement using grub_util_emit_devicemap_entry and
23942 grub_util_iterate_devices.
23943 * conf/i386-corebook.rmk: Build util/deviceiter.c and
23944 util/devicemap.c into grub-mkdevicemap
23945 * conf/i386-efi.rmk: Likewise.
23946 * conf/i386-ieee1275.rmk: Likewise.
23947 * conf/i386-pc.rmk: Likewise.
23948 * conf/powerpc-ieee1275.rmk: Likewise.
23949 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
23950 images and installation utilities. Build kernel as image
23951 instead of as elf binary. Use common rules as much as possible.
23952
23953 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23954
23955 Correct GPT definition
23956
23957 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
23958 of "attrib" member
23959
23960 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
23961
23962 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
23963
23964 2009-04-19 David S. Miller <davem@davemloft.net>
23965
23966 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
23967 (grub_rescue_cmd_linux): Rename to...
23968 (grub_cmd_linux): and fix prototype.
23969 (grub_rescue_cmd_initrd): Rename to...
23970 (grub_cmd_initrd): and fix prototype.
23971 (cmd_linux, cmd_initrd): New.
23972 (GRUB_MOD_INIT(linux)): Use grub_register_command().
23973 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
23974
23975 2009-04-17 Pavel Roskin <proski@gnu.org>
23976
23977 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
23978 format.
23979 (grub_ohci_transfer): Likewise.
23980
23981 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
23982
23983 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
23984 return without a value. Fix inconsistent indentation.
23985
23986 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
23987 match struct grub_fs.
23988
23989 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
23990 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
23991 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23992 * commands/lspci.c (grub_lspci_iter): Likewise.
23993
23994 2009-04-16 Bean <bean123ch@gmail.com>
23995
23996 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
23997 value.
23998
23999 2009-04-15 Pavel Roskin <proski@gnu.org>
24000
24001 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
24002 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
24003 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
24004 definitions.
24005
24006 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24007
24008 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
24009 that no multiple data or metadata areas are supported and `Unknown
24010 metadata header'.
24011
24012 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24013
24014 Move loader out of the kernel
24015
24016 * kern/loader.c: moved to ...
24017 * commands/boot.c: ... moved here
24018 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
24019 * commands/boot.c (grub_cmd_boot): moved here. All users updated
24020 * include/grub/kernel.h (grub_machine_fini): export
24021 * include/grub/loader.h (grub_loader_is_loaded): update declaration
24022 (grub_loader_set): likewise
24023 (grub_loader_unset): likewise
24024 (grub_loader_boot): likewise
24025 * conf/common.rmk: new module boot.mod
24026 (pkglib_MODULES): add boot.mod
24027 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
24028 (grub_emu_SOURCES): likewise
24029 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
24030 (grub_emu_SOURCES): likewise
24031 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
24032 (grub_emu_SOURCES): likewise
24033 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
24034 (grub_emu_SOURCES): likewise
24035 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
24036 (grub_emu_SOURCES): likewise
24037 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
24038 (grub_emu_SOURCES): likewise
24039 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
24040 (grub_emu_SOURCES): likewise
24041
24042 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24043
24044 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
24045
24046 * kern/misc.c (grub_itoa): Removed function
24047 (grub_ltoa): likewise
24048 (grub_vsprintf): use grub_lltoa
24049
24050 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24051
24052 Restore grub-emu
24053
24054 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
24055 * conf/i386-coreboot.rmk: likewise
24056 * conf/i386-ieee1275.rmk: likewise
24057 * conf/powerpc-ieee1275.rmk: likewise
24058
24059 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24060
24061 * INSTALL: Add that `./autogen.sh' needs to be run before
24062 `./configure.'.
24063
24064 2009-04-14 Bean <bean123ch@gmail.com>
24065
24066 * Makefile.in (pkglib_DATA): Add handler.lst.
24067 (handler.lst): New rule.
24068
24069 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
24070 * conf/i386-coreboot.rmk: Likewise.
24071 * conf/i386-ieee1275.rmk: Likewise.
24072 * conf/i386-efi.rmk: Likewise.
24073 * conf/x86_64-efi.rmk: Likewise.
24074 * conf/powerpc-ieee1275.rmk: Likewise.
24075 * conf/sparc64-ieee1275.rmk: Likewise.
24076
24077 * genhandlerlist.sh: New file.
24078
24079 * genmk.rb: Add rules to generate handler.lst.
24080
24081 * include/grub/normal.h (grub_file_getline): New function definition.
24082 (read_handler_list): Likewise.
24083 (free_handler_list): Likewise.
24084
24085 * include/grub/term.h (grub_term_register_input): Add name parameter
24086 for auto generation of handler.lst.
24087 (grub_term_register_output): Likewise.
24088
24089 * normal/handler.c: New file.
24090
24091 * normal/main.c (get_line): Renamed to grub_file_getline.
24092 (read_config_file): Use the newly renamed grub_file_getline.
24093 (read_command_list): Likewise.
24094 (read_fs_list): Likewise.
24095 (grub_normal_execute): Call read_handler_list to parse handler.lst.
24096 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
24097
24098 * term/efi/console.c (grub_console_init): Add name parameter for auto
24099 generation of handler.lst.
24100 * term/gfxterm.c: Likewise.
24101 * term/i386/pc/at_keyboard.c: Likewise.
24102 * term/i386/pc/console.c: Likewise.
24103 * term/i386/pc/serial.c: Likewise.
24104 * term/i386/pc/vesafb.c: Likewise.
24105 * term/i386/pc/vga.c: Likewise.
24106 * term/i386/pc/vga_text.c: Likewise.
24107 * term/ieee1275/ofconsole.c: Likewise.
24108 * term/usb_keyboard.c: Likewise.
24109
24110 2009-04-14 Bean <bean123ch@gmail.com>
24111
24112 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
24113 properly with null character.
24114
24115 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
24116
24117 * configure: Remove.
24118 * config.h.in: Likewise.
24119 * stamp-h.in: Likewise.
24120 * DISTLIST: Likewise.
24121 * conf/common.mk: Likewise.
24122 * conf/i386-coreboot.mk: Likewise.
24123 * conf/i386-efi.mk: Likewise.
24124 * conf/i386-ieee1275.mk: Likewise.
24125 * conf/i386.mk: Likewise.
24126 * conf/i386-pc.mk: Likewise.
24127 * conf/powerpc-ieee1275.mk: Likewise.
24128 * conf/sparc64-ieee1275.mk: Likewise.
24129 * conf/x86_64-efi.mk: Likewise.
24130
24131 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
24132 develop on GRUB.
24133
24134 2009-04-14 John Stanley <jpsinthemix@verizon.net>
24135 David S. Miller <davem@davemloft.net>
24136
24137 * util/hostdisk.c (make_device_name): Fix buffer length
24138 calculations.
24139
24140 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
24141
24142 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
24143 <sys/param.h> and <sys/sysctl.h>.
24144 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
24145 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
24146 opening the device and reset them afterwards.
24147
24148 2009-04-13 Pavel Roskin <proski@gnu.org>
24149
24150 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
24151 Reported by John Stanley <jpsinthemix@verizon.net>
24152
24153 2009-04-13 Robert Millan <rmh@aybabtu.com>
24154
24155 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
24156 that name for menuentries when appropriate.
24157
24158 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24159
24160 * util/grub.d/10_freebsd.in: Add a missing `fi'.
24161
24162 2009-04-13 Robert Millan <rmh@aybabtu.com>
24163
24164 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
24165 to Linux, simply abort telling the user it's no longer supported.
24166
24167 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24168
24169 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
24170 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
24171 `freebsd_loadenv' only when devices.hints exist.
24172
24173 2009-04-13 Pavel Roskin <proski@gnu.org>
24174
24175 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
24176
24177 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24178
24179 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
24180 partition number.
24181 (grub_drive): Likewise.
24182
24183 2009-04-13 David S. Miller <davem@davemloft.net>
24184
24185 * kern/sparc64/ieee1275/ieee1275.c: New file.
24186 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
24187 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
24188 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
24189 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
24190 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
24191 grub_ieee1275_alloc_physmem): Declare new exported functions.
24192
24193 * include/grub/sparc64/ieee1275/loader.h: New file.
24194 * include/grub/sparc64/ieee1275/memory.h: Likewise.
24195 * include/grub/sparc64/kernel.h: Likewise.
24196 * loader/sparc64/ieee1275/linux.c: Likewise.
24197
24198 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
24199 (grub_fstest_SOURCES): Likewise.
24200
24201 * util/hostdisk.c (make_device_name): Do not make any assumptions
24202 about the length of drive names.
24203
24204 * kern/dl.c (grub_dl_load_file): Close file immediately when
24205 we are done using it.
24206
24207 2009-04-12 David S. Miller <davem@davemloft.net>
24208
24209 * kern/misc.c (grub_ltoa): Fix cast when handling negative
24210 values. Noticed by Pavel Roskin.
24211
24212 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
24213 target compiler.
24214
24215 * genmk.rb: Add more flexible image type specification, also
24216 pass --strip-unneeded to objcopy.
24217 * conf/i386-pc.rmk: Use *_FORMAT.
24218 * conf/i386-pc.mk: Rebuilt.
24219
24220 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
24221 (OFDISK_HASH_SZ): Define.
24222 (ofdisk_hash): New hash table.
24223 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
24224 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
24225 instead of device phandle which is not unique.
24226
24227 * kern/sparc64/ieee1275/init.c: Delete, replace with...
24228 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
24229 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
24230 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
24231 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
24232 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
24233 GRUB_KERNEL_MACHINE_DATA_END): Define.
24234 (grub_kernel_image_size, grub_total_module_size): Declare.
24235
24236 2009-04-12 Pavel Roskin <proski@gnu.org>
24237
24238 * configure.ac: Change the logic when we check for target tools.
24239 Do it when the target is specified and it's different from the
24240 specified value of the host.
24241
24242 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
24243
24244 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
24245 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
24246 GNU/kFreeBSD. Check if a device is a character device. Use
24247 DIOCGMEDIASIZE to get the size.
24248 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
24249 support for GNU/kFreeBSD.
24250 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
24251 is a character device instead of a block device. Add support for
24252 FreeBSD device names.
24253
24254 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
24255 is a character device instead of a block device.
24256
24257 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
24258 is a character device instead of a block device.
24259
24260 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
24261
24262 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
24263 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
24264 FreeBSD. Check if a device is a character device. Use
24265 DIOCGMEDIASIZE to get the size.
24266 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
24267 support for FreeBSD.
24268 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
24269 is a character device instead of a block device. Add support for
24270 FreeBSD device names.
24271
24272 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
24273 a character device instead of a block device.
24274 (grub_util_check_char_device): New function.
24275
24276 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
24277 a character device instead of a block device.
24278
24279 * include/grub/util/getroot.h (grub_util_check_char_device): New
24280 prototype.
24281
24282 2009-04-11 David S. Miller <davem@davemloft.net>
24283
24284 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
24285 static libgcc.
24286 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
24287 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
24288 function, if present.
24289 (__bswapdi2): Likewise.
24290
24291 * include/grub/sparc64/ieee1275/boot.h: New file.
24292 * boot/sparc64/ieee1275/boot.S: Likewise.
24293 * boot/sparc64/ieee1275/diskboot.S: Likewise.
24294
24295 * kern/misc.c (grub_ltoa): New function.
24296 (grub_vsprintf): Use it to format 'long' integers.
24297
24298 2009-04-10 David S. Miller <davem@davemloft.net>
24299
24300 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
24301 slots are of type grub_ieee1275_cell_t.
24302 (grub_nand_read): Likewise.
24303 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
24304 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
24305 macros are used to compare values in arg/ret block of the call.
24306 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
24307 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
24308 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
24309 grub_ieee1275_instance_to_path, grub_ieee1275_write,
24310 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
24311 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
24312 grub_ieee1275_close, grub_ieee1275_set_property,
24313 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
24314 grub_ieee1275_cell_t.
24315 * kern/ieee1275/openfw.c (grub_map): Likewise.
24316 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
24317 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
24318
24319 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
24320 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
24321 (grub_devalias_iterate): Likewise.
24322
24323 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24324
24325 UFS improvements
24326
24327 * fs/ufs.c (INODE_NBLOCKS): new definition
24328 (struct grub_ufs_dirent): added fields for non-BSD dirents
24329 (grub_ufs_get_file_block): fixed double indirect handling
24330 (grub_ufs_lookup_symlink): use more robust way to determine whether
24331 symlink is inline
24332 (grub_ufs_find_file): support for non-BSD dirents
24333 (grub_ufs_dir): support for non-BSD dirents
24334
24335 2009-04-10 Bean <bean123ch@gnail.com>
24336
24337 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
24338 attribute, otherwise the size would be wrong for i386 platform.
24339
24340 * include/grub/pci.h (grub_pci_read_word): New inline function.
24341 (grub_pci_read_byte): Likewise.
24342 (grub_pci_write): Likewise.
24343 (grub_pci_write_word): Likewise.
24344 (grub_pci_write_byte): Likewise.
24345
24346 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
24347
24348 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
24349 (find_framebuf): Scan pci to locate the frame buffer address.
24350
24351 * commands/efi/fixvideo.c: New file.
24352
24353 * commands/efi/loadbios.c: Likewise.
24354
24355 * commands/memrw.c: Likewise.
24356
24357 * util/grub-dumpbios.in: Likewise.
24358
24359 * conf/common.rmk (grub-dumpbios): New utility.
24360 (pkglib_MODULES): New module memrw.mod.
24361 (memrw_mod_SOURCE): New macro.
24362 (memrw_mod_CFLAGS): Likewise.
24363 (memrw_mod_LDFLAGS): Likewise.
24364
24365 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
24366 fixvideo.mod.
24367 (loadbios_mod_SOURCE): New macro.
24368 (loadbios_mod_CFLAGS): Likewise.
24369 (loadbios_mod_LDFLAGS): Likewise.
24370 (fixvideo_mod_SOURCE): Likewise.
24371 (fixvideo_mod_CFLAGS): Likewise.
24372 (fixvideo_mod_LDFLAGS): Likewise.
24373
24374 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
24375 fixvideo.mod.
24376 (loadbios_mod_SOURCE): New macro.
24377 (loadbios_mod_CFLAGS): Likewise.
24378 (loadbios_mod_LDFLAGS): Likewise.
24379 (fixvideo_mod_SOURCE): Likewise.
24380 (fixvideo_mod_CFLAGS): Likewise.
24381 (fixvideo_mod_LDFLAGS): Likewise.
24382
24383 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
24384
24385 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
24386
24387 2009-04-07 David S. Miller <davem@davemloft.net>
24388
24389 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
24390 support for R_SPARC_OLO10 relocations. Fix compile warning for
24391 R_SPARC_WDISP30 case.
24392 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
24393
24394 2009-04-06 Pavel Roskin <proski@gnu.org>
24395
24396 * include/grub/misc.h (ARRAY_SIZE): New macro.
24397 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
24398 New macro.
24399 * loader/i386/linux.c (allocate_pages): Use free_pages().
24400 (grub_linux_unload): Don't use free_pages().
24401 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
24402 wrong index. Treat all other modes as text modes.
24403 (grub_cmd_linux): Initialize vid_mode unconditionally to
24404 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
24405
24406 * commands/help.c (print_command_help): Use cmd->prio, not
24407 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
24408
24409 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
24410
24411 Parttool
24412
24413 * parttool/pcpart.c: new file
24414 * commands/parttool.c: likewise
24415 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
24416 (parttool_mod_SOURCES): new variable
24417 (parttool_mod_CFLAGS): likewise
24418 (parttool_mod_LDFLAGS): likewise
24419 (pcpart_mod_SOURCES): likewise
24420 (pcpart_mod_CFLAGS): likewise
24421 (pcpart_mod_LDFLAGS): likewise
24422 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
24423 and parttool/pcpart.c
24424 * conf/i386-efi.rmk: likewise
24425 * conf/i386-ieee1275.rmk: likewise
24426 * conf/i386-pc.rmk: likewise
24427 * conf/powerpc-ieee1275.rmk: likewise
24428 * conf/sparc64-ieee1275.rmk: likewise
24429 * conf/x86_64-ieee1275.rmk: likewise
24430
24431 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24432
24433 Support for mtime and further expandability of dir command
24434
24435 * include/grub/lib/datetime.h: moved to ...
24436 * include/grub/datetime.h: ... moved here and added
24437 declaration of grub_unixtime2datetime. All users updated
24438 * include/grub/fs.h: new syntax for dir and mtime functions in
24439 struct grub_fs
24440 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
24441 and GRUB_FSHELP_FLAGS_MASK
24442 * commands/ls.c (grub_ls_list_files): Write mtime in long format
24443 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
24444 (grub_ext2_mtime): new function
24445 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
24446 (grub_hfsplus_mtime): new function
24447 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
24448 (GRUB_UFS_ATTR_FILE): likewise
24449 (GRUB_UFS_ATTR_LNK): likewise
24450 (struct grub_ufs_sblock): new fields mtime
24451 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
24452 all users updated
24453 (grub_ufs_dir): mtime support
24454 (grub_ufs_mtime): new function
24455 * fs/affs.c (grub_affs_dir): use new dir syntax
24456 * fs/afs.c (grub_afs_dir): likewise
24457 * fs/cpio.c (grub_cpio_dir): likewise
24458 * fs/fat.c (grub_fat_find_dir): likewise
24459 * fs/hfs.c (grub_hfs_dir): likewise
24460 * fs/iso9660.c (grub_iso9660_dir): likewise
24461 * fs/jfs.c (grub_jfs_dir): likewise
24462 * fs/minix.c (grub_minix_dir): likewise
24463 * fs/ntfs.c (grub_ntfs_dir): likewise
24464 * fs/reiserfs.c (grub_reiserfs_dir): likewise
24465 * fs/sfs.c (grub_sfs_dir): likewise
24466 * fs/xfs.c (grub_xfs_dir): likewise
24467 * util/hostfs.c (grub_hostfs_dir): likewise
24468 * lib/datetime.c: moved to ...
24469 * normal/datetime.c: ... moved here
24470 (grub_unixtime2datetime): new function
24471 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
24472 * normal/completion.c (iterate_dir): use new dir syntax
24473 * normal/misc.c (grub_normal_print_device_info): tell the
24474 last modification time of a volume
24475 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
24476 * conf/common.rmk: added lib/datetime.c to ls.mod
24477 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
24478 (normal_mod_SOURCES): likewise
24479 (datetime_mod_SOURCES): Removed lib/datetime.c
24480 * conf/i386-efi.rmk: likewise
24481 * conf/i386-ieee1275.rmk: likewise
24482 * conf/i386-pc.rmk: likewise
24483 * conf/powerpc-ieee1275.rmk: likewise
24484 * conf/sparc64-ieee1275.rmk: likewise
24485 * conf/x86_64-efi.rmk: likewise
24486
24487 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24488
24489 Trim trailing spaces in FAT label and support mtools-like labels
24490
24491 * fs/fat.c (grub_fat_iterate_dir): New function based
24492 on grub_fat_find_dir
24493 (grub_fat_find_dir): use grub_fat_iterate_dir
24494 (grub_fat_label): likewise
24495
24496 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
24497
24498 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
24499 and command.h
24500 remove extraneous kernel_elf_HEADERS
24501
24502 2009-04-04 Bean <bean123ch@gnail.com>
24503
24504 * include/grub/util/misc.h: Add dummy function fsync for mingw.
24505
24506 * util/misc.c: Likewise.
24507
24508 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
24509
24510 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
24511 instead of grub_printf.
24512
24513 2009-04-03 Robert Millan <rmh@aybabtu.com>
24514
24515 * loader/i386/linux.c (grub_linux_setup_video): Fill
24516 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
24517 values from `mode info' structure instead of hardcoded
24518 values.
24519
24520 2009-04-01 Pavel Roskin <proski@gnu.org>
24521
24522 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
24523 unused now.
24524 * genmk.rb: Likewise.
24525 * configure.ac: Likewise.
24526
24527 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
24528
24529 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
24530 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
24531
24532 2009-04-01 David S. Miller <davem@davemloft.net>
24533
24534 * normal/sparc64/setjmp.S: Fix setjmp implementation.
24535 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
24536 (grub_setjmp): Mark with 'returns_twice' attribute.
24537 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
24538 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
24539 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
24540
24541 2009-04-01 Robert Millan <rmh@aybabtu.com>
24542
24543 Reapply fix from 2008-07-28 which was accidentally reverted; also
24544 perform the same fix to a similar check in same function.
24545
24546 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
24547 with the same number are found, just use issue a warning with
24548 grub_dprintf(), as this error has been reported to be non-fatal.
24549
24550 2009-03-31 Pavel Roskin <proski@gnu.org>
24551
24552 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
24553 for cross-compilation.
24554
24555 2009-03-30 Robert Millan <rmh@aybabtu.com>
24556
24557 Fix i386-ieee1275 build.
24558
24559 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
24560 Remove declaration.
24561
24562 2009-03-30 Pavel Roskin <proski@gnu.org>
24563
24564 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
24565 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
24566 zero-terminated, rely only on the strlen value. Fix comparison
24567 of strings differing in length.
24568
24569 2009-03-30 Robert Millan <rmh@aybabtu.com>
24570
24571 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
24572 checking for abi version. Improve error messages on BIOS to notify
24573 user about `linux16' command.
24574
24575 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
24576
24577 Leak fixes
24578
24579 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
24580 in case of collision
24581 * disk/scsi.c (grub_scsi_open): free scsi in case of error
24582
24583 2009-03-29 Robert Millan <rmh@aybabtu.com>
24584
24585 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
24586 set `vid_mode' accordingly.
24587 (grub_linux_boot): Process `vid_mode' and set video mode.
24588
24589 2009-03-29 Robert Millan <rmh@aybabtu.com>
24590
24591 * util/grub.d/10_linux.in (linux_entry): New function.
24592 Factorize generation of Linux boot entries.
24593
24594 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
24595
24596 Make the format of Environment Block plain text. The boot loader
24597 part is not tested well yet.
24598
24599 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
24600 (buffer): Removed.
24601 (envblk): Likewise.
24602 (usage): Remove "info" and "clear". Add "unset". Update the
24603 description of "set", as this does not delete variables any
24604 longer.
24605 (create_envblk_file): Complete rewrite.
24606 (open_envblk_file): Likewise.
24607 (cmd_info): Removed.
24608 (cmd_list): Likewise.
24609 (cmd_set): Likewise.
24610 (cmd_clear): Likewise.
24611 (list_variables): New function.
24612 (write_envblk): Likewise.
24613 (set_variables): Likewise.
24614 (unset_variables): Likewise.
24615 (main): Complete rewrite.
24616
24617 * commands/loadenv.c (buffer): Removed.
24618 (envblk): Likewise.
24619 (open_envblk_file): New function.
24620 (read_envblk_file): Complete rewrite.
24621 (grub_cmd_load_env): Likewise.
24622 (grub_cmd_list_env): Likewise.
24623 (struct blocklist): New struct.
24624 (free_blocklists): New function.
24625 (check_blocklists): Likewise.
24626 (write_blocklists): Likewise.
24627 (grub_cmd_save_env): Complete rewrite.
24628
24629 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
24630 a plain text signature.
24631 (GRUB_ENVBLK_MAXLEN): Removed.
24632 (struct grub_envblk): Complete rewrite.
24633 (grub_envblk_find): Removed.
24634 (grub_envblk_insert): Likewise.
24635 (grub_envblk_open): New prototype.
24636 (grub_envblk_set): Likewise.
24637 (grub_envblk_delete): Put const to VALUE.
24638 (grub_envblk_iterate): Put const to NAME and VALUE.
24639 (grub_envblk_close): New prototype.
24640 (grub_envblk_buffer): New inline function.
24641 (grub_envblk_size): Likewise.
24642
24643 * lib/envblk.c: Include grub/mm.h.
24644 (grub_env_find): Removed.
24645 (grub_envblk_open): New function.
24646 (grub_envblk_close): Likewise.
24647 (escaped_value_len): Likewise.
24648 (find_next_line): Likewise.
24649 (grub_envblk_insert): Removed.
24650 (grub_envblk_set): New function.
24651 (grub_envblk_delete): Complete rewrite.
24652 (grub_envblk_iterate): Likewise.
24653
24654 2009-03-28 Robert Millan <rmh@aybabtu.com>
24655
24656 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
24657 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
24658 variables. Use 16-bit loader.
24659 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
24660 loader.
24661 * kern/i386/loader.S (grub_linux_boot): Rename to ...
24662 (grub_linux16_boot): ... this. Update all users.
24663 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
24664 (grub_linux_boot): ... this. Update all users.
24665
24666 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
24667 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
24668 commands to `linux16' and `initrd16'.
24669 (GRUB_MOD_FINI(linux)): Rename to ...
24670 (GRUB_MOD_FINI(linux16)): ... this.
24671
24672 2009-03-24 Pavel Roskin <proski@gnu.org>
24673
24674 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
24675 not just for compilation.
24676
24677 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
24678
24679 Move multiboot helper out of kernel
24680
24681 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
24682 `loader/i386/multiboot_helper.S'.
24683 * conf/i386-coreboot.rmk: Likewise
24684 * conf/i386-ieee1275.rmk: Likewise
24685
24686 * kern/i386/loader.S: Move multiboot helpers from here...
24687 * loader/i386/multiboot_helper.S: ...moved here
24688 * include/grub/i386/loader.h: Move declarations of multiboot
24689 helpers from here...
24690 * include/grub/i386/multiboot.h: ...moved here
24691 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
24692
24693 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
24694
24695 * kern/env.c (grub_env_context_open): Added an argument to specify
24696 whether a new context inherits exported variables from current
24697 one. This is useful when making a sandbox to interpret a config
24698 file.
24699 All callers updated.
24700
24701 * include/grub/env.h (grub_env_context_open): Updated the prototype.
24702
24703 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
24704
24705 * kern/env.c (grub_env_context_close): Fix memory leaks.
24706
24707 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
24708
24709 * normal/main.c (grub_normal_execute): Added an argument
24710 BATCH to specify if an interactive interface should be provided
24711 after reading a config file.
24712 All callers updated.
24713 (read_command_list): Prevent being executed twice.
24714 (read_fs_list): Likewise.
24715
24716 * include/grub/normal.h (grub_normal_execute): Updated the
24717 prototype.
24718
24719 2009-03-22 Pavel Roskin <proski@gno.org>
24720
24721 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
24722 _start.
24723 * kern/i386/pc/startup.S: Likewise.
24724 * kern/i386/efi/startup.S: Likewise.
24725 * kern/i386/ieee1275/startup.S: Likewise.
24726 * kern/i386/coreboot/startup.S: Likewise.
24727 * kern/x86_64/efi/startup.S: Likewise.
24728
24729 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
24730 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
24731 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
24732
24733 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
24734
24735 Bugfixes in multiboot for bugs uncovered by solaris kernel.
24736
24737 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
24738 limit detection.
24739 Use vaddr of correct segment for entry_point.
24740
24741 2009-03-21 Bean <bean123ch@gmail.com>
24742
24743 * commands/blocklist.c: Add include file <grub/command.h>, remove
24744 <grub/normal.h> and <grub/arg.h>.
24745 (grub_cmd_blocklist): Use the new command interface.
24746 (GRUB_MOD_INIT): Likewise.
24747 (GRUB_MOD_FINI): Likewise.
24748 * commands/boot.c: Likewise.
24749 * commands/cat.c: Likewise.
24750 * commands/cmp.c: Likewise.
24751 * commands/configfile.c: Likewise.
24752 * commands/crc.c: Likewise.
24753 * commands/echo.c: Likewise.
24754 * commands/halt.c: Likewise.
24755 * commands/handler.c: Likewise.
24756 * commands/hdparm.c: Likewise.
24757 * commands/help.c: Likewise.
24758 * commands/hexdump.c: Likewise.
24759 * commands/loadenv.c: Likewise.
24760 * commands/ls.c: Likewise.
24761 * commands/lsmmap.c: Likewise.
24762 * commands/lspci.c: Likewise.
24763 * commands/loadenv.c: Likewise.
24764 * commands/read.c: Likewise.
24765 * commands/reboot.c: Likewise.
24766 * commands/search.c: Likewise.
24767 * commands/sleep.c: Likewise.
24768 * commands/test.c: Likewise.
24769 * commands/usbtest.c: Likewise.
24770 * commands/videotest.c: Likewise.
24771 * commands/i386/cpuid.c: Likewise.
24772 * commands/i386/pc/halt.c: Likewise.
24773 * commands/i386/pc/play.c: Likewise.
24774 * commands/i386/pc/pxecmd.c: Likewise.
24775 * commands/i386/pc/vbeinfo.c: Likewise.
24776 * commands/i386/pc/vbetest.c: Likewise.
24777 * commands/ieee1275/suspend.c: Likewise.
24778 * disk/loopback.c: Likewise.
24779 * font/font_cmd.c: Likewise.
24780 * hello/hello.c: Likewise.
24781 * loader/efi/appleloader.c: Likewise.
24782 * loader/efi/chainloader.c: Likewise.
24783 * loader/i386/bsd.c: Likewise.
24784 * loader/i386/efi/linux.c: Likewise.
24785 * loader/i386/ieee1275/linux.c: Likewise.
24786 * loader/i386/linux.c: Likewise.
24787 * loader/i386/pc/chainloader.c: Likewise.
24788 * loader/i386/pc/linux.c: Likewise.
24789 * loader/powerpc/ieee1275/linux.c: Likewise.
24790 * loader/multiboot_loader.c: Likewise.
24791 * term/gfxterm.c: Likewise.
24792 * term/i386/pc/serial.c: Likewise.
24793 * term/terminfo.c: Likewise.
24794
24795 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
24796 * term/i386/pc/vga.c: Likewise.
24797 * video/readers/jpeg.c: Likewise.
24798 * video/readers/png.c: Likewise.
24799 * video/readers/tga.c: Likewise.
24800
24801 * util/grub-fstest (cmd_loopback): Removed.
24802 (cmd_blocklist): Likewise.
24803 (cmd_ls): Likewise.
24804 (grub_register_command): Likewise.
24805 (grub_unregister_command): Likewise.
24806 (execute_command): Use grub_command_find to locate command and execute
24807 it.
24808
24809 * include/grub/efi/chainloader.h: Removed.
24810 * loader/efi/chainloader_normal.c: Likewise.
24811 * loader/i386/bsd_normal.c: Likewise.
24812 * loader/i386/pc/chainloader_normal.c: Likewise.
24813 * loader/i386/pc/multiboot_normal.c: Likewise.
24814 * loader/linux_normal.c: Likewise.
24815 * loader/multiboot_loader_normal.c: Likewise.
24816 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
24817
24818 * gencmdlist.sh: Scan new registration command grub_register_extcmd
24819 and grub_register_command_p1.
24820
24821 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
24822 kern/command.c, lib/arg.c and commands/extcmd.c.
24823 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
24824 (minicmd_mod_SOURCES): New variable.
24825 (minicmd_mod_CFLAGS): Likewise.
24826 (minicmd_mod_LDFLAGS): Likewise.
24827 (extcmd_mod_SOURCES): Likewise.
24828 (extcmd_mod_CFLAGS): Likewise.
24829 (extcmd_mod_LDFLAGS): Likewise.
24830 (boot_mod_SOURCES): Removed.
24831 (boot_mod_CFLAGS): Likewise.
24832 (boot_mod_LDFLAGS): Likewise.
24833
24834 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
24835 kern/corecmd.c.
24836 (kernel_img_HEADERS): Add command.h.
24837 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
24838 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
24839 and lib/arg.c.
24840 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
24841 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
24842 remove the corresponding normal mode command.
24843 (normal_mod_SOURCES): Remove normal/arg.c.
24844 * conf/i386-coreboot.rmk: Likewise.
24845 * conf/i386-efi.rmk: Likewise.
24846 * conf/i386-ieee1275.rmk: Likewise.
24847 * conf/powerpc-ieee1275.rmk: Likewise.
24848 * conf/x86_64-efi.rmk: Likewise.
24849
24850 * include/grub/arg.h: Move from here ...
24851 * include/grub/lib/arg.h: ... to here.
24852
24853 * normal/arg.c: Move from here ...
24854 * lib/arg.c: ... to here.
24855
24856 * commands/extcmd.c: New file.
24857 * commands/minicmd.c: Likewise.
24858 * include/grub/command.h: Likewise.
24859 * include/grub/extcmd.h: Likewise.
24860 * kern/command.c: Likewise.
24861 * kern/corecmd.c: Likewise.
24862
24863 * kern/list.c (grub_list_iterate): Return int instead of void.
24864 (grub_list_insert): New function.
24865 (grub_prio_list_insert): Likewise.
24866
24867 * kern/rescue.c (grub_rescue_command): Removed.
24868 (grub_rescue_command_list): Likewise.
24869 (grub_rescue_register_command): Likewise.
24870 (grub_rescue_unregister_command): Likewise.
24871 (grub_rescue_cmd_boot): Move to minicmd.c
24872 (grub_rescue_cmd_help): Likewise.
24873 (grub_rescue_cmd_info): Likewise.
24874 (grub_rescue_cmd_boot): Likewise.
24875 (grub_rescue_cmd_testload): Likewise.
24876 (grub_rescue_cmd_dump): Likewise.
24877 (grub_rescue_cmd_rmmod): Likewise.
24878 (grub_rescue_cmd_lsmod): Likewise.
24879 (grub_rescue_cmd_exit): Likewise.
24880 (grub_rescue_print_devices): Moved to corecmd.c.
24881 (grub_rescue_print_files): Likewise.
24882 (grub_rescue_cmd_ls): Likewise.
24883 (grub_rescue_cmd_insmod): Likewise.
24884 (grub_rescue_cmd_set): Likewise.
24885 (grub_rescue_cmd_unset): Likewise.
24886 (attempt_normal_mode): Use grub_command_find to get normal module.
24887 (grub_enter_rescue_mode): Use grub_register_core_commands to register
24888 commands, remove grub_rescue_register_command calls.
24889
24890 * normal/command.c (grub_register_command): Removed.
24891 (grub_unregister_command): Likewise.
24892 (grub_command_find): Likewise.
24893 (grub_iterate_commands): Likewise.
24894 (rescue_command): Likewise.
24895 (export_command): Moved to corecmd.c.
24896 (set_command): Removed.
24897 (unset_command): Likewise.
24898 (insmod_command): Likewise.
24899 (rmmod_command): Likewise.
24900 (lsmod_command): Likewise.
24901 (grub_command_init): Likewise.
24902
24903 * normal/completion.c (iterate_command): Use cmd->prio to check for
24904 active command.
24905 (complete_arguments): Use grub_extcmd_t structure to find options.
24906 (grub_normal_do_completion): Change function grub_iterate_commands to
24907 grub_command_iterate.
24908
24909 * normal/execute.c (grub_script_execute_cmd): No need to parse
24910 argument here.
24911
24912 * normal/main.c (grub_dyncmd_dispatcher): New function.
24913 (read_command_list): Register unload commands as dyncmd.
24914 (grub_cmd_normal): Use new command interface, register rescue,
24915 unregister normal at entry, register normal, unregister rescue at exit.
24916
24917 * include/grub/list.h (grub_list_test_t): New type.
24918 (grub_list_iterate): Return int instead of void.
24919 (grub_list_insert): New function.
24920 (GRUB_AS_NAMED_LIST_P): New macro.
24921 (GRUB_AS_PRIO_LIST): Likewise.
24922 (GRUB_AS_PRIO_LIST_P): Likewise.
24923 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
24924 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
24925 (grub_prio_list): New structure.
24926 (grub_prio_list_insert): New function.
24927 (grub_prio_list_remove): New inline function.
24928
24929 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
24930 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
24931 (GRUB_COMMAND_FLAG_MENU): Likewise.
24932 (GRUB_COMMAND_FLAG_BOTH): Likewise.
24933 (GRUB_COMMAND_FLAG_TITLE): Likewise.
24934 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
24935 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
24936 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
24937 (grub_command): Likewise.
24938 (grub_register_command): Likewise.
24939 (grub_command_find): Likewise.
24940 (grub_iterate_commands): Likewise.
24941 (grub_command_init): Likewise.
24942 (grub_arg_parse): Likewise.
24943 (grub_arg_show_help): Likewise.
24944
24945 * include/grub/rescue.h (grub_rescue_register_command): Removed.
24946 (grub_rescue_unregister_command): Likewise.
24947
24948 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
24949 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
24950 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
24951
24952 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
24953 grub_rescue_cmd_initrd.
24954 * include/grub/i386/loader.h: Likewise.
24955 * include/grub/x86_64/loader.h: Likewise.
24956
24957 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
24958
24959 2009-03-21 Bean <bean123ch@gmail.com>
24960
24961 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
24962 instead of stat in mingw environment.
24963
24964 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
24965
24966 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
24967
24968 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
24969 AC_CONFIG_LINKS.
24970
24971 2009-03-21 Bean <bean123ch@gmail.com>
24972
24973 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
24974 out of range error.
24975
24976 2009-03-18 Michel Dänzer <michel@daenzer.net>
24977
24978 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
24979 checking inode flags for EXT4_EXTENTS_FLAG.
24980
24981 2009-03-18 Robert Millan <rmh@aybabtu.com>
24982
24983 * loader/i386/linux.c: Include `<grub/video.h>' and
24984 `<grub/i386/pc/vbe.h>'..
24985 (grub_linux_setup_video): New function. Loosely based on the EFI one.
24986 (grub_linux32_boot): Attempt to configure video settings with
24987 grub_linux_setup_video().
24988 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
24989 to avoid grub_console_fini() which would step out of graphical mode
24990 unconditionally.
24991
24992 2009-03-14 Robert Millan <rmh@aybabtu.com>
24993
24994 Fix build on powerpc.
24995 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
24996
24997 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
24998
24999 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
25000 background image command.
25001
25002 2009-03-12 Colin D Bennett <colin@gibibit.com>
25003
25004 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
25005 (grub_gfxterm_putchar): Extract pairs of identical calls to
25006 draw_cursor out of conditional blocks.
25007
25008 2009-03-11 Pavel Roskin <proski@gnu.org>
25009
25010 * fs/hfs.c (grub_hfs_strncasecmp): New function.
25011 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
25012
25013 2009-03-11 Robert Millan <rmh@aybabtu.com>
25014
25015 * loader/i386/multiboot_elfxx.c
25016 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
25017
25018 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
25019
25020 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
25021 `kern/handler.c'.
25022
25023 2009-03-11 Robert Millan <rmh@aybabtu.com>
25024
25025 * loader/i386/multiboot.c (code_size): New variable.
25026 (grub_multiboot): Define offsets by adding to `code_size' rather
25027 than subtracting from `grub_multiboot_payload_size'. Provide
25028 4-byte alignment to MBI and others by increasing
25029 `boot_loader_name_length' appropriately.
25030
25031 * loader/i386/multiboot_elfxx.c
25032 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
25033
25034 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
25035
25036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
25037 `fs/ext2.c'.
25038
25039 2009-03-08 Robert Millan <rmh@aybabtu.com>
25040
25041 Make loader/i386/linux.c usable on i386-pc again.
25042
25043 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
25044 memory to heap.
25045 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
25046 `#error' stanza.
25047
25048 2009-03-07 Bean <bean123ch@gmail.com>
25049
25050 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
25051 allocation.
25052
25053 2009-03-06 Robert Millan <rmh@aybabtu.com>
25054
25055 Fix display issue on terminals with screen size other than 80x25
25056 (e.g. gfxterm with resolution higher than 640x480).
25057
25058 * normal/main.c (grub_normal_init_page): Display title text in a
25059 position relative to the center of the terminal instead of relying
25060 on a hardcoded offset.
25061
25062 2009-03-04 Robert Millan <rmh@aybabtu.com>
25063
25064 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
25065 installed.
25066
25067 * Makefile.in (host_kernel): New variable.
25068 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
25069 scripts instead of just the windows one.
25070 * configure.ac: Initialize and AC_SUBST `host_kernel'.
25071
25072 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25073
25074 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
25075 `kern/handler.c'.
25076 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25077 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25078 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
25079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25080 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25081 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25082
25083 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25084
25085 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
25086 or if there's no space for the disk label and print the partition number on a
25087 invalid magic.
25088
25089 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25090
25091 * util/misc.c: Include <time.h>.
25092 (grub_millisleep): New function.
25093
25094 2009-03-04 Bean <bean123ch@gmail.com>
25095
25096 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
25097 another option -mno-red-zone.
25098
25099 * commands/handler.c: Change module description.
25100
25101 * kern/handler.c: Add missing space at the end of description line.
25102
25103 * kern/list.c: Likewise.
25104
25105 2009-03-03 Robert Millan <rmh@aybabtu.com>
25106
25107 Move more components to the relocation area, and fix mbi pointer
25108 handling to use the destination rather than the origin (thanks to
25109 Vladimir Serbinenko for spotting).
25110
25111 * loader/i386/multiboot.c (mbi_dest): New variable.
25112 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
25113 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
25114 relocation area.
25115
25116 2009-03-01 Bean <bean123ch@gmail.com>
25117
25118 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
25119 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
25120 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
25121 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
25122
25123 * loader/i386/efi/linux.c (acpi_guid): New variable.
25124 (acpi_guid): Likewise.
25125 (EBDA_SEG_ADDR): New constant.
25126 (LOW_MEM_ADDR): Likewise.
25127 (FAKE_EBDA_SEG): Likewise.
25128 (fake_bios_data): New function.
25129 (grub_linux_boot): Call fake_bios_data.
25130
25131 2009-03-01 Bean <bean123ch@gmail.com>
25132
25133 * commands/terminal.c: Removed.
25134
25135 * commands/handler.c: New file.
25136
25137 * include/grub/list.h: Likewise.
25138
25139 * include/grub/handler.h: Likewise.
25140
25141 * kern/list.c: Likewise.
25142
25143 * kern/handler.c: Likewise.
25144
25145 * kern/term.h: Include header file <grub/handler.h>.
25146 (grub_term_input): Move next field to the beginning.
25147 (grub_term_output): Likewise.
25148 (grub_term_input_class): New variable.
25149 (grub_term_output_class): Likewise.
25150 (grub_term_register_input): Changed to inline function.
25151 (grub_term_register_output): Likewise.
25152 (grub_term_unregister_input): Likewise.
25153 (grub_term_unregister_output): Likewise.
25154 (grub_term_set_current_input): Likewise.
25155 (grub_term_set_current_output): Likewise.
25156 (grub_term_get_current_input): Likewise.
25157 (grub_term_get_current_output): Likewise.
25158 (grub_term_iterate_input): Removed.
25159 (grub_term_iterate_output): Likewise.
25160
25161 * kern/term.c (grub_term_list_input): Removed.
25162 (grub_term_list_output): Likewise.
25163 (grub_term_input_class): New variable.
25164 (grub_term_output_class): Likewise.
25165 (grub_cur_term_input): Change variable as macro.
25166 (grub_cur_term_output): Likewise.
25167 (grub_term_register_input): Removed.
25168 (grub_term_register_output): Likewise.
25169 (grub_term_unregister_input): Likewise.
25170 (grub_term_unregister_output): Likewise.
25171 (grub_term_set_current_input): Likewise.
25172 (grub_term_set_current_output): Likewise.
25173 (grub_term_iterate_input): Likewise.
25174 (grub_term_iterate_output): Likewise.
25175 (grub_term_get_current_input): Likewise.
25176 (grub_term_get_current_output): Likewise.
25177
25178 * util/grub-editenv.c: Include header file <grub/handler.h>.
25179 (grub_term_get_current_input): Removed.
25180 (grub_term_get_current_output): Likewise.
25181 (grub_term_input_class): New variable.
25182 (grub_term_output_class): Likewise.
25183
25184 * util/grub-fstest.c (grub_term_get_current_input): Removed.
25185 (grub_term_get_current_output): Likewise.
25186 (grub_term_input_class): New variable.
25187 (grub_term_output_class): Likewise.
25188
25189 * util/grub-probe.c (grub_term_get_current_input): Removed.
25190 (grub_term_get_current_output): Likewise.
25191 (grub_term_input_class): New variable.
25192 (grub_term_output_class): Likewise.
25193
25194 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
25195 (grub_term_get_current_output): Likewise.
25196 (grub_term_input_class): New variable.
25197 (grub_term_output_class): Likewise.
25198
25199 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
25200 (terminal_mod_SOURCES): Likewise.
25201 (terminal_mod_CFLAGS): Likewise.
25202 (terminal_mod_LDFLAGS): Likewise.
25203
25204 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
25205 handler.c.
25206 (kernel_img_SOURCES): Add list.c and handler.c.
25207 (kernel_img_HEADERS): Add list.h and handler.h.
25208
25209 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
25210 handler.c.
25211 (kernel_mod_SOURCES): Add list.c and handler.c.
25212 (kernel_mod_HEADERS): Add list.h and handler.h.
25213
25214 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
25215 handler.c.
25216 (kernel_elf_SOURCES): Add list.c and handler.c.
25217 (kernel_elf_HEADERS): Add list.h and handler.h.
25218
25219 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
25220 handler.c.
25221 (kernel_elf_SOURCES): Add list.c and handler.c.
25222 (kernel_elf_HEADERS): Add list.h and handler.h.
25223
25224 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
25225 handler.c.
25226 (kernel_mod_SOURCES): Add list.c and handler.c.
25227 (kernel_mod_HEADERS): Add list.h and handler.h.
25228
25229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
25230 handler.c.
25231 (kernel_elf_SOURCES): Add list.c and handler.c.
25232 (kernel_elf_HEADERS): Add list.h and handler.h.
25233
25234 2009-02-27 Robert Millan <rmh@aybabtu.com>
25235
25236 Factorize elf32 / elf64 code in Multiboot loader. This will
25237 prevent it from getting out of sync again.
25238
25239 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
25240 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
25241 grub_multiboot_load_elf64): Move from here ...
25242 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
25243 grub_multiboot_load_elf): ... to here (new file).
25244
25245 2009-02-27 Robert Millan <rmh@aybabtu.com>
25246
25247 * util/grub.d/10_linux.in: Rename "single-user mode" to
25248 "recovery mode".
25249
25250 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
25251
25252 Don't leak in SCSI code.
25253 * disk/scsi.c (grub_scsi_close): free `scsi'.
25254
25255 2009-02-27 Robert Millan <rmh@aybabtu.com>
25256
25257 * loader/i386/pc/multiboot.c: Move from here ...
25258 * loader/i386/multiboot.c: ... to here. Update all users.
25259
25260 2009-02-27 Robert Millan <rmh@aybabtu.com>
25261
25262 Patch from Alexandre Bique <bique.alexandre@gmail.com>
25263 * util/i386/pc/grub-setup.c (setup): Fix directory path.
25264
25265 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
25266
25267 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
25268 b-tree.
25269
25270 2009-02-27 Robert Millan <rmh@aybabtu.com>
25271
25272 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
25273 `0x' qualifier as 0 when base is specified as parameter).
25274
25275 2009-02-24 Bean <bean123ch@gmail.com>
25276
25277 * configure.ac: Check for -mcmodel=large in x86_64 target.
25278
25279 * include/grub/efi/api.h (efi_call_10): New macro.
25280 (efi_wrap_10): New function.
25281
25282 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
25283 (GRUB_PE32_REL_BASED_HIGH): Likewise.
25284 (GRUB_PE32_REL_BASED_LOW): Likewise.
25285 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
25286 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
25287 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
25288 (GRUB_PE32_REL_BASED_SECTION): Likewise.
25289 (GRUB_PE32_REL_BASED_REL): Likewise.
25290 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
25291 (GRUB_PE32_REL_BASED_DIR64): Likewise.
25292 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
25293
25294 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
25295 issue.
25296
25297 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
25298 (efi_wrap_10): New function.
25299
25300 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
25301
25302 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
25303 MB/MBP model (NV chipset).
25304 (devdata_devs): Add devpath_5 to the list.
25305
25306 * load/i386/efi/linux.c (video_base): Remove variable.
25307 (RGB_MASK): New macro.
25308 (RGB_MAGIC): Likewise.
25309 (LINE_MIN): Likewise.
25310 (LINE_MAX): Likewise.
25311 (FBTEST_STEP): Likewise.
25312 (FBTEST_COUNT): Likewise.
25313 (fb_list): New variable.
25314 (grub_find_video_card): Remove function.
25315 (find_framebuf): New function.
25316 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
25317 line length.
25318
25319 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
25320 problem for x86_64.
25321
25322 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
25323
25324 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
25325
25326 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
25327 coding tool name.
25328
25329 2009-02-22 Robert Millan <rmh@aybabtu.com>
25330
25331 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
25332 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
25333 in our relocation, instead of using it directly from heap. Also
25334 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
25335
25336 2009-02-21 Robert Millan <rmh@aybabtu.com>
25337
25338 Implement USB keyboard support (based on patch by Marco Gerards)
25339
25340 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
25341 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
25342 (usb_keyboard_mod_LDFLAGS): New variables.
25343
25344 * term/usb_keyboard.c: New file.
25345
25346 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25347
25348 Corrected wrong declaration
25349
25350 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
25351
25352 2009-02-14 Christian Franke <franke@computer.org>
25353
25354 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
25355 (grub_lspci_iter): Print class code and programming interface byte.
25356
25357 2009-02-14 Christian Franke <franke@computer.org>
25358
25359 * gendistlist.sh: Ignore `.svn' directories.
25360
25361 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
25362
25363 * fs/fat.c: Add 2009 to Copyright line.
25364
25365 2009-02-14 Christian Franke <franke@computer.org>
25366
25367 * commands/hdparm.c: New file. Provides `hdparm' command
25368 which sends ATA commands via grub_disk_ata_pass_through ().
25369
25370 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
25371
25372 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
25373 and <grub/cpu/io.h> to include/grub/ata.h.
25374 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
25375 (GRUB_CDROM_SECTOR_SIZE): Remove.
25376 (GRUB_ATA_*): Move to include/grub/ata.h.
25377 (GRUB_ATAPI_*): Likewise.
25378 (enum grub_ata_commands): Likewise.
25379 (enum grub_ata_timeout_milliseconds): Likewise.
25380 (struct grub_ata_device): Likewise.
25381 (grub_ata_regset): Likewise.
25382 (grub_ata_regget): Likewise.
25383 (grub_ata_regset2): Likewise.
25384 (grub_ata_regget2): Likewise.
25385 (grub_ata_check_ready): Likewise.
25386 (grub_ata_wait_not_busy): Remove static, exported in
25387 include/grub/ata.h.
25388 (grub_ata_wait_drq): Likewise.
25389 (grub_ata_pio_read): Likewise.
25390
25391 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
25392 function for hdparm.mod.
25393
25394 * include/grub/ata.h: New file, contains declarations from
25395 disk/ata.c.
25396 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
25397
25398 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
25399 (grub_disk_ata_pass_through): New exported variable.
25400
25401 * kern/disk.c (grub_disk_ata_pass_through): New variable.
25402
25403 2009-02-13 Colin D Bennett <colin@gibibit.com>
25404
25405 Support multiple fallback entries, and provide an API to support
25406 executing default+fallback menu entries. Renamed the `terminal' menu
25407 viewer to `text'.
25408
25409 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
25410 variable declaration.
25411 (grub_menu_execute_callback): New structure declaration.
25412 (grub_menu_execute_callback_t): New typedef.
25413 (grub_menu_execute_with_fallback): New function declaration.
25414 (grub_menu_get_entry): Likewise.
25415 (grub_menu_get_timeout): Likewise.
25416 (grub_menu_set_timeout): Likewise.
25417
25418 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
25419
25420 * normal/menu.c (grub_wait_after_message): Moved to
25421 `normal/menu_text.c'.
25422 (draw_border): Likewise.
25423 (print_message): Likewise.
25424 (print_entry): Likewise.
25425 (print_entries): Likewise.
25426 (grub_menu_init_page): Likewise.
25427 (get_entry_number): Likewise.
25428 (print_timeout): Likewise.
25429 (run_menu): Likewise.
25430 (grub_menu_execute_entry): Likewise.
25431 (show_text_menu): Likewise.
25432 (get_and_remove_first_entry_number): New function.
25433 (grub_menu_execute_with_fallback): Likewise.
25434 (get_entry): Renamed to ...
25435 (grub_menu_get_entry): .. this and made it global.
25436 (get_timeout): Renamed to ...
25437 (grub_menu_get_timeout): ... this and made it global.
25438 (set_timeout): Renamed to ...
25439 (grub_menu_set_timeout): ... this and made it global.
25440 (grub_normal_terminal_menu_viewer): Renamed to ...
25441 (grub_normal_text_menu_viewer): ... this.
25442
25443 * normal/menu_text.c: New file. Extracted text-menu-specific code
25444 from normal/menu.c.
25445
25446 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
25447 (normal_mod_SOURCES): Likewise.
25448
25449 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25450 (normal_mod_SOURCES): Likewise.
25451
25452 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25453 (normal_mod_SOURCES): Likewise.
25454
25455 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
25456 (normal_mod_SOURCES): Likewise.
25457
25458 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25459 (normal_mod_SOURCES): Likewise.
25460
25461 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25462 (normal_mod_SOURCES): Likewise.
25463
25464 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25465 (normal_mod_SOURCES): Likewise.
25466
25467 2009-02-11 Robert Millan <rmh@aybabtu.com>
25468
25469 * util/grub.d/00_header.in: Update old reference to `font' command.
25470
25471 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
25472
25473 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
25474
25475 Based on patch from Javier Martín.
25476
25477 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
25478
25479 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
25480 to avoid false positives with FAT.
25481 (grub_fstest_SOURCES): Likewise.
25482 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25483 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25485 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
25486 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25487 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25488
25489 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
25490
25491 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
25492 bpb.version_specific.fat12_or_fat16.fstype and
25493 bpb.version_specific.fat32.fstype.
25494
25495 2009-02-08 Robert Millan <rmh@aybabtu.com>
25496
25497 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
25498
25499 2009-02-08 Robert Millan <rmh@aybabtu.com>
25500
25501 * Makefile.in (host_os, host_cpu): New variables.
25502 (target_os): Remove. Update all users.
25503
25504 2009-02-08 Marco Gerards <marco@gnu.org>
25505
25506 * Makefile.in (enable_grub_emu_usb): New variable.
25507 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
25508 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
25509 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
25510 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
25511 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
25512 `usbtest.mod' and `usbms.mod'.
25513 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
25514 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
25515 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
25516 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
25517 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
25518 variables.
25519
25520 * disk/usbms.c: New file.
25521
25522 * include/grub/usb.h: Likewise.
25523
25524 * include/grub/usbtrans.h: Likewise.
25525
25526 * include/grub/usbdesc.h: Likewise.
25527
25528 * bus/usb/usbtrans.c: Likewise.
25529
25530 * bus/usb/ohci.c: Likewise.
25531
25532 * bus/usb/uhci.c: Likewise.
25533
25534 * bus/usb/usbhub.c: Likewise.
25535
25536 * bus/usb/usb.c: Likewise.
25537
25538 * commands/usbtest.c: Likewise.
25539
25540 * util/usb.c: Likewise.
25541
25542 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
25543
25544 * configure.ac: Test for libusb presence.
25545
25546 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
25547
25548 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
25549
25550 * kern/mm.c: Add more comments.
25551
25552 2009-02-08 Robert Millan <rmh@aybabtu.com>
25553
25554 Patch from Javier Martín.
25555 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
25556 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
25557
25558 2009-02-08 Robert Millan <rmh@aybabtu.com>
25559
25560 * fs/cpio.c: Split tar functionality to ...
25561 * fs/tar.c: ... here (new file). Update all users.
25562
25563 2009-02-07 Robert Millan <rmh@aybabtu.com>
25564
25565 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
25566 backward-incompatible features.
25567
25568 Based on patch from Javier Martín, with some adjustments.
25569
25570 2009-02-07 Michael Scherer <misc@mandriva.org>
25571
25572 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
25573
25574 2009-02-07 Robert Millan <rmh@aybabtu.com>
25575
25576 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
25577 position of `disk/lvm.c' to ensure grub_init_all() always picks it
25578 after the RAID stuff.
25579
25580 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
25581
25582 Fixes problem when running vbetest command as reported by
25583 Vladimir Serbinenko <phcoder@gmail.com>.
25584
25585 * (grub_vbe_set_video_mode): Fixed problem with text modes.
25586
25587 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
25588
25589 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
25590 /dev/md/NpN style mdraid devices.
25591
25592 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
25593
25594 * util/unifont2pff.rb: Remove.
25595
25596 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
25597
25598 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
25599 `#'.
25600
25601 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
25602
25603 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
25604 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25605 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25606 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
25607 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25608 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25609 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25610
25611 2009-02-02 Christian Franke <franke@computer.org>
25612
25613 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
25614
25615 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
25616
25617 * INSTALL: Note that we now require at least autoconf 2.59 and
25618 that LZO is optional.
25619
25620 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
25621
25622 Base on patch on bug #24154 created by Tomas Tintera
25623 <trosos@seznam.cz>.
25624
25625 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
25626
25627 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
25628
25629 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
25630 <bero@arklinux.org>.
25631
25632 * normal/parser.y (script_init): Add missing semicolon.
25633
25634 2009-01-31 Colin D Bennett <colin@gibibit.com>
25635
25636 * normal/main.c: Add include to grub/menu_viewer.h.
25637 (free_menu_entry_classes): Added.
25638 (grub_normal_menu_addentry): Added class property handling.
25639 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
25640 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
25641
25642 * normal/menu_viewer.c: New file.
25643
25644 * normal/menu.c (run_menu_entry): Renamed to ...
25645 (grub_menu_execute_entry): ... this and made it as global.
25646 (grub_menu_run): Renamed to ...
25647 (show_text_menu): ... this and made it local.
25648 (show_text_menu): Adapt to new function names.
25649 (grub_normal_terminal_menu_viewer): New global variable.
25650
25651 * include/grub/menu.h: New file.
25652
25653 * include/grub/menu_viewer.h: New file.
25654
25655 * include/grub/normal.h: Added include to grub/menu.h.
25656 (grub_menu_entry): Moved to include/grub/menu.h.
25657 (grub_menu_entry_t): Likewise.
25658 (grub_menu): Likewise.
25659 (grub_menu_t): Likewise.
25660 (grub_normal_terminal_menu_viewer): Added.
25661 (grub_menu_execute_entry): Likewise.
25662 (grub_menu_run): Removed.
25663
25664 * DISTLIST: Added include/grub/menu.h.
25665 Added include/grub/menu_viewer.h.
25666 Added normal/menu_viewer.c.
25667
25668 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
25669
25670 * normal/execute.c (grub_script_execute_menuentry): Changed to use
25671 arglist for menutitle arguments.
25672
25673 * normal/main.c (grub_normal_menu_addentry): Likewise.
25674
25675 * normal/parser.y (menuentry): Likewise.
25676
25677 * normal/script.c (grub_script_create_cmdmenu): Likewise.
25678
25679 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
25680 (grub_script_create_cmdmenu): Likewise.
25681
25682 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
25683
25684 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
25685 changes.
25686
25687 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
25688
25689 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
25690
25691 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
25692
25693 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
25694
25695 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
25696
25697 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
25698
25699 2009-01-30 Christian Franke <franke@computer.org>
25700
25701 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
25702 in option help text.
25703
25704 2009-01-27 Pavel Roskin <proski@gnu.org>
25705
25706 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
25707
25708 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
25709
25710 * commands/lsmmap.c: Add include to grub/machine/memory.h.
25711
25712 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
25713
25714 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
25715 unregister function.
25716
25717 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
25718
25719 * disk/scsi.c (grub_scsi_read): Fix sign problem.
25720
25721 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
25722
25723 * util/grub-mkfont.c (usage): Fix typo.
25724
25725 * util/elf/grub-mkimage.c (load_modules): Fix warning.
25726
25727 2009-01-26 Daniel Mierswa <impulze@impulze.org>
25728
25729 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
25730
25731 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
25732
25733 * kern/misc.c (grub_strcasecmp): New function.
25734 (grub_strcasecmp): Use grub_size_t instead of int for length.
25735 Fix return value.
25736 * include/grub/misc.h: Update function prototypes.
25737
25738 2009-01-26 Robert Millan <rmh@aybabtu.com>
25739
25740 * configure.ac: Fix cross-compilation check.
25741
25742 2009-01-22 Christian Franke <franke@computer.org>
25743
25744 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
25745 (precision) digit string. Allow `.format2' without `format1' (width).
25746 Limit input chars for `%s' output to `format2' if specified. This is
25747 compatible with standard printf ().
25748
25749 2009-01-22 Christian Franke <franke@computer.org>
25750
25751 * disk/ata.c (grub_ata_wait_status): Replace by ...
25752 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
25753 other status bits may be invalid while BSY is asserted.
25754 (grub_ata_check_ready): New function.
25755 (grub_ata_cmd): Removed.
25756 (grub_ata_wait_drq): New function.
25757 (grub_ata_strncpy): Remove inline.
25758 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
25759 and error check now done by grub_ata_wait_drq ().
25760 (grub_ata_pio_write): Likewise.
25761 (grub_atapi_identify): Set DEV before check for !BSY. Use
25762 grub_ata_wait_drq () to wait for data.
25763 (grub_ata_device_initialize): Add status register check to
25764 detect missing SATA slave devices. Add debug messages.
25765 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
25766 (grub_atapi_packet): Set DEV before check for !BSY. Replace
25767 transfer loop by grub_ata_pio_write ().
25768 (grub_ata_identify): Set DEV before check for !BSY. Use
25769 grub_ata_wait_drq () to wait for data.
25770 (grub_ata_setaddress): Set DEV before check for !BSY.
25771 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
25772 read/write in one loop. Fix invalid command on write. Fix incomplete
25773 command on (size % batch) == 0. Add missing error check after write of
25774 last block. Add debug messages.
25775 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
25776
25777 2009-01-19 Christian Franke <franke@computer.org>
25778
25779 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
25780 (GRUB_ATAPI_IREASON_*): Likewise.
25781 (grub_ata_pio_write): Fix timeout error return.
25782 (grub_atapi_identify): Add grub_ata_wait () after cmd.
25783 (grub_atapi_wait_drq): New function.
25784 (grub_atapi_packet): New parameter `size'.
25785 Use grub_atapi_wait_drq () and direct write instead of
25786 grub_ata_pio_write ().
25787 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
25788 reads the number of bytes requested by the device for each DRQ
25789 assertion.
25790 (grub_atapi_write): Remove old implementation, return not
25791 implemented instead.
25792
25793 2009-01-19 Christian Franke <franke@computer.org>
25794
25795 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
25796 of 512 to calculate data size.
25797 (grub_scsi_read12): Likewise.
25798 (grub_scsi_write10): Likewise.
25799 (grub_scsi_write12): Likewise.
25800 (grub_scsi_read): Adjust size according to blocksize.
25801 Add checks for invalid blocksize and unaligned transfer.
25802
25803 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
25804
25805 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
25806
25807 * term/gfxterm.c (write_char): Fix background rendering for wide
25808 width glyphs.
25809
25810 2009-01-19 Robert Millan <rmh@aybabtu.com>
25811
25812 * config.guess: Update to latest version from config git.
25813 * config.sub: Likewise.
25814
25815 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
25816
25817 * Makefile.in: Change font compilation to use new grub-mkfont instead
25818 of java version.
25819
25820 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
25821 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
25822 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
25823 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
25824 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
25825 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
25826 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
25827 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
25828 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
25829
25830 2009-01-16 Christian Franke <franke@computer.org>
25831
25832 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
25833 (enum grub_ata_timeout_milliseconds): New enum.
25834 (grub_ata_wait_status): Add parameter milliseconds.
25835 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
25836 recovery from timed-out commands.
25837 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
25838 return grub_errno instead of REG_ERROR.
25839 (grub_ata_pio_write): Add parameter milliseconds.
25840 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
25841 Pass milliseconds to grub_ata_wait_status () and
25842 grub_ata_pio_read ().
25843 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
25844 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
25845 grub_ata_wait_status (). Fix IDENTIFY timeout check.
25846 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
25847 It is not suitable for device detection, because DEV bit is ignored,
25848 the command may run too long, and not all devices set the signature
25849 properly.
25850 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
25851 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
25852 Fix device selection, DEV bit must be set first to address the registers
25853 of the correct device.
25854 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
25855 grub_ata_pio_read/write ().
25856 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
25857 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
25858
25859 2009-01-13 Carles Pina i Estany <carles@pina.cat>
25860
25861 * util/grub-editenv.c (main): Use fseeko(), not fseek().
25862
25863 2009-01-13 Bean <bean123ch@gmail.com>
25864
25865 * util/grub-mkfont.c (write_font): forget to remove some debug code.
25866
25867 2009-01-13 Bean <bean123ch@gmail.com>
25868
25869 * Makefile.in: (enable_grub_mkfont): New variable.
25870 (freetype_cflags): Likewise.
25871 (freetype_libs): Likewise.
25872
25873 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
25874 (grub_mkfont_SOURCES): New variable.
25875 (grub_mkfont_CFLAGS): Likewise.
25876 (grub_mkfont_LDFLAGS): Likewise.
25877
25878 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
25879 library if `--enable-grub-mkfont' is requested.
25880 (enable_grub_mkfont): New variable.
25881 (freetype_cflags): Likewise.
25882 (freetype_libs): Likewise.
25883
25884 * util/grub-mkfont.c: New file.
25885
25886 2009-01-12 Christian Franke <franke@computer.org>
25887
25888 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
25889 mode check. Fix setting of compat_use[].
25890
25891 2009-01-10 Robert Millan <rmh@aybabtu.com>
25892
25893 Update a few copyright years which we forgot to do in 2008 (only for
25894 files whose changes made in 2008 were copyright-significant)
25895
25896 * Makefile.in: Add 2008 to Copyright line.
25897 * disk/ieee1275/ofdisk.c: Likewise.
25898 * disk/efi/efidisk.c: Likewise.
25899 * kern/dl.c: Likewise.
25900 * kern/sparc64/ieee1275/init.c: Likewise.
25901 * kern/mm.c: Likewise.
25902 * kern/efi/mm.c: Likewise.
25903 * boot/i386/pc/boot.S: Likewise.
25904 * genfslist.sh: Likewise.
25905 * fs/iso9660.c: Likewise.
25906 * fs/hfs.c: Likewise.
25907 * fs/jfs.c: Likewise.
25908 * fs/minix.c: Likewise.
25909 * fs/ufs.c: Likewise.
25910 * gensymlist.sh.in: Likewise.
25911 * genkernsyms.sh.in: Likewise.
25912 * include/grub/misc.h: Likewise.
25913 * include/grub/types.h: Likewise.
25914 * include/grub/symbol.h: Likewise.
25915 * include/grub/elf.h: Likewise.
25916 * include/grub/kernel.h: Likewise.
25917 * include/grub/disk.h: Likewise.
25918 * include/grub/dl.h: Likewise.
25919 * include/grub/i386/linux.h: Likewise.
25920 * include/grub/i386/pc/biosdisk.h: Likewise.
25921 * include/grub/efi/api.h: Likewise.
25922 * include/grub/efi/pe32.h: Likewise.
25923 * include/grub/util/misc.h: Likewise.
25924 * normal/execute.c: Likewise.
25925 * normal/arg.c: Likewise.
25926 * normal/completion.c: Likewise.
25927 * normal/lexer.c: Likewise.
25928 * normal/parser.y: Likewise.
25929 * normal/misc.c: Likewise.
25930 * commands/i386/pc/vbeinfo.c: Likewise.
25931 * commands/hexdump.c: Likewise.
25932 * commands/terminal.c: Likewise.
25933 * commands/ls.c: Likewise.
25934 * commands/help.c: Likewise.
25935 * partmap/pc.c: Likewise.
25936 * loader/efi/chainloader.c: Likewise.
25937 * loader/multiboot_loader.c: Likewise.
25938 * loader/i386/pc/multiboot2.c: Likewise.
25939 * term/efi/console.c: Likewise.
25940 * term/i386/pc/serial.c: Likewise.
25941 * util/lvm.c: Likewise.
25942 * util/console.c: Likewise.
25943 * util/i386/efi/grub-mkimage.c: Likewise.
25944 * util/raid.c: Likewise.
25945
25946 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
25947
25948 * commands/videotest.c: Removed include to grub/machine/memory.h.
25949
25950 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
25951 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
25952 (video_mod_SOURCES): Removed.
25953 (video_mod_CFLAGS): Likewise.
25954 (video_mod_LDFLAGS): Likewise.
25955 (gfxterm_mod_SOURCES): Likewise.
25956 (gfxterm_mod_CFLAGS): Likewise.
25957 (gfxterm_mod_LDFLAGS): Likewise.
25958 (videotest_mod_SOURCES): Likewise.
25959 (videotest_mod_CFLAGS): Likewise.
25960 (videotest_mod_LDFLAGS): Likewise.
25961 (bitmap_mod_SOURCES): Likewise.
25962 (bitmap_mod_CFLAGS): Likewise.
25963 (bitmap_mod_LDFLAGS): Likewise.
25964 (tga_mod_SOURCES): Likewise.
25965 (tga_mod_CFLAGS): Likewise.
25966 (tga_mod_LDFLAGS): Likewise.
25967 (jpeg_mod_SOURCES): Likewise.
25968 (jpeg_mod_CFLAGS): Likewise.
25969 (jpeg_mod_LDFLAGS): Likewise.
25970 (png_mod_SOURCES): Likewise.
25971 (png_mod_CFLAGS): Likewise.
25972 (png_mod_LDFLAGS): Likewise.
25973
25974 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
25975 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
25976 (video_mod_SOURCES): Added.
25977 (video_mod_CFLAGS): Likewise.
25978 (video_mod_LDFLAGS): Likewise.
25979 (videotest_mod_SOURCES): Likewise.
25980 (videotest_mod_CFLAGS): Likewise.
25981 (videotest_mod_LDFLAGS): Likewise.
25982 (bitmap_mod_SOURCES): Likewise.
25983 (bitmap_mod_CFLAGS): Likewise.
25984 (bitmap_mod_LDFLAGS): Likewise.
25985 (tga_mod_SOURCES): Likewise.
25986 (tga_mod_CFLAGS): Likewise.
25987 (tga_mod_LDFLAGS): Likewise.
25988 (jpeg_mod_SOURCES): Likewise.
25989 (jpeg_mod_CFLAGS): Likewise.
25990 (jpeg_mod_LDFLAGS): Likewise.
25991 (png_mod_SOURCES): Likewise.
25992 (png_mod_CFLAGS): Likewise.
25993 (png_mod_LDFLAGS): Likewise.
25994 (gfxterm_mod_SOURCES): Likewise.
25995 (gfxterm_mod_CFLAGS): Likewise.
25996 (gfxterm_mod_LDFLAGS): Likewise.
25997
25998 * term/gfxterm.c: Removed include to grub/machine/memory.h,
25999 grub/machine/console.h.
26000
26001 2009-01-04 Jerone Young <jerone@gmail.com>
26002
26003 Make on screen instructions clearer
26004
26005 Based on patch created by Jidanni <jidanni@jidanni.org>
26006
26007 * normal/menu.c: print clearer instructions on the screen
26008
26009 2009-01-02 Colin D Bennett <colin@gibibit.com>
26010
26011 New font engine.
26012
26013 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
26014 build system and fixed gfxterm.c to work with different sized fonts.
26015
26016 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
26017
26018 * configure: Re-generated.
26019
26020 * DISTLIST: Removed font/manager.c.
26021 Added font/font.c.
26022 Added font/font_cmd.c.
26023
26024 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
26025 compilation.
26026
26027 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
26028
26029 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
26030
26031 * kern/term.c: Changed users of grub_utf8_to_ucs4.
26032
26033 * normal/menu.c: Likewise.
26034
26035 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
26036 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
26037
26038 * include/grub/font.h: Replaced with new file.
26039
26040 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
26041 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
26042 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
26043 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
26044 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
26045 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
26046 fg_red, fg_green, fg_blue, fg_alpha.
26047 (grub_video_adapter): Removed blit_glyph.
26048 (grub_video_blit_glyph): Removed.
26049
26050 * font/manager.c: Removed file.
26051
26052 * font/font.c: New file.
26053
26054 * font/font_cmd.c: Likewise.
26055
26056 * video/video.c (grub_video_blit_glyph): Removed.
26057
26058 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
26059 (grub_video_vbe_map_rgba): Likewise.
26060 (grub_video_vbe_unmap_color_int): Likewise.
26061 (grub_video_vbe_blit_glyph): Removed.
26062 (grub_video_vbe_adapter): Removed blit_glyph.
26063
26064 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
26065 (get_pixel): Likewise.
26066 (set_pixel): Likewise.
26067
26068 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
26069
26070 * term/gfxterm.c: Adapted to new font engine.
26071
26072 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
26073
26074 * term/i386/pc/vga.c: Likewise.
26075
26076 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
26077
26078 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
26079
26080 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26081
26082 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26083
26084 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
26085
26086 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
26087
26088 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
26089
26090 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
26091
26092 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
26093
26094 * util/grub.d/00_header.in: Changed to use new loadfont command.
26095
26096 * util/grub-mkconfig_lib.in: Changed font extension.
26097
26098 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
26099
26100 * util/getroot.c (grub_util_get_grub_dev): Add support for
26101 /dev/md/dNNpNN style partitionable mdraid devices.
26102
26103 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
26104
26105 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
26106 at a time limit of the PXE TFTP API correctly.
26107 (grub_pxefs_close): Likewise.
26108
26109 2008-11-29 Robert Millan <rmh@aybabtu.com>
26110
26111 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
26112 grub_ata_device_initialize() calls.
26113
26114 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
26115
26116 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
26117 iteration failed.
26118 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
26119
26120 2008-11-28 Robert Millan <rmh@aybabtu.com>
26121
26122 Fix build on powerpc-ieee1275. Based on patch created by
26123 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
26124 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
26125 `kern/ieee1275/mmap.c'.
26126 * include/grub/powerpc/ieee1275/memory.h: New file.
26127
26128 Provide grub-install on coreboot.
26129 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
26130 (grub_install_SOURCES): New variable.
26131 * util/i386/pc/grub-install.in: Add a few condition checks to make it
26132 usable on coreboot.
26133
26134 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
26135
26136 * util/grub-fstest.c (grub_term_get_current_input): Change return type
26137 to `grub_term_input_t'.
26138 (grub_term_get_current_output): Change return type to
26139 `grub_term_output_t'.
26140
26141 2008-11-22 Robert Millan <rmh@aybabtu.com>
26142
26143 Fix breakage on coreboot due to declaration mismatch.
26144 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
26145 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
26146 grub_vga_text_cls().
26147
26148 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
26149 comments. Avoid copying one more byte than necessary (just in case).
26150
26151 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
26152 to 0x200000 (avoids trouble with some OFW implementations, and matches
26153 with the one in Yaboot).
26154 Reported by Manoel Abranches
26155
26156 2008-11-20 Robert Millan <rmh@aybabtu.com>
26157
26158 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
26159 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
26160
26161 * util/grub-mkconfig_lib.in (grub_warn): New function.
26162 (convert_system_path_to_grub_path): Use grub_warn() when issuing
26163 warnings, to obtain consistent formatting.
26164 * util/grub.d/00_header.in: Likewise.
26165 * util/update-grub_lib.in: Likewise.
26166
26167 * loader/i386/linux.c (allocate_pages): Fix a warning.
26168 Move comment text to `#error' stanza.
26169
26170 Harmonize ieee1275's grub_available_iterate() with the generic
26171 grub_machine_mmap_iterate() interface (fixes a recently-introduced
26172 build problem on i386-ieee1275):
26173 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
26174 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
26175 parameter `type'. Update all users of this function.
26176 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
26177 `kern/ieee1275/mmap.c'.
26178 * kern/ieee1275/init.c
26179 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
26180 with ...
26181 (grub_machine_mmap_iterate): ... this.
26182 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
26183 return type to `grub_err_t'. Update all implementations of this
26184 function prototype.
26185 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
26186 Likewise.
26187
26188 Add `lsmmap' command (lists firmware-provided memory map):
26189 * commands/lsmmap.c: New file.
26190 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
26191 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
26192 variables.
26193 * conf/powerpc-ieee1275.rmk: Likewise.
26194 * conf/i386-coreboot.rmk: Likewise.
26195 * conf/i386-ieee1275.rmk: Likewise.
26196
26197 2008-11-19 Robert Millan <rmh@aybabtu.com>
26198
26199 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
26200 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
26201 constraints to initrd allocation (based on code from
26202 loader/i386/pc/linux.c). Without them, initrd was allocated too high
26203 for Linux to find it.
26204
26205 2008-11-14 Robert Millan <rmh@aybabtu.com>
26206
26207 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
26208 order to cope with duplicate slashes.
26209
26210 2008-11-14 Robert Millan <rmh@aybabtu.com>
26211
26212 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
26213 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
26214 don't want to mess with lower memory, because it is used in the Linux
26215 loader.
26216
26217 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
26218 an appropriate place in lower memory, between 0x10000 and 0x90000,
26219 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
26220 is in our heap (probably as a result of it being corrupted during
26221 decompression). Add #error instance with comment to explain why this
26222 loader isn't currently usable on PC/BIOS.
26223
26224 2008-11-14 Robert Millan <rmh@aybabtu.com>
26225
26226 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
26227 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
26228
26229 2008-11-12 Robert Millan <rmh@aybabtu.com>
26230
26231 Make loader/i386/linux.c buildable on i386-pc (although disabled).
26232
26233 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
26234 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
26235 from here ...
26236 * include/grub/i386/pc/memory.h: ... to here.
26237
26238 2008-11-12 Robert Millan <rmh@aybabtu.com>
26239
26240 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
26241 split).
26242
26243 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
26244 (grub_console_cur_color, grub_console_real_putchar)
26245 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
26246 (grub_console_setcolorstate, grub_console_setcolor)
26247 (grub_console_getcolor): Move from here ...
26248 * include/grub/i386/vga_common.h: ... to here (new file).
26249
26250 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
26251 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
26252 `<grub/i386/io.h>'.
26253 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
26254 `<grub/i386/vga_common.h>'.
26255
26256 2008-11-12 Robert Millan <rmh@aybabtu.com>
26257
26258 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
26259 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
26260 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
26261 variables.
26262 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
26263 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
26264
26265 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
26266 grub_console_init() with call to grub_vga_text_init().
26267 (grub_machine_fini): Replace call to
26268 grub_console_fini() with call to grub_vga_text_fini() and
26269 grub_at_keyboard_fini().
26270
26271 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
26272 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
26273 (grub_console_setcolorstate, grub_console_setcolor)
26274 (grub_console_getcolor): New function prototypes.
26275
26276 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
26277 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
26278 (grub_vga_text_setcursor): Static-ize.
26279 (grub_vga_text_term): New structure.
26280 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
26281
26282 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
26283 (grub_console_cur_color, grub_console_standard_color)
26284 (grub_console_normal_color, grub_console_highlight_color)
26285 (map_char, grub_console_putchar, grub_console_getcharwidth)
26286 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
26287 (grub_console_getcolor): Move from here ...
26288 * term/i386/vga_common.c: ... to here (same function names).
26289
26290 2008-11-12 Robert Millan <rmh@aybabtu.com>
26291
26292 Use newly-added Multiboot support in coreboot.
26293
26294 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
26295 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
26296
26297 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
26298 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
26299 (codestart): Store the MBI in `startup_multiboot_info' when we're
26300 being loaded using Multiboot.
26301
26302 * kern/i386/coreboot/init.c (grub_machine_init): Move
26303 grub_at_keyboard_init() call to beginning of function (useful for
26304 debugging). Call grub_machine_mmap_init() before attempting to use
26305 grub_machine_mmap_iterate().
26306 (grub_lower_mem, grub_upper_mem): Move from here ...
26307 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
26308 here (new file).
26309
26310 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
26311 function prototype.
26312
26313 2008-11-12 Robert Millan <rmh@aybabtu.com>
26314
26315 Fix a regression introduced by the at_keyboard.mod split. Because
26316 some terminals are default on some platforms and non-default on
26317 others, the first terminal being registered determines which is
26318 going to be default.
26319
26320 * kern/term.c (grub_term_register_input): If this is the first
26321 terminal being registered, set it as the current one.
26322 (grub_term_register_output): Likewise.
26323
26324 * term/efi/console.c (grub_console_init): Do not call
26325 grub_term_set_current_output() or grub_term_set_current_input().
26326 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
26327 * term/i386/pc/console.c (grub_console_init): Likewise.
26328 (grub_console_fini): Do not call grub_term_set_current_input()
26329 (but leave grub_term_set_current_output() to restore text mode).
26330
26331 2008-11-10 Robert Millan <rmh@aybabtu.com>
26332
26333 * util/grub.d/00_header.in: Add backward compatibility check for
26334 versions of terminal.mod that don't understand `terminal_input' or
26335 `terminal_output'.
26336
26337 2008-11-09 Robert Millan <rmh@aybabtu.com>
26338
26339 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
26340 `terminal_input' / `terminal_output', not `terminal'.
26341
26342 2008-11-08 Robert Millan <rmh@aybabtu.com>
26343
26344 * Makefile.in (include_DATA): Fix srcdir=. assumption.
26345 (DISTCLEANFILES): Add `build_env.mk'.
26346
26347 2008-11-08 Robert Millan <rmh@aybabtu.com>
26348
26349 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
26350 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
26351 members. Update all users.
26352 * util/console.c (grub_ncurses_term): Split in ...
26353 (grub_ncurses_term_input): ... this, and ...
26354 (grub_ncurses_term_output): ... this. Update all users.
26355 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
26356
26357 2008-11-08 Robert Millan <rmh@aybabtu.com>
26358
26359 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
26360 (PKGDATA): Add $(pkgdata_SRCDIR).
26361 (pkglib_BUILDDIR): New variable.
26362 (pkgdata_SRCDIR): New variable.
26363 (build_env.mk): New target.
26364 (include_DATA): New variable.
26365 (install-local): Install $(include_DATA) files in $(includedir).
26366
26367 2008-11-07 Pavel Roskin <proski@gnu.org>
26368
26369 * gendistlist.sh: Use C locale for sorting to ensure consistent
26370 output on all systems.
26371
26372 * util/grub.d/00_header.in: Remove incorrect space before
26373 "serial".
26374
26375 2008-11-07 Robert Millan <rmh@aybabtu.com>
26376
26377 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
26378 per specification.
26379 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
26380 * loader/multiboot_loader.c (find_multi_boot2_header): New function
26381 (based on find_multi_boot1_header).
26382 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
26383 using find_multi_boot2_header(), and abort if neither Multiboot or
26384 Multiboot headers were found.
26385
26386 2008-11-07 Robert Millan <rmh@aybabtu.com>
26387
26388 Modularize at_keyboard.mod:
26389
26390 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
26391 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
26392 (at_keyboard_mod_LDFLAGS): New variables.
26393
26394 Actual terminal split:
26395
26396 * include/grub/term.h (struct grub_term): Split in ...
26397 (struct grub_term_input): ... this, and ...
26398 (struct grub_term_output): ... this. Update all users.
26399 (grub_term_set_current): Split in ...
26400 (grub_term_set_current_input): ... this, and ...
26401 (grub_term_set_current_output): ... this.
26402 (grub_term_get_current): Split in ...
26403 (grub_term_get_current_input): ... this, and ...
26404 (grub_term_get_current_output): ... this.
26405 (grub_term_register): Split in ...
26406 (grub_term_register_input): ... this, and ...
26407 (grub_term_register_output): ... this.
26408 (grub_term_unregister): Split in ...
26409 (grub_term_unregister_input): ... this, and ...
26410 (grub_term_unregister_output): ... this.
26411 (grub_term_iterate): Split in ...
26412 (grub_term_iterate_input): ... this, and ...
26413 (grub_term_iterate_output): ... this.
26414
26415 * kern/term.c (grub_term_list): Split in ...
26416 (grub_term_list_input): ... this, and ...
26417 (grub_term_list_output): ... this. Update all users.
26418 (grub_cur_term): Split in ...
26419 (grub_cur_term_input): ... this, and ...
26420 (grub_cur_term_output): ... this. Update all users.
26421 (grub_term_set_current): Split in ...
26422 (grub_term_set_current_input): ... this, and ...
26423 (grub_term_set_current_output): ... this.
26424 (grub_term_get_current): Split in ...
26425 (grub_term_get_current_input): ... this, and ...
26426 (grub_term_get_current_output): ... this.
26427 (grub_term_register): Split in ...
26428 (grub_term_register_input): ... this, and ...
26429 (grub_term_register_output): ... this.
26430 (grub_term_unregister): Split in ...
26431 (grub_term_unregister_input): ... this, and ...
26432 (grub_term_unregister_output): ... this.
26433 (grub_term_iterate): Split in ...
26434 (grub_term_iterate_input): ... this, and ...
26435 (grub_term_iterate_output): ... this.
26436
26437 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
26438 a check for input and one for output (and only attempt to get keys
26439 from user when input works).
26440
26441 * util/grub-probe.c (grub_term_get_current): Split in ...
26442 (grub_term_get_current_input): ... this, and ...
26443 (grub_term_get_current_output): ... this.
26444 * util/grub-fstest.c: Likewise.
26445 * util/i386/pc/grub-setup.c: Likewise.
26446 * util/grub-editenv.c: Likewise.
26447
26448 Portability adjustments:
26449
26450 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
26451 `term/i386/pc/at_keyboard.c'.
26452 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
26453 grub_keyboard_controller_init() (now handled by terminal .init).
26454 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
26455 grub_at_keyboard_init().
26456 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
26457 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
26458 at_keyboard.mod via input terminal interface).
26459 * include/grub/i386/coreboot/console.h: Convert into a stub for
26460 `<grub/i386/pc/console.h>'.
26461
26462 Migrate full terminals to new API:
26463
26464 * term/efi/console.c (grub_console_term): Split into ...
26465 (grub_console_term_input): ... this, and ...
26466 (grub_console_term_output): ... this. Update all users.
26467 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
26468 (grub_ofconsole_init): Split into ...
26469 (grub_ofconsole_init_input): ... this, and ...
26470 (grub_ofconsole_init_output): ... this.
26471 (grub_ofconsole_term): Split into ...
26472 (grub_ofconsole_term_input): ... this, and ...
26473 (grub_ofconsole_term_output): ... this. Update all users.
26474 * term/i386/pc/serial.c (grub_serial_term): Split into ...
26475 (grub_serial_term_input): ... this, and ...
26476 (grub_serial_term_output): ... this. Update all users.
26477 * term/i386/pc/console.c (grub_console_term): Split into ...
26478 (grub_console_term_input): ... this, and ...
26479 (grub_console_term_output): ... this. Update all users.
26480 (grub_console_term_input): Only enable it on PC/BIOS platform.
26481 (grub_console_init): Remove grub_keyboard_controller_init() call.
26482
26483 Migrate input terminals to new API:
26484
26485 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
26486 `i386' and `i386/pc' to enable build on x86_64 (this driver is
26487 i386-specific anyway).
26488 (grub_console_checkkey): Rename to ...
26489 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
26490 users.
26491 (grub_keyboard_controller_orig): New variable.
26492 (grub_console_getkey): Rename to ...
26493 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
26494 users.
26495 (grub_keyboard_controller_init): Static-ize. Save original
26496 controller value so that it can be restored ...
26497 (grub_keyboard_controller_fini): ... here (new function).
26498 (grub_at_keyboard_term): New structure.
26499 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
26500 functions.
26501
26502 Migrate output terminals to new API:
26503
26504 * term/i386/pc/vga.c (grub_vga_term): Change type to
26505 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
26506 members. Update all users.
26507 * term/gfxterm.c (grub_video_term): Change type to
26508 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
26509 members. Update all users.
26510 * include/grub/i386/pc/console.h (grub_console_checkkey)
26511 (grub_console_getkey): Do not export (no longer needed by gfxterm,
26512 etc).
26513
26514 Migrate `terminal' command and userland tools to new API:
26515
26516 * commands/terminal.c (grub_cmd_terminal): Split into ...
26517 (grub_cmd_terminal_input): ... this, and ...
26518 (grub_cmd_terminal_output): ... this.
26519 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
26520 `terminal_input' and `terminal_output'.
26521 * util/grub.d/00_header.in: Adjust `terminal' calls to new
26522 `terminal_input' / `terminal_output' API.
26523 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
26524 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
26525 provided ${GRUB_TERMINAL}, convert it).
26526
26527 2008-11-04 Robert Millan <rmh@aybabtu.com>
26528
26529 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
26530 for FreeBSD.
26531 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
26532
26533 2008-11-03 Bean <bean123ch@gmail.com>
26534
26535 * kern/elf.c (grub_elf32_load): Revert to previous code.
26536 (grub_elf64_load): Likewise.
26537
26538 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
26539
26540 2008-11-01 Robert Millan <rmh@aybabtu.com>
26541
26542 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
26543 (TARGET_CPPFLAGS): Likewise.
26544 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
26545
26546 2008-11-01 Carles Pina i Estany <carles@pina.cat>
26547
26548 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
26549
26550 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
26551
26552 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
26553 addition of objects until the code is not going to be able to fail.
26554
26555 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
26556
26557 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
26558 (add a missing NULL check, and correct them by moving the pointer
26559 operations after the actual check).
26560
26561 2008-10-29 Robert Millan <rmh@aybabtu.com>
26562
26563 * util/i386/pc/grub-install.in: Handle empty string as output from
26564 make_system_path_relative_to_its_root().
26565
26566 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
26567
26568 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
26569 circular metadata worst case scenario. If the metadata is circular
26570 then copy the wrap in place.
26571 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
26572 project lib/format_text/layout.h
26573 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
26574
26575 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
26576
26577 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
26578
26579 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
26580
26581 * util/update-grub_lib.in: Mention filename in warning message.
26582
26583 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
26584
26585 * NEWS: Update for rename of update-grub to grub-mkconfig.
26586
26587 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
26588
26589 * util/update-grub_lib.in: Copy to ...
26590 * util/grub-mkconfig_lib.in: ... this. Update all users.
26591 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
26592 * util/update-grub.in: Rename to ...
26593 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
26594 option. Add `--output' option to allow users to specify the generated
26595 configuration file. Default to stdout.
26596 (update_grub_dir): Rename to ...
26597 (grub_mkconfig_dir): ... this.
26598 (grub_cfg): Default to an empty string.
26599 * conf/common.rmk (update-grub): Rename to ...
26600 (grub-mkconfig): ... this.
26601 (update-grub_lib): Copy to ...
26602 (grub-mkconfig_lib): ... this.
26603 (update-grub_SCRIPTS): Copy to ...
26604 (grub-mkconfig_SCRIPTS): ... this. Update all users.
26605 (update-grub_DATA): Rename to ...
26606 (grub-mkconfig_DATA): ... this.
26607
26608 2008-09-28 Robert Millan <rmh@aybabtu.com>
26609
26610 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
26611 to `modified'. Add the real `created' field.
26612 (grub_iso9660_uuid): Use `modified' rather than `created' for
26613 constructing the UUID.
26614
26615 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
26616
26617 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
26618 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
26619
26620 2008-09-28 Bean <bean123ch@gmail.com>
26621
26622 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
26623 Thanks to Christian Franke for finding this bug.
26624
26625 2008-09-25 Robert Millan <rmh@aybabtu.com>
26626
26627 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
26628 instances of grub_util_get_disk_name() (see previous commit).
26629
26630 2008-09-25 Robert Millan <rmh@aybabtu.com>
26631
26632 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
26633 `util/i386/get_disk_name.c'.
26634 * conf/i386-efi.rmk: Likewise.
26635 * conf/x86_64-efi.rmk: Likewise.
26636 * conf/i386-coreboot.rmk: Likewise.
26637 * conf/i386-ieee1275.rmk: Likewise.
26638 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
26639 `util/ieee1275/get_disk_name.c'.
26640 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
26641 * util/ieee1275/get_disk_name.c: Remove file.
26642 * util/i386/get_disk_name.c: Remove file.
26643 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
26644 "hd%d" for device.map entries, rather than using
26645 grub_util_get_disk_name().
26646
26647 2008-09-24 Carles Pina i Estany <carles@pina.cat>
26648
26649 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
26650 warning.
26651 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
26652
26653 2008-09-24 Carles Pina i Estany <carles@pina.cat>
26654
26655 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
26656 Changed to 0x5100.
26657 (GRUB_TERM_PPAGE): Changed to 0x4900.
26658
26659 2008-09-24 Robert Millan <rmh@aybabtu.com>
26660
26661 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
26662 macros (they were i386-pc specific).
26663 * include/grub/sparc64/ieee1275/console.h: Likewise.
26664 * include/grub/efi/console.h: Likewise.
26665
26666 2008-09-22 Bean <bean123ch@gmail.com>
26667
26668 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
26669 resident and in attribute list.
26670
26671 * include/grub/ntfs.h (BMP_LEN): Removed.
26672
26673 2008-09-22 Bean <bean123ch@gmail.com>
26674
26675 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
26676 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
26677
26678 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
26679 error occurs, as grub_disk_open will call grub_disk_close, which will
26680 call p->close (scsi).
26681
26682 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
26683
26684 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
26685 (AC_PREREQ): Bumped to 2.59.
26686 (AC_TRY_COMPILE): Replace obsolete macro with ...
26687 (AC_COMPILE_IFELSE): ... this.
26688 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
26689 (AC_LINK_IFELSE): ... this.
26690
26691 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
26692
26693 * autogen.sh: Add a call to `gendistlist.sh'.
26694
26695 2008-09-19 Christian Franke <franke@computer.org>
26696
26697 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
26698 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
26699 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
26700 Export __enable_execute_stack() to modules.
26701 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
26702 New function.
26703
26704 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
26705
26706 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
26707 Sort the list.
26708
26709 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
26710
26711 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
26712 #include <grub/util/hostdisk.h>.
26713
26714 2008-09-08 Robert Millan <rmh@aybabtu.com>
26715
26716 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
26717 segments when their filesz is zero (grub_file_read() interprets
26718 zero-size as "read until EOF", which results in memory corruption).
26719 Use `lowest_segment' rather than 0 for calculating the current
26720 segment load address.
26721
26722 2008-09-08 Robert Millan <rmh@aybabtu.com>
26723
26724 * util/hostdisk.c (open_device): Replace a grub_util_info() call
26725 with grub_dprintf("hostdisk", ...), as it was so verbose that it
26726 clobbered useful information.
26727
26728 2008-09-08 Robert Millan <rmh@aybabtu.com>
26729
26730 * include/grub/util/biosdisk.h: Move to ...
26731 * include/grub/util/hostdisk.h: ... here. Update all users.
26732 * util/biosdisk.c: Move to ...
26733 * util/hostdisk.c: ... here. Update all users.
26734
26735 2008-09-07 Robert Millan <rmh@aybabtu.com>
26736
26737 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
26738 variables.
26739 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
26740 and length can be stored directly in the `mbi->mmap_addr' and
26741 `mbi->mmap_length' struct fields.
26742
26743 2008-09-07 Robert Millan <rmh@aybabtu.com>
26744
26745 * conf/i386.rmk: New file. Provides declaration for building
26746 `cpuid.mod'.
26747 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
26748 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
26749 variables.
26750 Include `conf/i386.mk'.
26751 * conf/i386-efi.rmk: Likewise.
26752 * conf/x86_64-efi.rmk: Likewise.
26753 * conf/i386-coreboot.rmk: Likewise.
26754 * conf/i386-ieee1275.rmk: Likewise.
26755
26756 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
26757
26758 Based on patch created by Colin D Bennett <colin@gibibit.com>.
26759 Adds optimization support for BGR based modes.
26760
26761 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
26762 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
26763 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
26764 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
26765 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
26766 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
26767 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
26768 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
26769 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
26770 (grub_video_i386_vbeblit_index_index): Likewise.
26771 (grub_video_i386_vbeblit_replace_directN): Added.
26772 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
26773 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
26774 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
26775 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
26776 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
26777 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
26778 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
26779 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
26780 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
26781 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
26782 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
26783 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
26784 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
26785
26786 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
26787 (grub_video_i386_vbefill_R8G8B8): Likewise.
26788 (grub_video_i386_vbefill_index): Likewise.
26789 (grub_video_i386_vbefill_direct32): Added.
26790 (grub_video_i386_vbefill_direct24): Likewise.
26791 (grub_video_i386_vbefill_direct16): Likewise.
26792 (grub_video_i386_vbefill_direct8): Likewise.
26793
26794 * include/grub/video.h (grub_video_blit_format): Removed
26795 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
26796 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
26797 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
26798 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
26799 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
26800
26801 * video/video.c (grub_video_get_blit_format): Updated to use new
26802 blit formats. Added handling for 16 bit color modes.
26803
26804 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
26805 fillers.
26806 (common_blitter): Updated to use new blitters.
26807
26808 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
26809 Removed.
26810 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
26811 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
26812 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
26813 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
26814 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
26815 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
26816 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
26817 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
26818 (grub_video_i386_vbeblit_index_index): Likewise.
26819 (grub_video_i386_vbeblit_replace_directN): Added.
26820 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
26821 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
26822 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
26823 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
26824 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
26825 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
26826 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
26827 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
26828 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
26829 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
26830 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
26831 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
26832 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
26833
26834 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
26835 (grub_video_i386_vbefill_R8G8B8): Likewise.
26836 (grub_video_i386_vbefill_index): Likewise.
26837 (grub_video_i386_vbefill_direct32): Added.
26838 (grub_video_i386_vbefill_direct24): Likewise.
26839 (grub_video_i386_vbefill_direct16): Likewise.
26840 (grub_video_i386_vbefill_direct8): Likewise.
26841
26842 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
26843 types.
26844
26845 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
26846 types.
26847
26848 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
26849 blitter types.
26850
26851 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
26852 types.
26853
26854 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
26855
26856 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
26857 RAID level 1.
26858
26859 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
26860
26861 * fs/iso9660.c (grub_iso9660_date): New structure.
26862 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
26863 (grub_iso9660_uuid): New function.
26864
26865 2008-09-05 Bean <bean123ch@gmail.com>
26866
26867 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
26868
26869 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
26870 insensitive bit for names in Win32 and Win32 & DOS namespace.
26871
26872 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
26873
26874 * include/grub/types.h (LONG_MAX): Likewise.
26875
26876 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
26877
26878 * util/getroot.c: Include <config.h>.
26879 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
26880 add support for /dev/md/N devices and handle LVM double dash escaping.
26881
26882 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
26883
26884 * config.guess: Update to latest version from config git.
26885 * config.sub: Likewise.
26886
26887 2008-09-03 Robert Millan <rmh@aybabtu.com>
26888
26889 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
26890 `disk->total_sectors'.
26891
26892 2008-09-01 Colin D Bennett <colin@gibibit.com>
26893
26894 * include/grub/normal.h: Fixed incorrect comment for
26895 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
26896
26897 2008-09-01 Colin D Bennett <colin@gibibit.com>
26898
26899 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
26900 values with defines.
26901
26902 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
26903 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
26904 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
26905 (GRUB_VBE_MODEATTR_COLOR): Likewise.
26906 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
26907 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
26908 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
26909 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
26910 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
26911 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
26912 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
26913 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
26914 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
26915 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
26916 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
26917 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
26918 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
26919 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
26920 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
26921
26922 2008-08-31 Robert Millan <rmh@aybabtu.com>
26923
26924 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
26925 declaration.
26926 (grub_multiboot): Fix a few warnings.
26927
26928 2008-08-31 Robert Millan <rmh@aybabtu.com>
26929
26930 * loader/i386/pc/multiboot.c: Update comment not to say that
26931 boot_device support is unimplemented.
26932
26933 2008-08-31 Robert Millan <rmh@aybabtu.com>
26934
26935 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
26936 or memory map support are unimplemented.
26937
26938 2008-08-31 Colin D Bennett <colin@gibibit.com>
26939
26940 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
26941
26942 2008-08-31 Colin D Bennett <colin@gibibit.com>
26943
26944 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
26945 total video memory in 'vbeinfo' output; show color format details for
26946 each video mode.
26947
26948 2008-08-30 Pavel Roskin <proski@gnu.org>
26949
26950 * util/genmoddep.c: Remove for real this time.
26951 * DISTLIST: Remove util/genmoddep.c.
26952
26953 2008-08-30 Robert Millan <rmh@aybabtu.com>
26954
26955 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
26956 as required by Multiboot spec (it was already 4-byte aligned, but
26957 only by chance).
26958
26959 2008-08-29 Pavel Roskin <proski@gnu.org>
26960
26961 * kern/powerpc/ieee1275/crt0.S: Rename to ...
26962 * kern/powerpc/ieee1275/startup.S: ... this.
26963 * conf/powerpc-ieee1275.rmk: Adjust for the above.
26964 * DISTLIST: Likewise.
26965
26966 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
26967 grub/cpu/kernel.h. Add start label for consistency with other
26968 platforms. Add grub_prefix immediately after start. Add jump
26969 to the code after grub_prefix.
26970 * include/grub/powerpc/kernel.h: Provide valid values for
26971 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
26972
26973 2008-08-29 Bean <bean123ch@gmail.com>
26974
26975 * configure.ac: Change host_os to cygwin for mingw.
26976 (asprintf): New check for function.
26977
26978 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
26979 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
26980
26981 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
26982 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
26983 sync, sleep and grub_util_get_disk_size for mingw.
26984
26985 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
26986 to get size in mingw.
26987 (open_device): Use flag O_BINARY if it's defined.
26988 (find_root_device): Add dummy code for mingw.
26989
26990 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
26991 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
26992 (get_scsi_disk_name): Return 0 for mingw.
26993
26994 * util/hostfs.c: #include <grub/util/misc.h>.
26995 (grub_hostfs_open): Use "rb" flag to open file, use
26996 grub_util_get_disk_size to get disk size for mingw.
26997
26998 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
26999 (asprintf): New function if HAVE_ASPRINTF is not set.
27000 (sync): New function for mingw.
27001 (sleep): Likewise.
27002 (grub_util_get_disk_size): Likewise.
27003
27004 2008-08-28 Pavel Roskin <proski@gnu.org>
27005
27006 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27007 kern/time.c.
27008
27009 2008-08-28 Robert Millan <rmh@aybabtu.com>
27010
27011 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
27012
27013 2008-08-28 Robert Millan <rmh@aybabtu.com>
27014
27015 Change find_grub_drive() syntax so it doesn't prevent it from
27016 detecting NULL names as errors.
27017
27018 * util/biosdisk.c (find_grub_drive): Move free slot search code
27019 from here ...
27020 (find_free_slot): ... to here.
27021 (read_device_map): Use find_free_slot() to search for free slots.
27022
27023 2008-08-27 Marco Gerards <marco@gnu.org>
27024
27025 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
27026 (scsi_mod_SOURCES): New variable.
27027 (scsi_mod_CFLAGS): Likewise
27028 (scsi_mod_LDFLAGS): Likewise.
27029
27030 * disk/scsi.c: New file.
27031
27032 * include/grub/scsi.h: Likewise.
27033
27034 * include/grub/scsicmd.h: Likewise.
27035
27036 * disk/ata.c: Include <grub/scsi.h>.
27037 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
27038 instead.
27039 (grub_ata_iterate): Skip ATAPI devices.
27040 (grub_ata_open): Only handle ATAPI devices.
27041 (struct grub_atapi_read): Removed.
27042 (grub_atapi_readsector): Likewise.
27043 (grub_ata_read): No longer handle ATAPI devices.
27044 (grub_ata_write): Likewise.
27045 (grub_atapi_iterate): New function.
27046 (grub_atapi_read): Likewise.
27047 (grub_atapi_write): Likewise.
27048 (grub_atapi_open): Likewise.
27049 (grub_atapi_close): Likewise.
27050 (grub_atapi_dev): New variable.
27051 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
27052 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
27053
27054 * include/grub/disk.h (enum grub_disk_dev_id): Add
27055 `GRUB_DISK_DEVICE_SCSI_ID'.
27056
27057 2008-08-26 Robert Millan <rmh@aybabtu.com>
27058
27059 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
27060 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
27061 descriptive.
27062
27063 2008-08-23 Bean <bean123ch@gmail.com>
27064
27065 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
27066 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
27067 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
27068 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
27069 dm_nv.mod.
27070 (raid5rec_mod_SOURCES): New macro.
27071 (raid5rec_mod_CFLAGS): Likewise.
27072 (raid5rec_mod_LDFLAGS): Likewise.
27073 (raid6rec_mod_SOURCES): Likewise.
27074 (raid6rec_mod_CFLAGS): Likewise.
27075 (raid6rec_mod_LDFLAGS): Likewise.
27076 (mdraid_mod_SOURCES): Likewise.
27077 (mdraid_mod_CFLAGS): Likewise.
27078 (mdraid_mod_LDFLAGS): Likewise.
27079 (dm_nv_mod_SOURCES): Likewise.
27080 (dm_nv_mod_CFLAGS): Likewise.
27081 (dm_nv_mod_LDFLAGS): Likewise.
27082
27083 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
27084 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
27085 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
27086
27087 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
27088 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
27089
27090 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27091
27092 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27093
27094 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27095
27096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27097
27098 * disk/raid5_recover.c: New file.
27099
27100 * disk/raid6_recover.c: Likewise.
27101
27102 * disk/mdraid_linux.c: Likewise.
27103
27104 * disk/dmraid_nvidia.c: Likewise.
27105
27106 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
27107 ULONG_MAX.
27108
27109 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
27110 calculate the size of raid device.
27111 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
27112 different layout of raid5.
27113 (grub_raid_scan_device): Remove code specific to mdraid.
27114 (grub_raid_list): New variable.
27115 (free_array): New function.
27116 (grub_raid_register): Likewise.
27117 (grub_raid_unregister): Likewise.
27118 (grub_raid_rescan): Likewise.
27119 (GRUB_MOD_INIT): Don't iterate device here.
27120 (GRUB_MOD_FINI): Use free_array to release resource.
27121
27122 * include/grub/raid.h: Remove macro and structure specific to mdraid.
27123 (grub_raid5_recover_func_t): New function variable type.
27124 (grub_raid6_recover_func_t): Likewise.
27125 (grub_raid5_recover_func): New variable.
27126 (grub_raid6_recover_func): Likewise.
27127 (grub_raid_register): New function.
27128 (grub_raid_unregister): Likewise.
27129 (grub_raid_rescan): Likewise.
27130 (grub_raid_block_xor): Likewise.
27131
27132 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
27133 (CMD_CRC): New macro.
27134 (part): Removed.
27135 (read_file): Handle device as well as file.
27136 (cmd_crc): New function.
27137 (fstest): Handle multiple disks.
27138 (options): Remove part, raw and long, add root and diskcount.
27139 (usage): Add crc, remove -p, -r, -l, add -r and -c.
27140 (main): Find the first non option entry and ignore subsequent options,
27141 add handling for the new options, support multiple disks.
27142
27143 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
27144
27145 2008-08-23 Bean <bean123ch@gmail.com>
27146
27147 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
27148
27149 * genfslist.sh: Ignore kernel.mod.
27150
27151 * genpartmaplist.sh: Likewise.
27152
27153 2008-08-23 Robert Millan <rmh@aybabtu.com>
27154
27155 * util/getroot.c (find_root_device): Skip anything that starts with
27156 a dot, not just directories. This avoids things like /dev/.tmp.md0.
27157
27158 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
27159
27160 * util/update-grub.in (GRUB_GFXMODE): Export variable.
27161 * util/grub.d/00_header.in: Allow the administrator to change default
27162 gfxmode via ${GRUB_GFXMODE}.
27163
27164 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
27165
27166 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
27167
27168 2008-08-21 Robert Millan <rmh@aybabtu.com>
27169
27170 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
27171 loader.
27172 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
27173 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
27174
27175 2008-08-20 Carles Pina i Estany <carles@pina.cat>
27176
27177 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
27178 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
27179
27180 2008-08-19 Robert Millan <rmh@aybabtu.com>
27181
27182 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
27183 (struct grub_virtual_screen): Remove `cursor_color'.
27184 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
27185 initialization.
27186 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
27187
27188 2008-08-18 Robert Millan <rmh@aybabtu.com>
27189
27190 Unify (identical) linux_normal.c files.
27191 * loader/i386/efi/linux_normal.c: Move from here ...
27192 * loader/linux_normal.c: ... to here. Update all users.
27193 * loader/i386/pc/linux_normal.c: Delete. Update all users.
27194 * loader/i386/ieee1275/linux_normal.c: Likewise.
27195
27196 2008-08-18 Robert Millan <rmh@aybabtu.com>
27197
27198 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
27199 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
27200 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
27201 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
27202 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
27203 New macros.
27204 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
27205 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
27206 (GRUB_LINUX_CL_END_OFFSET): ... to here.
27207 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
27208 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
27209 (GRUB_EFI_CL_END_OFFSET): Rename to ...
27210 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
27211 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
27212 Initialize `params->video_cursor_x' and `params->video_cursor_y'
27213 portably using grub_getxy().
27214 Replace `-EFI' with `-bzImage' in boot message.
27215
27216 2008-08-17 Robert Millan <rmh@aybabtu.com>
27217
27218 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
27219
27220 2008-08-17 Robert Millan <rmh@aybabtu.com>
27221
27222 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
27223
27224 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
27225 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
27226 (grub_machine_mmap_iterate): New function declaration.
27227 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
27228 structure.
27229 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
27230 macros.
27231
27232 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
27233 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
27234 Move e820 parsing from here ...
27235 * kern/i386/pc/mmap.c: New file.
27236 (grub_machine_mmap_iterate): ... to here.
27237
27238 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
27239 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
27240 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
27241 (grub_available_iterate): Redeclare to return `void', and redeclare
27242 its hook to use grub_uint64_t as addr and size parameters, and rename
27243 to ...
27244 (grub_machine_mmap_iterate): ... this. Update all users.
27245
27246 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
27247 to make it more readable. Rename to ...
27248 (grub_machine_mmap_iterate): ... this.
27249
27250 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
27251 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
27252 (grub_multiboot): Allocate an extra region after the payload, and fill
27253 it with a Multiboot memory map. Adjust a.out loader to calculate size
27254 with the extra space.
27255 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
27256 with the extra space.
27257
27258 2008-08-17 Carles Pina i Estany <carles@pina.cat>
27259
27260 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
27261
27262 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
27263
27264 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
27265 mdate-sh to the list `find' searches for.
27266 * DISTLIST: Regenerated.
27267
27268 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
27269
27270 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
27271 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
27272 genmoddep.awk, gensymlist.sh.in.
27273 (DISTDIRS): Add bus, docs, hook, lib.
27274 * DISTLIST: Regenerated.
27275 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
27276
27277 2008-08-16 Robert Millan <rmh@aybabtu.com>
27278
27279 * disk/raid.c (grub_raid_init): Handle/report errors set by
27280 grub_device_iterate().
27281 * disk/lvm.c (grub_lvm_init): Likewise.
27282
27283 2008-08-15 Bean <bean123ch@gmail.com>
27284
27285 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27286 and datehook.mod.
27287 (datetime_mod_SOURCES): New macro.
27288 (datetime_mod_CFLAGS): Likewise.
27289 (datetime_mod_LDFLAGS): Likewise.
27290 (date_mod_SOURCES): Likewise.
27291 (date_mod_CFLAGS): Likewise.
27292 (date_mod_LDFLAGS): Likewise.
27293 (datehook_mod_SOURCES): Likewise.
27294 (datehook_mod_CFLAGS): Likewise.
27295 (datehook_mod_LDFLAGS): Likewise.
27296
27297 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27298 and datehook.mod.
27299 (datetime_mod_SOURCES): New macro.
27300 (datetime_mod_CFLAGS): Likewise.
27301 (datetime_mod_LDFLAGS): Likewise.
27302 (date_mod_SOURCES): Likewise.
27303 (date_mod_CFLAGS): Likewise.
27304 (date_mod_LDFLAGS): Likewise.
27305 (datehook_mod_SOURCES): Likewise.
27306 (datehook_mod_CFLAGS): Likewise.
27307 (datehook_mod_LDFLAGS): Likewise.
27308
27309 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27310 and datehook.mod.
27311 (datetime_mod_SOURCES): New macro.
27312 (datetime_mod_CFLAGS): Likewise.
27313 (datetime_mod_LDFLAGS): Likewise.
27314 (date_mod_SOURCES): Likewise.
27315 (date_mod_CFLAGS): Likewise.
27316 (date_mod_LDFLAGS): Likewise.
27317 (datehook_mod_SOURCES): Likewise.
27318 (datehook_mod_CFLAGS): Likewise.
27319 (datehook_mod_LDFLAGS): Likewise.
27320
27321 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27322 and datehook.mod.
27323 (datetime_mod_SOURCES): New macro.
27324 (datetime_mod_CFLAGS): Likewise.
27325 (datetime_mod_LDFLAGS): Likewise.
27326 (date_mod_SOURCES): Likewise.
27327 (date_mod_CFLAGS): Likewise.
27328 (date_mod_LDFLAGS): Likewise.
27329 (datehook_mod_SOURCES): Likewise.
27330 (datehook_mod_CFLAGS): Likewise.
27331 (datehook_mod_LDFLAGS): Likewise.
27332
27333 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27334 and datehook.mod.
27335 (datetime_mod_SOURCES): New macro.
27336 (datetime_mod_CFLAGS): Likewise.
27337 (datetime_mod_LDFLAGS): Likewise.
27338 (date_mod_SOURCES): Likewise.
27339 (date_mod_CFLAGS): Likewise.
27340 (date_mod_LDFLAGS): Likewise.
27341 (datehook_mod_SOURCES): Likewise.
27342 (datehook_mod_CFLAGS): Likewise.
27343 (datehook_mod_LDFLAGS): Likewise.
27344
27345 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
27346
27347 * commands/date.c: New file.
27348
27349 * hook/datehook.c: Likewise.
27350
27351 * include/grub/lib/datetime.h: Likewise.
27352
27353 * include/grub/i386/cmos.h: Likewise.
27354
27355 * lib/datetime.c: Likewise.
27356
27357 * lib/i386/datetime.c: Likewise.
27358
27359 * lib/efi/datetime.c: Likewise.
27360
27361 2008-08-14 Robert Millan <rmh@aybabtu.com>
27362
27363 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
27364 (grub_mkelfimage_SOURCES): New variable.
27365 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
27366
27367 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
27368 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
27369 * conf/powerpc-ieee1275.rmk: Likewise.
27370 * conf/i386-ieee1275.rmk: Likewise.
27371
27372 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
27373 * kern/i386/coreboot/init.c: Likewise.
27374
27375 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
27376 with `<grub/cpu/kernel.h>'.
27377 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
27378 to ...
27379 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
27380 * kern/i386/coreboot/startup.S: Likewise.
27381
27382 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
27383 (GRUB_MOD_GAP): Remove.
27384 * include/grub/powerpc/kernel.h: New file.
27385 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
27386 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
27387 * include/grub/i386/kernel.h: New file.
27388 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
27389 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
27390 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
27391
27392 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
27393 `grub-mkelfimage'.
27394 Use --directory when invoking grub_mkimage.
27395
27396 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
27397 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
27398 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
27399 and GRUB_KERNEL_CPU_PREFIX.
27400
27401 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
27402
27403 * include/grub/err.h (grub_err_printf): New function prototype.
27404 * util/misc.c (grub_err_printf): New function.
27405 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
27406 grub_printf.
27407 * kern/err.c (grub_print_error): Use grub_err_printf.
27408
27409 2008-08-13 Robert Millan <rmh@aybabtu.com>
27410
27411 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
27412
27413 2008-08-13 Robert Millan <rmh@aybabtu.com>
27414
27415 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
27416 boot entry.
27417
27418 2008-08-12 Robert Millan <rmh@aybabtu.com>
27419
27420 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
27421 of the relocation code from here ...
27422 (grub_multiboot): ... to here.
27423 (forward_relocator, backward_relocator): Move from here ...
27424 * kern/i386/loader.S (grub_multiboot_forward_relocator)
27425 (grub_multiboot_backward_relocator): ... to here.
27426 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
27427 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
27428 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
27429 (grub_multiboot_forward_relocator_end)
27430 (grub_multiboot_backward_relocator)
27431 (grub_multiboot_backward_relocator_end): New variables.
27432
27433 2008-08-12 Bean <bean123ch@gmail.com>
27434
27435 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
27436
27437 2008-08-11 Robert Millan <rmh@aybabtu.com>
27438
27439 * kern/i386/linuxbios/startup.S: Move from here ...
27440 * kern/i386/coreboot/startup.S: ... to here.
27441
27442 * kern/i386/linuxbios/init.c: Move from here ...
27443 * kern/i386/coreboot/init.c: ... to here.
27444
27445 * kern/i386/linuxbios/table.c: Move from here ...
27446 * kern/i386/coreboot/mmap.c: ... to here.
27447
27448 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
27449
27450 2008-08-11 Robert Millan <rmh@aybabtu.com>
27451
27452 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
27453 errors. Leave it to the upper layer to handle them.
27454
27455 2008-08-09 Christian Franke <franke@computer.org>
27456
27457 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
27458 * conf/common.rmk: Install `grub-pe2elf' only if requested.
27459 Install `grub.d/10_windows' only on Cygwin.
27460 * configure.ac: Add subst of `target_os'.
27461 Check `target_os' also before setting TARGET_OBJ2ELF.
27462 Add `--enable-grub-pe2elf'.
27463
27464 2008-08-08 Robert Millan <rmh@aybabtu.com>
27465
27466 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
27467 (grub_last_time): Change type to grub_uint64_t.
27468 (grub_disk_open): Migrate code from to using grub_get_time_ms().
27469 (grub_disk_close): Likewise.
27470
27471 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
27472 (run_menu): Migrate code from to using grub_get_time_ms().
27473
27474 * util/misc.c (grub_get_time_ms): New function.
27475
27476 2008-08-08 Marco Gerards <marco@gnu.org>
27477
27478 * disk/ata.c (grub_ata_regget): Change return type to
27479 `grub_uint8_t'.
27480 (grub_ata_regget2): Likewise.
27481 (grub_ata_wait_status): New function.
27482 (grub_ata_wait_busy): Removed function, updated all users to use
27483 `grub_ata_wait_status'.
27484 (grub_ata_wait_drq): Likewise.
27485 (grub_ata_cmd): New function.
27486 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
27487 error handling.
27488 (grub_ata_pio_write): Add error handling.
27489 (grub_atapi_identify): Likewise.
27490 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
27491 handling.
27492 (grub_ata_identify): Use `grub_ata_cmd' and improve error
27493 handling. Actually use the detected registers. Reorder the
27494 detection logic such that it is easier to read.
27495 (grub_ata_pciinit): Do not assign the same ID to each controller.
27496 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
27497 handling.
27498 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
27499
27500 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
27501
27502 2008-08-08 Marco Gerards <marco@gnu.org>
27503
27504 * NEWS: Update.
27505
27506 2008-08-07 Bean <bean123ch@gmail.com>
27507
27508 * include/grub/x86_64/pci.h: New file.
27509
27510 2008-08-07 Christian Franke <franke@computer.org>
27511
27512 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
27513 (TIMER2_GATE): Likewise.
27514 (grub_pit_wait): Add enable/disable of the timer2 gate
27515 bit of port 0x61. This fixes a possible infinite loop.
27516
27517 2008-08-07 Bean <bean123ch@gmail.com>
27518
27519 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
27520 kern/i386/tsc.c and kern/i386/pit.c.
27521
27522 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
27523 x86_64 platform.
27524
27525 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
27526 <grub/i386/tsc.h>.
27527
27528 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
27529
27530 2008-08-07 Bean <bean123ch@gmail.com>
27531
27532 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
27533
27534 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
27535
27536 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
27537 multiple inclusion. Add #include <grub/types.h>.
27538
27539 2008-08-06 Christian Franke <franke@computer.org>
27540
27541 * conf/common.rmk: Build and install `10_windows'.
27542 * util/grub.d/10_windows.in: New script.
27543
27544 2008-08-06 Pavel Roskin <proski@gnu.org>
27545
27546 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
27547
27548 2008-08-06 Robert Millan <rmh@aybabtu.com>
27549
27550 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
27551 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
27552
27553 2008-08-06 Bean <bean123ch@gmail.com>
27554
27555 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
27556 (grub_pxefs_fs_int): Remove dummy definition.
27557 (grub_pxefs_open): Use data->block_size to store the current block
27558 size setting.
27559 (grub_pxefs_read): Use block size stored in data->block_size. As the
27560 value of grub_pxe_blksize can be changed after the file is opened.
27561
27562 2008-08-06 Bean <bean123ch@gmail.com>
27563
27564 * fs/i386/pc/pxe.c (curr_file): new variable.
27565 (grub_pxefs_open): Simply the handling of pxe file system. Don't
27566 require the dummy internal file system anymore.
27567 (grub_pxefs_read): Removed.
27568 (grub_pxefs_close): Likewise.
27569 (grub_pxefs_fs_int): Likewise.
27570 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
27571 connection when we switch file.
27572 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
27573
27574 2008-08-06 Robert Millan <rmh@aybabtu.com>
27575
27576 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
27577 `halt.mod'.
27578 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
27579 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
27580
27581 * kern/i386/halt.c: New file.
27582 * kern/i386/reboot.c: Likewise.
27583 * include/grub/i386/reboot.h: Likewise.
27584 * include/grub/i386/halt.h: Likewise.
27585
27586 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
27587 Include `<grub/cpu/halt.h>'.
27588 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
27589 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
27590
27591 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
27592 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
27593 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
27594 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
27595 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
27596 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
27597 from here ...
27598 * include/grub/i386/at_keyboard.h: ... to here.
27599
27600 2008-08-05 Robert Millan <rmh@aybabtu.com>
27601
27602 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
27603 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
27604 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
27605 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
27606 `kern/generic/millisleep.c'.
27607
27608 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
27609 instead of grub_get_rtc().
27610 (grub_tsc_init): Initialize `tsc_boot_time'.
27611
27612 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
27613 (grub_machine_init): Use grub_tsc_init() rather than
27614 installing an RTC-based handler via grub_install_get_time_ms().
27615
27616 * kern/i386/pit.c: New file.
27617 * include/grub/i386/pit.h: Likewise.
27618
27619 2008-08-05 Bean <bean123ch@gmail.com>
27620
27621 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
27622
27623 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
27624 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
27625 (pxe_mod_SOURCES): New macro.
27626 (pxe_mod_CFLAGS): Likewise.
27627 (pxe_mod_LDFLAGS): Likewise.
27628 (pxecmd_mod_SOURCES): Likewise.
27629 (pxecmd_mod_CFLAGS): Likewise.
27630 (pxecmd_mod_LDFLAGS): Likewise.
27631
27632 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
27633 (grub_pxe_call): Likewise.
27634
27635 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
27636
27637 * commands/i386/pc/pxecmd.c: New file.
27638
27639 * fs/i386/pc/pxe.c: Likewise.
27640
27641 * include/grub/i386/pc/pxe.h: Likewise.
27642
27643 2008-08-05 Bean <bean123ch@gmail.com>
27644
27645 * util/console.c (grub_console_cur_color): New variable.
27646 (grub_console_standard_color): Likewise.
27647 (grub_console_normal_color): Likewise.
27648 (grub_console_highlight_color): Likewise.
27649 (color_map): Likewise.
27650 (use_color): Likewise.
27651 (NUM_COLORS): New macro.
27652 (grub_ncurses_setcolorstate): Handle color properly.
27653 (grub_ncurses_setcolor): Don't change color here, just remember the
27654 settings, color will be set in grub_ncurses_setcolorstate.
27655 (grub_ncurses_getcolor): New function.
27656 (grub_ncurses_init): Initialize color pairs.
27657 (grub_ncurses_term): New member grub_ncurses_getcolor.
27658
27659 2008-08-05 Colin D Bennett <colin@gibibit.com>
27660
27661 High resolution timer support. Implemented for x86 CPUs using TSC.
27662 Extracted generic grub_millisleep() so it's linked in only as needed.
27663 This requires a Pentium compatible CPU; if the RDTSC instruction is
27664 not supported, then it falls back on the generic grub_get_time_ms()
27665 implementation that uses the machine's RTC.
27666
27667 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
27668 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
27669 `kern/generic/millisleep.c'.
27670
27671 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
27672 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
27673
27674 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
27675 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
27676
27677 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
27678
27679 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27680 `kern/generic/millisleep.c'.
27681
27682 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
27683
27684 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
27685
27686 * kern/generic/rtc_get_time_ms.c: New file.
27687
27688 * kern/generic/millisleep.c: New file.
27689
27690 * kern/misc.c: Don't include
27691 <kern/time.h> anymore.
27692 (grub_millisleep_generic): Removed.
27693
27694 * commands/sleep.c (grub_interruptible_millisleep): Uses
27695 grub_get_time_ms() instead of grub_get_rtc().
27696
27697 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
27698 function.
27699 (grub_cpu_is_cpuid_supported): New inline function.
27700 (grub_cpu_is_tsc_supported): New inline function.
27701 (grub_tsc_init): New function prototype.
27702 (grub_tsc_get_time_ms): New function prototype.
27703
27704 * kern/i386/tsc.c (grub_get_time_ms): New file.
27705
27706 * include/grub/time.h: Include <grub/types.h.
27707 (grub_millisleep_generic): Removed.
27708 (grub_get_time_ms): New prototype.
27709 (grub_install_get_time_ms): New prototype.
27710 (grub_rtc_get_time_ms): New prototype.
27711
27712 * kern/time.c (grub_get_time_ms): New function.
27713 (grub_install_get_time_ms): New function.
27714
27715 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
27716 <grub/time.h> anymore.
27717 (grub_millisleep): Removed.
27718 (grub_machine_init): Call grub_tsc_init.
27719
27720 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
27721 get_time_ms() implementation.
27722
27723 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
27724 (ieee1275_get_time_ms): New function.
27725 (grub_machine_init): Install get_time_ms() implementation.
27726
27727 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
27728 (grub_machine_init): Call grub_tsc_init().
27729 (grub_millisleep): Removed.
27730
27731 * kern/ieee1275/init.c (grub_millisleep): Removed.
27732 (grub_machine_init): Install ieee1275_get_time_ms()
27733 implementation.
27734 (ieee1275_get_time_ms): New function.
27735 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
27736 real work.
27737
27738 2008-08-05 Marco Gerards <marco@gnu.org>
27739
27740 * disk/ata.c: Include <grub/pci.h>.
27741 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
27742 (grub_ata_initialize): Rewritten.
27743 (grub_ata_device_initialize): New function.
27744
27745 2008-08-04 Pavel Roskin <proski@gnu.org>
27746
27747 * kern/main.c: Include grub/mm.h.
27748
27749 2008-08-04 Robert Millan <rmh@aybabtu.com>
27750
27751 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
27752 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
27753 corruption problem).
27754
27755 2008-08-04 Robert Millan <rmh@aybabtu.com>
27756
27757 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
27758 warnings introduced in my last commit.
27759
27760 2008-08-03 Robert Millan <rmh@aybabtu.com>
27761
27762 Make PCI available on all i386 architectures.
27763
27764 * include/grub/i386/pc/pci.h: Move from here ...
27765 * include/grub/i386/pci.h: ... to here.
27766
27767 * include/grub/i386/pc/pci.h: Remove.
27768 * include/grub/i386/efi/pci.h: Remove.
27769 * include/grub/x86_64/efi/pci.h: Remove.
27770
27771 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
27772 `<grub/cpu/pci.h>'.
27773
27774 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
27775 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
27776 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
27777
27778 * conf/i386-ieee1275.rmk: Likewise.
27779
27780 2008-08-03 Robert Millan <rmh@aybabtu.com>
27781
27782 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
27783 (grub_console_setcursor): Make it possible to set cursor off.
27784
27785 2008-08-03 Robert Millan <rmh@aybabtu.com>
27786
27787 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
27788 of modules instead of assuming which platform provides what.
27789 * util/update-grub.in: Likewise.
27790
27791 2008-08-03 Robert Millan <rmh@aybabtu.com>
27792
27793 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
27794 instead of `grub_install_dos_part' to determine whether a drive needs
27795 to be prepended to prefix (`grub_install_dos_part' is not reliable,
27796 because it can be overridden when loading GRUB via Multiboot).
27797
27798 2008-08-02 Robert Millan <rmh@aybabtu.com>
27799
27800 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
27801
27802 2008-08-02 Robert Millan <rmh@aybabtu.com>
27803
27804 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
27805 of informational grub_dprintf() calls.
27806
27807 2008-08-02 Robert Millan <rmh@aybabtu.com>
27808
27809 * disk/memdisk.c (memdisk_size): Don't initialize.
27810 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
27811
27812 * include/grub/i386/pc/kernel.h
27813 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
27814 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
27815 (grub_memdisk_image_size, grub_arch_memdisk_addr)
27816 (grub_arch_memdisk_size): Remove.
27817
27818 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
27819 field (was only used to transfer a constant). Add `type' field to
27820 support multiple module types.
27821 (grub_module_iterate): New function.
27822
27823 * kern/device.c (grub_device_open): Do not hide error messages
27824 when grub_disk_open() fails. Use grub_print_error() instead.
27825
27826 * kern/i386/pc/init.c (grub_arch_modules_addr)
27827 (grub_arch_memdisk_size): Remove functions.
27828 (grub_arch_modules_addr): Return the module address in high memory
27829 (now that it isn't copied anymore).
27830
27831 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
27832 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
27833 decompression routine (grub_total_module_size already includes that
27834 now). Don't copy modules back to low memory.
27835
27836 * kern/main.c: Include `<grub/mm.h>'.
27837 (grub_load_modules): Split out (and use) ...
27838 (grub_module_iterate): ... this function, which iterates through
27839 module objects and runs a hook.
27840 Comment out grub_mm_init_region() call, as it would cause non-ELF
27841 modules to be overwritten.
27842
27843 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
27844 the memdisk image in its own region, make it part of the module list.
27845 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
27846 (main): Parse --memdisk|-m option, and pass user-provided path as
27847 parameter to generate_image().
27848 (add_segments): Pass `memdisk_path' down to load_modules().
27849 (load_modules): Embed memdisk image in module section when requested.
27850 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
27851 `header.type' instead of `header.offset'.
27852
27853 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
27854 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
27855 (memdisk_mod_LDFLAGS): New variables.
27856 * conf/i386-coreboot.rmk: Likewise.
27857 * conf/i386-ieee1275.rmk: Likewise.
27858
27859 2008-08-02 Robert Millan <rmh@aybabtu.com>
27860
27861 * loader/i386/pc/multiboot.c (playground, forward_relocator)
27862 (backward_relocator): New variables. Used to allocate and relocate
27863 the payload, respectively.
27864 (grub_multiboot_load_elf32): Load into heap instead of requested
27865 address, install the appropriate relocator code in each bound of
27866 the payload, and set the entry point such that
27867 grub_multiboot_real_boot() will jump to one of them.
27868
27869 * kern/i386/loader.S (grub_multiboot_payload_size)
27870 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
27871 (grub_multiboot_payload_entry_offset): New variables.
27872 (grub_multiboot_real_boot): Set cpu context to what the relocator
27873 expects, and jump to the relocator instead of the payload.
27874
27875 * include/grub/i386/loader.h (grub_multiboot_payload_size)
27876 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
27877 (grub_multiboot_payload_entry_offset): Export.
27878
27879 2008-08-01 Bean <bean123ch@gmail.com>
27880
27881 * normal/menu_entry.c (editor_getline): Don't return the original
27882 string as result, as it will be released by lexer once it has done
27883 using it.
27884
27885 2008-08-01 Robert Millan <rmh@aybabtu.com>
27886
27887 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
27888 within menuentries, not before them.
27889 util/grub.d/10_hurd.in: Likewise.
27890
27891 2008-08-01 Bean <bean123ch@gmail.com>
27892
27893 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
27894 (bufio_mod_SOURCES): New macro.
27895 (bufio_mod_CFLAGS): Likewise.
27896 (bufio_mod_LDFLAGS): Likewise.
27897
27898 * include/grub/bufio.h: New file.
27899
27900 * io/bufio.c: Likewise.
27901
27902 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
27903 (grub_video_reader_png): Use grub_buffile_open to open file.
27904
27905 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
27906 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
27907
27908 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
27909 (grub_video_reader_tga): Use grub_buffile_open to open file.
27910
27911 * font/manager.c: Include <grub/bufio.h>.
27912 (add_font): Use grub_buffile_open to open file.
27913
27914 2008-07-31 Robert Millan <rmh@aybabtu.com>
27915
27916 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
27917 ELF segments, use a macro for arbitrarily accessing any of them instead
27918 of preparing a pointer that allows access to one at a time.
27919 (grub_multiboot_load_elf64): Likewise.
27920
27921 2008-07-31 Bean <bean123ch@gmail.com>
27922
27923 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
27924 GRUB_KERNEL_MACHINE_DATA_END.
27925
27926 2008-07-30 Robert Millan <rmh@aybabtu.com>
27927
27928 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
27929 Increase from 0x50 to 0x60.
27930 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
27931 use UUIDs to identify the root drive for them. If that's not
27932 possible, abort.
27933 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
27934 check, for cross-disk installs.
27935
27936 2008-07-30 Robert Millan <rmh@aybabtu.com>
27937
27938 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
27939 is non-empty, use it to set the `prefix' environment variable instead
27940 of the usual approach.
27941 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
27942 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
27943 environment variable instead of dummy make_install_device().
27944
27945 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
27946 (start): Insert a data section, with `grub_prefix' variable.
27947 * kern/i386/linuxbios/startup.S: Likewise.
27948
27949 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
27950 New variable reference.
27951 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
27952 New macro. Defines offset of `grub_prefix' within startup.S (relative
27953 to `start').
27954 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
27955 section within startup.S (relative to `start').
27956 * include/grub/i386/coreboot/kernel.h: Likewise.
27957
27958 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
27959 Overwrite grub_prefix with its contents, at the beginning of the
27960 first segment.
27961 (main): Understand -p|--prefix.
27962
27963 2008-07-30 Robert Millan <rmh@aybabtu.com>
27964
27965 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
27966
27967 2008-07-30 Robert Millan <rmh@aybabtu.com>
27968
27969 * term/i386/pc/vga_text.c (grub_console_cls): Use
27970 grub_console_gotoxy() to go back to beginning of the screen.
27971 Found by Patrick Georgi <patrick.georgi@coresystems.de>
27972
27973 2008-07-29 Christian Franke <franke@computer.org>
27974
27975 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
27976 Add conversion of emulated mount points on Cygwin.
27977
27978 2008-07-29 Christian Franke <franke@computer.org>
27979
27980 * util/update-grub.in: Add a check for admin
27981 group on Cygwin.
27982 Remove old `grub.cfg.new' before creation.
27983 Add `-f' to `mv' to handle the different filesystem
27984 semantics of Windows.
27985
27986 2008-07-29 Bean <bean123ch@gmail.com>
27987
27988 * normal/main.c (get_line): Fix buffer overflow bug.
27989
27990 2008-07-28 Robert Millan <rmh@aybabtu.com>
27991
27992 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
27993 (struct grub_apple_header): New struct. Describes the layout of
27994 the partmap header.
27995 (apple_partition_map_iterate): Check the header magic as well as the
27996 partition magic (which was already being checked).
27997
27998 2008-07-28 Pavel Roskin <proski@gnu.org>
27999
28000 * genmk.rb: Add a warning to the beginning of the output that
28001 it's a generated file and should not be edited.
28002
28003 2008-07-28 Robert Millan <rmh@aybabtu.com>
28004
28005 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
28006 with the same number are found, just use issue a warning with
28007 grub_dprintf(), as this error has been reported to be non-fatal.
28008
28009 2008-07-27 Robert Millan <rmh@aybabtu.com>
28010
28011 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
28012 information.
28013
28014 2008-07-27 Bean <bean123ch@gmail.com>
28015
28016 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
28017 (grub_fat_find_dir): Ignore case when comparing filename.
28018
28019 2008-07-27 Bean <bean123ch@gmail.com>
28020
28021 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
28022 smallino, as it's more descriptive, and i8count can be confused with
28023 the other field count.
28024 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
28025 inode type.
28026
28027 2008-07-27 Bean <bean123ch@gmail.com>
28028
28029 * commands/crc.c: New file.
28030
28031 * lib/crc.c: Likewise.
28032
28033 * include/grub/lib/crc.h: Likewise.
28034
28035 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
28036
28037 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
28038 (hexdump): Move this function to ...
28039
28040 * lib/hexdump.c: ... here.
28041
28042 * include/grub/hexdump.h: Renamed to ...
28043
28044 * include/grub/lib/hexdump.h: ... this.
28045
28046 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
28047
28048 * util/grub-editenv.c: Likewise.
28049
28050 * include/envblk.h: Renamed to ...
28051
28052 * include/lib/envblk.h: ... this.
28053
28054 * util/envblk.c: Renamed to ...
28055
28056 * lib/envblk.c: ... this.
28057
28058 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
28059 lib/hexdump.c.
28060 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
28061 (pkglib_MODULES): Add crc.mod.
28062 (hexdump_mod_SOURCES): Add lib/hexdump.c.
28063 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
28064 (crc_mod_SOURCES): New macro.
28065 (crc_mod_CFLAGS): Likewise.
28066 (crc_mod_LDFLAGS): Likewise.
28067
28068 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
28069
28070 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28071
28072 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28073
28074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28075
28076 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28077
28078 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
28079
28080 * commands/help.c: Include <grub/term.h>.
28081 (TERM_WIDTH): Removed. Updated all users.
28082
28083 2008-07-27 Pavel Roskin <proski@gnu.org>
28084
28085 * util/getroot.c (find_root_device): Rephrase a comment to avoid
28086 spurious warnings about a comment within a comment.
28087
28088 2008-07-25 Robert Millan <rmh@aybabtu.com>
28089
28090 * util/getroot.c (find_root_device): Skip devices that match
28091 /dev/dm-[0-9]. This lets the real device be found for any type of
28092 abstraction (LVM, EVMS, RAID..).
28093 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
28094 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
28095 device is found first, find_root_device() will now skip it.
28096
28097 2008-07-24 Pavel Roskin <proski@gnu.org>
28098
28099 * include/grub/types.h: Use __builtin_bswap32() and
28100 __builtin_bswap64() with gcc 4.3 and newer.
28101
28102 2008-07-24 Christian Franke <franke@computer.org>
28103
28104 * util/i386/pc/grub-install.in: If `--debug' is specified,
28105 pass `--verbose' to grub-setup.
28106 Abort script if make_system_path_relative_to_its_root() fails.
28107
28108 2008-07-24 Bean <bean123ch@gmail.com>
28109
28110 * configure.ac: Fixed a bug caused by the previous cygwin patch,
28111 variable `target_platform' should be `platform'.
28112
28113 2008-07-24 Bean <bean123ch@gmail.com>
28114
28115 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
28116 (grub_png_init_fixed_block): New function.
28117 (grub_png_decode_image_data): Handle fixed huffman code compression.
28118
28119 2008-07-24 Bean <bean123ch@gmail.com>
28120
28121 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
28122 (grub_pe2elf_SOURCES): New macro.
28123 (CLEANFILES): Add grub-pe2elf.
28124
28125 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
28126 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
28127 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
28128 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
28129 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
28130 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
28131 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
28132 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
28133 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
28134 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
28135 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
28136 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
28137 (GRUB_PE32_DT_FUNCTION): Likewise.
28138 (GRUB_PE32_REL_I386_DIR32): Likewise.
28139 (GRUB_PE32_REL_I386_REL32): Likewise.
28140 (grub_pe32_symbol): New structure.
28141 (grub_pe32_reloc): Likewise.
28142
28143 * util/grub-pe2elf.c: New file.
28144
28145 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
28146 start symbol in non pc platform.
28147
28148 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
28149
28150 The following patches are from Christian Franke.
28151
28152 * include/grub/dl.h: Remove .previous, gas supports this only
28153 for ELF format.
28154
28155 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
28156 Remove .type, gas supports this only for ELF format.
28157
28158 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
28159 nullbytes in symbol table. This fixes an infinite loop if table is
28160 zero filled.
28161
28162 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
28163 TARGET_IMG_LDFLAGS and EXEEXT.
28164
28165 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
28166 TARGET_IMG_LDFLAGS_AC.
28167 (grub_CHECK_STACK_ARG_PROBE): New function.
28168
28169 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
28170
28171 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
28172
28173 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
28174 to set TARGET_IMG_LD* accordingly.
28175 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
28176 Add call to grub_CHECK_STACK_ARG_PROBE.
28177 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
28178
28179 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
28180
28181 * genmk.rb: Add EXEEXT to CLEANFILES.
28182
28183 2008-07-23 Robert Millan <rmh@aybabtu.com>
28184
28185 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
28186 define the codes for arrows and lines used for the menu).
28187 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
28188 as well.
28189
28190 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
28191 fonts, because the latter are too slow.
28192
28193 2008-07-21 Bean <bean123ch@gmail.com>
28194
28195 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
28196 a20. Run keyboard test last, as it will cause macbook to halt.
28197
28198 2008-07-18 Pavel Roskin <proski@gnu.org>
28199
28200 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
28201 load foreign architecture modules correctly anyway. Keep
28202 support for loading host architecture modules, whether we
28203 compile them or not.
28204
28205 2008-07-17 Pavel Roskin <proski@gnu.org>
28206
28207 * configure.ac: Use -m32 or -m64 regardless of whether we had to
28208 change target_cpu. The compiler default can mismatch target_cpu
28209 in any case.
28210
28211 * disk/efi/efidisk.c: Fix format warnings on x86_64.
28212 * kern/efi/efi.c: Likewise.
28213
28214 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
28215 target compiler is functional.
28216 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
28217 are set up.
28218
28219 * configure.ac: Default to efi platform for x86_64-apple. Allow
28220 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
28221 adjustments from the rest, only do them if target is not
28222 explicitly given. Merge other adjustments with the final sanity
28223 check. Remove an extraneous check for supported CPU. Be
28224 specific which CPU and which platform is not supported.
28225
28226 * configure.ac: Default to pc platform for x86_64.
28227
28228 2008-07-17 Robert Millan <rmh@aybabtu.com>
28229
28230 Partial LinuxBIOS -> Coreboot rename.
28231
28232 * conf/i386-linuxbios.rmk: Renamed to ...
28233 * conf/i386-coreboot.rmk: ... this.
28234 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
28235 * configure.ac: Accept "coreboot" as input platform (but maintain
28236 compatibility with "linuxbios").
28237 * include/grub/i386/linuxbios: Renamed to ...
28238 * include/grub/i386/coreboot: ... this.
28239
28240 2008-07-17 Bean <bean123ch@gmail.com>
28241
28242 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
28243 (appleldr_mod_SOURCE): New variable.
28244 (appleldr_mod_CFLAGS): Likewise.
28245 (appleldr_mod_LDFLAGS): Likewise.
28246 (pci_mod_SOURCES): Likewise.
28247 (pci_mod_CFLAGS): Likewise.
28248 (pci_mod_LDFLAGS): Likewise.
28249 (lspci_mod_SOURCES): Likewise.
28250 (lspci_mod_CFLAGS): Likewise.
28251 (lspci_mod_LDFLAGS): Likewise.
28252
28253 * conf/x86_64-efi.rmk: New file.
28254
28255 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
28256 macro.
28257 (grub_efidisk_write): Likewise.
28258
28259 * include/efi/api.h (efi_call_0): New macro.
28260 (efi_call_1): Likewise.
28261 (efi_call_2): Likewise.
28262 (efi_call_3): Likewise.
28263 (efi_call_4): Likewise.
28264 (efi_call_5): Likewise.
28265 (efi_call_6): Likewise.
28266
28267 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
28268 grub_rescue_cmd_chainloader.
28269
28270 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
28271 (grub_pe32_optional_header): Change some fields based on i386 or
28272 x86_64 platform.
28273 (GRUB_PE32_PE32_MAGIC): Likewise.
28274
28275 * include/grub/efi/uga_draw.h: New file.
28276
28277 * include/grub/elf.h (STN_ABS): New constant.
28278 (R_X86_64_NONE): Relocation constant for x86_64.
28279 (R_X86_64_64): Likewise.
28280 (R_X86_64_PC32): Likewise.
28281 (R_X86_64_GOT32): Likewise.
28282 (R_X86_64_PLT32): Likewise.
28283 (R_X86_64_COPY): Likewise.
28284 (R_X86_64_GLOB_DAT): Likewise.
28285 (R_X86_64_JUMP_SLOT): Likewise.
28286 (R_X86_64_RELATIVE): Likewise.
28287 (R_X86_64_GOTPCREL): Likewise.
28288 (R_X86_64_32): Likewise.
28289 (R_X86_64_32S): Likewise.
28290 (R_X86_64_16): Likewise.
28291 (R_X86_64_PC16): Likewise.
28292 (R_X86_64_8): Likewise.
28293 (R_X86_64_PC8): Likewise.
28294
28295 * include/grub/i386/efi/pci.h: New file.
28296
28297 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
28298 Change it value based on platform.
28299 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
28300 (GRUB_E820_RAM): Likewise.
28301 (GRUB_E820_RESERVED): Likewise.
28302 (GRUB_E820_ACPI): Likewise.
28303 (GRUB_E820_NVS): Likewise.
28304 (GRUB_E820_EXEC_CODE): Likewise.
28305 (GRUB_E820_MAX_ENTRY): Likewise.
28306 (grub_e820_mmap): New structure.
28307 (linux_kernel_header): Change the efi field according to different
28308 kernel version, also field from linux_kernel_header.
28309
28310 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
28311
28312 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
28313 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
28314 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
28315 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
28316 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
28317 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
28318 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
28319 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
28320 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
28321 (GRUB_PCI_ADDR_IO_MASK): Likewise.
28322
28323 * include/grub/x86_64/efi/kernel.h: New file.
28324
28325 * include/grub/x86_64/efi/loader.h: Likewise.
28326
28327 * include/grub/x86_64/efi/machine.h: Likewise.
28328
28329 * include/grub/x86_64/efi/pci.h: Likewise.
28330
28331 * include/grub/x86_64/efi/time.h: Likewise.
28332
28333 * include/grub/x86_64/linux.h: Likewise.
28334
28335 * include/grub/x86_64/setjmp.h: Likewise.
28336
28337 * include/grub/x86_64/time.h: Likewise.
28338
28339 * include/grub/x86_64/types.h: Likewise.
28340
28341 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
28342 GRUB_TARGET_SIZEOF_VOID_P.
28343
28344 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
28345 (grub_efi_locate_handle): Likewise.
28346 (grub_efi_open_protocol): Likewise.
28347 (grub_efi_set_text_mode): Likewise.
28348 (grub_efi_stall): Likewise.
28349 (grub_exit): Likewise.
28350 (grub_reboot): Likewise.
28351 (grub_halt): Likewise.
28352 (grub_efi_exit_boot_services): Likewise.
28353 (grub_get_rtc): Likewise.
28354
28355 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
28356 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
28357 (grub_efi_allocate_pages): Wrap efi calls.
28358 (grub_efi_free_pages): Wrap efi calls.
28359 (grub_efi_get_memory_map): Wrap efi calls.
28360
28361 * kern/x86_64/dl.c: New file.
28362
28363 * kern/x86_64/efi/callwrap.S: Likewise.
28364
28365 * kern/x86_64/efi/startup.S: Likewise.
28366
28367 * loader/efi/appleloader.c: Likewise.
28368
28369 * loader/efi/chainloader.c (cmdline): New variable.
28370 (grub_chainloader_unload): Wrap efi calls.
28371 (grub_chainloader_boot): Likewise.
28372 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
28373 command line.
28374
28375 * loader/efi/chainloader_normal.c (chainloader_command):
28376 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
28377 command line.
28378
28379 * loader/i386/efi/linux.c (allocate_pages): Change allocation
28380 method.
28381 (grub_e820_add_region): New function.
28382 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
28383 booting.
28384 (grub_find_video_card): New function.
28385 (grub_linux_setup_video): New function.
28386 (grub_rescue_cmd_linux): Probe for video information.
28387
28388 * normal/x86_64/setjmp.S: New file.
28389
28390 * term/efi/console.c (map_char): New function.
28391 (grub_console_putchar): Map unicode char.
28392 (grub_console_checkkey): Wrap efi calls.
28393 (grub_console_getkey): Likewise.
28394 (grub_console_getwh): Likewise.
28395 (grub_console_gotoxy): Likewise.
28396 (grub_console_cls): Likewise.
28397 (grub_console_setcolorstate): Likewise.
28398 (grub_console_setcursor): Likewise.
28399
28400 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
28401
28402 2008-07-16 Pavel Roskin <proski@gnu.org>
28403
28404 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
28405 format strings.
28406
28407 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
28408 pointer, not an integer. This fixes a warning and prevents
28409 precision loss on 64-bit systems.
28410 (relocate_addresses): Remove unneeded cast.
28411
28412 2008-07-15 Pavel Roskin <proski@gnu.org>
28413
28414 * kern/i386/ieee1275/init.c: Include grub/cache.h.
28415
28416 * term/ieee1275/ofconsole.c: Disable code unused on i386.
28417
28418 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
28419 Fix comparison between signed and unsigned.
28420
28421 * include/grub/i386/ieee1275/console.h: Declare
28422 grub_console_init() and grub_console_fini().
28423
28424 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
28425 It's empty and unused.
28426
28427 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
28428 beginning to avoid warnings with some compilers.
28429
28430 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
28431 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
28432
28433 2008-07-14 Pavel Roskin <proski@gnu.org>
28434
28435 * kern/env.c (grub_register_variable_hook): Don't copy empty
28436 string, it leaks memory. Pass "" to grub_env_set(), it should
28437 handle constant strings.
28438
28439 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
28440 * commands/cmp.c (grub_cmd_cmp): Likewise.
28441 * kern/dl.c (grub_dl_flush_cache): Likewise.
28442 (grub_dl_load_core): Likewise.
28443 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
28444 (grub_elf64_load_phdrs): Likewise.
28445
28446 2008-07-13 Pavel Roskin <proski@gnu.org>
28447
28448 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
28449 between signed and unsigned.
28450 (LzmaEnc_Finish): Fix warning about an unused parameter.
28451
28452 2008-07-13 Bean <bean123ch@gmail.com>
28453
28454 * Makefile.in (enable_lzo): New rule.
28455
28456 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
28457
28458 * configure.ac (ENABLE_LZO): New option --enable-lzo.
28459
28460 * boot/i386/pc/lnxboot.S: #include <config.h>.
28461
28462 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
28463 its value according to the compression algorithm used, lzo or lzma.
28464
28465 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
28466 compression algorithm according to configure macro.
28467
28468 * kern/i386/pc/startup.S (codestart): Likewise.
28469
28470 * kern/i386/pc/lzma_decode.S: New file.
28471
28472 * include/grub/lib/LzFind.h: Likewise.
28473
28474 * include/grub/lib/LzHash.h: Likewise.
28475
28476 * include/grub/lib/LzmaDec.h: Likewise.
28477
28478 * include/grub/lib/LzmaEnc.h: Likewise.
28479
28480 * include/grub/lib/LzmaTypes.h: Likewise.
28481
28482 * lib/LzFind.c: Likewise.
28483
28484 * lib/LzmaDec.c: Likewise.
28485
28486 * lib/LzmaEnc.c: Likewise.
28487
28488 2008-07-13 Bean <bean123ch@gmail.com>
28489
28490 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
28491 (grub_ext4_extent_header): New structure.
28492 (grub_ext4_extent): Likewise.
28493 (grub_ext4_extent_idx): Likewise.
28494 (grub_ext4_find_leaf): New function.
28495 (grub_ext2_read_block): Handle extents.
28496
28497 2008-07-12 Robert Millan <rmh@aybabtu.com>
28498
28499 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
28500
28501 2008-07-11 Robert Millan <rmh@aybabtu.com>
28502
28503 * util/grub.d/40_custom.in: New file. Example on how to add custom
28504 entries to /etc/grub.d.
28505 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
28506 40_custom (implicitly, by merging all the grub.d rules).
28507
28508 2008-07-11 Pavel Roskin <proski@gnu.org>
28509
28510 * commands/read.c (grub_getline): Fix invalid memory access.
28511 Don't add newline to the variable value.
28512
28513 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
28514 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
28515 (serial_hw_get_port): Check validity of the port number.
28516 (grub_cmd_serial): Check return value of serial_hw_get_port().
28517
28518 2008-07-07 Pavel Roskin <proski@gnu.org>
28519
28520 * boot/i386/pc/diskboot.S (notification_string): Replace
28521 "Loading kernel" with just "loading". This is shorter, less
28522 confusing and saves a few bytes for possible future changes.
28523
28524 2008-07-05 Pavel Roskin <proski@gnu.org>
28525
28526 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
28527 size for ATAPI devices, they are undefined. Output sector
28528 number in decimal form.
28529
28530 * disk/ata.c: Use named constants for status bits.
28531
28532 2008-07-04 Pavel Roskin <proski@gnu.org>
28533
28534 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
28535 grub_addr_t before casting it to the void pointer to fix a
28536 warning. Non-addressable regions are discarded earlier.
28537 (grub_arch_modules_addr): Cast _end to grub_addr_t.
28538 * kern/i386/linuxbios/table.c: Include grub/misc.h.
28539 (check_signature): Don't shadow table_header.
28540 (grub_linuxbios_table_iterate): Cast numeric constants to
28541 grub_linuxbios_table_header_t.
28542 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
28543 grub_stop().
28544
28545 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
28546 prevent warnings.
28547
28548 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
28549 pointer, which can cause warnings. Support 64-bit addresses.
28550
28551 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
28552 of sizeof(long). This fixes PowerPC image generation on x86_64.
28553
28554 2008-07-04 Robert Millan <rmh@aybabtu.com>
28555
28556 This fixes a performance issue when pc & gpt partmap iterators
28557 didn't abort iteration even after our hook found what it was
28558 looking for (often causing expensive probes of non-existent drives).
28559
28560 Some callers relied on previous buggy behaviour, since they would
28561 raise an error when their own hooks caused early abortion of its
28562 iteration.
28563
28564 * kern/device.c (grub_device_open): Improve error message.
28565 * disk/lvm.c (grub_lvm_open): Likewise.
28566 * disk/raid.c (grub_raid_open): Likewise.
28567
28568 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
28569 when hook requests it, independently of grub_errno.
28570 (pc_partition_map_probe): Do not fail when find_func() caused
28571 early abortion of pc_partition_map_iterate().
28572
28573 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
28574 when hook requests it, independently of grub_errno.
28575 (gpt_partition_map_probe): Do not fail when find_func() caused
28576 early abortion of gpt_partition_map_iterate().
28577
28578 * kern/partition.c (grub_partition_iterate): Abort parent iteration
28579 when hook requests it, independently of grub_errno. Do not fail when
28580 part_map_iterate_hook() caused early abortion of p->iterate().
28581
28582 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
28583 when grub_partition_iterate() returned with non-zero.
28584
28585 2008-07-03 Pavel Roskin <proski@gnu.org>
28586
28587 * disk/ata.c (grub_ata_pio_write): Check status before writing,
28588 like we do in grub_ata_pio_read().
28589 (grub_ata_readwrite): Always write individual sectors. Fix the
28590 sector count for the remainder.
28591 (grub_ata_write): Enable writing to ATA devices. Correctly
28592 report error for ATAPI devices.
28593
28594 2008-07-02 Pavel Roskin <proski@gnu.org>
28595
28596 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
28597 warning.
28598
28599 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
28600 for every read sector, we already increment it for the whole
28601 batch. This fixes reading more than 256 sectors at once.
28602
28603 * util/grub-editenv.c (cmd_info): Cast argument to long
28604 explicitly. ptrdiff_t reduces to int on i386.
28605
28606 * util/grub-editenv.c (main): Be specific which parameter is
28607 missing.
28608
28609 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
28610 (memdisk): Make memdisk_orig_addr a pointer.
28611
28612 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
28613 for file offsets, use grub_off_t instead. Fix printf format
28614 warnings.
28615
28616 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
28617 there. Real unexpected warnings should not drown in the noise
28618 about known problems.
28619
28620 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
28621 grub_disk_addr_t for memory addresses.
28622
28623 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
28624 explicitly to fix a warning.
28625
28626 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
28627
28628 * Makefile.in (MODULE_LDFLAGS): New variable.
28629 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
28630 the linker accepts --build-id=none.
28631 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
28632 MODULE_LDFLAGS.
28633 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
28634
28635 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
28636 those in Linux XFS code. Provide a way to access 64-bit parent
28637 inode.
28638 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
28639 the end of struct grub_xfs_dir_header.
28640
28641 2008-07-02 Bean <bean123ch@gmail.com>
28642
28643 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
28644 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
28645 and GRUB_IEEE1275_FLAG_NO_ANSI.
28646
28647 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
28648 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
28649 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
28650
28651 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
28652 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
28653
28654 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
28655 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
28656
28657 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
28658 esc sequence on non ANSI terminal.
28659 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
28660
28661 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
28662 beginning of file.
28663
28664 2008-07-02 Bean <bean123ch@gmail.com>
28665
28666 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
28667 (grub_editenv_SOURCES): New variable.
28668 (pkglib_MODULES): Add loadenv.mod.
28669 (loadenv_mod_SOURCES): New variable.
28670 (loadenv_mod_CFLAGS): Likewise.
28671 (loadenv_mod_LDFLAGS): Likewise.
28672
28673 * include/grub/envblk.h: New file.
28674
28675 * util/envblk.c: New file.
28676
28677 * util/grub-editenv.c: New file.
28678
28679 * commands/loadenv.c: New file.
28680
28681 2008-07-01 Pavel Roskin <proski@gnu.org>
28682
28683 * include/multiboot2.h (struct multiboot_tag_module): Use char,
28684 not unsigned char. This fixes warnings and is consistent with
28685 other tags.
28686
28687 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
28688
28689 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
28690
28691 * term/tparm.c (analyze): Always set *popcount.
28692
28693 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
28694 cast to fix a warning.
28695
28696 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
28697 cast to suppress a warning.
28698
28699 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
28700 grub_fshelp_read_file() expects.
28701
28702 * fs/fat.c: Fix UUID calculation on big-endian systems. We
28703 write uuid as a 32-bit value in CPU byte order, so declare and
28704 use it as such.
28705
28706 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
28707 long if the format specifier expects it.
28708 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
28709 * partmap/pc.c (pc_partition_map_iterate): Likewise.
28710 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
28711 long to fix a warning.
28712 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
28713 grub_dprintf() arguments to fix warnings.
28714
28715 2008-06-30 Pavel Roskin <proski@gnu.org>
28716
28717 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
28718 install_bsd_part immediately before core.img is embedded or
28719 modified on disk. This fixes core.img verification if core.img
28720 cannot be embedded.
28721
28722 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
28723 core_path to calculate the blocklist.
28724 Patch from Javier Martín <lordhabbit@gmail.com>
28725
28726 2008-06-29 Robert Millan <rmh@aybabtu.com>
28727
28728 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
28729 block to disk block.
28730 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
28731 Patch from Niels Böhm <bitbucket@arcor.de>
28732
28733 2008-06-29 Robert Millan <rmh@aybabtu.com>
28734
28735 * util/update-grub_lib.in (font_path): Search for fonts in
28736 /boot/grub first, which is more likely to be readable (we aren't
28737 deciding where fonts live, just looking for them).
28738
28739 2008-06-26 Pavel Roskin <proski@gnu.org>
28740
28741 * util/biosdisk.c (read_device_map): Don't leave dead map
28742 entries for devices failing stat() check.
28743
28744 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
28745 core_path_dev for the core.img path on the target device.
28746
28747 2008-06-26 Robert Millan <rmh@aybabtu.com>
28748
28749 * disk/fs_uuid.c: New file.
28750 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
28751 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
28752 (fs_uuid_mod_LDFLAGS): New variables.
28753 * include/grub/disk.h (grub_disk_dev_id): Add
28754 `GRUB_DISK_DEVICE_UUID_ID'.
28755 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
28756 implement iterate().
28757
28758 2008-06-26 Robert Millan <rmh@aybabtu.com>
28759
28760 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
28761 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
28762 Linux image includes no initrd.
28763
28764 2008-06-21 Javier Martín <lordhabbit@gmail.com>
28765
28766 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
28767 call to resolve the core image location that effectively appended the
28768 name twice.
28769
28770 2008-06-21 Robert Millan <rmh@aybabtu.com>
28771
28772 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
28773 call from here ...
28774
28775 * util/grub.d/10_hurd.in: ... to here ...
28776 * util/grub.d/10_linux.in: ... and here.
28777
28778 2008-06-19 Robert Millan <rmh@aybabtu.com>
28779
28780 * kern/main.c (grub_main): Export `prefix' variable immediately
28781 after it has been set by grub_machine_set_prefix().
28782
28783 2008-06-19 Robert Millan <rmh@aybabtu.com>
28784
28785 * commands/search.c (search_label, search_fs_uuid, search_file): Print
28786 search result when not saving to variable, not the other way around.
28787 When saving to variable, abort iteration as soon as a match is found.
28788
28789 2008-06-19 Robert Millan <rmh@aybabtu.com>
28790
28791 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
28792 check for partition that provides /boot/grub. Its logic is flawed,
28793 as it prevents prepare_grub_to_access_device() from being called
28794 multiple times.
28795
28796 2008-06-19 Robert Millan <rmh@aybabtu.com>
28797
28798 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
28799 "insmod" command directly when abstraction modules are needed,
28800 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
28801 since it had already been processed).
28802
28803 2008-06-19 Pavel Roskin <proski@gnu.org>
28804
28805 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
28806 changed. This is needed in case GRUB_LIBDIR changes.
28807 * conf/i386-ieee1275.rmk: Likewise.
28808 * conf/i386-linuxbios.rmk: Likewise.
28809 * conf/i386-pc.rmk: Likewise.
28810 * conf/powerpc-ieee1275.rmk: Likewise.
28811
28812 2008-06-18 Pavel Roskin <proski@gnu.org>
28813
28814 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
28815 kernel_elf_symlist.c to symlist.c for consistency with other
28816 architectures. Update all users.
28817 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28818
28819 2008-06-18 Robert Millan <rmh@aybabtu.com>
28820
28821 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
28822 it in prefix.
28823
28824 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
28825 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
28826 a RAID device, run setup() for all members independently on whether
28827 LVM abstraction is being used.
28828 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
28829 If grub-mkimage has set `*install_dos_part == -2', don't override this
28830 value.
28831 Perform *install_dos_part adjustments independently on whether
28832 we're embedding or not.
28833 Clarify error message when image is too big for embedding.
28834 Remove duplicate *install_dos_part stanza.
28835
28836 2008-06-17 Robert Millan <rmh@aybabtu.com>
28837
28838 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
28839 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
28840 variables.
28841 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
28842 values in grub_ofconsole_normal_color and
28843 grub_ofconsole_highlight_color (they're not directly related to
28844 background and foreground).
28845 (grub_ofconsole_setcolorstate): Extract background and foreground
28846 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
28847
28848 2008-06-17 Robert Millan <rmh@aybabtu.com>
28849
28850 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
28851 /boot/grub for the check in last commit, not /boot (they could be
28852 different partitions).
28853
28854 2008-06-16 Robert Millan <rmh@aybabtu.com>
28855
28856 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
28857 asked to setup access for the same partition that provides /boot,
28858 don't bother using UUIDs since our root already has the value we
28859 want.
28860
28861 2008-06-16 Robert Millan <rmh@aybabtu.com>
28862
28863 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
28864 I2O devices.
28865 Patch from Sven Mueller <sven@debian.org>.
28866
28867 2008-06-16 Robert Millan <rmh@aybabtu.com>
28868
28869 * util/update-grub.in: Check for $EUID instead of $UID.
28870 Reported by Vincent Zweije.
28871
28872 2008-06-16 Bean <bean123ch@gmail.com>
28873
28874 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
28875 (grub_ext2_read_block): Likewise.
28876 (grub_ext2_read_inode): Likewise.
28877 (grub_ext2_mount): Likewise.
28878 (grub_ext2_close): Likewise.
28879 (grub_ext3_get_journal): Removed.
28880
28881 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
28882 (grub_reiserfs_read_symlink): Likewise.
28883 (grub_reiserfs_mount): Likewise.
28884 (grub_reiserfs_open): Likewise.
28885 (grub_reiserfs_read): Likewise.
28886 (grub_reiserfs_close): Likewise.
28887 (grub_reiserfs_get_journal): Removed.
28888
28889 * fs/fshelp.c (grub_fshelp_read): Removed.
28890 (grub_fshelp_map_block): Likewise.
28891
28892 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
28893 (grub_fshelp_journal): Likewise.
28894 (grub_fshelp_read): Likewise.
28895 (grub_fshelp_map_block): Likewise.
28896
28897 2008-06-16 Pavel Roskin <proski@gnu.org>
28898
28899 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
28900 floating point anymore.
28901 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
28902
28903 2008-06-15 Pavel Roskin <proski@gnu.org>
28904
28905 * commands/ls.c (grub_ls_list_files): Use integer calculations
28906 for human readable format, avoid floating point use.
28907 * kern/misc.c (grub_ftoa): Remove.
28908 (grub_vsprintf): Remove floating point support.
28909
28910 2008-06-15 Robert Millan <rmh@aybabtu.com>
28911
28912 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
28913 devices.
28914 Reported by Max Vozeler.
28915
28916 2008-06-15 Robert Millan <rmh@aybabtu.com>
28917
28918 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
28919 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
28920 skipped later.
28921 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
28922 the beginning of the prefix.
28923
28924 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
28925 It is assumed that if we have a memdisk, grub-mkimage has set
28926 grub_prefix to include the "(memdisk)" drive in it.
28927
28928 2008-06-15 Robert Millan <rmh@aybabtu.com>
28929
28930 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
28931 Initialize keyboard controller after registering the terminal, so that
28932 grub_printf() can be called from grub_keyboard_controller_init().
28933
28934 2008-06-15 Robert Millan <rmh@aybabtu.com>
28935
28936 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
28937 extent-btree which is written as big endian on disk.
28938 Reported by Alain Greppin <al@chilibi.org>.
28939
28940 2008-06-14 Robert Millan <rmh@aybabtu.com>
28941
28942 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
28943 * util/i386/pc/grub-install.in (modules): Likewise.
28944
28945 2008-06-13 Pavel Roskin <proski@gnu.org>
28946
28947 * commands/ls.c (grub_ls_list_files): Fix format warnings.
28948
28949 2008-06-13 Bean <bean123ch@gmail.com>
28950
28951 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
28952
28953 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
28954
28955 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
28956 to indicate sparse block.
28957
28958 2008-06-12 Pavel Roskin <proski@gnu.org>
28959
28960 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
28961 number, grub_fshelp_read() does it for us.
28962
28963 * fs/fshelp.c (grub_fshelp_read): New function. Implement
28964 linear disk read with journal translation.
28965 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
28966 * include/grub/fshelp.h: Declare grub_fshelp_read().
28967
28968 2008-06-09 Pavel Roskin <proski@gnu.org>
28969
28970 * fs/minix.c (grub_minix_mount): Handle error reading
28971 superblock.
28972
28973 2008-06-08 Robert Millan <rmh@aybabtu.com>
28974
28975 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
28976 don't append the RAID prefix afterwards.
28977 Reported by Clint Adams.
28978
28979 2008-06-08 Robert Millan <rmh@aybabtu.com>
28980
28981 Based on description from Pavel:
28982 * kern/disk.c (grub_disk_check_range): Rename to ...
28983 (grub_disk_adjust_range): ... this. Add a comment explaining the
28984 tasks performed by this function.
28985
28986 2008-06-08 Robert Millan <rmh@aybabtu.com>
28987
28988 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
28989 `num_serial' (for consistency with other variables).
28990 (struct grub_ntfs_data): Add `uuid' member.
28991 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
28992 (grub_ntfs_uuid): New function.
28993 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
28994
28995 2008-06-07 Pavel Roskin <proski@gnu.org>
28996
28997 * util/biosdisk.c (open_device): Revert last change to the
28998 function, it broke installation. The sector needs to be
28999 different dependent on which device is opened.
29000
29001 2008-06-06 Robert Millan <rmh@aybabtu.com>
29002
29003 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
29004 rest of GRUB, and breakage doesn't happen if its value were modified.
29005
29006 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29007 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
29008 a constant (same value).
29009 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
29010 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
29011
29012 2008-06-06 Robert Millan <rmh@aybabtu.com>
29013
29014 * util/biosdisk.c (open_device): Do not modify sector offset when
29015 accessing a partition. kern/disk.c already handles this for us.
29016
29017 2008-06-06 Robert Millan <rmh@aybabtu.com>
29018
29019 * util/grub-emu.c (grub_machine_init): Move code in this function from
29020 here ...
29021 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
29022 segfault in case grub_printf() is called).
29023
29024 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
29025 grub_probe. Update all users not to explicitly add it again.
29026 (grub_device): New variable; contains corresponding device for grubdir.
29027 (fs_module, partmap_module, devabstraction_module): Pass
29028 `--device ${grub_device}' to grub_probe to avoid traversing /dev
29029 every time.
29030
29031 2008-06-05 Robert Millan <rmh@aybabtu.com>
29032
29033 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
29034 is found, print it (same layout as with labels).
29035
29036 2008-06-04 Robert Millan <rmh@aybabtu.com>
29037
29038 * util/biosdisk.c (get_drive): Rename to ...
29039 (find_grub_drive): ... this. Update all users.
29040
29041 (get_os_disk): Rename to ...
29042 (convert_system_partition_to_system_disk): ... this. Update all users.
29043
29044 (find_drive): Rename to ...
29045 (find_system_device): ... this. Update all users.
29046
29047 2008-06-04 Robert Millan <rmh@aybabtu.com>
29048
29049 * util/biosdisk.c (get_os_disk): Handle IDA devices.
29050 * util/grub-mkdevicemap.c (get_mmc_disk_name)
29051 (make_device_map): Likewise.
29052
29053 2008-06-01 Robert Millan <rmh@aybabtu.com>
29054
29055 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
29056 before dereferencing it.
29057
29058 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
29059 union with fat12/fat16-specific ones. Add some new fields, including
29060 `num_serial' for both versions.
29061 (struct grub_fat_data): Add `uuid' member.
29062 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
29063 names. Initialize `data->uuid' using `num_serial'.
29064 (grub_fat_uuid): New function.
29065 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
29066
29067 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
29068 (grub_reiserfs_uuid): New function.
29069 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
29070 member.
29071
29072 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
29073 (grub_xfs_uuid): New function.
29074 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
29075
29076 2008-06-01 Robert Millan <rmh@aybabtu.com>
29077
29078 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
29079 code that is backward compatible with pre-uuid search command.
29080
29081 2008-05-31 Robert Millan <rmh@aybabtu.com>
29082
29083 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
29084 floppies after everything else, to ensure floppy drive isn't accessed
29085 unnecessarily (patch from Bean).
29086
29087 2008-05-31 Robert Millan <rmh@aybabtu.com>
29088
29089 * commands/search.c (search_label, search_fs_uuid, search_file): Do
29090 not print device names when we were asked to set a variable.
29091
29092 2008-05-31 Robert Millan <rmh@aybabtu.com>
29093
29094 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
29095 using "cursor-on" and "cursor-off" commands (understood at least by
29096 the Open Firmware flavour on OLPC).
29097
29098 2008-05-31 Michael Gorven <michael@gorven.za.net>
29099
29100 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
29101 on and off sequences.
29102
29103 2008-05-31 Robert Millan <rmh@aybabtu.com>
29104
29105 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
29106 * util/update-grub.in: Likewise.
29107
29108 2008-05-30 Pavel Roskin <proski@gnu.org>
29109
29110 * util/biosdisk.c (linux_find_partition): Simplify logic and
29111 make the code more universal. Keep special processing for
29112 devfs, but use a simple rule for all other devices. If the
29113 device ends with a number, append 'p' and the partition number.
29114 Otherwise, append only the partition number.
29115
29116 2008-05-30 Robert Millan <rmh@aybabtu.com>
29117
29118 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
29119 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
29120 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
29121 the `root' parameter to Linux.
29122
29123 2008-05-30 Robert Millan <rmh@aybabtu.com>
29124
29125 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
29126 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
29127 --fs_uuid with --fs-uuid.
29128 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
29129 all filesystems support them).
29130
29131 2008-05-30 Robert Millan <rmh@aybabtu.com>
29132
29133 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
29134 grub_printf() flags, since we're printing in units of 2 bytes.
29135
29136 2008-05-30 Robert Millan <rmh@aybabtu.com>
29137
29138 * util/grub.d/00_header.in: Remove obsolete comment referencing
29139 convert_system_path_to_grub_path().
29140 * util/update-grub.in: Likewise.
29141 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
29142 (convert_system_path_to_grub_path): Add a warning message explaining
29143 that this function is deprecated. Rely on is_path_readable_by_grub()
29144 for the readability checks.
29145 (font_path): Use is_path_readable_by_grub() for the readability
29146 check rather than convert_system_path_to_grub_path().
29147
29148 2008-05-30 Robert Millan <rmh@aybabtu.com>
29149
29150 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
29151 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
29152 converting it first.
29153 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
29154 grub.cfg for access to font file, and afterwards call it again to set
29155 the root device.
29156
29157 2008-05-30 Robert Millan <rmh@aybabtu.com>
29158
29159 * commands/search.c (options): Add --fs_uuid option.
29160 (search_fs_uuid): New function.
29161 (grub_cmd_search): Fix --set argument passing.
29162 Use search_fs_uuid() when requested via --fs_uuid.
29163 (grub_search_init): Update help message.
29164 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
29165 and redeclare it as an array of 16-bit words.
29166 (grub_ext2_uuid): New function.
29167 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
29168 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
29169 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
29170 (GRUB_DEVICE_BOOT_UUID): New variables.
29171 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
29172 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
29173 whenever possible.
29174 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
29175 just assume `root' variable has the right value.
29176 * util/grub.d/10_linux.in: Likewise.
29177 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
29178 via PRINT_FS_UUID.
29179 (main): Recognise `-t fs_uuid' argument.
29180
29181 2008-05-30 Robert Millan <rmh@aybabtu.com>
29182
29183 * util/biosdisk.c (map): Redefine structure to hold information
29184 about GRUB drive name.
29185 (get_drive): Reimplement without assuming (and verifying) BIOS-like
29186 drive names.
29187 (call_hook): Remove.
29188 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
29189 member. Assume drive has partitions.
29190 (grub_util_biosdisk_open): Access device names via `.device' struct
29191 member.
29192 (open_device): Likewise.
29193 (find_drive): Likewise.
29194 (read_device_map): Adjust map[] usage to match the new struct
29195 definition. Don't check for duplicates (still possible, but not cheap
29196 anymore).
29197 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
29198 (make_device_name): Remove assumption of BIOS-like drive names.
29199
29200 2008-05-30 Pavel Roskin <proski@gnu.org>
29201
29202 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
29203 compiling execute.c doesn't need grub_script.tab.h anymore.
29204 (normal/command.c_DEPENDENCIES): Likewise.
29205 (normal/function.c_DEPENDENCIES): Likewise.
29206 * conf/i386-ieee1275.rmk: Likewise.
29207 * conf/i386-linuxbios.rmk: Likewise.
29208 * conf/i386-pc.rmk: Likewise.
29209 * conf/powerpc-ieee1275.rmk: Likewise.
29210 * conf/sparc64-ieee1275.rmk: Likewise.
29211
29212 2008-05-29 Pavel Roskin <proski@gnu.org>
29213
29214 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
29215 when scanning metadata for volume group name.
29216
29217 * include/grub/script.h: Don't include grub_script.tab.h. It's
29218 a generated file, which may only be included from the files with
29219 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
29220 use union YYSTYPE, as the later allows forward declaration.
29221 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
29222
29223 2008-05-29 Robert Millan <rmh@aybabtu.com>
29224
29225 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
29226 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
29227 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
29228 (grub_console_checkkey): Add grub_dprintf() call to report unknown
29229 scan codes.
29230
29231 2008-05-29 Robert Millan <rmh@aybabtu.com>
29232
29233 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
29234 control key combinations.
29235
29236 2008-05-29 Robert Millan <rmh@aybabtu.com>
29237
29238 * util/powerpc/ieee1275/grub-install.in: Move from here ...
29239 * util/ieee1275/grub-install.in: ... to here.
29240 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
29241 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
29242 (grub_install_SOURCES): Likewise.
29243
29244 2008-05-29 Robert Millan <rmh@aybabtu.com>
29245
29246 * fs/affs.c: Update copyright year.
29247 * fs/ext2.c: Likewise.
29248 * fs/fshelp.c: Likewise.
29249 * fs/hfsplus.c: Likewise.
29250 * fs/ntfs.c: Likewise.
29251 * fs/xfs.c: Likewise.
29252 * include/grub/fshelp.h: Likewise.
29253 * util/grub-mkdevicemap.c: Likewise.
29254
29255 2008-05-28 Robert Millan <rmh@aybabtu.com>
29256
29257 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
29258 might need to be fatfs to support some firmware implementations
29259 (e.g. OFW or EFI).
29260
29261 2008-05-28 Robert Millan <rmh@aybabtu.com>
29262
29263 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
29264 devices.
29265 * util/grub-mkdevicemap.c (get_mmc_disk_name)
29266 (make_device_map): Likewise.
29267
29268 2008-05-20 Bean <bean123ch@gmail.com>
29269
29270 * fs/fshelp.c (grub_fshelp_map_block): New function.
29271 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
29272 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
29273
29274 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
29275 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
29276 (grub_fshelp_journal): New structure.
29277 (grub_fshelp_map_block): New function prototype.
29278 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
29279 (grub_fshelp_map_block): Likewise.
29280
29281 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
29282 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
29283 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
29284 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
29285 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
29286 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
29287 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
29288 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
29289 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
29290 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
29291 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
29292 (grub_ext2_sblock): New members for journal support.
29293 (grub_ext3_journal_header): New structure.
29294 (grub_ext3_journal_revoke_header): Likewise.
29295 (grub_ext3_journal_block_tag): Likewise.
29296 (grub_ext3_journal_sblock): Likewise.
29297 (grub_fshelp_node): New members logfile and journal.
29298 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
29299 grub_fshelp_map_block to get real block number.
29300 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
29301 number.
29302 (grub_ext2_read_inode): Likewise.
29303 (grub_ext3_get_journal): New function.
29304 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
29305 (grub_ext2_close): Release memory used by journal.
29306
29307 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
29308 (REISERFS_MAGIC_DESC_BLOCK): New macro.
29309 (grub_reiserfs_transaction_header): Renamed to
29310 grub_reiserfs_description_block, replace field data with real_blocks.
29311 (grub_reiserfs_commit_block): New structure.
29312 (grub_reiserfs_data): New member journal.
29313 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
29314 number.
29315 (grub_reiserfs_read_symlink): Likewise.
29316 (grub_reiserfs_iterate_dir): Likewise.
29317 (grub_reiserfs_open): Likewise.
29318 (grub_reiserfs_read): Likewise.
29319 (grub_reiserfs_get_journal): New function.
29320 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
29321 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
29322 using grub_reiserfs_get_journal.
29323 (grub_reiserfs_close): Release memory used by journal.
29324
29325 * fs/affs.c (grub_affs_read_block): Change block type to
29326 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
29327
29328 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
29329
29330 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
29331
29332 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
29333
29334 * fs/udf.c (grub_udf_read_block): Change block type to
29335 grub_disk_addr_t. Use type cast to avoid warning.
29336
29337 * fs/xfs.c (grub_xfs_read_block): Likewise.
29338
29339 2008-05-16 Christian Franke <franke@computer.org>
29340
29341 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
29342 to ensure that break with ESC will always work.
29343 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
29344 Remove ESC from keyboard queue.
29345
29346 2008-05-16 Christian Franke <franke@computer.org>
29347
29348 * util/biosdisk.c: [__CYGWIN__] Add includes.
29349 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
29350 (get_os_disk): Move variable declarations to OS specific
29351 parts to avoid warning.
29352 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
29353 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
29354 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
29355 Cygwin.
29356 * util/getroot.c: [__CYGWIN__] Add includes.
29357 (strip_extra_slashes): Fix "/" case.
29358 [__CYGWIN__] (get_win32_path): New function.
29359 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
29360 [__CYGWIN__] (find_root_device): Disable.
29361 [__CYGWIN__] (get_bootsec_serial): New function.
29362 [__CYGWIN__] (find_cygwin_root_device): Likewise.
29363 [__linux__] (grub_guess_root_device): Add early returns to simplify
29364 structure.
29365 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
29366 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
29367 check for Linux only.
29368
29369 2008-05-15 Bean <bean123ch@gmail.com>
29370
29371 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
29372 keyboard hang problem in apple's intel mac.
29373
29374 2008-05-09 Robert Millan <rmh@aybabtu.com>
29375
29376 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
29377 devices.
29378 * util/grub-mkdevicemap.c (get_virtio_disk_name)
29379 (make_device_map): Likewise.
29380 Reported by Aurelien Jarno <aurel32@debian.org>
29381
29382 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
29383
29384 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
29385 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
29386 (make_device_map): Output entries for xvd type disks.
29387
29388 2008-05-07 Robert Millan <rmh@aybabtu.com>
29389
29390 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
29391 devices.
29392 * util/grub-mkdevicemap.c (get_cciss_disk_name)
29393 (make_device_map): Likewise.
29394 Reported by Roland Dreier <rdreier@cisco.com>
29395
29396 2008-05-07 Robert Millan <rmh@aybabtu.com>
29397
29398 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
29399 grub_strstr() call. Correct a few mistakes in failure path handling.
29400
29401 2008-05-06 Robert Millan <rmh@aybabtu.com>
29402
29403 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
29404 Do not print a trailing slash (therefore, the root directory is an
29405 empty string).
29406 (convert_system_path_to_grub_path): Do not remove trailing slash
29407 from make_system_path_relative_to_its_root() output.
29408
29409 * util/i386/pc/grub-install.in: Add trailing slash to output from
29410 make_system_path_relative_to_its_root().
29411
29412 2008-05-06 Robert Millan <rmh@aybabtu.com>
29413
29414 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
29415 ensures that output lines aren't intermangled with those sent to
29416 stderr (via grub_util_info()).
29417 * util/grub-probe.c (grub_refresh): Likewise.
29418 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
29419
29420 2008-05-05 Christian Franke <franke@computer.org>
29421
29422 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
29423 Add Cygwin device names.
29424 (get_ide_disk_name) [__CYGWIN__]: Likewise.
29425 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
29426 (check_device): Return error instead of success on empty name.
29427 (make_device_map): Move label inside linux specific code to
29428 prevent compiler warning.
29429
29430 2008-04-30 Robert Millan <rmh@aybabtu.com>
29431
29432 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
29433 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
29434 first boot option.
29435 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
29436
29437 2008-04-29 Robert Millan <rmh@aybabtu.com>
29438
29439 * docs/grub.cfg: New file (example GRUB configuration).
29440
29441 2008-04-26 Robert Millan <rmh@aybabtu.com>
29442
29443 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
29444 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
29445 and `disk/ieee1275/nand.c'.
29446
29447 2008-04-25 Bean <bean123ch@gmail.com>
29448
29449 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
29450 i386-linuxbios.
29451
29452 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
29453 change the buffer size to 4096 for cdrom device.
29454
29455 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
29456 and nand.mod.
29457 (_linux_mod_SOURCES): New variable.
29458 (_linux_mod_CFLAGS): Likewise.
29459 (_linux_mod_LDFLAGS): Likewise.
29460 (linux_mod_SOURCES): Likewise.
29461 (linux_mod_CFLAGS): Likewise.
29462 (linux_mod_LDFLAGS): Likewise.
29463 (nand_mod_SOURCES): Likewise.
29464 (nand_mod_CFLAGS): Likewise.
29465 (nand_mod_LDFLAGS): Likewise.
29466
29467 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
29468 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
29469 type property. (nand device in olpc don't have this property)
29470
29471 * include/grub/disk.h (grub_disk_dev_id): New macro
29472 GRUB_DISK_DEVICE_NAND_ID.
29473
29474 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
29475 function prototype.
29476 (grub_rescue_cmd_initrd): Likewise.
29477
29478 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
29479 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
29480 ofw_cif_handler and ofw_idt, adjust padding number.
29481
29482 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
29483 GRUB_MACHINE_IEEE1275 is defined.
29484
29485 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
29486 Use NESTED_FUNC_ATTR attribute on the hook parameter.
29487
29488 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
29489 on nested function heap_init.
29490 (grub_upper_mem): New variable for i386-ieee1275.
29491 (grub_get_extended_memory): New function for i386-ieee1275.
29492 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
29493
29494 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
29495 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
29496 property.
29497
29498 * loader/i386/ieee1275/linux.c: New file.
29499
29500 * loader/i386/ieee1275/linux_normal.c: New file.
29501
29502 * disk/ieee1275/nand.c: New file.
29503
29504 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
29505
29506 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
29507 value.
29508 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
29509
29510 2008-04-18 Robert Millan <rmh@aybabtu.com>
29511
29512 Restructures early code path on ieee1275 to unify grub_main() as
29513 the first C function that is executed in every platform.
29514
29515 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
29516 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
29517 cmain().
29518 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
29519 * kern/ieee1275/cmain.c (cmain): Rename to ...
29520 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
29521 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
29522 at the beginning.
29523
29524 2008-04-18 Robert Millan <rmh@aybabtu.com>
29525
29526 * util/update-grub.in: Fix syntax error when setting
29527 `GRUB_PRELOAD_MODULES'.
29528 Reported by Stephane Chazelas <stephane@artesyncp.com>
29529
29530 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
29531
29532 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
29533 section into account, newer toolchains generate unique build ids
29534 * configure.ac: remove the test for --build-id=none acceptance,
29535 we want build ids to be preserved
29536 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
29537 far from other sections don't cause the raw binary images grow
29538 size
29539
29540 2008-04-15 Robert Millan <rmh@aybabtu.com>
29541
29542 * disk/lvm.c: Update copyright year.
29543 * kern/misc.c: Likewise.
29544
29545 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
29546
29547 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
29548 there is no memory left for physical volume name.
29549
29550 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
29551
29552 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
29553 volume name mapping to support bigger than 9 character names properly.
29554
29555 2008-04-13 Robert Millan <rmh@aybabtu.com>
29556
29557 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
29558 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
29559
29560 2008-04-13 Christian Franke <franke@computer.org>
29561
29562 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
29563 to create a floppy emulation boot CD when non emulation mode
29564 does not work.
29565 Enable Joliet CD filesystem extension.
29566
29567 2008-04-13 Robert Millan <rmh@aybabtu.com>
29568
29569 * kern/misc.c (grub_strncat): Fix off-by-one error.
29570 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
29571
29572 * kern/env.c (grub_env_context_close): Clear current context, not
29573 previous one.
29574 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
29575
29576 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
29577
29578 2008-04-13 Robert Millan <rmh@aybabtu.com>
29579
29580 Improve robustness when handling LVM.
29581
29582 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
29583 (and leave `*p' unmodified).
29584 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
29585 through it.
29586 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
29587 iterating through it.
29588 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
29589 through it.
29590 (grub_lvm_scan_device): Check the return value (and fail gracefully
29591 when due) on each grub_lvm_getvalue() or grub_strstr() call.
29592 Don't assume `vg->pvs != NULL' when iterating through it.
29593
29594 2008-04-13 Robert Millan <rmh@aybabtu.com>
29595
29596 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
29597 * genmk.rb (partmap): New variable.
29598 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
29599 (#{partmap}): New target rule.
29600 * genpartmaplist.sh: New file.
29601 * Makefile.in (pkglib_DATA): Add partmap.lst.
29602 (partmap.lst): New target rule.
29603 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
29604 modules (including all partition maps), instead of preloading them.
29605
29606 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
29607
29608 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
29609 `linux-boot-prober' (if installed) to detect other operating
29610 systems which are installed on the computer and add them to
29611 the boot menu.
29612 * conf/common.rmk: Build and install 30_os-prober.
29613
29614 2008-04-12 Robert Millan <rmh@aybabtu.com>
29615
29616 * kern/powerpc/ieee1275/init.c: Move from here ...
29617 * kern/ieee1275/init.c: ... to here. Update all users.
29618
29619 * kern/powerpc/ieee1275/cmain.c: Move from here ...
29620 * kern/ieee1275/cmain.c: ... to here. Update all users.
29621
29622 * kern/powerpc/ieee1275/openfw.c: Move from here ...
29623 * kern/ieee1275/openfw.c: ... to here. Update all users.
29624
29625 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
29626 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
29627
29628 2008-04-10 Pavel Roskin <proski@gnu.org>
29629
29630 * configure.ac: Always use "_cv_" in cache variables for
29631 compatibility with Autoconf 2.62.
29632
29633 2008-04-07 Robert Millan <rmh@aybabtu.com>
29634
29635 Revert grub/machine/init.h addition by Pavel (since it breaks on
29636 i386-ieee1275 and others):
29637 * util/i386/pc/misc.c: Remove grub/machine/init.h.
29638 * util/powerpc/ieee1275/misc.c: Likewise.
29639
29640 2008-04-07 Robert Millan <rmh@aybabtu.com>
29641
29642 * util/grub-probe.c (probe): Improve error message.
29643
29644 2008-04-07 Robert Millan <rmh@aybabtu.com>
29645
29646 * util/biosdisk.c (read_device_map): Skip devices that don't exist
29647 (this prevents the presence of a bogus entry from ruining the whole
29648 thing).
29649
29650 2008-04-06 Pavel Roskin <proski@gnu.org>
29651
29652 * util/biosdisk.c: Include grub/util/biosdisk.h.
29653 * util/grub-fstest.c (execute_command): Make static.
29654 * util/grub-mkdevicemap.c (check_device): Likewise.
29655 * util/i386/pc/misc.c: Include grub/machine/init.h.
29656 * util/powerpc/ieee1275/misc.c: Likewise.
29657 * util/lvm.c: Include grub/util/lvm.h.
29658 * util/misc.c: Include grub/kernel.h, grub/misc.h and
29659 grub/cache.h.
29660 * util/raid.c: Include grub/util/raid.h.
29661 (grub_util_getdiskname): Make static.
29662
29663 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
29664 grub_hostfs_fini(), as they are called from grub_init_all() and
29665 grub_fini_all() respectively. This fixes an infinite loop in
29666 grub-fstest due to double registration of hostfs.
29667 Reported by Christian Franke <Christian.Franke@t-online.de>
29668
29669 2008-04-05 Pavel Roskin <proski@gnu.org>
29670
29671 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
29672 all 8 functions. Otherwise, probe function 0 only.
29673
29674 2008-04-04 Pavel Roskin <proski@gnu.org>
29675
29676 * commands/lspci.c (grub_lspci_iter): Print the bus number
29677 correctly.
29678
29679 * commands/lspci.c (grub_pci_classes): Fix typos.
29680 (grub_lspci_iter): Don't print func twice. Print vendor ID
29681 before device ID, as it's normally done.
29682
29683 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
29684 Fix signedness warnings.
29685 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
29686 Likewise.
29687 * util/ieee1275/get_disk_name.c: Include config.h so that
29688 _GNU_SOURCE is defined and getline() is declared. Mark an
29689 unused argument as such. Fix a signedness warning.
29690
29691 2008-04-02 Pavel Roskin <proski@gnu.org>
29692
29693 * genkernsyms.sh.in: Use more robust assignments for CC and
29694 srcdir. Quote srcdir.
29695 * gensymlist.sh.in: Likewise. Assert at the compile time that
29696 the symbol table is not empty.
29697
29698 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
29699 * fs/cpio.c (grub_cpio_read): Likewise.
29700
29701 2008-04-01 Pavel Roskin <proski@gnu.org>
29702
29703 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
29704 * disk/host.c (grub_host_open): Likewise.
29705 * disk/loopback.c (grub_loopback_open): Likewise.
29706 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
29707 disk->id as in disk/host.c, not a multi-character constant.
29708
29709 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
29710 later is obsolete, potentially dangerous and sets a bad example.
29711 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
29712 * util/misc.c (grub_util_get_image_size): Likewise.
29713
29714 * disk/loopback.c (options): Improve help for "--partitions".
29715
29716 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
29717 options to align them with the short options, e.g. "echo -e".
29718
29719 2008-03-31 Bean <bean123ch@gmail.com>
29720
29721 * video/reader/png.c (grub_png_data): New member is_16bit and
29722 image_data.
29723 (grub_png_decode_image_header): Detect 16 bit png image.
29724 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
29725 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
29726 (grub_video_reader_png): Release memory occupied by image_data.
29727
29728 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
29729 4096 bytes.
29730 (grub_nfs_mount): Skip the test for sector per cluster.
29731
29732 * include/grub/ntfs.h (MAX_SPC): Removed.
29733
29734 2008-03-31 Bean <bean123ch@gmail.com>
29735
29736 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
29737 (grub_probe_SOURCES): Add fs/afs.c.
29738 (grub_fstest_SOURCES): Likewise.
29739 (afs_mod_SOURCES): New variable.
29740 (afs_mod_CFLAGS): Likewise.
29741 (afs_mod_LDFLAGS): Likewise.
29742
29743 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
29744 (grub_emu_SOURCES): Likewise.
29745
29746 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29747
29748 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29749
29750 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
29751
29752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29753
29754 * fs/afs.c: New file.
29755
29756 2008-03-30 Pavel Roskin <proski@gnu.org>
29757
29758 * disk/host.c: Include grub/misc.h to fix a warning.
29759 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
29760 warnings about implicit declarations.
29761
29762 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
29763 variable.
29764 * include/grub/i386/loader.h: Change declaration of
29765 grub_linux_boot() to match what grub_loader_set() expects.
29766 * util/getroot.c (grub_guess_root_device): Return const char* to
29767 fix a warning.
29768 * util/grub-probe.c (probe): Fix a warning about uninitialized
29769 abstraction_name variable.
29770 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
29771 second argument as unused to fix a warning.
29772
29773 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
29774 missing grub_error() call.
29775
29776 * util/update-grub_lib.in: Define datarootdir, since Autoconf
29777 2.60 and newer uses it to define datadir.
29778
29779 * commands/sleep.c: Fix warning about implicit declaration.
29780 * disk/memdisk.c: Likewise.
29781 * loader/aout.c: Likewise.
29782 * loader/i386/bsd_normal.c: Likewise.
29783 * util/grub-probe.c: Likewise.
29784
29785 * commands/i386/cpuid.c (has_longmode): Make static.
29786 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
29787 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
29788
29789 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
29790 GDT. This is more robust, as %ds can change.
29791 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
29792 calling real_to_prot().
29793 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
29794
29795 2008-03-28 Pavel Roskin <proski@gnu.org>
29796
29797 * kern/i386/pc/startup.S: Assert that uncompressed functions
29798 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
29799 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
29800 code, as they push parts of the code (error handlers) beyond
29801 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
29802 code as correctness and size.
29803
29804 2008-03-28 Pavel Roskin <proski@gnu.org>
29805
29806 * kern/i386/pc/startup.S
29807 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
29808 data block address to the real mode, keep offset minimal. This
29809 works around a bug in AWARD BIOS on old Athlon systems, which
29810 makes CD detection hang.
29811
29812 2008-03-26 Pavel Roskin <proski@gnu.org>
29813
29814 * normal/color.c (grub_parse_color_name_pair): Make `name' a
29815 const.
29816 * include/grub/normal.h: Add grub_parse_color_name_pair()
29817 declaration.
29818
29819 2008-03-24 Bean <bean123ch@gmail.com>
29820
29821 * disk/i386/pc/biosdisk.c (cd_start): Removed.
29822 (cd_count): Removed.
29823 (cd_drive): New variable.
29824 (grub_biosdisk_get_drive): Don't check for (cdN) device.
29825 (grub_biosdisk_call_hook): Likewise.
29826 (grub_biosdisk_iterate): Change cdrom detection method.
29827 (grub_biosdisk_open): Replace cd_start with cd_drive.
29828 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
29829 detect cdrom device.
29830
29831 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
29832 Removed.
29833 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
29834 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
29835 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
29836 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
29837 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
29838 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
29839 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
29840 (grub_biosdisk_cdrp): New structure.
29841 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
29842
29843 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
29844
29845 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
29846 device.
29847
29848 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
29849 New function.
29850
29851 2008-03-20 Robert Millan <rmh@aybabtu.com>
29852
29853 Remove 2 TiB limit in ata.mod.
29854 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
29855 (grub_ata_dumpinfo): Print sector count with 0x%llx.
29856 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
29857 grub_uint64_t instead of grub_uint32_t.
29858
29859 2008-03-05 Bean <bean123ch@gmail.com>
29860
29861 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
29862 (grub_multiboot): Set boot device.
29863
29864 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
29865
29866 2008-03-02 Bean <bean123ch@gmail.com>
29867
29868 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
29869 symlink_buffer.
29870
29871 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
29872
29873 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
29874 texinfo.tex.
29875
29876 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
29877 modified.
29878
29879 * docs/fdl.texi: New file.
29880
29881 * docs/mdate-sh: New file. Copied from gnulib.
29882 * docs/texinfo.tex: Likewise.
29883
29884 * config.guess: Updated from gnulib.
29885 * install-sh: Likewise.
29886
29887 2008-02-28 Robert Millan <rmh@aybabtu.com>
29888
29889 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
29890 (aout_mod_SOURCES): New variable.
29891 (aout_mod_CFLAGS): Likewise.
29892 (aout_mod_LDFLAGS): Likewise.
29893
29894 * conf/i386-ieee1275.rmk: Likewise.
29895
29896 2008-02-28 Robert Millan <rmh@aybabtu.com>
29897
29898 * util/update-grub.in: Reorganise terminal validity check. Accept
29899 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
29900 Based on suggestion by Franklin PIAT.
29901
29902 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
29903
29904 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
29905 function.
29906 * util/getroot.c (grub_util_check_block_device): New function that
29907 returns the given argument if it is a block device and returns NULL else.
29908 * util/grub-probe.c (argument_is_device): New variable.
29909 (probe): Promote device_name from a variable to an argument. Receive
29910 device_name from grub_util_check_block_device() if path is NULL and from
29911 grub_guess_root_device() else. Do not free() device_name anymore.
29912 (options): Introduce new parameter '-d, --device'.
29913 (main): Add description of the new parameter to the help screen.
29914 Rename path variable to argument. Set argument_is_device if the '-d'
29915 option is given. Pass argument to probe() depending on
29916 argument_is_device.
29917
29918 2008-02-24 Bean <bean123ch@gmail.com>
29919
29920 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
29921 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
29922 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
29923 (GRUB_ISO9660_VOLDESC_PART): Likewise.
29924 (GRUB_ISO9660_VOLDESC_END): Likewise.
29925 (grub_iso9660_primary_voldesc): New member escape.
29926 (grub_iso9660_data): New member joliet.
29927 (grub_iso9660_convert_string): New function.
29928 (grub_iso9660_mount): Detect joliet extension.
29929 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
29930 (grub_iso9660_iso9660_label): Likewise.
29931
29932 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
29933 (grub_setup_SOURCES): Add fs/udf.c.
29934 (grub_fstest_SOURCES): Likewise.
29935 (udf_mod_SOURCES): New variable.
29936 (udf_mod_CFLAGS): Likewise.
29937 (udf_mod_LDFLAGS): Likewise.
29938
29939 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
29940 (grub_emu_SOURCES): Likewise.
29941
29942 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29943
29944 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29945
29946 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
29947
29948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29949
29950 * fs/udf.c: New file.
29951
29952 2008-02-24 Robert Millan <rmh@aybabtu.com>
29953
29954 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
29955 (normal/lexer.c_DEPENDENCIES): New variables.
29956 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
29957 (normal/lexer.c_DEPENDENCIES): Likewise.
29958 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
29959 (normal/lexer.c_DEPENDENCIES): Likewise.
29960 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
29961 (normal/lexer.c_DEPENDENCIES): Likewise.
29962 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
29963 (normal/lexer.c_DEPENDENCIES): Likewise.
29964 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
29965 (normal/lexer.c_DEPENDENCIES): Likewise.
29966
29967 2008-02-23 Robert Millan <rmh@aybabtu.com>
29968
29969 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
29970 since they were intended to be in hex. This didn't break previously
29971 because of a bug in gpt_partition_map_iterate() (see below).
29972
29973 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
29974 when checking the validity of GPT header.
29975 Remove `partno', since it always provides the same information as `i'.
29976
29977 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
29978
29979 * include/grub/efi/time.h: Fix a wrong comment.
29980
29981 2008-02-19 Pavel Roskin <proski@gnu.org>
29982
29983 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
29984 message.
29985
29986 2008-02-19 Bean <bean123ch@gmail.com>
29987
29988 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
29989 (aout_mod_SOURCES): New variable.
29990 (aout_mod_CFLAGS): Likewise.
29991 (aout_mod_LDFLAGS): Likewise.
29992 (_bsd_mod_SOURCES): New variable.
29993 (_bsd_mod_CFLAGS): Likewise.
29994 (_bsd_mod_LDFLAGS): Likewise.
29995 (bsd_mod_SOURCES): New variable.
29996 (bsd_mod_CFLAGS): Likewise.
29997 (bsd_mod_LDFLAGS): Likewise.
29998
29999 * include/grub/aout.h: New file.
30000
30001 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
30002
30003 * include/grub/i386/bsd.h: New file.
30004
30005 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
30006 to make it public.
30007
30008 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
30009 function is called, so that it's possible to change it inside the hook.
30010 (grub_elf64_load): Likewise.
30011 (grub_elf_file): Don't close the file if elf header is not found.
30012 (grub_elf_close): Close the file if grub_elf_file fails (The new
30013 grub_elf_file won't close it).
30014 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
30015 (grub_elf64_size): Likewise.
30016
30017 * kern/i386/loader.S (grub_unix_real_boot): New function.
30018
30019 * loader/aout.c: New file.
30020
30021 * loader/i386/bsd.c: New file.
30022
30023 * loader/i386/bsd_normal.c: New file.
30024
30025 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
30026
30027 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
30028 can test other formats.
30029
30030 2008-02-19 Robert Millan <rmh@aybabtu.com>
30031
30032 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
30033 (grub_gpt_partition_type_empty): Redefine with macro from
30034 `<grub/gpt_partition.h>'.
30035 (gpt_partition_map_iterate): Adjust partition type comparison.
30036
30037 Export `entry' as partmap-specific `part.data' struct.
30038 (grub_gpt_header, grub_gpt_partentry): Move from here ...
30039
30040 * include/grub/gpt_partition.h (grub_gpt_header)
30041 (grub_gpt_partentry): ... to here (new file).
30042
30043 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
30044
30045 (grub_gpt_partition_type_bios_boot): New const variable, defined
30046 with macro from `<grub/gpt_partition.h>'.
30047
30048 (setup): Replace `first_start' with `embed_region', which keeps
30049 track of the embed region (and is partmap-agnostic).
30050
30051 Replace find_first_partition_start() with find_usable_region(),
30052 which finds a usable region for embedding using partmap-specific
30053 knowledge (supports PC/MSDOS and GPT).
30054
30055 Fix all assumptions that the embed region start at sector 1, using
30056 `embed_region.start' from now on. Similarly, use `embed_region.end'
30057 rather than `first_start' to calculate available size.
30058
30059 In grub_util_info() message, replace "into after the MBR" with an
30060 indication of the specific sector our embed region starts at.
30061
30062 2008-02-19 Robert Millan <rmh@aybabtu.com>
30063
30064 * DISTLIST: Replace `commands/ieee1275/halt.c' and
30065 `commands/ieee1275/reboot.c' with `commands/halt.c' and
30066 `commands/reboot.c'.
30067 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
30068 (halt_mod_SOURCES): Likewise.
30069 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
30070 (halt_mod_SOURCES): Likewise.
30071
30072 2008-02-17 Christian Franke <franke@computer.org>
30073
30074 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
30075
30076 2008-02-17 Robert Millan <rmh@aybabtu.com>
30077
30078 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
30079 set `first_start' to 0 for non-PC/MSDOS partition maps.
30080
30081 2008-02-16 Robert Millan <rmh@aybabtu.com>
30082
30083 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
30084 do not assume partition map is PC/MSDOS before performing checks that
30085 are specific to that layout.
30086
30087 2008-02-13 Robert Millan <rmh@aybabtu.com>
30088
30089 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
30090 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
30091 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
30092
30093 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
30094
30095 * configure.ac: Only a cosmetic change on the handling of
30096 -fno-stack-protector.
30097
30098 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
30099
30100 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
30101 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
30102 reboot.c.
30103 (grub_install_SOURCES): Add halt.mod and reboot.mod.
30104 (halt_mod_SOURCES): New variable.
30105 (halt_mod_CFLAGS): Likewise.
30106 (halt_mod_LDFLAGS): Likewise.
30107 (reboot_mod_SOURCES): Likewise.
30108 (reboot_mod_CFLAGS): Likewise.
30109 (reboot_mod_LDFLAGS): Likewise.
30110
30111 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
30112 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
30113 reboot.c.
30114 (halt_mod_SOURCES): Likewise.
30115 (reboot_mod_SOURCES): Likewise.
30116
30117 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
30118 commands/i386/pc/reboot.c by commands/reboot.c.
30119 (reboot_mod_SOURCES): Likewise.
30120
30121 * commands/i386/pc/reboot.c: merge this file ...
30122
30123 * commands/ieee1275/reboot.c: ... and this file ...
30124
30125 * commands/reboot.c: ... to this file.
30126 Add some precompiler directive to include the correct header for
30127 each machine.
30128
30129 * commands/ieee1275/halt.c: move this file ...
30130
30131 * commands/halt.c: ... to here.
30132 Add some precompiler directive to include the correct header for
30133 each machine.
30134
30135 * include/grub/efi/efi.h (grub_reboot): New function declaration.
30136 (grub_halt): Likewise.
30137
30138 * kern/efi/efi.c (grub_reboot): New function.
30139 (grub_halt): Likewise.
30140
30141 2008-02-12 Robert Millan <rmh@aybabtu.com>
30142
30143 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
30144 /dev (like it is done for /dev/mapper). This doesn't provide support
30145 for EVMS, but at least it is now easy to identify the problem when it
30146 arises.
30147
30148 2008-02-11 Robert Millan <rmh@aybabtu.com>
30149
30150 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
30151 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
30152 comparing it with -1, not 0.
30153
30154 2008-02-10 Robert Millan <rmh@aybabtu.com>
30155
30156 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
30157 `disk/lvm.c'.
30158 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30159 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30160
30161 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
30162 `disk/lvm.c' to the end of the list.
30163 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30164 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30165
30166 2008-02-10 Robert Millan <rmh@aybabtu.com>
30167
30168 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
30169 grub_print_error() instead. This will let user know why we're entering
30170 rescue mode.
30171 Based on suggestions from Sam Morris.
30172
30173 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
30174
30175 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
30176 on remaining N args, instead of "--" arg N times.
30177
30178 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
30179
30180 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
30181 (fill_with_default_glyph): Changed to use unknown_glyph for fill
30182 pattern for unknown glyphs.
30183
30184 2008-02-09 Robert Millan <rmh@aybabtu.com>
30185
30186 * configure.ac: Probe for `help2man'.
30187 * Makefile.in (builddir): New variable.
30188 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
30189 or otherwise add a few flags/options to it.
30190 (install-local): For every executable utility or script that is
30191 installed, invoke $(HELP2MAN) to install a manpage based on --help
30192 output.
30193
30194 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
30195 that it doesn't prevent --help from working in build tree.
30196
30197 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
30198 with `bug-grub@gnu.org'.
30199 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
30200 * util/update-grub.in (usage): New function.
30201 Implement proper argument check, with support for --help and --version
30202 (as well as existing -y).
30203
30204 2008-02-09 Christian Franke <franke@computer.org>
30205
30206 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
30207 avoid overwriting previous output.
30208 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
30209
30210 2008-02-09 Robert Millan <rmh@aybabtu.com>
30211
30212 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
30213 drawing the menu.
30214
30215 2008-02-09 Robert Millan <rmh@aybabtu.com>
30216
30217 * commands/sleep.c: New file.
30218 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
30219 (sleep_mod_SOURCES): New variable.
30220 (sleep_mod_CFLAGS): Likewise.
30221 (sleep_mod_LDFLAGS): Likewise.
30222
30223 2008-02-09 Robert Millan <rmh@aybabtu.com>
30224
30225 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
30226 situations in which we can deduce the RAID size and the superblock
30227 doesn't match it.
30228
30229 2008-02-09 Robert Millan <rmh@aybabtu.com>
30230
30231 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
30232 and return a grub_diskmemberlist_t composed of LVM physical volumes.
30233 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
30234
30235 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
30236 and return a grub_diskmemberlist_t composed of physical array members.
30237 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
30238
30239 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
30240 prototype.
30241 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
30242 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
30243 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
30244
30245 * util/grub-probe.c (probe): Move partmap probing code from here ...
30246 (probe_partmap): ... to here.
30247 (probe): Use probe_partmap() once for the disk we're probing, and
30248 additionally, when such disk contains a memberlist() struct member,
30249 once for each disk that is contained in the structure returned by
30250 memberlist().
30251
30252 2008-02-09 Robert Millan <rmh@aybabtu.com>
30253
30254 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
30255 environment variable to 'all' in order to obtain debug output from
30256 non-util/ code.
30257 * util/i386/pc/grub-setup.c (main): Likewise.
30258
30259 2008-02-08 Robert Millan <rmh@aybabtu.com>
30260
30261 * disk/raid.c (grub_raid_scan_device): Check for
30262 `array->device[sb.this_disk.number]' rather than for
30263 `array->device[sb.this_disk.number]->name', since the latter is not
30264 guaranteed to be accessible.
30265
30266 2008-02-08 Robert Millan <rmh@aybabtu.com>
30267
30268 * disk/raid.c: Update copyright.
30269 * fs/cpio.c: Likewise.
30270 * include/grub/raid.h: Likewise.
30271 * loader/i386/pc/multiboot.c: Likewise.
30272 * util/hostfs.c: Likewise.
30273
30274 2008-02-08 Robert Millan <rmh@aybabtu.com>
30275
30276 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
30277 to a grub_disk_t array.
30278 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
30279 `device[x]'.
30280 (grub_raid_scan_device): Replace `device[x].name' accesses with
30281 `device[x]->name'. Simplify initialization of `array->device[x]'.
30282
30283 2008-02-08 Robert Millan <rmh@aybabtu.com>
30284
30285 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
30286 grub_dprintf() calls.
30287 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
30288 error message.
30289
30290 2008-02-07 Christian Franke <franke@computer.org>
30291
30292 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
30293 instead of fseek and ftell to support large files.
30294 (grub_hostfs_read): Likewise.
30295
30296 2008-02-07 Robert Millan <rmh@aybabtu.com>
30297
30298 Patch from Jeroen Dekkers.
30299 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
30300 failure, since successfully reading all array members might not be
30301 required.
30302
30303 2008-02-06 Robert Millan <rmh@aybabtu.com>
30304
30305 * util/grub-probe.c (probe): Simplify partmap probing (with the
30306 assumption that the first word up to the underscore equals to
30307 the module name).
30308
30309 2008-02-06 Christian Franke <franke@computer.org>
30310
30311 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
30312 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
30313 last block of a cpio or tar stream.
30314 Check for "TRAILER!!!" instead of any empty data
30315 block to detect last block of a cpio stream.
30316 (grub_cpio_dir): Fix constness of variable np.
30317 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
30318 cpio or tar trailer is detected. This fixes a crash
30319 on open of a non existing file.
30320
30321 2008-02-05 Bean <bean123ch@gmail.com>
30322
30323 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
30324 address of entry.
30325 (grub_multiboot_load_elf64): Likewise.
30326 (grub_multiboot): Initialize mbi structure.
30327
30328 * util/grub-fstest.c: Don't include unused header file script.h.
30329
30330 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
30331 of file.
30332 (grub_fstest_SOURCES): Likewise.
30333
30334 2008-02-05 Robert Millan <rmh@aybabtu.com>
30335
30336 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
30337 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
30338 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
30339 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
30340
30341 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
30342 (translation_table): Replace hardcoded values with macros
30343 provided by `<grub/term.h>'.
30344
30345 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
30346 (keyboard_map): Correct/add a few values, with macros provided
30347 by `<grub/term.h>'.
30348 (keyboard_map_shift): Zero values that don't differ from their
30349 `keyboard_map' equivalents.
30350 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
30351 Discard the second scan code that is always sent by Caps lock.
30352 Only use `keyboard_map_shift' when it provides a non-zero value,
30353 otherwise fallback to `keyboard_map'.
30354
30355 2008-02-04 Bean <bean123ch@gmail.com>
30356
30357 * Makefile.in (enable_grub_fstest): New variable.
30358
30359 * conf/common.rmk (grub_fstest_init.lst): New rule.
30360 (grub_fstest_init.h): Likewise.
30361 (grub_fstest_init.c): Likewise.
30362 (util/grub-fstest.c_DEPENDENCIES): New variable.
30363 (grub_fstest_SOURCES): Likewise.
30364
30365 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
30366
30367 * util/grub-fstest.c: New file.
30368
30369 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30370
30371 Make grub-setup handle a separate root device.
30372
30373 * util/i386/pc/grub-setup.c (setup): Always open the root device,
30374 so that the root device can be compared with the destination
30375 device.
30376 When embedding the core image, if the root and destination devices
30377 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
30378 0xFF.
30379 When not embedding, set ROOT_DRIVE to 0xFF.
30380
30381 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30382
30383 Add support for having a grub directory in a different drive. This
30384 is still only the data handling part.
30385
30386 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
30387 (codestart): Save %dh in GRUB_ROOT_DRIVE.
30388 (grub_root_drive): New variable.
30389
30390 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
30391 instead of GRUB_BOOT_DRIVE to construct a device name. Set
30392 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
30393 as it was.
30394
30395 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
30396
30397 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
30398 macro.
30399 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
30400
30401 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
30402 is bogus, because PXE booting does not specify any drive
30403 correctly.
30404
30405 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
30406 am not sure if this is really correct.
30407
30408 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
30409 is always identical to the boot drive when booting from a CD.
30410
30411 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
30412 longer.
30413 (root_drive): New variable.
30414 (real_start): Unconditionally set %dh to ROOT_DRIVE.
30415 (setup_sectors): Push %dx right after popping it, because %dh will
30416 be modified later.
30417 (copy_buffer): Restore %dx.
30418
30419 2008-02-03 Robert Millan <rmh@aybabtu.com>
30420
30421 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
30422 use `cdboot.img' for cdrom images.
30423
30424 2008-02-03 Robert Millan <rmh@aybabtu.com>
30425
30426 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
30427 only setup gfxterm when `font' command has succeeded.
30428
30429 2008-02-03 Robert Millan <rmh@aybabtu.com>
30430
30431 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
30432 (grub_rescue_cmd_multiboot_loader)
30433 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
30434
30435 2008-02-03 Pavel Roskin <proski@gnu.org>
30436
30437 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
30438 %edx and %esi from stack only after grub_gate_a20() is called.
30439 grub_gate_a20() clobbers %edx.
30440
30441 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30442
30443 * configure.ac (AC_INIT): Bumped to 1.96.
30444
30445 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
30446 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
30447 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
30448 video/readers/png.c.
30449
30450 2008-02-03 Bean <bean123ch@gmail.com>
30451
30452 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
30453 (cdboot_img_SOURCES): New variable.
30454 (cdboot_img_ASFLAGS): New variable.
30455 (cdboot_img_LDFLAGS): New variable.
30456
30457 * boot/i386/pc/cdboot.S: New file.
30458
30459 * disk/i386/pc/biosdisk.c (cd_start): New variable.
30460 (cd_count): Likewise.
30461 (grub_biosdisk_get_drive): Add support for cd device.
30462 (grub_biosdisk_call_hook): Likewise.
30463 (grub_biosdisk_iterate): Likewise.
30464 (grub_biosdisk_open): Likewise.
30465 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
30466 (grub_biosdisk_rw): Support reading from cd device.
30467 (GRUB_MOD_INIT): Iterate cd devices.
30468
30469 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
30470 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
30471 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
30472
30473 * kern/i386/pc/init.c (make_install_device): Check for cd device.
30474
30475 2008-02-02 Robert Millan <rmh@aybabtu.com>
30476
30477 * commands/read.c: New file.
30478 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
30479 (read_mod_SOURCES): New variable.
30480 (read_mod_CFLAGS): Likewise.
30481 (read_mod_LDFLAGS): Likewise.
30482
30483 2008-02-02 Robert Millan <rmh@aybabtu.com>
30484
30485 * normal/main.c (grub_normal_execute): Check for `menu->size' when
30486 determining whether menu has to be displayed.
30487
30488 2008-02-02 Marco Gerards <marco@gnu.org>
30489
30490 * bus/pci.c: New file.
30491
30492 * include/grub/pci.h: Likewise.
30493
30494 * include/grub/i386/pc/pci.h: Likewise.
30495
30496 * commands/lspci.c: Likewise.
30497
30498 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
30499 `lspci.mod'.
30500 (pci_mod_SOURCES): New variable.
30501 (pci_mod_CFLAGS): Likewise.
30502 (pci_mod_LDFLAGS): Likewise.
30503 (lspci_mod_SOURCES): Likewise.
30504 (lspci_mod_CFLAGS): Likewise.
30505 (lspci_mod_LDFLAGS): Likewise.
30506
30507 2008-02-02 Bean <bean123ch@gmail.com>
30508
30509 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
30510 (grub_ufs_get_file_block): Fix indirect block calculation problem.
30511
30512 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
30513 (grub_xfs_btree_node): New structure.
30514 (grub_xfs_btree_root): New structure.
30515 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
30516 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
30517 (GRUB_XFS_EXTENT_BLOCK): Likewise.
30518 (GRUB_XFS_EXTENT_SIZE): Likewise.
30519 (grub_xfs_read_block): Support btree format type.
30520 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
30521 Use directory block as basic unit.
30522
30523 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
30524
30525 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
30526 __attribute__ ((__regparm__ (1))).
30527
30528 2008-02-01 Robert Millan <rmh@aybabtu.com>
30529
30530 Correct a mistake in previous commit.
30531
30532 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
30533 top.
30534 (normal/command.c_DEPENDENCIES): New variable.
30535
30536 2008-02-01 Robert Millan <rmh@aybabtu.com>
30537
30538 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
30539 top.
30540 (normal/command.c_DEPENDENCIES): New variable.
30541 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
30542 * conf/i386-ieee1275.rmk: Likewise.
30543 * conf/i386-linuxbios.rmk: Likewise.
30544 * conf/i386-pc.rmk: Likewise.
30545 * conf/sparc64-ieee1275.rmk: Likewise.
30546 * conf/powerpc-ieee1275.rmk: Likewise.
30547 (grub_emu_SOURCES): Add `fs/fshelp.c'.
30548
30549 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
30550
30551 2008-02-01 Robert Millan <rmh@aybabtu.com>
30552
30553 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
30554 call at beginning of function.
30555
30556 2008-01-31 Pavel Roskin <proski@gnu.org>
30557
30558 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
30559 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
30560 (grub_mkrescue_SOURCES): Likewise.
30561 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
30562
30563 2008-01-30 Robert Millan <rmh@aybabtu.com>
30564
30565 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
30566 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
30567 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
30568 (grub_probe_SOURCES): ... to here.
30569
30570 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
30571 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
30572 * conf/i386-ieee1275.rmk: Likewise.
30573 * conf/i386-linuxbios.rmk: Likewise.
30574 * conf/powerpc-ieee1275.rmk: Likewise.
30575
30576 2008-01-30 Tristan Gingold <gingold@free.fr>
30577
30578 * kern/rescue.c: Silently accept empty lines.
30579
30580 2008-01-29 Bean <bean123ch@gmail.com>
30581
30582 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
30583 (real_code_2): Code cleanup and change comment style.
30584 (move_memory): Avoid using 32-bit address mode.
30585
30586 2008-01-29 Bean <bean123ch@gmail.com>
30587
30588 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
30589 (png_mod_SOURCES): New variable.
30590 (png_mod_CFLAGS): Likewise.
30591 (png_mod_LDFLAGS): Likewise.
30592
30593 * video/readers/png.c: New file.
30594
30595 2008-01-28 Robert Millan <rmh@aybabtu.com>
30596
30597 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
30598 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
30599 `ifndef GRUB_MOD_GAP' hack.
30600 * util/elf/grub-mkimage.c (add_segments): Likewise.
30601
30602 2008-01-27 Robert Millan <rmh@aybabtu.com>
30603
30604 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
30605 `GRUB_MOD_GAP' for platforms in which it's not defined.
30606 * util/elf/grub-mkimage.c (add_segments): Likewise.
30607
30608 2008-01-27 Robert Millan <rmh@aybabtu.com>
30609
30610 Get grub-emu to build again (including parallel builds).
30611
30612 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
30613 Split into ...
30614 (util/grub-emu.c_DEPENDENCIES): ... this, ...
30615 (normal/execute.c_DEPENDENCIES): ... this, ...
30616 (grub-emu_DEPENDENCIES): ... and this.
30617
30618 * conf/i386-efi.rmk: Likewise.
30619 * conf/i386-linuxbios.rmk: Likewise.
30620 * conf/i386-ieee1275.rmk: Likewise.
30621 * conf/powerpc-ieee1275.rmk: Likewise.
30622 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
30623
30624 2008-01-27 Robert Millan <rmh@aybabtu.com>
30625
30626 * NEWS: Add a few items.
30627
30628 2008-01-27 Robert Millan <rmh@aybabtu.com>
30629
30630 Fix parallel builds with grub-emu. Based on earlier commit for
30631 grub-probe and grub-setup.
30632
30633 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
30634 (util/grub-emu.c_DEPENDENCIES): ... this.
30635 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
30636 (util/grub-emu.c_DEPENDENCIES): ... this.
30637 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
30638 (util/grub-emu.c_DEPENDENCIES): ... this.
30639 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
30640 (util/grub-emu.c_DEPENDENCIES): ... this.
30641 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
30642 (util/grub-emu.c_DEPENDENCIES): ... this.
30643
30644 2008-01-27 Pavel Roskin <proski@gnu.org>
30645
30646 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
30647 to create a gap between _end and the modules added to the image
30648 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
30649 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
30650 * util/elf/grub-mkimage.c (add_segments): Likewise.
30651
30652 2008-01-26 Pavel Roskin <proski@gnu.org>
30653
30654 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
30655 just return an error.
30656
30657 2008-01-26 Bean <bean123ch@gmail.com>
30658
30659 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
30660 (grub_reiserfs_get_item): Save offset of the next item.
30661 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
30662
30663 2008-01-25 Robert Millan <rmh@aybabtu.com>
30664
30665 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
30666 make all filesystem sources appear together (possibly fixing omissions
30667 while at it).
30668 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30669 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30670 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30672
30673 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
30674 add `kern/file.c'.
30675 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
30676 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
30677 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
30678 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
30679
30680 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
30681 (probe): Add a sanity check to make sure of our ability to read
30682 requested files when probing for filesystem type.
30683
30684 * genmk.rb: Update copyright year (2007).
30685
30686 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
30687 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
30688 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
30689 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
30690 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
30691 : Remove function prototypes.
30692
30693 2008-01-25 Robert Millan <rmh@aybabtu.com>
30694
30695 Revert my previous commits (based on wrong assumption of how grub_errno
30696 works).
30697
30698 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
30699 * kern/file.c (grub_file_open): Likewise.
30700
30701 2008-01-24 Pavel Roskin <proski@gnu.org>
30702
30703 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
30704 that hang if GRUB tries to setup colors.
30705 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
30706 colors for firmwares that don't support it.
30707 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
30708 Recognize Open Hack'Ware, set flags to work around its
30709 limitations.
30710
30711 2008-01-24 Robert Millan <rmh@aybabtu.com>
30712
30713 * kern/file.c (grub_file_open): Do not account previous failures of
30714 unrelated functions when grub_errno is checked for.
30715 Reported by Oleg Strikov.
30716
30717 2008-01-24 Bean <bean123ch@gmail.com>
30718
30719 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
30720 (grub_ufs_sblock): New member volume name.
30721 (grub_ufs_find_file): Fix string copy bug.
30722 (grub_ufs_label): Implement this function properly.
30723
30724 * fs/hfs.c (grub_hfs_cnid_type): New enum.
30725 (grub_hfs_iterate_records): Use the correct file number for extents
30726 and catalog file. Fix problem in next index calculation.
30727 (grub_hfs_find_node): Replace recursive function call with loop.
30728 (grub_hfs_iterate_dir): Replace recursive function call with loop.
30729
30730 2008-01-23 Robert Millan <rmh@aybabtu.com>
30731
30732 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
30733 `<grub/symbol.h>' and `<grub/multiboot.h>'.
30734 (grub_multiboot2_real_boot): New function prototype.
30735
30736 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
30737 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
30738
30739 * kern/i386/ieee1275/init.c (grub_os_area_addr)
30740 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
30741
30742 2008-01-23 Robert Millan <rmh@aybabtu.com>
30743
30744 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
30745 #ifdef'ed out grub_printf().
30746
30747 2008-01-23 Robert Millan <rmh@aybabtu.com>
30748
30749 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
30750 grub_dprintf calls, since they make "debug=all" mode unusable.
30751 (grub_console_checkkey): Likewise.
30752
30753 2008-01-23 Robert Millan <rmh@aybabtu.com>
30754
30755 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
30756 `term/i386/pc/at_keyboard.c'.
30757 (pkglib_MODULES): Add `serial.mod'.
30758 (serial_mod_SOURCES): New variable.
30759 (serial_mod_CFLAGS): Likewise.
30760 (serial_mod_LDFLAGS): Likewise.
30761
30762 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
30763 `<grub/powerpc/ieee1275/console.h>'.
30764 (grub_keyboard_controller_init): New function prototype.
30765 (grub_console_checkkey): Likewise.
30766 (grub_console_getkey): Likewise.
30767
30768 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
30769 keyboard on i386.
30770
30771 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
30772 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
30773
30774 2008-01-23 Robert Millan <rmh@aybabtu.com>
30775
30776 * kern/i386/pc/init.c (make_install_device): When memdisk image is
30777 present, "(memdisk)/boot/grub" becomes the default prefix.
30778
30779 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
30780 a memdisk tarball with all the modules. Add --overlay=DIR option that
30781 allows users to overlay additional files into the image.
30782
30783 2008-01-23 Robert Millan <rmh@aybabtu.com>
30784
30785 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
30786 and `machine/memory.h'.
30787 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
30788 (_multiboot_mod_SOURCES): New variable.
30789 (_multiboot_mod_CFLAGS): Likewise.
30790 (_multiboot_mod_LDFLAGS): Likewise.
30791 (multiboot_mod_SOURCES): Likewise.
30792 (multiboot_mod_CFLAGS): Likewise.
30793 (multiboot_mod_LDFLAGS): Likewise.
30794
30795 * include/grub/i386/ieee1275/loader.h: New file.
30796
30797 * include/grub/i386/ieee1275/machine.h: Likewise.
30798
30799 * include/grub/i386/ieee1275/memory.h: Likewise.
30800
30801 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
30802 variable declaration.
30803 (grub_os_area_size): Likewise.
30804
30805 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
30806 (grub_lower_mem, grub_upper_mem): New variables.
30807 (grub_stop_floppy): New function (just to make
30808 grub_multiboot2_real_boot() happy).
30809
30810 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
30811 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
30812 (grub_stop): New function.
30813 Include `"../realmode.S"' and `"../loader.S"'.
30814
30815 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
30816 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
30817
30818 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
30819 rely on grub_multiboot2_real_boot() for final boot.
30820
30821 2008-01-22 Robert Millan <rmh@aybabtu.com>
30822
30823 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
30824 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
30825 device that doesn't look like an SD card.
30826 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
30827 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
30828 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
30829 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
30830 found.
30831
30832 2008-01-22 Robert Millan <rmh@aybabtu.com>
30833
30834 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
30835 avoid claiming over our own code.
30836
30837 2008-01-22 Bean <bean123ch@gmail.com>
30838
30839 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
30840 (jpeg_mod_SOURCES): New variable.
30841 (jpeg_mod_CFLAGS): Likewise.
30842 (jpeg_mod_LDFLAGS): Likewise.
30843
30844 * video/readers/jpeg.c : New file.
30845
30846 2008-01-22 Bean <bean123ch@gmail.com>
30847
30848 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
30849 there are no more items.
30850
30851 2008-01-21 Robert Millan <rmh@aybabtu.com>
30852
30853 * kern/mm.c (grub_mm_init_region): Improve debug message.
30854
30855 2008-01-21 Robert Millan <rmh@aybabtu.com>
30856
30857 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
30858 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
30859 address.
30860 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
30861 a C macro.
30862 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
30863 Indicates start of upper memory.
30864 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
30865 (generate_image): Abort when image size is big enough to corrupt
30866 upper memory.
30867
30868 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
30869 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
30870 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
30871 instead of hardcoding 0xA0000.
30872 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
30873 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
30874 instead of hardcoding 0xA0000.
30875
30876 2008-01-21 Robert Millan <rmh@aybabtu.com>
30877
30878 * disk/memdisk.c (memdisk_size): New variable.
30879 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
30880 `memdisk_size'.
30881 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
30882 image to dynamic memory.
30883 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
30884 `memdisk_size'. Free memdisk block.
30885
30886 2008-01-21 Robert Millan <rmh@aybabtu.com>
30887
30888 Fix detection of very small filesystems (like tar).
30889
30890 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
30891 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
30892 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
30893 a problem with this disk).
30894
30895 2008-01-21 Robert Millan <rmh@aybabtu.com>
30896
30897 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
30898 on grub_biosdisk_rw_standard() error.
30899
30900 2008-01-21 Robert Millan <rmh@aybabtu.com>
30901
30902 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
30903 recent changes.
30904 * kern/elf.c: Likewise.
30905 * kern/ieee1275/ieee1275.c: Likewise.
30906 * kern/powerpc/ieee1275/openfw.c: Likewise.
30907 * term/ieee1275/ofconsole.c: Likewise.
30908
30909 2008-01-21 Robert Millan <rmh@aybabtu.com>
30910
30911 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
30912
30913 * include/grub/kernel.h (grub_arch_memdisk_addr)
30914 (grub_arch_memdisk_size): Moved from here ...
30915
30916 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
30917 (grub_arch_memdisk_size): ... to here.
30918
30919 2008-01-21 Robert Millan <rmh@aybabtu.com>
30920
30921 Mostly based on bugfix from Bean.
30922
30923 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
30924 attribute with hook() parameter.
30925 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
30926 declaration.
30927 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
30928 attribute with hook() parameter.
30929 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
30930 declaration.
30931
30932 2008-01-21 Robert Millan <rmh@aybabtu.com>
30933
30934 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
30935 (pkglib_MODULES): Add `memdisk.mod'.
30936 (memdisk_mod_SOURCES): New variable.
30937 (memdisk_mod_CFLAGS): Likewise.
30938 (memdisk_mod_LDFLAGS): Likewise.
30939
30940 * disk/memdisk.c: New file.
30941
30942 * include/grub/disk.h (grub_disk_dev_id): Add
30943 `GRUB_DISK_DEVICE_MEMDISK_ID'.
30944
30945 * include/grub/i386/pc/kernel.h
30946 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
30947 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
30948 (grub_kernel_image_size): New variable declaration.
30949 (grub_total_module_size): Likewise.
30950 (grub_memdisk_image_size): Likewise.
30951
30952 * include/grub/i386/pc/memory.h
30953 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
30954
30955 * include/grub/kernel.h: Include `<grub/symbol.h>'.
30956 (grub_arch_memdisk_addr): New variable declaration.
30957 (grub_arch_memdisk_size): Likewise.
30958
30959 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
30960 (grub_arch_memdisk_size): Likewise.
30961
30962 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
30963 (codestart): Replace hardcoded `0x100000' with
30964 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
30965
30966 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
30967 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
30968 not NULL, append the contents of the file it refers to, at the end of
30969 the compressed kernel image. Initialize `grub_memdisk_image_size'
30970 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
30971 (options): Add "memdisk"|'m' option.
30972 (main): Parse --memdisk|-m option, and pass user-provided path as
30973 parameter to generate_image().
30974
30975 2008-01-20 Robert Millan <rmh@aybabtu.com>
30976
30977 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
30978 grub_dprintf() calls from here ...
30979 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
30980
30981 2008-01-20 Robert Millan <rmh@aybabtu.com>
30982
30983 Fix detection of "real mode" when /options/real-mode? doesn't exist.
30984
30985 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
30986 declaration.
30987 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
30988 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
30989 `GRUB_IEEE1275_FLAG_REAL_MODE'.
30990 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
30991 property).
30992 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
30993 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
30994
30995 2008-01-19 Robert Millan <rmh@aybabtu.com>
30996
30997 Get rid of confusing function (superseded by
30998 `grub_ieee1275_get_integer_property')
30999 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
31000 prototype.
31001 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
31002 function.
31003 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
31004 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
31005 in native endianness from grub_ieee1275_get_integer_property().
31006
31007 2008-01-19 Robert Millan <rmh@aybabtu.com>
31008
31009 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
31010 command after "shut-down", since implementations differ on which
31011 the command for halt is.
31012
31013 2008-01-19 Robert Millan <rmh@aybabtu.com>
31014
31015 * include/grub/i386/linuxbios/console.h: Add header protection.
31016 (grub_keyboard_controller_init): New function prototype.
31017 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
31018 (KEYBOARD_COMMAND_READ): Likewise.
31019 (KEYBOARD_COMMAND_WRITE): Likewise.
31020 (KEYBOARD_SCANCODE_SET1): Likewise.
31021 (grub_keyboard_controller_write): New function.
31022 (grub_keyboard_controller_read): Likewise.
31023 (grub_keyboard_controller_init): Likewise.
31024
31025 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
31026 (grub_console_init): On coreboot/LinuxBIOS, call
31027 grub_keyboard_controller_init().
31028
31029 2008-01-19 Robert Millan <rmh@aybabtu.com>
31030
31031 PowerPC changes provided by Pavel Roskin.
31032
31033 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
31034 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
31035 don't rely on cmain() doing it.
31036 * kern/i386/ieee1275/startup.S (_start): Store %eax in
31037 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
31038
31039 2008-01-16 Robert Millan <rmh@aybabtu.com>
31040
31041 * include/grub/i386/linuxbios/memory.h
31042 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
31043 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
31044 receive `table_header' as argument. Instead, probe for it in the
31045 known memory ranges where it can be present.
31046 (grub_available_iterate): Do not pass a fixed `table_header' address
31047 to grub_linuxbios_table_iterate().
31048
31049 2008-01-15 Robert Millan <rmh@aybabtu.com>
31050
31051 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
31052 * conf/i386-ieee1275.rmk: New file.
31053 * include/grub/i386/ieee1275/console.h: Likewise.
31054 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
31055 * include/grub/i386/ieee1275/kernel.h: Likewise.
31056 * include/grub/i386/ieee1275/time.h: Likewise.
31057 * kern/i386/ieee1275/init.c: Likewise.
31058 * kern/i386/ieee1275/startup.S: Likewise.
31059
31060 2008-01-15 Robert Millan <rmh@aybabtu.com>
31061
31062 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
31063 when pointers are 32-bit (but still do set it to one when they are
31064 64-bit).
31065
31066 2008-01-15 Robert Millan <rmh@aybabtu.com>
31067
31068 * include/grub/ieee1275/ieee1275.h
31069 (grub_ieee1275_get_integer_property): New function prototype.
31070
31071 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
31072 (grub_ieee1275_get_integer_property): New function. Wraps around
31073 grub_ieee1275_get_property() to handle endianness.
31074
31075 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
31076 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
31077 where appropriate.
31078 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
31079 (grub_map): Likewise.
31080 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
31081
31082 2008-01-15 Bean <bean123ch@gmail.com>
31083
31084 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
31085 (grub_script_execute_cmdline): Reset grub_errno.
31086
31087 * normal/main.c (read_config_file): Reset grub_errno.
31088
31089 * normal/parse.y (script_init): New.
31090 (script): Move function and menuentry here.
31091 (delimiter): New.
31092 (command): Add delimiter at the end of command.
31093 (commands): Adjust to match the new command.
31094 (commandblock): Remove grub_script_lexer_record_start.
31095 (menuentry): Add grub_script_lexer_record_start, use the new commands.
31096 (if): Use the new commands.
31097
31098 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
31099
31100 2008-01-15 Robert Millan <rmh@aybabtu.com>
31101
31102 * normal/menu.c (run_menu): Move timeout message from here ...
31103 (print_timeout): ... to here.
31104 (run_menu): Use print_timeout() once during initial draw to print
31105 the whole message, and again in every clock tick to update only
31106 the number of seconds.
31107
31108 2008-01-15 Robert Millan <rmh@aybabtu.com>
31109
31110 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
31111 actual size of `available' from grub_ieee1275_get_property(), and
31112 restrict parsing to that bound.
31113
31114 2008-01-15 Christian Franke <franke@computer.org>
31115
31116 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
31117 (argp_program_version): Remove variable.
31118 (argp_program_bug_address): Likewise.
31119 (options): Convert from struct argp_option to struct option.
31120 (struct arguments): Remove.
31121 (parse_opt): Remove.
31122 (usage): New function.
31123 (main): Replace struct args members by simple variables.
31124 Replace argp_parse() by getopt_long().
31125 Add switch to evaluate options.
31126 Add missing "(...)" around root_dev in prefix string.
31127
31128 2008-01-14 Robert Millan <rmh@aybabtu.com>
31129
31130 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
31131 for grub_ieee1275_exit(), in order to improve portability.
31132
31133 2008-01-14 Robert Millan <rmh@aybabtu.com>
31134
31135 * util/grub.d/10_linux.in (prefix): Define.
31136 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
31137
31138 2008-01-13 Pavel Roskin <proski@gnu.org>
31139
31140 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
31141 grub_errno if no errors have been detected.
31142
31143 2008-01-12 Robert Millan <rmh@aybabtu.com>
31144
31145 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
31146 (grub_util_get_dev_abstraction): New function prototype.
31147
31148 * util/getroot.c: Include `<grub/util/getroot.h>'
31149 (grub_util_get_grub_dev): Move detection of abstraction type to ...
31150 (grub_util_get_dev_abstraction): ... here (new function).
31151
31152 * util/grub-probe.c: Convert PRINT_* to an enum. Add
31153 `PRINT_ABSTRACTION'.
31154 (probe): Probe for abstraction type when requested.
31155 (main): Understand `--target=abstraction'.
31156
31157 * util/i386/efi/grub-install.in: Add abstraction module to core
31158 image when it is found to be necessary.
31159 * util/i386/pc/grub-install.in: Likewise.
31160 * util/powerpc/ieee1275/grub-install.in: Likewise.
31161
31162 * util/update-grub_lib.in (font_path): Return system path without
31163 converting to GRUB path.
31164 * util/update-grub.in: Convert system path returned by font_path()
31165 to a GRUB path. Use `grub-probe -t abstraction' to determine what
31166 abstraction module is needed for loading fonts (if any). Export
31167 that as `GRUB_PRELOAD_MODULES'.
31168 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
31169 insmod commands).
31170
31171 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
31172
31173 Remove some unused code from reiserfs.
31174
31175 * fs/reiserfs.c (struct grub_reiserfs_key)
31176 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
31177 (struct grub_reiserfs_node_body): Removed.
31178 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
31179 Likewise.
31180 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31181 Likewise.
31182 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31183 Likewise.
31184 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31185 Likewise.
31186 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
31187 Likewise.
31188 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
31189 Likewise.
31190 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
31191 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
31192 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
31193
31194 2008-01-10 Robert Millan <rmh@aybabtu.com>
31195
31196 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
31197 Determines if a file is garbage left by packaging systems, etc.
31198 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
31199 for processing /etc/grub.d scripts.
31200 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
31201 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
31202 as a condition for processing Linux images.
31203
31204 2008-01-10 Pavel Roskin <proski@gnu.org>
31205
31206 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
31207 to compile reiserfs.c on PowerPC.
31208
31209 2008-01-10 Robert Millan <rmh@aybabtu.com>
31210
31211 * kern/device.c (grub_device_iterate): Do not abort device iteration
31212 when one of the devices cannot be opened.
31213 * kern/disk.c (grub_disk_open): Do not account previous failures of
31214 unrelated functions when grub_errno is checked for.
31215
31216 2008-01-08 Robert Millan <rmh@aybabtu.com>
31217
31218 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
31219 `! grub_linux_is_bzimage', change order of address comparison to make
31220 it more intuitive, and improve "too big zImage" error message.
31221
31222 2008-01-08 Robert Millan <rmh@aybabtu.com>
31223
31224 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
31225 `$(update-grub_DATA)'.
31226 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
31227 targets.
31228
31229 2008-01-07 Robert Millan <rmh@aybabtu.com>
31230
31231 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
31232 which instruction is modified by grub-setup during installation
31233 (since it wasn't obvious by only looking at this file).
31234
31235 2008-01-07 Robert Millan <rmh@aybabtu.com>
31236
31237 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
31238 listing actual TODO items.
31239
31240 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31241
31242 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
31243 correctly.
31244 (grub_reiserfs_get_key_offset): Likewise.
31245 (grub_reiserfs_set_key_offset): Likewise.
31246 (grub_reiserfs_set_key_type): Likewise.
31247 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
31248
31249 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
31250 better to remove the bitfield version completely.
31251
31252 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31253
31254 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
31255 allocated from the heap, due to the fshelp implementation.
31256 (grub_reiserfs_dir): Free NODE, due to the same reason.
31257
31258 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31259
31260 Mostly from Vincent Pelletier:
31261
31262 * fs/reiserfs.c: New file.
31263
31264 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
31265 (reiserfs_mod_SOURCES): New variable.
31266 (reiserfs_mod_CFLAGS): Likewise.
31267 (reiserfs_mod_LDFLAGS): Likewise.
31268
31269 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
31270 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
31271 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
31272 normal/color.c.
31273
31274 2008-01-06 Robert Millan <rmh@aybabtu.com>
31275
31276 * normal/color.c: Remove `<grub/env.h>'.
31277
31278 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
31279
31280 * include/grub/normal.h: Include <grub/env.h>.
31281
31282 2008-01-05 Robert Millan <rmh@aybabtu.com>
31283
31284 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
31285 usage example with `(hd0,1)'.
31286 Reported by Samuel Thibault.
31287
31288 2008-01-05 Robert Millan <rmh@aybabtu.com>
31289
31290 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
31291 (grub_linux_boot_zimage): Rename to ...
31292 (grub_linux_boot): ... this.
31293 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
31294 (grub_linux_boot_zimage): Conditionalize zImage copy.
31295
31296 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
31297 (grub_linux_boot_bzimage): Remove prototype.
31298 (grub_linux_boot_zimage): Rename to ...
31299 (grub_linux_boot): ... this.
31300
31301 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
31302 (grub_linux_boot): Remove function.
31303
31304 2008-01-05 Robert Millan <rmh@aybabtu.com>
31305
31306 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
31307 (grub_env_write_color_highlight): Likewise.
31308 (grub_wait_after_message): Likewise.
31309
31310 * normal/color.c: New file.
31311
31312 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31313 (normal_mod_DEPENDENCIES): Likewise.
31314
31315 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31316 (normal_mod_DEPENDENCIES): Likewise.
31317
31318 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31319 (normal_mod_DEPENDENCIES): Likewise.
31320
31321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31322 (normal_mod_DEPENDENCIES): Likewise.
31323
31324 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
31325 for waiting after a message is printed.
31326 * normal/main.c (read_config_file): Likewise.
31327 (grub_normal_init): Register grub_env_write_color_normal() and
31328 grub_env_write_color_highlight() hooks. Mark `color_normal' and
31329 `color_highlight' variables as global.
31330
31331 * normal/menu.c (grub_wait_after_message): New function.
31332 (grub_color_menu_normal): New variable. Replaces ...
31333 (GRUB_COLOR_MENU_NORMAL): ... this macro.
31334 (grub_color_menu_highlight): New variable. Replaces ...
31335 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
31336 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
31337 `GRUB_TERM_COLOR_STANDARD'.
31338 (print_message): Use `grub_setcolorstate' to reload colors. Rename
31339 `normal_code' and `highlight_code' to `old_color_normal' and
31340 `old_color_highlight', respectively.
31341 (grub_menu_init_page): Update colors when drawing the menu, based on
31342 `menu_color_normal' and `menu_color_highlight' variables.
31343 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
31344 a message is printed.
31345
31346 2008-01-05 Robert Millan <rmh@aybabtu.com>
31347
31348 * kern/env.c (grub_env_context_open): Propagate hooks for global
31349 variables to new context.
31350
31351 * kern/main.c (grub_set_root_dev): Export `root' variable.
31352
31353 2008-01-05 Robert Millan <rmh@aybabtu.com>
31354
31355 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
31356 discs unconditionally, since udev and others have options to provide
31357 them.
31358
31359 2008-01-05 Robert Millan <rmh@aybabtu.com>
31360
31361 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
31362
31363 2008-01-04 Christian Franke <franke@computer.org>
31364
31365 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
31366 of eisa_mmap.
31367
31368 2008-01-03 Pavel Roskin <proski@gnu.org>
31369
31370 * kern/i386/linuxbios/init.c: Put "void" to all function
31371 declarations with no arguments.
31372 * kern/powerpc/ieee1275/init.c: Likewise.
31373 * term/i386/pc/at_keyboard.c: Likewise.
31374 * term/i386/pc/vga_text.c: Likewise.
31375 * util/grub-mkdevicemap.c: Likewise.
31376
31377 2008-01-02 Robert Millan <rmh@aybabtu.com>
31378
31379 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
31380 message when loaded image is out of bounds.
31381 (grub_multiboot_load_elf64): Likewise.
31382
31383 2008-01-02 Pavel Roskin <proski@gnu.org>
31384
31385 * util/grub.d/10_linux.in: Try version without ".old" when
31386 looking for initrd. It's better to use initrd from the newer
31387 kernel of the same version than no initrd at all.
31388
31389 2008-01-01 Robert Millan <rmh@aybabtu.com>
31390
31391 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
31392
31393 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
31394
31395 * include/grub/video.h: Added grub_video_unmap_color and
31396 grub_video_get_active_render_target.
31397 (grub_video_adapter): Added unmap_color and get_active_render_target.
31398
31399 * video/video.c: Added grub_video_unmap_color and
31400 grub_video_get_active_render_target.
31401 (grub_video_get_info): Changed method to accept NULL pointer as an
31402 argument to allow detection of active video adapter.
31403
31404 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
31405 grub_video_vbe_unmap_color_int.
31406 Added grub_video_vbe_unmap_color and
31407 grub_video_vbe_get_active_render_target.
31408 (grub_video_vbe_adapter): Added unmap_color and
31409 get_active_render_target.
31410
31411 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
31412 with grub_video_vbe_unmap_color_int.
31413
31414 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
31415 (DEFAULT_NORMAL_COLOR): Likewise.
31416 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
31417 (DEFAULT_FG_COLOR): Removed.
31418 (DEFAULT_BG_COLOR): Likewise.
31419 (DEFAULT_CURSOR_COLOR): Changed value.
31420 (grub_virtual_screen): Added standard_color_setting,
31421 normal_color_setting, highlight_color_setting and term_color.
31422 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
31423 (bitmap_width): Added.
31424 (bitmap_height): Likewise.
31425 (bitmap): Likewise.
31426 (set_term_color): Likewise.
31427 (grub_virtual_screen_setup): Changed to use new terminal coloring
31428 settings.
31429 (grub_gfxterm_init): Added init for bitmap.
31430 (grub_gfxterm_fini): Added destroy for bitmap.
31431 (redraw_screen_rect): Updated to use background bitmap and new
31432 terminal coloring.
31433 (scroll_up): Added optimization for case when there is no bitmap.
31434 (grub_gfxterm_cls): Fixed to use correct background color.
31435 (grub_virtual_screen_setcolorstate): Changed to use new terminal
31436 coloring.
31437 (grub_virtual_screen_setcolor): Likewise.
31438 (grub_virtual_screen_getcolor): Added.
31439 (grub_gfxterm_background_image_cmd): Likewise.
31440 (grub_video_term): Added setcolor and getcolor.
31441 (MOD_INIT): Added registration of background_image command.
31442 (MOD_TERM): Added unregistration for background_image command.
31443
31444 2007-12-30 Pavel Roskin <proski@gnu.org>
31445
31446 * loader/multiboot_loader.c: Fix multiboot command
31447 unregistration. Fix all typos in the word "multiboot".
31448
31449 2007-12-29 Pavel Roskin <proski@gnu.org>
31450
31451 * util/grub.d/10_linux.in: Refactor search for initrd. Add
31452 support for initrd names used in Fedora.
31453
31454 2007-12-26 Bean <bean123ch@gmail.com>
31455
31456 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
31457 (cpio_mod_SOURCES): New variable.
31458 (cpio_mod_CFLAGS): Likewise.
31459 (cpio_mod_LDFLAGS): Likewise.
31460
31461 * fs/cpio.c: New file.
31462
31463 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
31464
31465 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31466
31467 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31468
31469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31470
31471 2007-12-25 Robert Millan <rmh@aybabtu.com>
31472
31473 * include/grub/term.h (struct grub_term): Add `getcolor' function.
31474 (grub_getcolor): New function.
31475
31476 * kern/term.c (grub_getcolor): New function.
31477 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
31478 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
31479 (print_entry): Set normal and highlight colors to
31480 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
31481 respectively, before printing and restore them to old
31482 values afterwards.
31483 (grub_menu_init_page): Likewise. Fill an additional colored space
31484 that would otherwise be left blank.
31485
31486 * term/efi/console.c (grub_console_getcolor): New function.
31487 (struct grub_console_term.getcolor): New variable.
31488 * term/i386/pc/console.c (grub_console_getcolor): New function.
31489 (struct grub_console_term.getcolor): New variable.
31490 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
31491 (struct grub_console_term.getcolor): New variable.
31492
31493 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
31494 (struct grub_console_term.setcolor): Remove variable.
31495 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
31496 (struct grub_console_term.setcolor): Remove variable.
31497 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
31498 (struct grub_console_term.setcolor): Remove variable.
31499 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
31500 (struct grub_console_term.setcolor): Remove variable.
31501
31502 2007-12-25 Robert Millan <rmh@aybabtu.com>
31503
31504 * configure.ac: Search for possible unifont.hex locations, and
31505 define UNIFONT_HEX if found.
31506
31507 * Makefile.in (UNIFONT_HEX): Define variable.
31508 (DATA): Rename to ...
31509 (PKGLIB): ... this. Update all users.
31510 (PKGDATA): New variable.
31511 (pkgdata_IMAGES): Rename to ...
31512 (pkglib_IMAGES): ... this. Update all users.
31513 (pkgdata_MODULES): Rename to ...
31514 (pkglib_MODULES): ... this. Update all users.
31515 (pkgdata_PROGRAMS): Rename to ...
31516 (pkglib_PROGRAMS): ... this. Update all users.
31517 (pkgdata_DATA): Rename to ...
31518 (pkglib_DATA): ... this. Update all users.
31519 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
31520 (unicode.pff, ascii.pff): New rules.
31521 (all-local): Add `$(PKGDATA)' dependency.
31522 (install-local): Process `$(PKGDATA)'.
31523
31524 * util/update-grub_lib.in (font_path): Search for *.pff files in
31525 a few more locations, including `${pkgdata}'.
31526
31527 2007-12-23 Robert Millan <rmh@aybabtu.com>
31528
31529 Patch from Bean <bean123ch@gmail.com>:
31530 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
31531 `size'.
31532
31533 2007-12-21 Bean <bean123ch@gmail.com>
31534
31535 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
31536 (ntfscomp_mod_SOURCES): New variable.
31537 (ntfscomp_mod_CFLAGS): Likewise.
31538 (ntfscomp_mod_LDFLAGS): Likewise.
31539
31540 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
31541 (grub_probe_SOURCES): Likewise.
31542 (grub_emu_SOURCES): Likewise.
31543
31544 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
31545 (grub_emu_SOURCES): Likewise.
31546
31547 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
31548 (grub_emu_SOURCES): Likewise.
31549
31550 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
31551 (grub_emu_SOURCES): Likewise.
31552
31553 * fs/ntfs.c (grub_ntfscomp_func): New variable.
31554 (read_run_list): Renamed to grub_ntfs_read_run_list.
31555 (decomp_nextvcn): Moved to ntfscomp.c.
31556 (decomp_getch): Likewise.
31557 (decomp_get16): Likewise.
31558 (decomp_block): Likewise.
31559 (read_block): Likewise.
31560 (read_data): Partially moved to ntfscomp.c.
31561 (fixup): Change unsigned to grub_uint16_t.
31562 (read_mft): Change unsigned long to grub_uint32_t.
31563 (read_attr): Likewise.
31564 (read_data): Likewise.
31565 (read_run_data): Likewise.
31566 (read_run_list): Likewise.
31567 (read_mft): Likewise.
31568
31569 * fs/ntfscomp.c: New file.
31570
31571 * include/grub/ntfs.h: New file.
31572
31573 2007-12-16 Robert Millan <rmh@aybabtu.com>
31574
31575 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
31576 IDE disk check, since Linux is known to support 20 IDE disks.
31577 Reported by Colin Watson.
31578
31579 2007-12-15 Bean <bean123ch@gmail.com>
31580
31581 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
31582 (lnxboot_img_SOURCES): New variable.
31583 (lnxboot_img_ASFLAGS): Likewise.
31584 (lnxboot_img_LDFLAGS): Likewise.
31585
31586 * boot/i386/pc/lnxboot.S: New file.
31587
31588 2007-11-24 Pavel Roskin <proski@gnu.org>
31589
31590 * configure.ac: Test if '--build-id=none' is supported by the
31591 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
31592 objcopy to generate incorrect binary files (binutils
31593 2.17.50.0.18-1 as shipped by Fedora 8).
31594 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
31595 linking, so that build ID doesn't break the test.
31596
31597 2007-11-24 Pavel Roskin <proski@gnu.org>
31598
31599 * include/grub/i386/time.h: use "void" in the argument list
31600 of grub_cpu_idle().
31601 * include/grub/powerpc/time.h: Likewise.
31602 * include/grub/sparc64/time.h: Likewise.
31603
31604 2007-11-18 Christian Franke <franke@computer.org>
31605
31606 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
31607 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
31608 This fixes the problem that function keys did not work in grub-emu.
31609
31610 2007-11-18 Christian Franke <franke@computer.org>
31611
31612 * disk/host.c (grub_host_open): Remove attribute unused from
31613 name parameter. Add check for "host". This fixes the problem
31614 that grub-emu does not find partitions.
31615
31616 2007-11-18 Christian Franke <franke@computer.org>
31617
31618 * util/hostfs.c (is_dir): New function.
31619 (grub_hostfs_dir): Handle missing dirent.d_type case.
31620 (grub_hostfs_read): Add missing fseek().
31621 (grub_hostfs_label): Clear label pointer. This fixes a crash
31622 of grub-emu on "ls (host)".
31623
31624 2007-11-18 Christian Franke <franke@computer.org>
31625
31626 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
31627 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
31628 to 64 bit boundary by default.
31629
31630 2007-11-18 Bean <bean123ch@gmail.com>
31631
31632 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
31633 (hexdump_mod_SOURCES): New variable.
31634 (hexdump_mod_CFLAGS): Likewise.
31635 (hexdump_mod_LDFLAGS): Likewise.
31636
31637 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
31638
31639 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
31640
31641 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
31642
31643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
31644
31645 * include/grub/hexdump.h: New file.
31646
31647 * commands/hexdump.c: New file.
31648
31649 2007-11-10 Robert Millan <rmh@aybabtu.com>
31650
31651 * commands/i386/pc/play.c (beep_off): Switch order of arguments
31652 in grub_outb() calls.
31653 (beep_on): Likewise.
31654
31655 2007-11-10 Christian Franke <franke@computer.org>
31656
31657 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
31658 (grub_menu_run): Likewise.
31659
31660 2007-11-10 Robert Millan <rmh@aybabtu.com>
31661
31662 * include/grub/i386/efi/machine.h: New file.
31663 * include/grub/i386/linuxbios/machine.h: Likewise.
31664 * include/grub/i386/pc/machine.h: Likewise.
31665 * include/grub/powerpc/ieee1275/machine.h: Likewise.
31666 * include/grub/sparc64/ieee1275/machine.h: Likewise.
31667
31668 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
31669 (serial_hw_io_addr): New variable.
31670 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
31671 instead of `(unsigned short *) 0x400'.
31672
31673 2007-11-10 Bean <bean123ch@gmail.com>
31674
31675 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
31676
31677 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
31678
31679 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
31680 (vga_mod_SOURCES): Added.
31681 (vga_mod_CFLAGS): Likewise.
31682 (vga_mod_LDFLAGS): Likewise.
31683
31684 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
31685 grub_outb() calls.
31686 (set_map_mask): Likewise.
31687 (set_read_map): Likewise.
31688 (set_read_address): Likewise.
31689 (vga_font): Removed variable.
31690 (get_vga_glyph): Removed function.
31691 (invalidate_char): Likewise.
31692 (write_char): Changed to use grub_font_get_glyph() for font
31693 information.
31694 (grub_vga_putchar): Likewise.
31695 (grub_vga_getcharwidth): Likewise.
31696
31697 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
31698
31699 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
31700 flags.
31701 (pxeboot_img_LDFLAGS): Likewise.
31702 (diskboot_img_LDFLAGS): Likewise.
31703 (kernel_img_LDFLAGS): Likewise.
31704
31705 2007-11-06 Robert Millan <rmh@aybabtu.com>
31706
31707 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
31708 in grub_outb() calls.
31709 (serial_hw_init): Likewise.
31710
31711 2007-11-05 Robert Millan <rmh@aybabtu.com>
31712
31713 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
31714 spaces. Skip non-regular files.
31715
31716 2007-11-05 Robert Millan <rmh@aybabtu.com>
31717
31718 * kern/disk.c (grub_disk_firmware_fini)
31719 (grub_disk_firmware_is_tainted): New variables.
31720
31721 * include/grub/disk.h (grub_disk_firmware_fini)
31722 (grub_disk_firmware_is_tainted): Likewise.
31723
31724 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
31725 (grub_disk_biosdisk_fini): ... to here.
31726 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
31727 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
31728 is set. Register grub_disk_biosdisk_fini() in
31729 `grub_disk_firmware_fini'.
31730
31731 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
31732 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
31733 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
31734 to finish existing firmware disk interface.
31735
31736 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
31737 (ata_mod_SOURCES): New variable.
31738 (ata_mod_CFLAGS): Likewise.
31739 (ata_mod_LDFLAGS): Likewise.
31740
31741 2007-11-05 Robert Millan <rmh@aybabtu.com>
31742
31743 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
31744 (grub_ata_wait): Reimplement using grub_millisleep().
31745
31746 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
31747 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
31748
31749 2007-11-03 Marco Gerards <marco@gnu.org>
31750
31751 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
31752 (CRTC_ADDR_PORT): New macro.
31753 (CRTC_DATA_PORT): Likewise.
31754 (CRTC_CURSOR): Likewise.
31755 (CRTC_CURSOR_ADDR_HIGH): Likewise.
31756 (CRTC_CURSOR_ADDR_LOW): Likewise.
31757 (update_cursor): New function.
31758 (grub_console_real_putchar): Call `update_cursor'.
31759 (grub_console_gotoxy): Likewise.
31760 (grub_console_cls): Set the default color when clearing the
31761 screen.
31762 (grub_console_setcursor): Implemented.
31763
31764 2007-11-03 Marco Gerards <marco@gnu.org>
31765
31766 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
31767 become activate.
31768 (grub_ata_pio_write): Likewise.
31769
31770 (grub_atapi_identify): Wait after issuing an ATA command.
31771 (grub_atapi_packet): Likewise.
31772 (grub_ata_identify): Likewise.
31773 (grub_ata_readwrite): Likewise.
31774
31775 2007-11-03 Marco Gerards <marco@gnu.org>
31776
31777 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
31778 (grub_ata_pio_write): Likewise.
31779 (grub_ata_readwrite): Use `grub_error', instead of
31780 returning `grub_errno'.
31781
31782 2007-11-03 Marco Gerards <marco@gnu.org>
31783
31784 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
31785 grub_ata_pio_write once for every single sector, instead of for
31786 multiple sectors.
31787
31788 2007-10-31 Robert Millan <rmh@aybabtu.com>
31789
31790 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
31791
31792 * conf/i386-linuxbios.rmk: New file.
31793
31794 * kern/i386/pc/hardware.c: Likewise.
31795 * term/i386/pc/at_keyboard.c: Likewise.
31796 * term/i386/pc/vga_text.c: Likewise.
31797
31798 * include/grub/i386/linuxbios/boot.h: Likewise.
31799 * include/grub/i386/linuxbios/console.h: Likewise.
31800 * include/grub/i386/linuxbios/init.h: Likewise.
31801 * include/grub/i386/linuxbios/kernel.h: Likewise.
31802 * include/grub/i386/linuxbios/loader.h: Likewise.
31803 * include/grub/i386/linuxbios/memory.h: Likewise.
31804 * include/grub/i386/linuxbios/serial.h: Likewise.
31805 * include/grub/i386/linuxbios/time.h: Likewise.
31806
31807 * kern/i386/linuxbios/init.c: Likewise.
31808 * kern/i386/linuxbios/startup.S: Likewise.
31809 * kern/i386/linuxbios/table.c: Likewise.
31810
31811 2007-10-31 Marco Gerards <marco@gnu.org>
31812
31813 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
31814 (ata_mod_SOURCES): New variable.
31815 (ata_mod_CFLAGS): Likewise.
31816 (ata_mod_LDFLAGS): Likewise.
31817
31818 * disk/ata.c: New file.
31819
31820 * include/grub/disk.h (grub_disk_dev_id): Add
31821 `GRUB_DISK_DEV_ATA_ID'.
31822
31823 2007-10-31 Robert Millan <rmh@aybabtu.com>
31824
31825 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
31826 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
31827
31828 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
31829 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
31830
31831 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
31832 `<grub/types.h>'.
31833
31834 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
31835
31836 2007-10-27 Robert Millan <rmh@aybabtu.com>
31837
31838 * include/grub/types.h (ULONG_MAX): Define macro.
31839
31840 2007-10-22 Robert Millan <rmh@aybabtu.com>
31841
31842 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
31843 `"../realmode.S"'.
31844 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
31845
31846 2007-10-22 Robert Millan <rmh@aybabtu.com>
31847
31848 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
31849 (pkgdata_MODULES): Add `biosdisk.mod'.
31850 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
31851 variables.
31852
31853 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
31854 (grub_biosdisk_init): Replace with ...
31855 (GRUB_MOD_INIT(biosdisk)): ... this.
31856 (grub_biosdisk_fini): Replace with ...
31857 (GRUB_MOD_FINI(biosdisk)): ... this.
31858
31859 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
31860 (grub_machine_init): Remove call to grub_biosdisk_init().
31861 (grub_machine_fini): Remove call to grub_machine_fini().
31862
31863 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
31864
31865 2007-10-22 Robert Millan <rmh@aybabtu.com>
31866
31867 * include/grub/time.h: New file.
31868 * include/grub/i386/time.h: Likewise.
31869 * include/grub/powerpc/time.h: Likewise.
31870 * include/grub/sparc64/time.h: Likewise.
31871
31872 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
31873 instances to ...
31874 (KERNEL_MACHINE_TIME_HEADER): ... this.
31875 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
31876 instances to ...
31877 (KERNEL_MACHINE_TIME_HEADER): ... this.
31878 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
31879 instances to ...
31880 (KERNEL_MACHINE_TIME_HEADER): ... this.
31881
31882 * kern/i386/efi/init.c: Include `<grub/time.h>'.
31883 (grub_millisleep): New function.
31884 * kern/i386/pc/init.c: Include `<grub/time.h>'.
31885 (grub_millisleep): New function.
31886 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
31887 Remove `grub/machine/time.h' include.
31888 (grub_millisleep): New function.
31889 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
31890 Remove `grub/machine/time.h' include.
31891 (grub_millisleep): New function.
31892
31893 * include/grub/misc.h (grub_div_roundup): New function.
31894
31895 * kern/misc.c: Include `<grub/time.h>'.
31896 (grub_millisleep_generic): New function.
31897
31898 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
31899 Add `time.h'.
31900 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
31901 Add `time.h'.
31902 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
31903 `machine/time.h'. Add `time.h'.
31904 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
31905
31906 2007-10-21 Robert Millan <rmh@aybabtu.com>
31907
31908 * include/grub/misc.h (grub_max): New function.
31909
31910 2007-10-21 Robert Millan <rmh@aybabtu.com>
31911
31912 * util/misc.c (grub_util_info): Call fflush() before returning.
31913
31914 2007-10-20 Robert Millan <rmh@aybabtu.com>
31915
31916 * genmk.rb (Image): Copy `extra_flags' from here ...
31917 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
31918
31919 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
31920 to `argc' and `args' arguments.
31921
31922 2007-10-17 Robert Millan <rmh@aybabtu.com>
31923
31924 * kern/i386/loader.S: New file.
31925
31926 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
31927 * kern/i386/loader.S (grub_linux_prot_size)... to here.
31928 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
31929 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
31930 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
31931 * kern/i386/loader.S (grub_linux_real_addr)... to here.
31932 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
31933 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
31934 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
31935 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
31936 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
31937 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
31938 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
31939 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
31940
31941 * kern/i386/realmode.S: New file.
31942
31943 * kern/i386/pc/startup.S (protstack): Moved from here ...
31944 * kern/i386/realmode.S (protstack)... to here.
31945 * kern/i386/pc/startup.S (gdt): Moved from here ...
31946 * kern/i386/realmode.S (gdt)... to here.
31947 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
31948 * kern/i386/realmode.S (prot_to_real)... to here.
31949
31950 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
31951 `kern/i386/realmode.S'.
31952
31953 2007-10-17 Robert Millan <rmh@aybabtu.com>
31954
31955 * include/grub/i386/loader.h: New file.
31956
31957 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
31958 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
31959 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
31960 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
31961 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
31962 * include/grub/i386/loader.h (grub_linux_prot_size)
31963 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
31964 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
31965 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
31966 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
31967
31968 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
31969
31970 2007-10-15 Robert Millan <rmh@aybabtu.com>
31971
31972 * normal/misc.c (grub_normal_print_device_info): Do not probe for
31973 filesystem when dev->disk is unset.
31974 Do probe for filesystem even when dev->disk->has_partitions is set.
31975 In case a filesystem is found, always report it.
31976 In case it isn't, if dev->disk->has_partitions is set, report that
31977 a partition table was found instead of reporting that no filesystem
31978 could be identified.
31979
31980 2007-10-12 Robert Millan <rmh@aybabtu.com>
31981
31982 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
31983 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
31984
31985 * include/grub/types.h (grub_host_to_target16): New macro.
31986 (grub_host_to_target32): Likewise.
31987 (grub_host_to_target64): Likewise.
31988 (grub_target_to_host16): Likewise.
31989 (grub_target_to_host32): Likewise.
31990 (grub_target_to_host64): Likewise.
31991
31992 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
31993 Renamed from to ...
31994 (GRUB_MOD_ALIGN): ...this. Update all users.
31995
31996 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
31997 grub_host_to_target32.
31998 Replace grub_be_to_cpu32 with grub_target_to_host32.
31999 (load_modules): Likewise.
32000 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
32001 Replace grub_be_to_cpu32 with grub_target_to_host32.
32002 Replace grub_cpu_to_be16 with grub_host_to_target16.
32003 Replace grub_cpu_to_be32 grub_host_to_target32.
32004
32005 2007-10-12 Robert Millan <rmh@aybabtu.com>
32006
32007 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
32008 * util/elf/grub-mkimage.c: ... here.
32009
32010 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
32011 `util/powerpc/ieee1275/grub-mkimage.c'.
32012
32013 2007-10-07 Robert Millan <rmh@aybabtu.com>
32014
32015 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
32016 and make it easier to figure out.
32017 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
32018 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
32019 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
32020 leave us with less than HEAP_MIN_SIZE total heap.
32021 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
32022
32023 2007-10-03 Robert Millan <rmh@aybabtu.com>
32024
32025 * include/grub/i386/io.h: New file.
32026 * commands/i386/pc/play.c (inb): Removed.
32027 (outb): Removed.
32028 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32029 with grub_outb().
32030 * term/i386/pc/serial.c (inb): Removed.
32031 (outb): Removed.
32032 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32033 with grub_outb().
32034 * term/i386/pc/vga.c (inb): Removed.
32035 (outb): Removed.
32036 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32037 with grub_outb().
32038
32039 2007-10-02 Robert Millan <rmh@aybabtu.com>
32040
32041 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
32042 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32043 Reported by Marcin Kurek.
32044
32045 2007-09-07 Robert Millan <rmh@aybabtu.com>
32046
32047 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
32048 SmartFirmware version updates (as released by Sven Luther), and avoid
32049 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
32050 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
32051 known broken.
32052
32053 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32054
32055 From Hitoshi Ozeki:
32056 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
32057 when merging two regions.
32058
32059 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32060
32061 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
32062 * normal/completion.c (grub_normal_do_completion): Likewise.
32063 Reported by Hitoshi Ozeki.
32064
32065 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32066
32067 Do not use devices at boot in chainloading.
32068
32069 * loader/i386/pc/chainloader.c (boot_drive): New variable.
32070 (boot_part_addr): Likewise.
32071 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
32072 with BOOT_DRIVE and BOOT_PART_ADDR.
32073 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
32074 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
32075
32076 2007-08-29 Robert Millan <rmh@aybabtu.com>
32077
32078 Patch from Simon Peter <dn.tlp@gmx.net>:
32079 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
32080 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
32081 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
32082 util/i386/pc/grub-setup.c_DEPENDENCIES.
32083 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
32084 util/grub-probe.c_DEPENDENCIES.
32085 * conf/powerpc-ieee1275.rmk: Likewise.
32086
32087 2007-08-28 Robert Millan <rmh@aybabtu.com>
32088
32089 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
32090 to tell grub-mkdevicemap how to name devices.
32091 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
32092 feature).
32093
32094 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
32095 util/i386/get_disk_name.c.
32096 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
32097 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
32098 util/ieee1275/get_disk_name.c.
32099
32100 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
32101
32102 * DISTLIST: Add util/i386/get_disk_name.c and
32103 util/ieee1275/get_disk_name.c.
32104
32105 * util/grub-mkdevicemap.c: Replace device naming logic with
32106 grub_util_get_disk_name() calls.
32107
32108 2007-08-20 Robert Millan <rmh@aybabtu.com>
32109
32110 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
32111 (so that it works for both plural and singular quantities).
32112
32113 2007-08-05 Robert Millan <rmh@aybabtu.com>
32114
32115 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
32116 so that [xz] isn't taken into account when determining order.
32117
32118 2007-08-02 Marco Gerards <marco@gnu.org>
32119
32120 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
32121 `include/multiboot2.h', `include/grub/elfload.h',
32122 `include/multiboot.h', `include/grub/multiboot.h',
32123 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
32124 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
32125 `kern/elf.c', `loader/multiboot_loader.c',
32126 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
32127 `loader/i386/pc/multiboot2.c',
32128 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
32129 `util/i386/pc/grub-mkrescue.in'. Remove
32130 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
32131 `include/grub/i386/pc/util/biosdisk.h' and
32132 `include/grub/powerpc/ieee1275/multiboot.h'.
32133
32134 2007-08-02 Bean <bean123ch@gmail.com>
32135
32136 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
32137 (ntfs_mod_SOURCES): New variable.
32138 (ntfs_mod_CFLAGS): Likewise.
32139 (ntfs_mod_LDFLAGS): Likewise.
32140
32141 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
32142 (grub_probe_SOURCES): Likewise.
32143 (grub_emu_SOURCES): Likewise.
32144
32145 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
32146 (grub_emu_SOURCES): Likewise.
32147
32148 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
32149 (grub_emu_SOURCES): Likewise.
32150
32151 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
32152
32153 * fs/ntfs.c: New file.
32154
32155 2007-08-02 Bean <bean123ch@gmail.com>
32156
32157 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
32158
32159 * file.h (grub_file): Likewise.
32160
32161 * fshelp.h (grub_fshelp_read_file): Likewise.
32162
32163 * util/i386/pc/grub-setup.c (setup): Likewise.
32164 (save_first_sector): Likewise.
32165 (save_blocklists): Likewise.
32166
32167 * fs/affs.c (grub_affs_read_file): Likewise.
32168
32169 * fs/ext2.c (grub_ext2_read_file): Likewise.
32170
32171 * fs/fat.c (grub_fat_read_data): Likewise.
32172
32173 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
32174
32175 * fs/hfs.c (grub_hfs_read_file): Likewise.
32176
32177 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
32178
32179 * fs/jfs.c (grub_jfs_read_file): Likewise.
32180
32181 * fs/minix.c (grub_minix_read_file): Likewise.
32182
32183 * fs/sfs.c (grub_sfs_read_file): Likewise.
32184
32185 * fs/ufs.c (grub_ufs_read_file): Likewise.
32186
32187 * fs/xfs.c (grub_xfs_read_file): Likewise.
32188
32189 * command/blocklist.c (read_blocklist): Likewise.
32190 (print_blocklist): Likewise.
32191
32192 2007-08-02 Marco Gerards <marco@gnu.org>
32193
32194 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
32195 `util/hostfs.c'.
32196
32197 * disk/host.c: New file.
32198
32199 * util/hostfs.c: Likewise.
32200
32201 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
32202 return `GRUB_ERR_BAD_FS'.
32203 * fs/sfs.c (grub_sfs_mount): Likewise.
32204 * fs/xfs.c (grub_xfs_mount): Likewise.
32205
32206 * include/grub/disk.h (enum grub_disk_dev_id): Add
32207 `GRUB_DISK_DEVICE_HOST_ID'.
32208
32209 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
32210
32211 2007-07-24 Jerone Young <jerone@gmail.com>
32212
32213 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
32214 modules for compilation.
32215 * conf/powerpc-ieee1275.rmk: Likewise.
32216
32217 * include/multiboot.h: Move multiboot definitions to one file. Rename
32218 many definitions to not get grub specific.
32219 * include/multiboot2.h: Create header with multiboot 2 definitions.
32220 * include/grub/multiboot.h: Header for grub specific function
32221 prototypes and definitions.
32222 * include/grub/multiboot2.h: Likewise.
32223 * include/grub/multiboot_loader.h: Likewise.
32224 * include/grub/i386/pc/multiboot.h: Removed.
32225 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
32226
32227 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
32228 and 2 to allow for one multiboot and module commands.
32229 * loader/multiboot2.c: Add multiboot2 functionality.
32230 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
32231 and definition names.
32232 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
32233 2 functions.
32234 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
32235 ieee1275 specific multiboot2 code.
32236
32237 * kern/i386/pc/startup.S: Change headers and definition names for
32238 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
32239
32240 2007-07-22 Robert Millan <rmh@aybabtu.com>
32241
32242 * geninitheader.sh: Process file specified in first parameter rather
32243 than hardcoding grub_modules_init.lst.
32244 * geninit.sh: Likewise. Also, construct header name dynamically rather
32245 than hardcoding grub_modules_init.h.
32246
32247 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
32248 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
32249 grub_probe_init.[ch] and grub_setup_init.[ch].
32250
32251 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
32252 grub_modules_init.h with grub_emu_init.h.
32253 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
32254 grub_probe_init.[ch] files.
32255 * conf/i386-efi.rmk: Likewise.
32256 * conf/i386-pc.rmk: Likewise.
32257 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
32258 grub_setup_init.[ch] files.
32259
32260 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
32261 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
32262 to initialize modules rather than a list of hardcoded functions.
32263 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
32264 grub_init_all() to initialize modules rather than a list of hardcoded
32265 functions.
32266
32267 2007-07-22 Robert Millan <rmh@aybabtu.com>
32268
32269 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
32270 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
32271
32272 2007-07-22 Robert Millan <rmh@aybabtu.com>
32273
32274 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
32275 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
32276 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
32277 flag when running on SmartFirmware.
32278 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
32279 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
32280 was set.
32281
32282 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
32283 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
32284 rather than decreasing it.
32285
32286 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
32287 there's not enough space to do it, fail in the same way as when it
32288 can't be done because there are no partitions.
32289
32290 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
32291 when nvsetenv failed.
32292
32293 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
32294
32295 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
32296 because this rule is automatically generated.
32297 (grub-mkrescue): Removed for the same reason as above.
32298
32299 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
32300
32301 Migrate to GNU General Public License Version 3.
32302
32303 * COPYING: Replaced with the plain text version of GPLv3.
32304
32305 * config.guess: Updated from gnulib.
32306 * config.sub: Likewise.
32307
32308 * geninit.sh: Output a GPLv3 copyright notice.
32309 * geninitheader.sh: Likewise.
32310 * genmodsrc.sh: Likewise.
32311 * gensymlist.sh.in: Likewise.
32312
32313 * boot/i386/pc/boot.S: Upgraded to GPLv3.
32314 * boot/i386/pc/diskboot.S: Likewise.
32315 * boot/i386/pc/pxeboot.S: Likewise.
32316 * commands/blocklist.c: Likewise.
32317 * commands/boot.c: Likewise.
32318 * commands/cat.c: Likewise.
32319 * commands/cmp.c: Likewise.
32320 * commands/configfile.c: Likewise.
32321 * commands/echo.c: Likewise.
32322 * commands/help.c: Likewise.
32323 * commands/ls.c: Likewise.
32324 * commands/search.c: Likewise.
32325 * commands/terminal.c: Likewise.
32326 * commands/test.c: Likewise.
32327 * commands/videotest.c: Likewise.
32328 * commands/i386/cpuid.c: Likewise.
32329 * commands/i386/pc/halt.c: Likewise.
32330 * commands/i386/pc/play.c: Likewise.
32331 * commands/i386/pc/reboot.c: Likewise.
32332 * commands/i386/pc/vbeinfo.c: Likewise.
32333 * commands/i386/pc/vbetest.c: Likewise.
32334 * commands/ieee1275/halt.c: Likewise.
32335 * commands/ieee1275/reboot.c: Likewise.
32336 * commands/ieee1275/suspend.c: Likewise.
32337 * disk/loopback.c: Likewise.
32338 * disk/lvm.c: Likewise.
32339 * disk/raid.c: Likewise.
32340 * disk/efi/efidisk.c: Likewise.
32341 * disk/i386/pc/biosdisk.c: Likewise.
32342 * disk/ieee1275/ofdisk.c: Likewise.
32343 * font/manager.c: Likewise.
32344 * fs/affs.c: Likewise.
32345 * fs/ext2.c: Likewise.
32346 * fs/fat.c: Likewise.
32347 * fs/fshelp.c: Likewise.
32348 * fs/hfs.c: Likewise.
32349 * fs/hfsplus.c: Likewise.
32350 * fs/iso9660.c: Likewise.
32351 * fs/jfs.c: Likewise.
32352 * fs/minix.c: Likewise.
32353 * fs/sfs.c: Likewise.
32354 * fs/ufs.c: Likewise.
32355 * fs/xfs.c: Likewise.
32356 * hello/hello.c: Likewise.
32357 * include/grub/acorn_filecore.h: Likewise.
32358 * include/grub/arg.h: Likewise.
32359 * include/grub/bitmap.h: Likewise.
32360 * include/grub/boot.h: Likewise.
32361 * include/grub/cache.h: Likewise.
32362 * include/grub/device.h: Likewise.
32363 * include/grub/disk.h: Likewise.
32364 * include/grub/dl.h: Likewise.
32365 * include/grub/elfload.h: Likewise.
32366 * include/grub/env.h: Likewise.
32367 * include/grub/err.h: Likewise.
32368 * include/grub/file.h: Likewise.
32369 * include/grub/font.h: Likewise.
32370 * include/grub/fs.h: Likewise.
32371 * include/grub/fshelp.h: Likewise.
32372 * include/grub/gzio.h: Likewise.
32373 * include/grub/hfs.h: Likewise.
32374 * include/grub/kernel.h: Likewise.
32375 * include/grub/loader.h: Likewise.
32376 * include/grub/lvm.h: Likewise.
32377 * include/grub/misc.h: Likewise.
32378 * include/grub/mm.h: Likewise.
32379 * include/grub/net.h: Likewise.
32380 * include/grub/normal.h: Likewise.
32381 * include/grub/parser.h: Likewise.
32382 * include/grub/partition.h: Likewise.
32383 * include/grub/pc_partition.h: Likewise.
32384 * include/grub/raid.h: Likewise.
32385 * include/grub/rescue.h: Likewise.
32386 * include/grub/script.h: Likewise.
32387 * include/grub/setjmp.h: Likewise.
32388 * include/grub/symbol.h: Likewise.
32389 * include/grub/term.h: Likewise.
32390 * include/grub/terminfo.h: Likewise.
32391 * include/grub/tparm.h: Likewise.
32392 * include/grub/types.h: Likewise.
32393 * include/grub/video.h: Likewise.
32394 * include/grub/efi/api.h: Likewise.
32395 * include/grub/efi/chainloader.h: Likewise.
32396 * include/grub/efi/console.h: Likewise.
32397 * include/grub/efi/console_control.h: Likewise.
32398 * include/grub/efi/disk.h: Likewise.
32399 * include/grub/efi/efi.h: Likewise.
32400 * include/grub/efi/pe32.h: Likewise.
32401 * include/grub/efi/time.h: Likewise.
32402 * include/grub/i386/linux.h: Likewise.
32403 * include/grub/i386/setjmp.h: Likewise.
32404 * include/grub/i386/types.h: Likewise.
32405 * include/grub/i386/efi/kernel.h: Likewise.
32406 * include/grub/i386/efi/loader.h: Likewise.
32407 * include/grub/i386/efi/time.h: Likewise.
32408 * include/grub/i386/pc/biosdisk.h: Likewise.
32409 * include/grub/i386/pc/boot.h: Likewise.
32410 * include/grub/i386/pc/chainloader.h: Likewise.
32411 * include/grub/i386/pc/console.h: Likewise.
32412 * include/grub/i386/pc/init.h: Likewise.
32413 * include/grub/i386/pc/kernel.h: Likewise.
32414 * include/grub/i386/pc/loader.h: Likewise.
32415 * include/grub/i386/pc/memory.h: Likewise.
32416 * include/grub/i386/pc/multiboot.h: Likewise.
32417 * include/grub/i386/pc/serial.h: Likewise.
32418 * include/grub/i386/pc/time.h: Likewise.
32419 * include/grub/i386/pc/vbe.h: Likewise.
32420 * include/grub/i386/pc/vbeblit.h: Likewise.
32421 * include/grub/i386/pc/vbefill.h: Likewise.
32422 * include/grub/i386/pc/vbeutil.h: Likewise.
32423 * include/grub/i386/pc/vga.h: Likewise.
32424 * include/grub/ieee1275/ieee1275.h: Likewise.
32425 * include/grub/ieee1275/ofdisk.h: Likewise.
32426 * include/grub/powerpc/libgcc.h: Likewise.
32427 * include/grub/powerpc/setjmp.h: Likewise.
32428 * include/grub/powerpc/types.h: Likewise.
32429 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
32430 * include/grub/powerpc/ieee1275/console.h: Likewise.
32431 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
32432 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
32433 * include/grub/powerpc/ieee1275/loader.h: Likewise.
32434 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
32435 * include/grub/powerpc/ieee1275/time.h: Likewise.
32436 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
32437 * include/grub/sparc64/libgcc.h: Likewise.
32438 * include/grub/sparc64/setjmp.h: Likewise.
32439 * include/grub/sparc64/types.h: Likewise.
32440 * include/grub/sparc64/ieee1275/console.h: Likewise.
32441 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32442 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
32443 * include/grub/sparc64/ieee1275/time.h: Likewise.
32444 * include/grub/util/biosdisk.h: Likewise.
32445 * include/grub/util/getroot.h: Likewise.
32446 * include/grub/util/lvm.h: Likewise.
32447 * include/grub/util/misc.h: Likewise.
32448 * include/grub/util/raid.h: Likewise.
32449 * include/grub/util/resolve.h: Likewise.
32450 * io/gzio.c: Likewise.
32451 * kern/device.c: Likewise.
32452 * kern/disk.c: Likewise.
32453 * kern/dl.c: Likewise.
32454 * kern/elf.c: Likewise.
32455 * kern/env.c: Likewise.
32456 * kern/err.c: Likewise.
32457 * kern/file.c: Likewise.
32458 * kern/fs.c: Likewise.
32459 * kern/loader.c: Likewise.
32460 * kern/main.c: Likewise.
32461 * kern/misc.c: Likewise.
32462 * kern/mm.c: Likewise.
32463 * kern/parser.c: Likewise.
32464 * kern/partition.c: Likewise.
32465 * kern/rescue.c: Likewise.
32466 * kern/term.c: Likewise.
32467 * kern/efi/efi.c: Likewise.
32468 * kern/efi/init.c: Likewise.
32469 * kern/efi/mm.c: Likewise.
32470 * kern/i386/dl.c: Likewise.
32471 * kern/i386/efi/init.c: Likewise.
32472 * kern/i386/efi/startup.S: Likewise.
32473 * kern/i386/pc/init.c: Likewise.
32474 * kern/i386/pc/lzo1x.S: Likewise.
32475 * kern/i386/pc/startup.S: Likewise.
32476 * kern/ieee1275/ieee1275.c: Likewise.
32477 * kern/powerpc/cache.S: Likewise.
32478 * kern/powerpc/dl.c: Likewise.
32479 * kern/powerpc/ieee1275/cmain.c: Likewise.
32480 * kern/powerpc/ieee1275/crt0.S: Likewise.
32481 * kern/powerpc/ieee1275/init.c: Likewise.
32482 * kern/powerpc/ieee1275/openfw.c: Likewise.
32483 * kern/sparc64/cache.S: Likewise.
32484 * kern/sparc64/dl.c: Likewise.
32485 * kern/sparc64/ieee1275/init.c: Likewise.
32486 * kern/sparc64/ieee1275/openfw.c: Likewise.
32487 * loader/efi/chainloader.c: Likewise.
32488 * loader/efi/chainloader_normal.c: Likewise.
32489 * loader/i386/efi/linux.c: Likewise.
32490 * loader/i386/efi/linux_normal.c: Likewise.
32491 * loader/i386/pc/chainloader.c: Likewise.
32492 * loader/i386/pc/chainloader_normal.c: Likewise.
32493 * loader/i386/pc/linux.c: Likewise.
32494 * loader/i386/pc/linux_normal.c: Likewise.
32495 * loader/i386/pc/multiboot.c: Likewise.
32496 * loader/i386/pc/multiboot_normal.c: Likewise.
32497 * loader/powerpc/ieee1275/linux.c: Likewise.
32498 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32499 * normal/arg.c: Likewise.
32500 * normal/cmdline.c: Likewise.
32501 * normal/command.c: Likewise.
32502 * normal/completion.c: Likewise.
32503 * normal/execute.c: Likewise.
32504 * normal/function.c: Likewise.
32505 * normal/lexer.c: Likewise.
32506 * normal/main.c: Likewise.
32507 * normal/menu.c: Likewise.
32508 * normal/menu_entry.c: Likewise.
32509 * normal/misc.c: Likewise.
32510 * normal/parser.y: Likewise.
32511 * normal/script.c: Likewise.
32512 * normal/i386/setjmp.S: Likewise.
32513 * normal/powerpc/setjmp.S: Likewise.
32514 * normal/sparc64/setjmp.S: Likewise.
32515 * partmap/acorn.c: Likewise.
32516 * partmap/amiga.c: Likewise.
32517 * partmap/apple.c: Likewise.
32518 * partmap/gpt.c: Likewise.
32519 * partmap/pc.c: Likewise.
32520 * partmap/sun.c: Likewise.
32521 * term/gfxterm.c: Likewise.
32522 * term/terminfo.c: Likewise.
32523 * term/efi/console.c: Likewise.
32524 * term/i386/pc/console.c: Likewise.
32525 * term/i386/pc/serial.c: Likewise.
32526 * term/i386/pc/vesafb.c: Likewise.
32527 * term/i386/pc/vga.c: Likewise.
32528 * term/ieee1275/ofconsole.c: Likewise.
32529 * util/biosdisk.c: Likewise.
32530 * util/console.c: Likewise.
32531 * util/genmoddep.c: Likewise.
32532 * util/getroot.c: Likewise.
32533 * util/grub-emu.c: Likewise.
32534 * util/grub-mkdevicemap.c: Likewise.
32535 * util/grub-probe.c: Likewise.
32536 * util/lvm.c: Likewise.
32537 * util/misc.c: Likewise.
32538 * util/raid.c: Likewise.
32539 * util/resolve.c: Likewise.
32540 * util/update-grub.in: Likewise.
32541 * util/update-grub_lib.in: Likewise.
32542 * util/grub.d/00_header.in: Likewise.
32543 * util/grub.d/10_hurd.in: Likewise.
32544 * util/grub.d/10_linux.in: Likewise.
32545 * util/i386/efi/grub-install.in: Likewise.
32546 * util/i386/efi/grub-mkimage.c: Likewise.
32547 * util/i386/pc/grub-install.in: Likewise.
32548 * util/i386/pc/grub-mkimage.c: Likewise.
32549 * util/i386/pc/grub-mkrescue.in: Likewise.
32550 * util/i386/pc/grub-setup.c: Likewise.
32551 * util/i386/pc/misc.c: Likewise.
32552 * util/powerpc/ieee1275/grub-install.in: Likewise.
32553 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
32554 * util/powerpc/ieee1275/misc.c: Likewise.
32555 * video/bitmap.c: Likewise.
32556 * video/video.c: Likewise.
32557 * video/i386/pc/vbe.c: Likewise.
32558 * video/i386/pc/vbeblit.c: Likewise.
32559 * video/i386/pc/vbefill.c: Likewise.
32560 * video/i386/pc/vbeutil.c: Likewise.
32561 * video/readers/tga.c: Likewise.
32562
32563 2007-07-02 Robert Millan <rmh@aybabtu.com>
32564
32565 * conf/i386-efi.rmk: Replace obsolete reference to
32566 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
32567 with util/getroot.c.
32568 * conf/powerpc-ieee1275.rmk: Likewise.
32569 * conf/sparc64-ieee1275.rmk: Likewise.
32570
32571 * util/grub-emu.c (main): Fix unchecked pointer handling.
32572
32573 2007-07-02 Robert Millan <rmh@aybabtu.com>
32574
32575 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
32576 invocation to fail, in order to support partition-less media.
32577
32578 * util/i386/pc/grub-install.in: Likewise.
32579
32580 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
32581 which fs or partmap modules are needed (akin to its sister scripts).
32582
32583 Also use grub-probe to get rid of unportable /proc/mounts check.
32584
32585 Print the same informational message that the other scripts do, before
32586 exiting.
32587
32588 2007-06-23 Robert Millan <rmh@aybabtu.com>
32589
32590 * util/update-grub_lib.in (font_path): New function. Determine whether
32591 a font file can be found and, if so, echo the GRUB path to it.
32592
32593 * util/update-grub.in: Handle multiple terminals depending on user
32594 input, platform availability and font file presence. Propagate
32595 variables of our findings to /etc/grub.d/ children.
32596
32597 * util/grub.d/00_header.in: Handle multiple terminals, based on
32598 environment setup by update-grub.
32599
32600 2007-06-23 Robert Millan <rmh@aybabtu.com>
32601
32602 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
32603
32604 2007-06-21 Robert Millan <rmh@aybabtu.com>
32605
32606 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
32607 indicate end of data section in kernel image.
32608 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
32609 GRUB_KERNEL_MACHINE_DATA_END.
32610
32611 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
32612 space for it.
32613 * kern/i386/efi/startup.S: Likewise.
32614
32615 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
32616 during image generation. Implement --prefix option to override this
32617 patch.
32618 * util/i386/efi/grub-mkimage.c: Likewise.
32619
32620 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
32621 code to make path relative to its root into a separate function.
32622
32623 * util/i386/pc/grub-install.in: Use newly provided
32624 make_system_path_relative_to_its_root() to convert ${grubdir}, then
32625 pass the result to grub-install --prefix.
32626
32627 2007-06-13 Robert Millan <rmh@aybabtu.com>
32628
32629 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
32630 DEFAULT_DEVICE_MAP.
32631 * util/grub-emu.c: Use above definitions from misc.h instead of
32632 defining them.
32633 * util/grub-mkdevicemap.c: Likewise.
32634 * util/i386/pc/grub-setup.c: Likewise.
32635 * util/grub-probe.c: Likewise.
32636 (probe): Abort with grub_util_error() when either
32637 grub_guess_root_device or grub_util_get_grub_dev fails.
32638
32639 2007-06-12 Robert Millan <rmh@aybabtu.com>
32640
32641 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
32642 "pager" assignment.
32643 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
32644 "pcdata".
32645 * util/grub-probe.c (probe): Likewise for "drive_name".
32646
32647 2007-06-11 Robert Millan <rmh@aybabtu.com>
32648
32649 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
32650 not just the cdrom one.
32651
32652 2007-06-11 Robert Millan <rmh@aybabtu.com>
32653
32654 * util/i386/pc/grub-mkrescue.in: Add "set -e".
32655 Add --pkglibdir=DIR option to override pkglibdir.
32656 Mention --image-type=TYPE in help output.
32657 Fix --grub-mkimage (it was a no-op).
32658 Abort gracefully when no parameter is given.
32659
32660 2007-06-11 Robert Millan <rmh@aybabtu.com>
32661
32662 * util/i386/pc/grub-mkrescue.in: New file.
32663 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
32664 * Makefile.in: Handle bin_SCRIPTS.
32665
32666 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
32667
32668 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
32669 list of video modes.
32670
32671 2007-06-06 Robert Millan <rmh@aybabtu.com>
32672
32673 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
32674 file doesn't exist, or if it is in a filesystem grub can't read.
32675
32676 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
32677 not abort if GRUB_DRIVE could not be defined. Rearrange generated
32678 header comment to fit in 80 columns when the variables are resolved.
32679
32680 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
32681 could be identified by update-grub. Remove redundant check for
32682 unifont.pff existence (since convert_system_path_to_grub_path now
32683 handles that).
32684
32685 2007-06-04 Robert Millan <rmh@aybabtu.com>
32686
32687 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
32688
32689 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
32690
32691 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
32692
32693 2007-06-04 Robert Millan <rmh@aybabtu.com>
32694
32695 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
32696
32697 * include/grub/partition.h: Declare grub_apple_partition_map_init and
32698 grub_apple_partition_map_fini.
32699
32700 * util/biosdisk.c
32701 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
32702 to access >2 TiB disks).
32703
32704 Print disk->total_sectors with %llu instead of %lu, since this
32705 variable is always 64-bit (prevents wrong disk size from being displayed
32706 on either >2 TiB disk or big-endian CPU).
32707
32708 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
32709 into a generic case that supports all (sane) partition maps.
32710
32711 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
32712 breaks big-endian.
32713
32714 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
32715 and grub_apple_partition_map_fini() after that.
32716
32717 2007-06-01 Robert Millan <rmh@aybabtu.com>
32718
32719 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
32720
32721 * util/grub.d/00_header.in: Only enable gfxterm when
32722 convert_system_path_to_grub_path() succeeds.
32723
32724 2007-05-20 Robert Millan <rmh@aybabtu.com>
32725
32726 * util/update-grub_lib.in: New file.
32727 * DISTLIST: Add update-grub_lib.in.
32728 * conf/common.rmk: Generate update-grub_lib and install it in
32729 $(lib_DATA).
32730 * Makefile.in: Add install routine for $(lib_DATA).
32731
32732 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
32733 function provided by update-grub_lib to support arbitrary paths of
32734 unifont.pff.
32735 * util/update-grub.in: Use convert_system_path_to_grub_path() to
32736 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
32737
32738 2007-05-19 Robert Millan <rmh@aybabtu.com>
32739
32740 * commands/i386/cpuid.c: New module.
32741 * DISTLIST: Add it.
32742 * conf/i386-efi.rmk: Enable cpuid.mod.
32743 * conf/i386-pc.rmk: Likewise.
32744
32745 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
32746
32747 * kern/disk.c (grub_disk_read): Check return value of
32748 grub_realloc().
32749
32750 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
32751
32752 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
32753 arrays.
32754 * disk/raid.c (grub_raid_open): Likewise.
32755
32756 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
32757
32758 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
32759 stack instead of on the heap.
32760
32761 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
32762 before doing a read on it.
32763
32764 * configure.ac: Only use -fno-stack-protector for the target
32765 environment.
32766
32767 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
32768
32769 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
32770 __attribute_ ((unused)) to mode_type argument.
32771
32772 * util/getroot.c (grub_guess_root_device): Fix #endif.
32773
32774 * kern/misc.c (memcmp): Fix prototype.
32775
32776 * include/grub/partition.h [GRUB_UTIL]
32777 (grub_gpt_partition_map_init): Add prototype.
32778 (grub_gpt_partition_map_fini): Likewise.
32779
32780 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
32781 at the right place.
32782
32783 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
32784 (grub_fat_read_data): Likewise.
32785 (grub_fat_find_dir): Likewise.
32786
32787 * font/manager.c (find_glyph): Make table a const.
32788 (grub_font_get_glyph): Remove bitmap from if statement.
32789
32790 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
32791
32792 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
32793 code, first search for device in /dev/mapper, then in /dev.
32794 (grub_util_get_grub_dev): New function.
32795 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
32796 prototype.
32797 * util/grub-probe.c (probe): Remove check for RAID, call
32798 grub_util_get_grub_dev() instead of
32799 grub_util_biosdisk_get_grub_dev().
32800 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
32801 grub_util_biosdisk_get_grub_dev().
32802 * util/i386/pc/grub-setup.c (main): Likewise.
32803
32804 2007-05-16 Robert Millan <rmh@aybabtu.com>
32805
32806 * DISTLIST: Update for the latest changes.
32807 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
32808 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
32809 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
32810 grub/util/biosdisk.h.
32811 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
32812 grub/util/biosdisk.h.
32813
32814 2007-05-16 Robert Millan <rmh@aybabtu.com>
32815
32816 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
32817
32818 2007-05-16 Robert Millan <rmh@aybabtu.com>
32819
32820 * util/i386/efi/grub-install.in: New.
32821 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
32822 newly added grub-install.
32823 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
32824 include.
32825 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
32826 grub/util/biosdisk.h.
32827 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
32828 grub/util/biosdisk.h.
32829
32830 2007-05-16 Robert Millan <rmh@aybabtu.com>
32831
32832 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
32833 * include/grub/util/biosdisk.h: ... here.
32834 * util/i386/pc/biosdisk.c: Moved to ...
32835 * util/biosdisk.c: ... here.
32836 * util/i386/pc/getroot.c: Moved to ...
32837 * util/getroot.c: ... here.
32838 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
32839 * util/grub-mkdevicemap.c: ... here.
32840 * util/i386/pc/grub-probe.c: Moved to ...
32841 * util/grub-probe.c: ... here.
32842
32843 2007-05-15 Robert Millan <rmh@aybabtu.com>
32844
32845 * util/update-grub.in: Remove duplicated line in grub.cfg header
32846 message.
32847
32848 2007-05-13 Robert Millan <rmh@aybabtu.com>
32849
32850 * util/update-grub.in: Fix a few assumptions about the devices holding
32851 /, /boot and /boot/grub being the same.
32852 * util/grub.d/00_header.in: Likewise.
32853 * util/grub.d/10_hurd.in: Likewise.
32854 * util/grub.d/10_linux.in: Likewise.
32855
32856 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
32857 patterns. Use that to define the `.old' suffix as older than `'.
32858
32859 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
32860
32861 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
32862 the grub.cfg header message.
32863
32864 2007-05-11 Robert Millan <rmh@aybabtu.com>
32865
32866 * util/update-grub.in: Create device.map if it doesn't already exist,
32867 before attempting to run grub-probe.
32868 Check for grub-probe and grub-mkdevicemap with the same code
32869 grub-install is using.
32870 Remove test mode.
32871
32872 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
32873
32874 * Makefile.in: Add the datarootdir autoconf variable.
32875
32876 2007-05-09 Robert Millan <rmh@aybabtu.com>
32877
32878 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
32879 fail gracefully if dev->disk->partition == NULL.
32880
32881 2007-05-07 Robert Millan <rmh@aybabtu.com>
32882
32883 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
32884 determine partition map module.
32885 * util/i386/pc/grub-install.in: Use this feature to decide which
32886 partition module to load, instead of hardcoding pc and gpt.
32887
32888 2007-05-07 Robert Millan <rmh@aybabtu.com>
32889
32890 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
32891 source directory differs from build directory.
32892
32893 2007-05-05 Robert Millan <rmh@aybabtu.com>
32894
32895 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
32896 initialisation.
32897
32898 2007-05-05 Robert Millan <rmh@aybabtu.com>
32899
32900 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
32901
32902 2007-05-05 Robert Millan <rmh@aybabtu.com>
32903
32904 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
32905 command-line arguments via ${GRUB_CMDLINE_LINUX}.
32906
32907 2007-05-05 Robert Millan <rmh@aybabtu.com>
32908
32909 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
32910 (grub_probe_SOURCES): Likewise.
32911 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
32912 GPT and initialize dos_part and bsd_part accordingly.
32913 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
32914 install_bsd_part.
32915 (main): Activate gpt module for use during partition identification,
32916 and deactivate it afterwards.
32917 * util/i386/pc/grub-install.in: Add gpt module to core.img.
32918 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
32919 partition identification, and deactivate it afterwards.
32920
32921 2007-05-05 Robert Millan <rmh@aybabtu.com>
32922
32923 * term/i386/pc/console.c (grub_console_fini): Call
32924 grub_term_set_current() before grub_term_unregister().
32925
32926 2007-05-04 Robert Millan <rmh@aybabtu.com>
32927
32928 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
32929 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
32930 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
32931 and update-grub_DATA.
32932 * conf/common.rmk: Build and install update-grub components.
32933 * conf/common.mk: Regenerate.
32934 * util/update-grub.in: New. Core of update-grub.
32935 * util/grub.d/00_header.in: New. Generates grub.cfg header.
32936 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
32937 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
32938 * util/grub.d/README: New. Document grub.d directory layout.
32939
32940 2007-05-01 Robert Millan <rmh@aybabtu.com>
32941
32942 * util/grub-emu.c: Move initialization functions
32943 grub_util_biosdisk_init() and grub_init_all() before
32944 grub_util_biosdisk_get_grub_dev(), which relies on them.
32945
32946 2007-04-19 Robert Millan <rmh@aybabtu.com>
32947
32948 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
32949 it is used later.
32950
32951 2007-04-18 Jerone Young <jerone@gmail.com>
32952
32953 * kernel/elf.c: Add missing parenthesis for conditional statement
32954 stanza.
32955
32956 2007-04-10 Jerone Young <jerone@gmail.com>
32957
32958 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
32959 continue on and look for device node with real device name.
32960
32961 2007-04-10 Jerone Young <jerone@gmail.com>
32962
32963 * configure.ac: Add argument for autoconf to use transformation
32964 ability.
32965 * Makefile.in: Add autoconf package transformation code.
32966 * util/i386/pc/grub-install.in: Likewise.
32967 * util/powerpc/ieee1275/grub-install.in: Likewise.
32968
32969 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
32970
32971 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
32972 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
32973 (EXT2_REVISION): Likewise.
32974 (EXT2_INODE_SIZE): Likewise.
32975 (struct grub_ext2_block_group): Added a missing member
32976 "used_dirs".
32977 (grub_ext2_read_inode): Divide by the inode size in a superblock
32978 instead of 128 to obtain INODES_PER_BLOCK.
32979 Use the macro EXT2_INODE_SIZE instead of directly using
32980 SBLOCK->INODE_SIZE.
32981
32982 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
32983
32984 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
32985 superblock instead of the structure size to compute an
32986 offset. This fixes the problem that GRUB could not read a
32987 filesystem when inode size is different from 128-byte.
32988
32989 2007-03-05 Marco Gerards <marco@gnu.org>
32990
32991 * normal/main.c (read_config_file): When "menu" is not set, create
32992 an initial context.
32993
32994 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
32995
32996 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
32997 (HEAP_LIMIT): New macro.
32998 (grub_claim_heap): Claim memory up to `heaplimit'.
32999
33000 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33001
33002 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
33003 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
33004 (_start): Likewise.
33005 (grub_arch_modules_addr): Return address after `_end'.
33006 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
33007 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
33008 (add_segments): Calculate `_end' from phdr size and location.
33009 (ALIGN_UP): Moved to ...
33010 * include/grub/misc.h: here.
33011 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
33012 New macro.
33013 (GRUB_IEEE1275_MODULE_BASE): Removed.
33014
33015 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33016
33017 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
33018 loop boundary.
33019
33020 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33021
33022 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
33023 All users updated.
33024 (grub_elf64_load_hook_t): Likewise.
33025 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
33026 debug output.
33027
33028 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33029
33030 * kern/mm.c: Update copyright.
33031 (grub_mm_debug): Correct syntax error.
33032 (grub_mm_dump_free): New function.
33033 (grub_debug_free): Call `grub_free'.
33034 * include/grub/mm.h: Update copyright.
33035 (grub_mm_dump_free): Add declaration.
33036
33037 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33038
33039 * include/grub/ieee1275/ieee1275.h: Update copyright.
33040 * kern/powerpc/ieee1275/init.c: Likewise.
33041 * kern/powerpc/ieee1275/openfw.c: Likewise.
33042
33043 * loader/powerpc/ieee1275/linux.c: Likewise.
33044 * include/grub/elfload.h: Likewise.
33045 * kern/elf.c: Likewise.
33046 (grub_elf32_load): Pass `base' and `size' parameters. Update all
33047 callers.
33048 (grub_elf64_load): Likewise.
33049 (grub_elf32_load_segment): Move to a nested function.
33050 (grub_elf64_load_segment): Likewise.
33051
33052 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33053
33054 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
33055 prototype.
33056 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
33057 (grub_heap_len): Likewise.
33058 (HEAP_SIZE): New macro.
33059 (grub_claim_heap): New function.
33060 (grub_machine_init): Don't claim heap directly. Call
33061 `grub_claim_heap'.
33062 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
33063 (grub_available_iterate): New function.
33064
33065 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
33066
33067 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
33068 * configure.ac: Use it for testing the HOST and TARGET compilers.
33069
33070 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
33071
33072 * Makefile.in (enable_grub_emu): New variable.
33073 * configure.ac (--enable-grub-emu): New option.
33074 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
33075 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
33076 * conf/i386-pc.rmk: Likewise.
33077 * conf/powerpc-ieee1275.rmk: Likewise.
33078 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
33079
33080 2006-12-12 Marco Gerards <marco@gnu.org>
33081
33082 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
33083
33084 * kern/env.c (grub_env_unset): Don't free the member `value' when
33085 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
33086 pointer.
33087
33088 * normal/main.c (current_menu): Removed.
33089 (free_menu): Unset the `menu' environment variable.
33090 (grub_normal_menu_addentry): Make use of the environment variable
33091 `menu', instead of using the global `current_menu'. Allocate
33092 memory for the sourcecode of this entry.
33093 (read_config_file): New argument `nested', changed all callers.
33094 Only in the case of a new context, initialize a new menu. Set the
33095 `menu' environment variable.
33096 (grub_normal_execute): Don't set and unset the environment
33097 variable `menu' here anymore. Only free the menu when leaving the
33098 context.
33099
33100 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
33101 leak.
33102
33103 2006-12-11 Marco Gerards <marco@gnu.org>
33104
33105 * normal/menu_entry.c (run): Fix off by one bug so the last line
33106 is executed. Move the loader check to outside the loop.
33107
33108 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
33109
33110 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
33111
33112 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
33113
33114 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
33115 the number of sectors. Reported by Andrey Shuvikov
33116 <mr_hyro@yahoo.com>.
33117
33118 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
33119
33120 * kern/disk.c (grub_disk_read): When there is a read error, always
33121 try to read only the necessary data.
33122
33123 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
33124 disk/raid.c.
33125 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
33126 prototype.
33127 [GRUB_UTIL] (grub_raid_fini): Likewise.
33128 [GRUB_UTIL] (grub_lvm_init): Likewise.
33129 [GRUB_UTIL] (grub_lvm_fini): Likewise.
33130 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
33131 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
33132 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
33133 and grub_raid_fini().
33134
33135 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
33136
33137 * include/grub/types.h (__unused): Rename to UNUSED.
33138 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
33139 (grub_elf64_size): Likewise.
33140
33141 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
33142
33143 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
33144 grub_error_push and grub_error_pop in the error-handling path.
33145 (grub_elf32_load_segment): Only call grub_file_read with non-zero
33146 length.
33147
33148 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
33149
33150 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
33151 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33153 (kernel_elf_SOURCES): Likewise.
33154 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
33155 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
33156 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
33157 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
33158 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
33159 (elf_mod_SOURCES): New variable.
33160 (elf_mod_CFLAGS): Likewise.
33161 (elf_mod_LDFLAGS): Likewise.
33162 * include/grub/types.h (__unused): New macro.
33163 * include/grub/elfload.h: New file.
33164 * kern/elf.c: Likewise.
33165 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
33166 (ELF32_LOADMASK): New macro.
33167 (ELF64_LOADMASK): Likewise.
33168 (vmlinux): Removed.
33169 (grub_linux_load32): New function.
33170 (grub_linux_load64): Likewise.
33171 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
33172 Use grub_elf_t instead of grub_file_t.
33173
33174 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
33175
33176 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
33177 `catch_result' to struct set_color_args.
33178
33179 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
33180
33181 * normal/menu.c: Include grub/script.h.
33182 * normal/menu_entry.c: Likewise.
33183 * include/grub/normal.h: Do not include grub/script.h.
33184
33185 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33186
33187 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
33188
33189 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33190
33191 * kern/disk.c (grub_disk_open): Print debug messages when opening a
33192 disk.
33193 (grub_disk_close): Print debug messages when closing a disk.
33194 (grub_disk_read): Print debug messages when disk read fails.
33195 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
33196 filesystem type.
33197 * kern/partition.c: Include misc.h.
33198 (grub_partition_iterate): Print debug messages when detecting
33199 partition type.
33200
33201 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33202
33203 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
33204 is negative.
33205 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
33206
33207 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
33208
33209 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
33210 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
33211
33212 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
33213
33214 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
33215 instead of sizeof(lv). Patch by Michael Guntsche.
33216
33217 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
33218
33219 * disk/lvm.c: Rename VGS to VG_LIST.
33220 (grub_lvm_iterate): Change VGS->LV to VG-LV.
33221 (grub_lvm_open): Likewise.
33222 Thanks to Michael Guntsche for finding this bug.
33223
33224 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33225
33226 * configure.ac (AC_INIT): Bumped to 1.95.
33227
33228 2006-10-14 Robert Millan <rmh@aybabtu.com>
33229
33230 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
33231 with "/dev/.static/dev/md".
33232
33233 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
33234
33235 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
33236 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
33237 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
33238 DRIVE_NAME are always freed.
33239
33240 * util/i386/pc/biosdisk.c (make_device_name): Add one into
33241 DOS_PART, as a DOS partition is counted from one instead of zero
33242 now. Reported by Robert Millan.
33243
33244 2006-10-14 Robert Millan <rmh@aybabtu.com>
33245
33246 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
33247 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
33248 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
33249 string returned by grub_guess_root_device.
33250 * util/i386/pc/grub-setup.c: Likewise.
33251 * util/i386/pc/grub-probefs.c: Likewise.
33252
33253 * util/i386/pc/grub-probefs.c: Rename to ...
33254 * util/i386/pc/grub-probe.c: ... this.
33255 * DISTLIST: Remove grub-probefs, add grub-probe.
33256 * conf/i386-efi.rmk: Likewise.
33257 * conf/i386-pc.rmk: Likewise.
33258 * util/i386/pc/grub-install.in: Likewise.
33259
33260 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
33261 choose which information we want to print.
33262
33263 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
33264
33265 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
33266 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
33267 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
33268 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
33269 video/readers/tga.c and video/i386/pc/vbeutil.c.
33270
33271 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
33272
33273 Added support for RAID and LVM.
33274
33275 * disk/lvm.c: New file.
33276 * disk/raid.c: Likewise.
33277 * include/grub/lvm.h: Likewise.
33278 * include/grub/raid.h: Likewise.
33279 * include/grub/util/lvm.h: Likewise.
33280 * include/grub/util/raid.h: Likewise.
33281 * util/lvm.c: Likewise.
33282 * util/raid.c: Likewise.
33283
33284 * include/grub/disk.h (grub_disk_dev_id): Add
33285 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
33286 (grub_disk_get_size): New prototype.
33287 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
33288 returns a partition.
33289 (grub_disk_get_size): New function.
33290
33291 * kern/i386/pc/init.c (make_install_device): Copy the prefix
33292 verbatim if grub_install_dos_part is -2.
33293
33294 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
33295 and LVM devices.
33296
33297 * util/i386/pc/grub-setup.c (setup): New argument
33298 MUST_EMBED. Force embedding of GRUB when the argument is
33299 true. Close FILE before returning.
33300 (main): Add support for RAID and LVM.
33301
33302 * conf/common.rmk: Add RAID and LVM modules.
33303 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
33304 util/lvm.c.
33305 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
33306
33307 * kern/misc.c (grub_strstr): New function.
33308 * include/grub/misc.h (grub_strstr): New prototype.
33309
33310 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
33311
33312 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
33313
33314 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
33315
33316 * kern/misc.c (grub_strtoull): Guess the base only if not
33317 specified.
33318
33319 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33320
33321 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
33322 PowerMac support.
33323
33324 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33325
33326 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
33327
33328 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
33329 Remove `flags' argument. All callers changed.
33330 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
33331 (IEEE1275_IHANDLE_INVALID): New variable.
33332 (IEEE1275_CELL_INVALID): New variable.
33333 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
33334 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
33335 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
33336 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
33337 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
33338 codes from Open Firmware. All callers updated.
33339 (grub_ieee1275_next_property): Directly return Open Firmware return
33340 code.
33341 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
33342 Standardize error checking from `grub_ieee1275_get_property'.
33343 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
33344 `devalias' to `aliases'. Correct comments. Consolidate error paths.
33345
33346 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33347
33348 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
33349 `instance_to_package_args' to `instance_to_path_args'.
33350
33351 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
33352 `grub_ieee1275_chosen'.
33353
33354 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
33355 `grub_ieee1275_interpret'.
33356
33357 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
33358
33359 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
33360
33361 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
33362
33363 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
33364 (__cmpdi): Likewise.
33365
33366 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
33367 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
33368 `grub_ssize_t'.
33369
33370 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
33371
33372 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
33373 to type `grub_ssize_t'.
33374 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
33375
33376 2006-09-22 Marco Gerards <marco@gnu.org>
33377
33378 * normal/script.c (grub_script_create_cmdmenu): Skip leading
33379 newlines.
33380
33381 2006-09-22 Marco Gerards <marco@gnu.org>
33382
33383 * commands/echo.c: New file.
33384
33385 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
33386
33387 * conf/common.rmk (echo_mod_SOURCES): New variable.
33388 (echo_mod_CFLAGS): Likewise.
33389 (echo_mod_LDFLAGS): Likewise.
33390
33391 2006-09-22 Marco Gerards <marco@gnu.org>
33392
33393 * normal/main.c (get_line): Malloc memory instead of using
33394 preallocated memory. Removed the arguments `cmdline' and
33395 `max_len'. Updated all callers.
33396
33397 2006-09-22 Marco Gerards <marco@gnu.org>
33398
33399 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
33400 (normal_mod_DEPENDENCIES): Likewise.
33401
33402 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
33403 (normal_mod_DEPENDENCIES): Likewise.
33404
33405 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
33406
33407 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
33408
33409 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
33410 programs.
33411 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
33412 (normal_mod_DEPENDENCIES): Likewise.
33413 * conf/i386-pc.mk: Regenerate.
33414 * conf/i386-efi.mk: Likewise
33415 * conf/common.mk: Likewise.
33416 * conf/powerpc-ieee1275.mk: Likewise.
33417 * conf/sparc64-ieee1275.mk: Likewise.
33418
33419 2006-09-22 Robert Millan <rmh@aybabtu.com>
33420
33421 Sync with i386 version.
33422 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
33423 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
33424
33425 2006-09-21 Robert Millan <rmh@aybabtu.com>
33426
33427 Import from GRUB Legacy (lib/device.c):
33428 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
33429 (init_device_map) [__linux__]: Add support for I2O devices.
33430
33431 2006-09-14 Marco Gerards <marco@gnu.org>
33432
33433 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
33434 `-melf_i386'.
33435
33436 2006-09-14 Robert Millan <rmh@aybabtu.com>
33437
33438 * util/i386/pc/grub-install.in: Skip menu.lst when removing
33439 /boot/grub/*.lst.
33440
33441 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
33442
33443 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
33444 before adding it to device.map.
33445
33446 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
33447
33448 * genmk.rb: Let GCC generate dependencies the first time it
33449 compiles a file; using the -MD option.
33450 * conf/common.mk: Regenerate.
33451 * conf/i386-pc.mk: Likewise.
33452 * conf/i386-efi.mk: Likewise.
33453 * conf/powerpc-ieee1275.mk: Likewise.
33454 * conf/sparc64-ieee1275.mk: Likewise.
33455
33456 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
33457
33458 Move the prototypes of grub_setjmp and grub_longjmp to
33459 cpu/setjmp.h, so that each architecture may specify different
33460 attributes.
33461
33462 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
33463 (grub_longjmp): Likewise.
33464 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
33465 (grub_longjmp): Likewise.
33466 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
33467 (grub_longjmp): Likewise.
33468
33469 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
33470 [!GRUB_UTIL] (grub_longjmp): Removed.
33471
33472 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
33473
33474 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
33475 "color!" method does not return any value.
33476
33477 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
33478
33479 * include/grub/bitmap.h: New file.
33480
33481 * include/grub/i386/pc/vbeutil.h: Likewise.
33482
33483 * video/bitmap.c: Likewise.
33484
33485 * video/readers/tga.c: Likewise.
33486
33487 * video/i386/pc/vbeutil.c: Likewise.
33488
33489 * commands/videotest.c: Code cleanup and updated to reflect to new
33490 video API.
33491
33492 * term/gfxterm.c: Likewise.
33493
33494 * video/video.c: Likewise.
33495
33496 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
33497 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
33498 (bitmap_mod_SOURCES): New entry.
33499 (bitmap_mod_CFLAGS): Likewise.
33500 (bitmap_mod_LDFLAGS): Likewise.
33501 (tga_mod_SOURCES): Likewise.
33502 (tga_mod_CFLAGS): Likewise.
33503 (tga_mod_LDFLAGS): Likewise.
33504
33505 * include/grub/video.h (grub_video_blit_operators): New enum type.
33506 (grub_video_render_target): Changed as forward declaration and moved
33507 actual definition to be video driver specific.
33508 (grub_video_adapter.blit_bitmap): Added blitting operator.
33509 (grub_video_adapter.blit_render_target): Likewise.
33510 (grub_video_blit_bitmap): Likewise.
33511 (grub_video_blit_render_target): Likewise.
33512
33513 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
33514 driver specific render target definition.
33515 (grub_video_vbe_map_rgba): Added driver internal helper.
33516 (grub_video_vbe_unmap_color): Updated to use
33517 grub_video_i386_vbeblit_info.
33518 (grub_video_vbe_get_video_ptr): Likewise.
33519
33520 * include/grub/i386/pc/vbeblit.h
33521 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
33522 grub_video_i386_vbeblit_info.
33523 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
33524 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
33525 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
33526 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
33527 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
33528 (grub_video_i386_vbeblit_index_index): Likewise.
33529 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
33530 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
33531 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
33532 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
33533 operator.
33534 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
33535 operator.
33536
33537 * video/i386/pc/vbeblit.c: Updated to reflect changes on
33538 include/grub/i386/pc/vbeblit.h.
33539
33540 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
33541 Updated to use grub_video_i386_vbeblit_info.
33542 (grub_video_i386_vbefill_R8G8B8): Likewise.
33543 (grub_video_i386_vbefill_index): Likewise.
33544 (grub_video_i386_vbefill): Added generic filler.
33545
33546 * video/i386/pc/vbefill.c: Updated to reflect changes on
33547 include/grub/i386/pc/vbefill.h.
33548
33549 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
33550 grub_video_i386_vbeblit_info.
33551 (grub_video_vbe_unmap_color): Likewise.
33552 (grub_video_vbe_blit_glyph): Likewise.
33553 (grub_video_vbe_scroll): Likewise.
33554 (grub_video_vbe_draw_pixel): Removed function.
33555 (grub_video_vbe_get_pixel): Likewise.
33556 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
33557 updated code to use it.
33558 (common_blitter): Added common blitter for render target and bitmap.
33559 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
33560 (grub_video_vbe_blit_render_target): Likewise.
33561
33562 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
33563
33564 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
33565 is in text mode if there is no console control protocol instance
33566 available.
33567
33568 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
33569
33570 * include/grub/video.h: Code cleanup.
33571
33572 * include/grub/i386/pc/vbe.h: Likewise.
33573
33574 * video/i386/pc/vbe.c: Likewise.
33575
33576 * video/i386/pc/vbeblit.c: Likewise.
33577
33578 * video/i386/pc/vbefill.c: Likewise.
33579
33580 * video/video.c: Likewise. Also added more comments.
33581
33582 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
33583
33584 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
33585 (struct grub_biosdisk_dap): Likewise.
33586
33587 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
33588 linkage settings for all functions.
33589
33590 2006-07-12 Marco Gerards <marco@gnu.org>
33591
33592 * configure.ac (--enable-mm-debug): Fix typo.
33593
33594 * genkernsyms.sh.in: Use proper quoting for `CC'.
33595
33596 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
33597
33598 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
33599 (normal_mod_ASFLAGS): Remove "-m32".
33600
33601 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
33602
33603 * util/misc.c: Include config.h.
33604 [!HAVE_MEMALIGN]: Do not include malloc.h.
33605 (grub_memalign): Use posix_memalign, if present. Then, use
33606 memalign, if present. Otherwise, emit an error.
33607
33608 * util/grub-emu.c: Do not include malloc.h.
33609
33610 * include/grub/util/misc.h: Include unistd.h. This is required for
33611 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
33612 D. Eades III <hde@foobar-qux.org>.
33613
33614 * configure.ac (AC_GNU_SOURCE): Added.
33615 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
33616 type.
33617
33618 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
33619
33620 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
33621 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
33622
33623 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
33624
33625 * include/grub/types.h (grub_host_addr_t): Rename to
33626 grub_target_addr_t.
33627 (grub_host_off_t): Rename to grub_target_off_t.
33628 (grub_host_size_t): Rename to grub_target_size_t.
33629 (grub_host_ssize_t): Rename to grub_target_ssize_t.
33630 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
33631
33632 * include/grub/kernel.h (struct grub_module_header): Change type
33633 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
33634 (grub_module_info): Likewise.
33635
33636 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
33637
33638 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
33639 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
33640 Velazquez <jesus.velazquez@gmail.com>.
33641
33642 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
33643
33644 Count partitions from 1 instead of 0 in the string representation
33645 of partitions. Still use 0-based internally.
33646
33647 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
33648 (sun_partition_map_iterate): Use grub_partition_t instead of
33649 struct grub_partition *. Cast DESC->START_CYLINDER to
33650 grub_uint64_t after converting the endian.
33651 (sun_partition_map_probe): Subtract 1 for PARTNUM.
33652 (sun_partition_map_get_name): Add 1 to P->INDEX.
33653
33654 * partmap/pc.c (grub_partition_parse): Subtract 1 for
33655 PCDATA->DOS_PART.
33656 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
33657
33658 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
33659 zero instead of one.
33660 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
33661 (gpt_partition_map_get_name): Add 1 into P->INDEX.
33662
33663 * partmap/apple.c (apple_partition_map_iterate): Change the type
33664 of POS to unsigned.
33665 (apple_partition_map_probe): Subtract 1 for PARTNUM.
33666 (apple_partition_map_get_name): Add 1 into P->INDEX.
33667
33668 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
33669 of POS to unsigned.
33670 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
33671 calculate the offset of a partition.
33672 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
33673 (amiga_partition_map_get_name): Add 1 into P->INDEX.
33674
33675 * partmap/acorn.c (acorn_partition_map_find): Change the type of
33676 SECTOR to grub_disk_addr_t.
33677 (acorn_partition_map_iterate): Likewise.
33678 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
33679 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
33680 top.
33681 (acorn_partition_map_get_name): Add 1 into P->INDEX.
33682
33683 * kern/i386/pc/init.c (make_install_device): Add 1 into
33684 GRUB_INSTALL_DOS_PART.
33685
33686 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
33687 conditional.
33688
33689 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
33690
33691 Clean up the code to support 64-bit addressing in disks and
33692 files. This change is not enough for filesystems yet.
33693
33694 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
33695 type of "start" to grub_uint64_t.
33696 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
33697 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
33698 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
33699 convert addresses.
33700
33701 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
33702 to grub_disk_addr_t.
33703
33704 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
33705 string.
33706
33707 * partmap/pc.c (pc_partition_map_iterate): Likewise.
33708
33709 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
33710 to char *.
33711
33712 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
33713
33714 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
33715
33716 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
33717
33718 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
33719 to grub_off_t, to detect an error from grub_file_seek.
33720 (grub_multiboot_load_elf32): Likewise.
33721
33722 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
33723 maximum unsigned long value when an overflow is detected.
33724 (grub_strtoull): New function.
33725 (grub_divmod64): Likewise.
33726 (grub_lltoa): use grub_divmod64.
33727
33728 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
33729 grub_disk_addr_t.
33730 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
33731 the pointer to next character. Use grub_strtoull instead of
33732 grub_strtoul.
33733 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
33734 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
33735 respectively.
33736
33737 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
33738 return value is signed.
33739 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
33740 test if OFFSET is less than zero, as OFFSET is unsigned now.
33741
33742 * kern/disk.c (struct grub_disk_cache): Change the type of
33743 "sector" to grub_disk_addr_t.
33744 (grub_disk_cache_get_index): Change the type of SECTOR to
33745 grub_disk_addr_t. Calculate the hash with SECTOR casted to
33746 unsigned after shifting.
33747 (grub_disk_cache_invalidate): Change the type of SECTOR to
33748 grub_disk_addr_t.
33749 (grub_disk_cache_unlock): Likewise.
33750 (grub_disk_cache_store): Likewise.
33751 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
33752 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
33753 grub_disk_addr_t and grub_uint64_t, respectively.
33754 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
33755 body, as the value of OFFSET is tweaked by
33756 grub_disk_check_range. Change the types of START_SECTOR, LEN and
33757 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
33758 respectively.
33759 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
33760 body, as the value of OFFSET is tweaked by
33761 grub_disk_check_range. Change the types of LEN and N to
33762 grub_size_t.
33763
33764 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
33765 and "saved_offset" to grub_off_t.
33766 (test_header): Cast BUF to char *.
33767 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
33768 to char *.
33769 (grub_gzio_read): Change the types of OFFSET and SIZE to
33770 grub_off_t and grub_size_t, respectively.
33771
33772 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
33773 Removed.
33774 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
33775 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
33776 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
33777 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
33778 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
33779
33780 * include/grub/types.h (grub_off_t): Unconditionally set to
33781 grub_uint64_t.
33782 (grub_disk_addr_t): Changed to grub_uint64_t.
33783
33784 * include/grub/partition.h (struct grub_partition): Change the
33785 types of "start", "len" and "offset" to grub_disk_addr_t,
33786 grub_uint64_t and grub_disk_addr_t, respectively.
33787 (grub_partition_get_start): Return grub_disk_addr_t.
33788 (grub_partition_get_len): Return grub_uint64_t.
33789
33790 * include/grub/misc.h (grub_strtoull): New prototype.
33791 (grub_divmod64): Likewise.
33792
33793 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
33794 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
33795 grub_off_t, respectively.
33796 All callers and references changed.
33797
33798 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
33799 grub_size_t in "read".
33800 All callers and references changed.
33801
33802 * include/grub/file.h (struct grub_file): Change the types of
33803 "offset" and "size" to grub_off_t and grub_off_t,
33804 respectively. Change the type of SECTOR to grub_disk_addr_t in
33805 "read_hook".
33806 (grub_file_read): Change the type of LEN to grub_size_t.
33807 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
33808 grub_off_t.
33809 (grub_file_size): Return grub_off_t.
33810 (grub_file_tell): Likewise.
33811 All callers and references changed.
33812
33813 * include/grub/disk.h (struct grub_disk_dev): Change the types of
33814 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
33815 "write".
33816 (struct grub_disk): Change the type of "total_sectors" to
33817 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
33818 "read_hook".
33819 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
33820 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
33821 (grub_disk_write): Likewise.
33822 All callers and references changed.
33823
33824 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
33825 char * for grub_strncmp to silence gcc.
33826 (grub_iso9660_mount): Likewise.
33827 (grub_iso9660_mount): Likewise.
33828 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
33829 return statement.
33830 (grub_iso9660_iterate_dir): Likewise.
33831 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
33832
33833 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
33834 LEN to grub_disk_addr_t and grub_size_t, respectively.
33835
33836 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
33837
33838 * fs/jfs.c (grub_jfs_read_file): Likewise.
33839
33840 * fs/minix.c (grub_jfs_read_file): Likewise.
33841
33842 * fs/sfs.c (grub_jfs_read_file): Likewise.
33843
33844 * fs/ufs.c (grub_jfs_read_file): Likewise.
33845
33846 * fs/xfs.c (grub_jfs_read_file): Likewise.
33847
33848 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
33849 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
33850 respectively.
33851
33852 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
33853 BLKNR to -1 instead of returning GRUB_ERRNO.
33854 (grub_ext2_read_file): Change the types of SECTOR and
33855 LEN to grub_disk_addr_t and grub_size_t, respectively.
33856
33857 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
33858 LEN to grub_disk_addr_t and grub_size_t, respectively.
33859
33860 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
33861 grub_file_read.
33862
33863 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
33864 string. Do not cast SECTOR explicitly.
33865
33866 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
33867 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
33868 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
33869 grub_disk_addr_t and grub_size_t, respectively. If the sector is
33870 over 2TB and LBA mode is not supported, raise an error.
33871 (get_safe_sectors): New function.
33872 (grub_biosdisk_read): Use get_safe_sectors.
33873 (grub_biosdisk_write): Likewise.
33874
33875 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
33876 (grub_efidisk_write): Likewise.
33877
33878 * disk/loopback.c (delete_loopback): Cosmetic changes.
33879 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
33880 correctly.
33881 (grub_loopback_open): Likewise.
33882 (grub_loopback_read): Likewise. Also, change the type of POS to
33883 grub_off_t, and fix the usage of grub_memset.
33884
33885 * commands/i386/pc/play.c: Include grub/machine/time.h.
33886
33887 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
33888 print FILE->SIZE.
33889
33890 * commands/configfile.c: Include grub/env.h.
33891
33892 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
33893 GRUB_ERRNO directly instead. Change the type of POS to
33894 grub_off_t. Follow the coding standard.
33895
33896 * commands/blocklist.c: Include grub/partition.h.
33897 (grub_cmd_blocklist): Return an error if the underlying device is
33898 not a disk. Take the starting sector of a partition into account,
33899 if a partition is used.
33900
33901 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
33902 a length field.
33903 (lba_mode): Support 64-bit addresses.
33904 (chs_mode): Likewise.
33905 (copy_buffer): Adapted to the new offsets of a length field and a
33906 segment field.
33907 (blocklist_default_start): Allocate 64-bit space.
33908
33909 * boot/i386/pc/boot.S (force_lba): Removed.
33910 (boot_drive): Moved to under KERNEL_SECTOR.
33911 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
33912 space.
33913 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
33914 is useless.
33915 (lba_mode): Refactored to support a 64-bit address. More size
33916 optimization.
33917 (setup_sectors): Likewise.
33918
33919 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
33920
33921 * DISTLIST: Added include/grub/i386/linux.h. Removed
33922 include/grub/i386/pc/linux.h
33923
33924 * configure.ac (AC_INIT): Bumped to 1.94.
33925
33926 * config.guess: Updated from gnulib.
33927 * config.sub: Likewise.
33928 * install-sh: Likewise.
33929 * mkinstalldirs: Likewise.
33930
33931 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
33932
33933 * conf/common.rmk (grub_modules_init.lst): Depended on
33934 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
33935 MODSRCFILES.
33936
33937 * genmk.rb (PModule::rule): Reverted the previous change.
33938
33939 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
33940
33941 * conf/common.rmk (grub_modules_init.lst): Depends on
33942 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
33943 that the target does not exist before producing.
33944 (grub_modules_init.h): Remove the target before generating.
33945 (grub_emu_init.c): Likewise.
33946
33947 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
33948
33949 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
33950
33951 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
33952 for the target-specific tests. Make sure that we also have the
33953 up-to-date target variables for those tests.
33954
33955 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
33956
33957 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
33958 (PModule::rule): Likewise.
33959
33960 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
33961
33962 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
33963 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
33964 target-specific flags should be prefixed.
33965 (PModule::rule): Likewise.
33966
33967 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
33968
33969 * configure.ac (CMP): Check if cmp is available explicitly.
33970
33971 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
33972
33973 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
33974 (target_cpu): New variable.
33975 (pkglibdir): Use target_cpu instead of host_cpu.
33976
33977 * util/i386/pc/grub-install.in (host_cpu): Removed.
33978 (target_cpu): New variable.
33979 (pkglibdir): Use target_cpu instead of host_cpu.
33980
33981 * util/genmoddep.c: Removed.
33982
33983 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
33984 instead of GRUB_HOST_SIZEOF_VOID_P.
33985 * kern/dl.c: Likewise.
33986
33987 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
33988 ...
33989 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
33990 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
33991 (GRUB_TARGET_SIZEOF_LONG): ... this.
33992 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
33993 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
33994 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
33995 to ...
33996 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
33997 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
33998 (GRUB_TARGET_SIZEOF_LONG): ... this.
33999 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34000 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34001 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
34002 to ...
34003 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34004 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34005 (GRUB_TARGET_SIZEOF_LONG): ... this.
34006 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34007 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34008
34009 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
34010 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
34011 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
34012 instead of GRUB_HOST_SIZEOF_LONG.
34013 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
34014 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
34015 GRUB_CPU_WORDS_BIGENDIAN.
34016 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
34017 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
34018 grub_host_ssize_t.
34019
34020 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
34021 (genmoddep_SOURCES): Likewise.
34022 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
34023 (genmoddep_SOURCES): Likewise.
34024 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
34025 (genmoddep_SOURCES): Likewise.
34026 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
34027 Likewise.
34028 (genmoddep_SOURCES): Likewise.
34029
34030 * genmoddep.awk: New file.
34031
34032 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
34033 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
34034 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
34035 (PModule::rule): Likewise.
34036 (Program::rule): Likewise.
34037 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
34038 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
34039 respectively.
34040
34041 * configure.ac: Rewritten intensively to use host and target
34042 instead of build and host, respectively.
34043
34044 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
34045 (host_cpu): Removed.
34046 (target_cpu): New variable.
34047 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
34048 (BUILD_CC): Removed.
34049 (BUILD_CFLAGS): Likewise.
34050 (BUILD_CPPFLAGS): Likewise.
34051 (TARGET_CC): New variable.
34052 (TARGET_CFLAGS): Likewise.
34053 (TARGET_CPPFLAGS): Likewise.
34054 (TARGET_LDFLAGS): Likewise.
34055 (AWK): Likewise.
34056 (include): Use target_cpu instead of host_cpu.
34057 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
34058
34059 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
34060
34061 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
34062
34063 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
34064 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
34065 field 'false' to 'exec_on_false'.
34066 (grub_script_create_cmdif): Renamed argument names to reflect above
34067 changes.
34068
34069 * normal/execute.c (grub_script_execute_cmdif): Likewise.
34070
34071 * normal/script.c (grub_script_create_cmdif): Likewise.
34072
34073 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
34074
34075 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
34076 top.
34077 (grub_hfsplus_btree_recptr): Likewise.
34078 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
34079 FILEBLOCK both to pass a block number and store next block
34080 number.
34081 (grub_hfsplus_read_block): Rewritten heavily to support an extent
34082 overflow file correctly. Specify errors appropriately, because
34083 fshelp expects that GRUB_ERRNO is set when fails. Reuse
34084 grub_hfsplus_btree_recptr to get the pointer to a found key.
34085 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
34086 is found.
34087
34088 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
34089 linux.mod.
34090 (_linux_mod_SOURCES): New variable.
34091 (_linux_mod_CFLAGS): Likewise.
34092 (_linux_mod_LDFLAGS): Likewise.
34093 (linux_mod_SOURCES): Likewise.
34094 (linux_mod_CFLAGS): Likewise.
34095 (linux_mod_LDFLAGS): Likewise.
34096
34097 * DISTLIST: Added loader/i386/efi/linux.c,
34098 loader/i386/efi/linux_normal.c and
34099 include/grub/i386/efi/loader.h.
34100
34101 * loader/i386/efi/linux.c: New file.
34102 * loader/i386/efi/linux_normal.c: Likewise.
34103 * include/grub/i386/efi/loader.h: Likewise.
34104
34105 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
34106
34107 * commands/blocklist.c: New file.
34108
34109 * DISTLIST: Added commands/blocklist.c.
34110
34111 * term/efi/console.c (grub_console_highlight_color): Use a lighter
34112 color for the background, and a darker color for the foreground.
34113 (grub_console_checkkey): Return READ_KEY.
34114 (grub_console_cls): Set the background to
34115 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
34116
34117 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
34118
34119 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
34120 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
34121
34122 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
34123 prototype.
34124
34125 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
34126 BG. The spec is wrong again.
34127
34128 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
34129 prototype.
34130 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
34131
34132 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34133 commands/blocklist.c.
34134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34135
34136 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
34137 (blocklist_mod_SOURCES): New variable.
34138 (blocklist_mod_CFLAGS): Likewise.
34139 (blocklist_mod_LDFLAGS): Likewise.
34140
34141 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
34142
34143 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
34144 duplication.
34145 (lba_mode): Use %eax more intensively to reduce the code size.
34146
34147 2006-05-20 Marco Gerards <marco@gnu.org>
34148
34149 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
34150
34151 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
34152 for `menuentry'.
34153 (script): Accept leading newlines.
34154 (newlines): New rule to describe 0 or more newlines.
34155 (commands): Accept `command' with trailing newline. Fixed the
34156 order in which arguments were passed to `grub_script_add_cmd'.
34157 Accept commands separated by newlines.
34158 (function): Changed to accept newlines.
34159 (menuentry) Rewritten.
34160
34161 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
34162 front of the list, instead of to the end.
34163
34164 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
34165
34166 * util/i386/pc/grub-install.in (bindir): New variable.
34167 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
34168 Shaver <lbgwjl@gmail.com>.
34169
34170 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
34171
34172 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
34173 grub/machine/linux.h
34174 * loader/i386/pc/linux.c: Likewise.
34175
34176 * include/grub/i386/pc/linux.h: Moved to ...
34177 * include/grub/i386/linux.h: ... here.
34178
34179 * include/grub/i386/linux.h (struct linux_kernel_params): New
34180 struct.
34181
34182 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
34183
34184 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
34185 checking.
34186 (grub_video_vbe_blit_glyph): Likewise.
34187 (grub_video_vbe_blit_bitmap): Likewise.
34188 (grub_video_vbe_blit_render_target): Likewise.
34189
34190 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
34191
34192 * configure.ac (--with-platform): Properly quote the square
34193 brackets.
34194
34195 2006-05-08 Marco Gerards <marco@gnu.org>
34196
34197 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
34198 this...
34199 (kernel_elf_HEADERS): ...to this. Updated all users.
34200 (grubof_symlist.c): Renamed from this...
34201 (kernel_elf_symlist.c): ...to this. Updated all users.
34202 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
34203 (grubof_SOURCES): Renamed from this...
34204 (kernel_elf_SOURCES): ...to this.
34205 (grubof_HEADERS): Renamed from this...
34206 (kernel_elf_HEADERS): ...to this.
34207 (grubof_CFLAGS): Renamed from this...
34208 (kernel_elf_CFLAGS): ...to this.
34209 (grubof_ASFLAGS): Renamed from this...
34210 (kernel_elf_ASFLAGS): ...to this.
34211 (grubof_LDFLAGS): Renamed from this...
34212 (kernel_elf_LDFLAGS): ...to this.
34213
34214 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
34215 this...
34216 (kernel_elf_HEADERS): ...to this. Updated all users.
34217 (grubof_symlist.c): Renamed from this...
34218 (kernel_elf_symlist.c): ...to this. Updated all users.
34219 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
34220 (grubof_SOURCES): Renamed from this...
34221 (kernel_elf_SOURCES): ...to this.
34222 (grubof_HEADERS): Renamed from this...
34223 (kernel_elf_HEADERS): ...to this.
34224 (grubof_CFLAGS): Renamed from this...
34225 (kernel_elf_CFLAGS): ...to this.
34226 (grubof_ASFLAGS): Renamed from this...
34227 (kernel_elf_ASFLAGS): ...to this.
34228 (grubof_LDFLAGS): Renamed from this...
34229 (kernel_elf_LDFLAGS): ...to this.
34230
34231 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
34232 `kernel.elf' instead of `grubof'.
34233
34234 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
34235
34236 Add --with-platform to configure. Use pkglibdir instead of
34237 pkgdatadir. This is reported by Roger Leigh.
34238
34239 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
34240 (host_vendor): Likewise.
34241 (host_os): Likewise.
34242 (pkgdatadir): Likewise.
34243 (platform): New variable.
34244 (pkglibdir): Likewise.
34245 Use PKGLIBDIR instead of PKGDATADIR.
34246
34247 * util/i386/pc/grub-install.in (datadir): Removed.
34248 (host_vendor): Likewise.
34249 (host_os): Likewise.
34250 (pkgdatadir): Likewise.
34251 (platform): New variable.
34252 (pkglibdir): Likewise.
34253 Use PKGLIBDIR instead of PKGDATADIR.
34254
34255 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
34256 instead of GRUB_DATADIR.
34257 (main): Likewise.
34258 * util/i386/pc/grub-mkimage.c (usage): Likewise.
34259 (main): Likewise.
34260 * util/i386/efi/grub-mkimage.c (usage): Likewise.
34261 (main): Likewise.
34262
34263 * configure.ac (--with-platform): New option.
34264 Use PLATFORM instead of HOST_VENDOR to specify a platform.
34265
34266 * Makefile.in: Include a makefile based on PLATFORM instead of
34267 HOST_VENDOR.
34268 (pkgdatadir): Not appended by the machine type.
34269 (pkglibdir): Appended by the machine type.
34270 (host_vendor): Removed.
34271 (platform): New variable.
34272 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
34273 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
34274 (uninstall): Likewise.
34275
34276 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
34277
34278 Use the environment context in the menu. Remove the commands
34279 "default" and "timeout", and use variables instead.
34280
34281 * normal/menu.c: Include grub/env.h.
34282 (print_entry): Cast TITLE to silence gcc.
34283 (get_timeout): New function.
34284 (set_timeout): Likewise.
34285 (get_entry_number): Likewise.
34286 (run_menu): Use a default entry, a fallback entry and a timeout
34287 in the environment variables "default", "fallback" and
34288 "timeout". Also, tweak the default entry if it is not within the
34289 current menu entries.
34290 (grub_menu_run): Use a fallback entry in the environment variable
34291 "fallback".
34292
34293 * normal/main.c (read_config_file): Do not initialize
34294 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
34295 NEWMENU->TIMEOUT.
34296 (grub_normal_execute): Use a data slot to store the menu.
34297
34298 * include/grub/normal.h (struct grub_menu): Removed default_entry,
34299 fallback_entry and timeout.
34300 (struct grub_menu_list): Removed.
34301 (grub_menu_list_t): Likewise.
34302 (struct grub_context): Likewise.
34303 (grub_context_t): Likewise.
34304 (grub_context_get): Likewise.
34305 (grub_context_get_current_menu): Likewise.
34306 (grub_context_push_menu): Likewise.
34307 (grub_context_pop_menu): Likewise.
34308 (grub_default_init): Likewise.
34309 (grub_default_fini): Likewise.
34310 (grub_timeout_init): Likewise.
34311 (grub_timeout_fini): Likewise.
34312
34313 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
34314 and timeout.mod.
34315 (normal_mod_SOURCES): Removed normal/context.c.
34316
34317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
34318 commands/default.c, commands/timeout.c and normal/context.c.
34319 (normal_mod_SOURCES): Removed normal/context.c.
34320
34321 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
34322 commands/timeout.c and normal/context.c.
34323 (normal_mod_SOURCES): Removed normal/context.c.
34324
34325 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
34326 commands/default.c, commands/timeout.c and normal/context.c.
34327 (normal_mod_SOURCES): Removed normal/context.c.
34328
34329 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
34330 timeout.mod.
34331 (default_mod_SOURCES): Removed.
34332 (default_mod_CFLAGS): Likewise.
34333 (default_mod_LDFLAGS): Likewise.
34334 (timeout_mod_SOURCES): Removed.
34335 (timeout_mod_CFLAGS): Likewise.
34336 (timeout_mod_LDFLAGS): Likewise.
34337
34338 * DISTLIST: Removed commands/default.c, commands/timeout.c and
34339 normal/context.c.
34340
34341 * commands/default.c: Removed.
34342 * commands/timeout.c: Likewise.
34343 * normal/context.c: Likewise.
34344
34345 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
34346
34347 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
34348
34349 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
34350
34351 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
34352 "next" to "prev" for readability.
34353 (struct grub_env_sorted_var): New struct.
34354 (grub_env_context): Renamed to ...
34355 (initial_context): ... this.
34356 (grub_env_var_context): Renamed to ...
34357 (current_context): ... this.
34358 (grub_env_find): Look only at CURRENT_CONTEXT.
34359 (grub_env_context_open): Rewritten to copy exported variables from
34360 previous context.
34361 (grub_env_context_close): Rewritten according to the new
34362 scheme. Also, add an assertion to prevent the initial context from
34363 removed.
34364 (grub_env_insert): Removed the code for the sorted list.
34365 (grub_env_remove): Likewise.
34366 (grub_env_export): Simply mark the variable with
34367 GRUB_ENV_VAR_GLOBAL.
34368 (grub_env_set): A cosmetic change for naming consistency.
34369 (grub_env_get): Likewise.
34370 (grub_env_unset): Likewise.
34371 (grub_env_iterate): Rewritten to sort variables within this
34372 function.
34373 (grub_register_variable_hook): Fixed for naming consistency. Call
34374 grub_env_find again, only if NAME is not found at the first time.
34375 (mangle_data_slot_name): New function.
34376 (grub_env_set_data_slot): Likewise.
34377 (grub_env_get_data_slot): Likewise.
34378 (grub_env_unset_data_slot): Likewise.
34379
34380 * include/grub/env.h (grub_env_var_type): New enum.
34381 (GRUB_ENV_VAR_LOCAL): New constant.
34382 (GRUB_ENV_VAR_GLOBAL): Likewise.
34383 (GRUB_ENV_VAR_DATA): Likewise.
34384 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
34385 "type".
34386 (grub_env_set): Replace VAR with NAME for consistency.
34387 (grub_register_variable_hook): Likewise.
34388 (grub_env_export): Specify the name of the argument.
34389 (grub_env_set_data_slot): New prototype.
34390 (grub_env_get_data_slot): Likewise.
34391 (grub_env_unset_data_slot): Likewise.
34392
34393 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
34394
34395 Extend the loader so that GRUB can accept a loader which comes
34396 back to GRUB when a loaded image exits. Also, this change adds
34397 support for a chainloader on EFI.
34398
34399 * term/efi/console.c: Include grub/misc.h.
34400 (grub_console_checkkey): Display a scan code on the top for
34401 debugging. This will be removed once the EFI port gets stable.
34402 Correct the scan code mapping.
34403
34404 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
34405 allocate memory from larger regions, in order to reduce the number
34406 of allocated regions. Otherwise, the MacOSX loader panics.
34407 (filter_memory_map): Avoid less than 1MB for compatibility with
34408 other loaders.
34409 (add_memory_regions): Allocate from the tail of a region, if
34410 possible, to avoid allocating a region near to 1MB, for the MacOSX
34411 loader.
34412
34413 * kern/efi/init.c (grub_efi_set_prefix): Specify
34414 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
34415
34416 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
34417 argument IMAGE_HANDLE and specify it to get a loaded image.
34418 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
34419 grub_efi_get_loaded_image.
34420 (grub_efi_get_filename): Divide the length by the size of
34421 grub_efi_char16_t.
34422 (grub_efi_get_device_path): New function.
34423 (grub_efi_print_device_path): Print End Device Path nodes. Divide
34424 the length by the size of grub_efi_char16_t for a file path device
34425 path node.
34426
34427 * kern/loader.c (grub_loader_noreturn): New variable.
34428 (grub_loader_set): Accept a new argument NORETURN. Set
34429 GRUB_LOADER_NORETURN to NORETURN.
34430 All callers changed.
34431 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
34432 grub_machine_fini.
34433
34434 * include/grub/efi/efi.h (grub_efi_get_device_path): New
34435 prototype.
34436 (grub_efi_get_loaded_image): Take an argument to specify an image
34437 handle.
34438
34439 * include/grub/loader.h (grub_loader_set): Added one more argument
34440 NORETURN.
34441
34442 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
34443 instead of grub_efi_open_protocol.
34444 (grub_efidisk_get_device_name): Likewise.
34445 (grub_efidisk_close): Print a newline.
34446 (grub_efidisk_get_device_handle): Fixed to use
34447 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
34448 GRUB_EFI_DEVICE_PATH_TYPE.
34449
34450 * disk/efi/efidisk.c (device_path_guid): Moved to ...
34451 * kern/efi/efi.c (device_path_guid): ... here.
34452
34453 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
34454 chain.mod.
34455 (kernel_mod_HEADERS): Added efi/disk.h.
34456 (_chain_mod_SOURCES): New variable.
34457 (_chain_mod_CFLAGS): Likewise.
34458 (_chain_mod_LDFLAGS): Likewise.
34459 (chain_mod_SOURCES): Likewise.
34460 (chain_mod_CFLAGS): Likewise.
34461 (chain_mod_LDFLAGS): Likewise.
34462
34463 * DISTLIST: Added include/grub/efi/chainloader.h,
34464 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
34465
34466 * include/grub/efi/chainloader.h: New file.
34467 * loader/efi/chainloader.c: Likewise.
34468 * loader/efi/chainloader_normal.c: Likewise.
34469
34470 2006-04-30 Marco Gerards <marco@gnu.org>
34471
34472 * commands/configfile.c (grub_cmd_source): New function.
34473 (GRUB_MOD_INIT): Register the commands `source' and `.'.
34474 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
34475
34476 2006-04-30 Marco Gerards <marco@gnu.org>
34477
34478 * normal/execute.c (grub_script_execute_cmd): Change the return
34479 type to `grub_err_t'. Correctly return the error.
34480 (grub_script_execute_cmdline): In case a command line is not a
34481 command or a function, try to interpret it as an assignment.
34482
34483 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
34484
34485 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
34486 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
34487 skip a node whose name is obviously invalid as UTF-16,
34488 i.e. contains a NUL character. Stop the iteration when the last
34489 directory entry is found. Instead of using the return value of
34490 grub_hfsplus_btree_iterate_node, store the value in RET and use
34491 it, because the iterator can be stopped by the last directory
34492 entry.
34493
34494 2006-04-30 Marco Gerards <marco@gnu.org>
34495
34496 * include/grub/env.h (grub_env_export): New prototype. Reported
34497 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
34498
34499 2006-04-30 Marco Gerards <marco@gnu.org>
34500
34501 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
34502 size of the extents in a catalog file record.
34503
34504 2006-04-29 Marco Gerards <marco@gnu.org>
34505
34506 * commands/configfile.c (grub_cmd_configfile): Execute the
34507 configfile within its own context.
34508
34509 * include/grub/env.h (grub_env_context_open): New prototype.
34510 (grub_env_context_close): Likewise.
34511
34512 * kern/env.c (grub_env): Removed.
34513 (grub_env_sorted): Likewise.
34514 (grub_env_context): New variable.
34515 (grub_env_var_context): Likewise.
34516 (grub_env_find): Search both the active context and the global
34517 context.
34518 (grub_env_context_open): New function.
34519 (grub_env_context_close): Likewise.
34520 (grub_env_insert): Likewise.
34521 (grub_env_remove): Likewise.
34522 (grub_env_export): Likewise.
34523 (grub_env_set): Changed to use helper functions to avoid code
34524 duplication.
34525 (grub_env_iterate): Rewritten so both the current context and the
34526 global context are being used.
34527
34528 * normal/command.c (export_command): New function.
34529 (grub_command_init): Register the `export' function.
34530
34531 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
34532
34533 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
34534 explicitly to suppress gcc's warnings.
34535 * fs/fat.c (grub_fat_find_dir): Likewise.
34536 (grub_fat_label): Likewise.
34537 * fs/xfs.c (grub_xfs_read_inode): Likewise.
34538 (grub_xfs_mount): Likewise.
34539 (grub_xfs_label): Likewise.
34540 * fs/affs.c (grub_affs_mount): Likewise.
34541 (grub_affs_label): Likewise.
34542 (grub_affs_iterate_dir): Likewise.
34543 * fs/sfs.c (grub_sfs_mount): Likewise.
34544 (grub_sfs_iterate_dir): Likewise.
34545 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
34546 * fs/hfs.c (grub_hfs_mount): Likewise.
34547 (grub_hfs_cmp_catkeys): Likewise.
34548 (grub_hfs_find_dir): Likewise.
34549 (grub_hfs_dir): Likewise.
34550 (grub_hfs_label): Likewise.
34551 * fs/jfs.c (grub_jfs_mount): Likewise.
34552 (grub_jfs_opendir): Likewise.
34553 (grub_jfs_getent): Likewise.
34554 (grub_jfs_lookup_symlink): Likewise.
34555 (grub_jfs_label): Likewise.
34556 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
34557 (grub_hfsplus_iterate_dir): Likewise.
34558 (grub_hfsplus_btree_iterate_node): Made static.
34559
34560 * util/grub-emu.c (prefix): New variable.
34561 (grub_machine_set_prefix): New function.
34562 (main): Do not set the environment variable "prefix" here. Only
34563 set PREFIX, which is used later by grub_machine_set_prefix.
34564
34565 * include/grub/video.h: Do not include grub/symbol.h.
34566 (grub_video_register): Not exported. This symbol is not defined in
34567 the kernel.
34568 (grub_video_unregister): Likewise.
34569 (grub_video_iterate): Likewise.
34570 (grub_video_setup): Likewise.
34571 (grub_video_restore): Likewise.
34572 (grub_video_get_info): Likewise.
34573 (grub_video_get_blit_format): Likewise.
34574 (grub_video_set_palette): Likewise.
34575 (grub_video_get_palette): Likewise.
34576 (grub_video_set_viewport): Likewise.
34577 (grub_video_get_viewport): Likewise.
34578 (grub_video_map_color): Likewise.
34579 (grub_video_map_rgb): Likewise.
34580 (grub_video_map_rgba): Likewise.
34581 (grub_video_fill_rect): Likewise.
34582 (grub_video_blit_glyph): Likewise.
34583 (grub_video_blit_bitmap): Likewise.
34584 (grub_video_blit_render_target): Likewise.
34585 (grub_video_scroll): Likewise.
34586 (grub_video_swap_buffers): Likewise.
34587 (grub_video_create_render_target): Likewise.
34588 (grub_video_delete_render_target): Likewise.
34589 (grub_video_set_active_render_target): Likewise.
34590
34591 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
34592 Undefined.
34593 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
34594
34595 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
34596 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
34597 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
34598 instead of $(srcdir)/genkernsyms.sh.
34599
34600 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
34601 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
34602 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
34603 instead of $(srcdir)/genkernsyms.sh.
34604
34605 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
34606 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
34607 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
34608 instead of $(srcdir)/genkernsyms.sh.
34609
34610 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
34611 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
34612 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
34613 instead of $(srcdir)/genkernsyms.sh.
34614
34615 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
34616 genkernsyms.sh.
34617
34618 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
34619 genkernsyms.sh.
34620 (gensymlist.sh): New target.
34621 (genkernsyms.sh): Likewise.
34622
34623 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
34624 genkernsyms.sh.in and gensymlist.sh.in.
34625
34626 * genkernsyms.sh: Removed.
34627 * gensymlist.sh: Likewise.
34628
34629 * genkernsyms.sh.in: New file.
34630 * gensymlist.sh.in: Likewise.
34631
34632 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
34633
34634 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
34635 clobber "prefix", since we may have already set it manually.
34636
34637 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
34638
34639 * kern/misc.c (abort): New alias for grub_abort.
34640
34641 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
34642
34643 A new machine-specific function "grub_machine_set_prefix" is
34644 defined. This is called after loading modules, so that a prefix
34645 initialization can use modules. Also, this change adds an
34646 intensive debugging feature for the memory manager via the
34647 configure option "--enable-mm-debug".
34648
34649 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
34650 PART.LEN.
34651
34652 * kern/sparc64/ieee1275/init.c (abort): Removed.
34653 (grub_stop): Likewise.
34654 (grub_exit): New function.
34655 (grub_set_prefix): Renamed to ...
34656 (grub_machine_set_prefix): ... this.
34657 (grub_machine_init): Do not call grub_set_prefix.
34658
34659 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
34660 (grub_machine_set_prefix): ... this.
34661 (grub_machine_init): Do not call grub_set_prefix.
34662
34663 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
34664 (grub_machine_init): Do not set the prefix here.
34665
34666 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
34667
34668 * kern/efi/init.c: Include grub/mm.h.
34669 (grub_efi_set_prefix): New function.
34670
34671 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
34672 (grub_efi_get_filename): New function.
34673 (grub_print_device_path): Renamed to ...
34674 (grub_efi_print_device_path): ... this.
34675
34676 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
34677 [MM_DEBUG] (grub_realloc): Likewise.
34678 [MM_DEBUG] (grub_free): Likewise.
34679 [MM_DEBUG] (grub_memalign): Likewise.
34680 [MM_DEBUG] (grub_mm_debug): New variable.
34681 [MM_DEBUG] (grub_debug_malloc): New function.
34682 [MM_DEBUG] (grub_debug_free): New function.
34683 [MM_DEBUG] (grub_debug_realloc): New function.
34684 [MM_DEBUG] (grub_debug_memalign): New function.
34685
34686 * kern/misc.c (grub_abort): Print a newline to distinguish
34687 the message.
34688
34689 * kern/main.c (grub_main): Call grub_machine_set_prefix and
34690 grub_set_root_dev after loading modules. This is necessary when
34691 setting a prefix depends on modules.
34692
34693 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
34694 (grub_efi_print_device_path): ... this.
34695 (grub_efi_get_filename): New prototype.
34696 (grub_efi_set_prefix): Likewise.
34697
34698 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
34699 and grub/disk.h.
34700 (grub_efidisk_get_device_handle): New prototype.
34701 (grub_efidisk_get_device_name): Likewise.
34702
34703 * include/grub/mm.h: Include config.h.
34704 (MM_DEBUG): Removed.
34705 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
34706 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
34707 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
34708 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
34709 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
34710 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
34711 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
34712 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
34713 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
34714
34715 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
34716
34717 * disk/efi/efidisk.c: Include grub/partition.h.
34718 (iterate_child_devices): New function.
34719 (add_device): First, compare only last device path nodes, so that
34720 devices are sorted by the types.
34721 (grub_efidisk_get_device_handle): New function.
34722 (grub_efidisk_get_device_name): Likewise.
34723
34724 * configure.ac (--enable-mm-debug): New option to enable the
34725 memory manager debugging feature. This makes the binary much
34726 bigger, so is disabled by default.
34727
34728 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
34729
34730 Use grub_abort instead of grub_stop, and grub_exit must be
34731 define in each architecture now. Also, this change adds support
34732 for EFI disks.
34733
34734 * util/i386/pc/grub-probefs.c: Include grub/term.h.
34735 (grub_getkey): New function.
34736 (grub_term_get_current): Likewise.
34737
34738 * util/i386/pc/grub-setup.c: Include grub/term.h.
34739 (grub_getkey): New function.
34740 (grub_term_get_current): Likewise.
34741
34742 * util/misc.c (grub_stop): Renamed to ...
34743 (grub_exit): ... this.
34744
34745 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
34746 (grub_exit): ... this.
34747 (grub_machine_init): Use grub_abort instead of abort.
34748 (grub_stop): Removed.
34749
34750 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
34751 abort.
34752
34753 * kern/i386/pc/startup.S (grub_exit): New function.
34754 (cold_reboot): New label.
34755
34756 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
34757 (grub_efi_init): Call grub_efidisk_init.
34758 (grub_efi_fini): Call grub_efidisk_fini.
34759
34760 * kern/efi/efi.c: Include grub/mm.h.
34761 (grub_efi_console_control_guid): Renamed to ...
34762 (console_control_guid): ... this.
34763 (grub_efi_loaded_image_guid): Renamed to ...
34764 (loaded_image_guid): ... this.
34765 (grub_efi_locate_handle): New function.
34766 (grub_efi_open_protocol): Likewise.
34767 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
34768 GRUB_EFI_CONSOLE_CONTROL_GUID.
34769 (grub_efi_exit): Removed.
34770 (grub_stop): Likewise.
34771 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
34772 (grub_exit): New function.
34773 (grub_print_device_path): Likewise.
34774
34775 * kern/rescue.c (grub_rescue_cmd_exit): New function.
34776 (grub_enter_rescue_mode): Register "exit".
34777
34778 * kern/misc.c (grub_real_dprintf): A cosmetic change.
34779 (grub_abort): New function.
34780
34781 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
34782
34783 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
34784
34785 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
34786
34787 * include/grub/efi/efi.h (grub_efi_exit): Removed.
34788 (grub_print_device_path): New prototype.
34789 (grub_efi_locate_handle): Likewise.
34790 (grub_efi_open_protocol): Likewise.
34791
34792 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
34793 * disk/efi/efidisk.c: Likewise.
34794
34795 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
34796
34797 * include/grub/efi/console_control.h
34798 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
34799
34800 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
34801 last 8 bytes as an array.
34802 (GRUB_EFI_DISK_IO_GUID): New macro.
34803 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
34804 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
34805 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
34806 grub_uint8_t.
34807 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
34808 (struct grub_efi_device_path): Rename the member "sub_type" to
34809 "subtype".
34810 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
34811 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
34812 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
34813 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
34814 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
34815 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
34816 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
34817 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
34818 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
34819 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
34820 (struct grub_efi_pci_device_path): New structure.
34821 (grub_efi_pci_device_path_t): New type.
34822 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
34823 (struct grub_efi_pccard_device_path): New structure.
34824 (grub_efi_pccard_device_path_t): New type.
34825 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
34826 (struct grub_efi_memory_mapped_device_path): New structure.
34827 (grub_efi_memory_mapped_device_path_t): New type.
34828 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
34829 (struct grub_efi_vendor_device_path): New structure.
34830 (grub_efi_vendor_device_path_t): New type.
34831 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
34832 (struct grub_efi_controller_device_path): New structure.
34833 (grub_efi_controller_device_path_t): New type.
34834 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
34835 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
34836 (struct grub_efi_acpi_device_path): New structure.
34837 (grub_efi_acpi_device_path_t): New type.
34838 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
34839 (struct grub_efi_expanded_acpi_device_path): New structure.
34840 (grub_efi_expanded_acpi_device_path_t): New type.
34841 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
34842 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
34843 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
34844 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
34845 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
34846 (struct grub_efi_atapi_device_path): New structure.
34847 (grub_efi_atapi_device_path_t): New type.
34848 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
34849 (struct grub_efi_fibre_channel_device_path): New structure.
34850 (grub_efi_fibre_channel_device_path_t): New type.
34851 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
34852 (struct grub_efi_1394_device_path): New structure.
34853 (grub_efi_1394_device_path_t): New type.
34854 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
34855 (struct grub_efi_usb_device_path): New structure.
34856 (grub_efi_usb_device_path_t): New type.
34857 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
34858 (struct grub_efi_usb_class_device_path): New structure.
34859 (grub_efi_usb_class_device_path_t): New type.
34860 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
34861 (struct grub_efi_i2o_device_path): New structure.
34862 (grub_efi_i2o_device_path_t): New type.
34863 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
34864 (struct grub_efi_mac_address_device_path): New structure.
34865 (grub_efi_mac_address_device_path_t): New type.
34866 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
34867 (struct grub_efi_ipv4_device_path): New structure.
34868 (grub_efi_ipv4_device_path_t): New type.
34869 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
34870 (struct grub_efi_ipv6_device_path): New structure.
34871 (grub_efi_ipv6_device_path_t): New type.
34872 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
34873 (struct grub_efi_infiniband_device_path): New structure.
34874 (grub_efi_infiniband_device_path_t): New type.
34875 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
34876 (struct grub_efi_uart_device_path): New structure.
34877 (grub_efi_uart_device_path_t): New type.
34878 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
34879 (struct grub_efi_vendor_messaging_device_path): New structure.
34880 (grub_efi_vendor_messaging_device_path_t): New type.
34881 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
34882 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
34883 (struct grub_efi_hard_drive_device_path): New structure.
34884 (grub_efi_hard_drive_device_path_t): New type.
34885 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
34886 (struct grub_efi_cdrom_device_path): New structure.
34887 (grub_efi_cdrom_device_path_t): New type.
34888 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
34889 (struct grub_efi_vendor_media_device_path): New structure.
34890 (grub_efi_vendor_media_device_path_t): New type.
34891 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
34892 (struct grub_efi_file_path_device_path): New structure.
34893 (grub_efi_file_path_device_path_t): New type.
34894 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
34895 (struct grub_efi_protocol_device_path): New structure.
34896 (grub_efi_protocol_device_path_t): New type.
34897 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
34898 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
34899 (struct grub_efi_bios_device_path): New structure.
34900 (grub_efi_bios_device_path_t): New type.
34901 (struct grub_efi_disk_io): New structure.
34902 (grub_efi_disk_io_t): New type.
34903 (struct grub_efi_block_io_media): New structure.
34904 (grub_efi_block_io_media_t): New type.
34905 (struct grub_efi_block_io): New structure.
34906 (grub_efi_block_io_t): New type.
34907
34908 * include/grub/misc.h (grub_stop): Removed.
34909 (grub_exit): New prototype.
34910 (grub_abort): Likewise.
34911
34912 * include/grub/disk.h (enum grub_disk_dev_id): Added
34913 GRUB_DISK_DEVICE_EFIDISK_ID.
34914
34915 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
34916 disk/efi/efidisk.c.
34917 (kernel_syms.lst): Remove the target if an error occurs.
34918
34919 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
34920
34921 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
34922 as it was simply too buggy.
34923
34924 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
34925
34926 * kern/misc.c (grub_lltoa): New function.
34927 (grub_vsprintf): Added support for the long long suffix,
34928 i.e. "ll".
34929
34930 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
34931
34932 * Makefile.in (LDFLAGS): Add variable.
34933 (LD): Remove variable.
34934 * configure.ac: Add -m32 to LDFLAGS.
34935 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
34936 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
34937 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
34938 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
34939 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
34940 variables.
34941 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
34942 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
34943 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
34944
34945 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
34946
34947 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
34948 length for unknown glyph.
34949
34950 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
34951
34952 Add support for pre-loaded modules into the EFI port.
34953
34954 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
34955 completely. Accept one more argument DIR. The caller has changed.
34956
34957 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
34958
34959 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
34960 (grub_efi_loaded_image_guid): New variable.
34961 (grub_efi_get_loaded_image): New function.
34962 (grub_arch_modules_addr): Likewise.
34963
34964 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
34965 prototype.
34966
34967 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
34968 (struct grub_efi_loaded_image): New structure.
34969 (grub_efi_loaded_image_t): New type.
34970
34971 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
34972
34973 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
34974 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
34975 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
34976
34977 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
34978
34979 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
34980
34981 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
34982
34983 * DISTLIST: Added include/grub/efi/console.h,
34984 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
34985 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
34986
34987 * include/grub/efi/console.h: New file.
34988 * include/grub/efi/time.h: Likewise.
34989 * include/grub/i386/efi/kernel.h: Likewise.
34990 * kern/efi/init.c: Likewise.
34991 * kern/efi/mm.c: Likewise.
34992 * term/efi/console.c: Likewise.
34993
34994 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
34995 (grub_stop): Removed.
34996 (grub_get_rtc): Likewise.
34997 (grub_machine_init): Simply call grub_efi_init.
34998 (grub_machine_fini): Call grub_efi_fini.
34999
35000 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
35001 (grub_efi_output_string): Removed.
35002 (grub_efi_stall): New function.
35003 (grub_stop): Likewise.
35004 (grub_get_rtc): Likewise.
35005
35006 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
35007 (grub_efi_stall): New prototype.
35008 (grub_efi_allocate_pages): Likewise.
35009 (grub_efi_free_pages): Likewise.
35010 (grub_efi_get_memory_map): Likewise.
35011 (grub_efi_mm_init): Likewise.
35012 (grub_efi_mm_fini): Likewise.
35013 (grub_efi_init): Likewise.
35014 (grub_efi_fini): Likewise.
35015
35016 * include/grub/i386/efi/time.h: Do not include
35017 grub/symbol.h. Include grub/efi/time.h.
35018 (GRUB_TICKS_PER_SECOND): Removed.
35019 (grub_get_rtc): Likewise.
35020
35021 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
35022 Added padding. The EFI spec is buggy.
35023 (GRUB_EFI_BLACK): New macro.
35024 (GRUB_EFI_BLUE): Likewise.
35025 (GRUB_EFI_GREEN): Likewise.
35026 (GRUB_EFI_CYAN): Likewise.
35027 (GRUB_EFI_RED): Likewise.
35028 (GRUB_EFI_MAGENTA): Likewise.
35029 (GRUB_EFI_BROWN): Likewise.
35030 (GRUB_EFI_LIGHTGRAY): Likewise.
35031 (GRUB_EFI_BRIGHT): Likewise.
35032 (GRUB_EFI_DARKGRAY): Likewise.
35033 (GRUB_EFI_LIGHTBLUE): Likewise.
35034 (GRUB_EFI_LIGHTGREEN): Likewise.
35035 (GRUB_EFI_LIGHTCYAN): Likewise.
35036 (GRUB_EFI_LIGHTRED): Likewise.
35037 (GRUB_EFI_LIGHTMAGENTA): Likewise.
35038 (GRUB_EFI_YELLOW): Likewise.
35039 (GRUB_EFI_WHITE): Likewise.
35040 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
35041 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
35042 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
35043 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
35044 (GRUB_EFI_BACKGROUND_RED): Likewise.
35045 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
35046 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
35047 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
35048 (GRUB_EFI_TEXT_ATTR): Likewise.
35049
35050 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
35051 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
35052 (kernel_mod_HEADERS): Added efi/time.h.
35053
35054 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
35055
35056 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
35057 include/grub/efi/api.h, include/grub/efi/console_control.h,
35058 include/grub/efi/efi.h, include/grub/efi/pe32.h,
35059 include/grub/i386/efi/time.h, kern/efi/efi.c,
35060 kern/i386/efi/init.c, kern/i386/efi/startup.S,
35061 and util/i386/efi/grub-mkimage.c.
35062
35063 * Makefile.in (RMKFILES): Added i386-efi.rmk.
35064
35065 * genmk.rb (PModule#rule): Do not export symbols if
35066 #{prefix}_EXPORTS is set to "no".
35067
35068 * conf/i386-efi.mk: New file.
35069 * conf/i386-efi.rmk: Likewise.
35070 * include/grub/efi/api.h: Likewise.
35071 * include/grub/efi/console_control.h: Likewise.
35072 * include/grub/efi/efi.h: Likewise.
35073 * include/grub/efi/pe32.h: Likewise.
35074 * include/grub/i386/efi/time.h: Likewise.
35075 * kern/efi/efi.c: Likewise.
35076 * kern/i386/efi/init.c: Likewise.
35077 * kern/i386/efi/startup.S: Likewise.
35078 * util/i386/efi/grub-mkimage.c: Likewise.
35079
35080 2006-04-17 Marco Gerards <marco@gnu.org>
35081
35082 * include/grub/script.h: Include <grub/parser.h> and
35083 "grub_script.tab.h".
35084 (struct grub_lexer_param): New struct.
35085 (struct grub_parser_param): Likewise.
35086 (grub_script_create_arglist): Pass the state in an argument.
35087 (grub_script_add_arglist): Likewise.
35088 (grub_script_create_cmdline): Likewise.
35089 (grub_script_create_cmdblock): Likewise.
35090 (grub_script_create_cmdif): Likewise.
35091 (grub_script_create_cmdmenu): Likewise.
35092 (grub_script_add_cmd): Likewise.
35093 (grub_script_arg_add): Likewise.
35094 (grub_script_lexer_ref): Likewise.
35095 (grub_script_lexer_deref): Likewise.
35096 (grub_script_lexer_record_start): Likewise.
35097 (grub_script_lexer_record_stop): Likewise.
35098 (grub_script_mem_record): Likewise.
35099 (grub_script_mem_record_stop): Likewise.
35100 (grub_script_malloc): Likewise.
35101 (grub_script_yylex): Likewise.
35102 (grub_script_yyparse): Likewise.
35103 (grub_script_yyerror): Likewise.
35104 (grub_script_yylex): Likewise.
35105 (grub_script_lexer_init): Return the state.
35106
35107 * normal/lexer.c (grub_script_lexer_state): Removed variable.
35108 (grub_script_lexer_done): Likewise.
35109 (grub_script_lexer_getline): Likewise.
35110 (grub_script_lexer_refs): Likewise.
35111 (script): Likewise.
35112 (newscript): Likewise.
35113 (record): Likewise.
35114 (recording): Likewise.
35115 (recordpos): Likewise.
35116 (recordlen): Likewise.
35117 (grub_script_lexer_init): Return the state instead of setting
35118 global variables.
35119 (grub_script_lexer_ref): Use the newly added argument for state
35120 instead of globals.
35121 (grub_script_lexer_deref): Likewise.
35122 (grub_script_lexer_record_start): Likewise.
35123 (grub_script_lexer_record_stop): Likewise.
35124 (recordchar): Likewise.
35125 (nextchar): Likewise.
35126 (grub_script_yylex2): Likewise.
35127 (grub_script_yylex): Likewise.
35128 (grub_script_yyerror): Likewise.
35129
35130 * normal/parser.y (func_mem): Removed variable.
35131 (menu_entry): Likewise.
35132 (err): Likewise.
35133 (%lex-param): New parser option.
35134 (%parse-param): Likewise.
35135 (script): Always return the AST.
35136 (argument): Pass the state around.
35137 (arguments): Likewise.
35138 (grubcmd): Likewise.
35139 (commands): Likewise.
35140 (function): Likewise.
35141 (menuentry): Likewise.
35142 (if_statement): Likewise.
35143 (if): Likewise.
35144
35145 * normal/script.c (grub_script_memused): Removed variable.
35146 (grub_script_parsed): Likewise.
35147 (grub_script_malloc): Added a state argument. Use that instead of
35148 global variables.
35149 (grub_script_mem_record): Likewise.
35150 (grub_script_mem_record_stop): Likewise.
35151 (grub_script_arg_add): Likewise.
35152 (grub_script_add_arglist): Likewise.
35153 (grub_script_create_cmdline): Likewise.
35154 (grub_script_create_cmdif): Likewise.
35155 (grub_script_create_cmdmenu): Likewise.
35156 (grub_script_add_cmd): Likewise.
35157 (grub_script_parse): Setup the state before calling the parser.
35158
35159 2006-04-16 Marco Gerards <marco@gnu.org>
35160
35161 * normal/command.c (grub_command_init): Remove the title command.
35162
35163 * normal/lexer.c (grub_script_yylex): Renamed from this...
35164 (grub_script_yylex2): ... to this.
35165 (grub_script_yylex): New function. Temporary
35166 introduced to filter some tokens.
35167 (grub_script_yyerror): Print a newline.
35168
35169 * normal/main.c (read_config_file): Output information about the
35170 lines that contain errors. Wait for a key after all lines have
35171 been processed. Don't return an empty menu.
35172
35173 * normal/parser.y (func_mem): Don't initialize.
35174 (menu_entry): Likewise.
35175 (err): New variable.
35176 (script): Don't return anything when an error was encountered.
35177 (ws, returns): Removed rules.
35178 (argument): Disabled concatenated variable support.
35179 (arguments): Remove explicit separators.
35180 (grubcmd): Likewise.
35181 (function): Likewise.
35182 (menuentry): Likewise.
35183 (if): Likewise.
35184 (commands): Likewise. Add error handling.
35185
35186 * normal/script.c (grub_script_create_cmdline): If
35187 `grub_script_parsed' is 0, assume the parser encountered an error.
35188
35189 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
35190
35191 * configure.ac: Add support for EFI. Fix the typo
35192 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
35193
35194 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
35195
35196 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
35197 foreign multibyte characters should be shown correctly.
35198
35199 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
35200
35201 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
35202 calculation.
35203 (read_config_file): Made it to close file before returning.
35204
35205 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
35206
35207 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
35208 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
35209 video/i386/pc/vbefill.c.
35210
35211 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
35212 video/i386/pc/vbefill.c.
35213
35214 * include/grub/video.h (grub_video_blit_format): New enum.
35215 (grub_video_mode_info): Added new member blit_format.
35216 (grub_video_get_blit_format): New function prototype.
35217
35218 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
35219 function prototype.
35220 (grub_video_vbe_map_rgb): Likewise.
35221 (grub_video_vbe_unmap_color): Likewise.
35222
35223 * include/grub/i386/pc/vbeblit.h: New file.
35224
35225 * include/grub/i386/pc/vbefill.h: New file.
35226
35227 * video/video.c (grub_video_get_blit_format): New function.
35228 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
35229 (grub_video_vbe_map_rgb): Likewise.
35230 (grub_video_vbe_unmap_color): Likewise.
35231
35232 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
35233 optimized fills.
35234 (grub_video_vbe_blit_render_target): Changed to use more optimized
35235 blits.
35236 (grub_video_vbe_setup): Added detection for optimized settings.
35237 (grub_video_vbe_create_render_target): Likewise.
35238
35239 * video/i386/pc/vbeblit.c: New file.
35240
35241 * video/i386/pc/vbefill.c: New file.
35242
35243 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
35244
35245 * font/manager.c (grub_font_get_glyph): Removed font fixup from
35246 here...
35247
35248 * util/unifont2pff.rb: ... and moved it to here. Improved argument
35249 parsing to support both hex and dec ranges. If filename was missing
35250 show usage information.
35251
35252 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
35253
35254 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
35255 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
35256
35257 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
35258 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
35259 (video_mod_SOURCES): Added.
35260 (video_mod_CFLAGS): Likewise.
35261 (video_mod_LDFLAGS): Likewise.
35262 (gfxterm_mod_SOURCES): Likewise.
35263 (gfxterm_mod_CFLAGS): Likewise.
35264 (gfxterm_mod_LDFLAGS): Likewise.
35265 (videotest_mod_SOURCES): Likewise.
35266 (videotest_mod_CFLAGS): Likewise.
35267 (videotest_mod_LDFLAGS): Likewise.
35268 (vesafb_mod_SOURCES): Removed.
35269 (vesafb_mod_CFLAGS): Likewise.
35270 (vesafb_mod_LDFLAGS): Likewise.
35271 (vga_mod_SOURCES): Likewise.
35272 (vga_mod_CFLAGS): Likewise.
35273 (vga_mod_LDFLAGS): Likewise.
35274
35275 * commands/videotest.c: New file.
35276
35277 * font/manager.c (fill_with_default_glyph): Modified to use
35278 grub_font_glyph.
35279 (grub_font_get_glyph): Likewise.
35280 (fontmanager): Renamed from this...
35281 (font_manager): ... to this.
35282
35283 * include/grub/font.h (grub_font_glyph): Added new structure.
35284 (grub_font_get_glyph): Modified to use grub_font_glyph.
35285
35286 * include/grub/misc.h (grub_abs): Added as inline function.
35287
35288 * include/grub/video.h: New file.
35289
35290 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
35291 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
35292 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
35293 (grub_vbe_get_controller_info): Renamed from this...
35294 (grub_vbe_bios_get_controller_info): ... to this.
35295 (grub_vbe_get_mode_info): Renamed from this...
35296 (grub_vbe_bios_get_mode_info): ... to this.
35297 (grub_vbe_set_mode): Renamed from this...
35298 (grub_vbe_bios_set_mode): ... to this.
35299 (grub_vbe_get_mode): Renamed from this...
35300 (grub_vbe_bios_get_mode): ... to this.
35301 (grub_vbe_set_memory_window): Renamed from this...
35302 (grub_vbe_bios_set_memory_window): ... to this.
35303 (grub_vbe_get_memory_window): Renamed from this...
35304 (grub_vbe_bios_get_memory_window): ... to this.
35305 (grub_vbe_set_scanline_length): Renamed from this...
35306 (grub_vbe_set_scanline_length): ... to this.
35307 (grub_vbe_get_scanline_length): Renamed from this...
35308 (grub_vbe_bios_get_scanline_length): ... to this.
35309 (grub_vbe_set_display_start): Renamed from this...
35310 (grub_vbe_bios_set_display_start): ... to this.
35311 (grub_vbe_get_display_start): Renamed from this...
35312 (grub_vbe_bios_get_display_start): ... to this.
35313 (grub_vbe_set_palette_data): Renamed from this...
35314 (grub_vbe_bios_set_palette_data): ... to this.
35315 (grub_vbe_set_pixel_rgb): Removed.
35316 (grub_vbe_set_pixel_index): Likewise.
35317
35318 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
35319 from this...
35320 (grub_vbe_bios_get_controller_info): ... to this.
35321 (grub_vbe_get_mode_info): Renamed from this...
35322 (grub_vbe_bios_get_mode_info): ... to this.
35323 (grub_vbe_set_mode): Renamed from this...
35324 (grub_vbe_bios_set_mode): ... to this.
35325 (grub_vbe_get_mode): Renamed from this...
35326 (grub_vbe_bios_get_mode): ... to this.
35327 (grub_vbe_set_memory_window): Renamed from this...
35328 (grub_vbe_bios_set_memory_window): ... to this.
35329 (grub_vbe_get_memory_window): Renamed from this...
35330 (grub_vbe_bios_get_memory_window): ... to this.
35331 (grub_vbe_set_scanline_length): Renamed from this...
35332 (grub_vbe_set_scanline_length): ... to this.
35333 (grub_vbe_get_scanline_length): Renamed from this...
35334 (grub_vbe_bios_get_scanline_length): ... to this.
35335 (grub_vbe_set_display_start): Renamed from this...
35336 (grub_vbe_bios_set_display_start): ... to this.
35337 (grub_vbe_get_display_start): Renamed from this...
35338 (grub_vbe_bios_get_display_start): ... to this.
35339 (grub_vbe_set_palette_data): Renamed from this...
35340 (grub_vbe_bios_set_palette_data): ... to this.
35341 (grub_vbe_bios_get_controller_info): Fixed problem with registers
35342 getting corrupted after calling it. Added more pushes and pops.
35343 (grub_vbe_bios_set_mode): Likewise.
35344 (grub_vbe_bios_get_mode): Likewise.
35345 (grub_vbe_bios_get_memory_window): Likewise.
35346 (grub_vbe_bios_set_scanline_length): Likewise.
35347 (grub_vbe_bios_get_scanline_length): Likewise.
35348 (grub_vbe_bios_get_display_start): Likewise.
35349 (grub_vbe_bios_set_palette_data): Likewise.
35350
35351 * normal/cmdline.c (cl_set_pos): Refresh the screen.
35352 (cl_insert): Likewise.
35353 (cl_delete): Likewise.
35354
35355 * term/gfxterm.c: New file.
35356
35357 * term/i386/pc/vesafb.c: Removed file.
35358
35359 * video/video.c: New file.
35360
35361 * video/i386/pc/vbe.c (real2pm): Added new function.
35362 (grub_video_vbe_draw_pixel): Likewise.
35363 (grub_video_vbe_get_video_ptr): Likewise.
35364 (grub_video_vbe_get_pixel): Likewise
35365 (grub_video_vbe_init): Likewise.
35366 (grub_video_vbe_fini): Likewise.
35367 (grub_video_vbe_setup): Likewise.
35368 (grub_video_vbe_get_info): Likewise.
35369 (grub_video_vbe_set_palette): Likewise.
35370 (grub_video_vbe_get_palette): Likewise.
35371 (grub_video_vbe_set_viewport): Likewise.
35372 (grub_video_vbe_get_viewport): Likewise.
35373 (grub_video_vbe_map_color): Likewise.
35374 (grub_video_vbe_map_rgb): Likewise.
35375 (grub_video_vbe_map_rgba): Likewise.
35376 (grub_video_vbe_unmap_color): Likewise.
35377 (grub_video_vbe_fill_rect): Likewise.
35378 (grub_video_vbe_blit_glyph): Likewise.
35379 (grub_video_vbe_blit_bitmap): Likewise.
35380 (grub_video_vbe_blit_render_target): Likewise.
35381 (grub_video_vbe_scroll): Likewise.
35382 (grub_video_vbe_swap_buffers): Likewise.
35383 (grub_video_vbe_create_render_target): Likewise.
35384 (grub_video_vbe_delete_render_target): Likewise.
35385 (grub_video_vbe_set_active_render_target): Likewise.
35386 (grub_vbe_set_pixel_rgb): Remove function.
35387 (grub_vbe_set_pixel_index): Likewise.
35388 (index_color_mode): Remove static variable.
35389 (active_mode): Likewise.
35390 (framebuffer): Likewise.
35391 (bytes_per_scan_line): Likewise.
35392 (grub_video_vbe_adapter): Added new static variable.
35393 (framebuffer): Likewise.
35394 (render_target): Likewise.
35395 (initial_mode): Likewise.
35396 (mode_in_use): Likewise.
35397 (mode_list): Likewise.
35398
35399 2006-03-10 Marco Gerards <marco@gnu.org>
35400
35401 * configure.ac (AC_INIT): Bumped to 1.93.
35402
35403 * DISTLIST: Added `include/grub/hfs.h'.
35404
35405 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
35406
35407 * boot/i386/pc/boot.S (general_error): Before looping, try INT
35408 18H, which might help the BIOS falling back to next boot media.
35409
35410 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
35411
35412 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
35413 Poe Chen <poe.poechen@gmail.com>.
35414
35415 2006-01-17 Marco Gerards <marco@gnu.org>
35416
35417 * include/grub/normal.h: Include <grub/script.h>.
35418 (grub_command_list): Removed struct.
35419 (grub_command_list_t): Removed type.
35420 (grub_menu_entry): Remove members `num' and `command_list'. Add
35421 members `commands' and `sourcecode'.
35422 * include/grub/script.h: Add inclusion guards.
35423 (grub_script_cmd_menuentry): New struct.
35424 (grub_script_execute_menuentry): New prototype.
35425 (grub_script_lexer_record_start): Likewise.
35426 (grub_script_lexer_record_stop): Likewise.
35427 * normal/execute.c (grub_script_execute_menuentry): New function.
35428 * normal/lexer.c (record, recording, recordpos, recordlen): New
35429 variables.
35430 (grub_script_lexer_record_start): New function.
35431 (grub_script_lexer_record_stop): Likewise.
35432 (recordchar): Likewise.
35433 (nextchar): Likewise.
35434 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
35435 2048 as the buffer size. Add the tokens `menuentry' and `@'.
35436 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
35437 (current_menu): New variable.
35438 (free_menu): Mainly rewritten.
35439 (grub_normal_menu_addentry): New function.
35440 (read_config_file): Rewritten.
35441 * normal/menu.c (run_menu_entry): Mainly rewritten.
35442 * normal/menu_entry.c (make_screen): Rewritten the code to insert
35443 the menu entry.
35444 (run): Mainly rewritten.
35445 * normal/parser.y (menu_entry): New variable.
35446 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
35447 (menuentry): New rule.
35448 (command): Add `menuentry'.
35449 (if_statement): Allow additional returns before `fi'.
35450 * normal/script.c (grub_script_create_cmdmenu): New function.
35451
35452 2006-01-03 Marco Gerards <marco@gnu.org>
35453
35454 * INSTALL: GNU Bison is required.
35455 * configure.ac: Rewritten the test to detect Bison.
35456 * Makefile.in (YACC): New variable. Reported by Xun Sun
35457 <xun.sun.cn@gmail.com>.
35458
35459 2006-01-03 Marco Gerards <marco@gnu.org>
35460
35461 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
35462 the HFS+ filesystem to filesystem blocks.
35463 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
35464 GCC warning is silenced.
35465
35466 2006-01-03 Marco Gerards <marco@gnu.org>
35467
35468 * partmap/apple.c (apple_partition_map_iterate): Convert the data
35469 read from disk from big endian to host byte order.
35470
35471 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
35472
35473 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
35474 documentation.
35475 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
35476 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
35477 embedded HFS+ filesystem.
35478 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
35479 (grub_hfs_sblock): Move from here...
35480 * include/grub/hfs.h: To here... New file.
35481 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
35482 documentation.
35483 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
35484 New macros.
35485 (grub_hfsplus_volheader): Change type of member `magic' to
35486 `grub_uint16_t'.
35487 (grub_hfsplus_data): Add new member `embedded_offset'.
35488 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
35489 returned block.
35490 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
35491 Calculate the offset.
35492
35493 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
35494
35495 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
35496 Removed.
35497 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
35498
35499 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
35500
35501 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
35502 ENV->NAME is NULL after allocating ENV->VALUE.
35503
35504 2005-12-25 Marco Gerards <marco@gnu.org>
35505
35506 * kern/env.c (grub_env_set): Rewritten the error handling code.
35507
35508 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
35509
35510 * geninit.sh: Made more robust, and more portable.
35511
35512 2005-12-25 Marco Gerards <marco@gnu.org>
35513
35514 Add support for Apple HFS+ filesystems.
35515
35516 * fs/hfsplus.c: New file.
35517
35518 * DISTLIST: Added `fs/hfsplus.c'.
35519
35520 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
35521 (hfsplus_mod_SOURCES): New variable.
35522 (hfsplus_mod_CFLAGS): Likewise.
35523 (hfsplus_mod_LDFLAGS): Likewise.
35524 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
35525 (grub_setup_SOURCES): Likewise.
35526 (grub_mkdevicemap_SOURCES): Likewise.
35527 (grub_emu_SOURCES): Likewise.
35528 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35529
35530 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
35531
35532 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
35533
35534 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
35535
35536 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
35537 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
35538 include/grub/parser.h, include/grub/script.h, kern/parser.c,
35539 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
35540 normal/lexer.c, normal/parser.y, normal/script.c, and
35541 partmap/gpt.c.
35542 Removed kern/sparc64/cache.c.
35543
35544 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
35545 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
35546 grub_emu_init.c.
35547
35548 * configure.ac (AC_INIT): Bumped to 1.92.
35549
35550 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
35551
35552 * kern/err.c (grub_error_push): Added new function to support error
35553 stacks.
35554 (grub_error_pop): Likewise.
35555 (grub_error_stack_items): New local variable to support error stacks.
35556 (grub_error_stack_pos): Likewise.
35557 (grub_error_stack_assert): Likewise.
35558 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
35559 stack depth.
35560 (grub_print_error): Added support to print errors from error stack.
35561
35562 * include/grub/err.h (grub_error_push): Added function prototype.
35563 (grub_error_pop): Likewise.
35564
35565 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
35566
35567 * configure.ac: Accept `powerpc64' as host_cpu.
35568 (amd64): Rename to `biarch32'.
35569
35570 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
35571 non-cacheline-aligned addresses.
35572
35573 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
35574 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
35575 if `size' is non-zero.
35576
35577 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
35578
35579 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
35580 and `cd' to make sure the filename is not prefixed with a
35581 directory name.
35582 (pkgdata_MODULES): Add `gpt.mod'.
35583 (gpt_mod_SOURCES): New variable.
35584 (gpt_mod_CFLAGS): Likewise.
35585 (gpt_mod_LDFLAGS): Likewise.
35586
35587 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
35588
35589 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
35590 New macro.
35591
35592 * partmap/gpt.c: New file.
35593
35594 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
35595 GPT partition map is detected.
35596
35597 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
35598
35599 * commands/i386/pc/play.c: New file.
35600 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
35601 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
35602 macros.
35603
35604 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
35605
35606 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
35607 ((unused))' to silence gcc warning.
35608
35609 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
35610
35611 * configure.ac: Correct `AC_PROG_YACC' test.
35612
35613 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
35614
35615 * util/powerpc/ieee1275/grub-install.in: Run the mount point
35616 check before installing files.
35617
35618 2005-11-22 Mike Small <smallm@panix.com>
35619
35620 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
35621 number regex so multidigit numbers are recognized correctly.
35622
35623 2005-11-22 Mike Small <smallm@panix.com>
35624
35625 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
35626 debugging message before attempting to claim memory.
35627 (grub_rescue_cmd_initrd): Add a claim debugging message and try
35628 multiple addresses in case of failure.
35629
35630 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
35631
35632 * term/tparm.c (get_space): Remove empty `if' statement.
35633
35634 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
35635
35636 * kern/parser.c (check_varstate): Rename `state' to 's'.
35637
35638 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
35639
35640 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
35641 variable definitions to the beginning of each function. Sort stack
35642 variables by size.
35643 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
35644 `buf' argument to `char *'.
35645
35646 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
35647
35648 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
35649 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
35650 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
35651 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
35652 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
35653 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
35654 configfile.mod, search.mod, gzio.mod and test.mod.
35655 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
35656 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
35657 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
35658 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
35659 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
35660 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
35661 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
35662 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
35663 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
35664 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
35665 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
35666 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
35667 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
35668 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
35669 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
35670 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
35671 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
35672 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
35673 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
35674 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
35675 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
35676 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
35677 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
35678
35679 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
35680 `grep --include'.
35681 (pkgdata_MODULES): Add test.mod.
35682
35683 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
35684
35685 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
35686 appending to variables with "+=".
35687 (PModule): Use full pathname to generate *.lst filenames.
35688
35689 * Makefile.in: Fixed list rules moved from genmk.rb.
35690 (.DELETE_ON_ERROR): New special target.
35691 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
35692
35693 * conf/i386-pc.rmk: Include conf/common.mk.
35694 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
35695 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
35696 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
35697 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
35698 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
35699 configfile.mod, search.mod, gzio.mod and test.mod.
35700 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
35701 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
35702 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
35703 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
35704 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
35705 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
35706 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
35707 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
35708 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
35709 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
35710 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
35711 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
35712 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
35713 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
35714 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
35715 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
35716 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
35717 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
35718 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
35719 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
35720 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
35721 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
35722 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
35723 here...
35724 * conf/common.rmk: ... to here. New file.
35725
35726 * conf/common.mk: New file.
35727
35728 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
35729
35730 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
35731 (grub_script.tab.c): ... here.
35732
35733 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
35734 (grub_script.tab.c): ... here.
35735
35736 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
35737 (grub_script.tab.c): ... here.
35738
35739 * normal/command.c (grub_command_find): Fixed a memory leak of
35740 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
35741
35742 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
35743
35744 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
35745 "@" which marks the start of a comment on ARM.
35746 (VARIABLE): Likewise.
35747
35748 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
35749
35750 Add support for Linux/ADFS partition tables.
35751
35752 * partmap/acorn.c: New file.
35753
35754 * include/grub/acorn_filecore.h: Likewise.
35755
35756 * DISTLIST: Added `partmap/acorn.c' and
35757 `include/grub/acorn_filecore.h'.
35758
35759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
35760 `partmap/acorn.c'.
35761 (pkgdata_MODULES): Add `acorn.mod'.
35762 (acorn_mod_SOURCES): New variable.
35763 (acorn_mod_CFLAGS): Likewise.
35764
35765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
35766 `partmap/acorn.c'.
35767 (pkgdata_MODULES): Add `acorn.mod'.
35768 (acorn_mod_SOURCES): New variable.
35769 (acorn_mod_CFLAGS): Likewise.
35770
35771 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
35772 (pkgdata_MODULES): Add `acorn.mod'.
35773 (acorn_mod_SOURCES): New variable.
35774 (acorn_mod_CFLAGS): Likewise.
35775 (acorn_mod_LDFLAGS): Likewise.
35776
35777 * include/types.h (grub_disk_addr_t): New typedef.
35778
35779 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
35780
35781 * geninit.sh: New file.
35782
35783 * geninitheader.sh: Likewise.
35784
35785 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
35786 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
35787 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
35788 * commands/configfile.c (grub_configfile_init)
35789 (grub_configfile_fini): Likewise.
35790 * commands/default.c (grub_default_init, grub_default_fini):
35791 Likewise.
35792 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
35793 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
35794 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
35795 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
35796 Likewise.
35797 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
35798 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
35799 Likewise.
35800 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
35801 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
35802 Likewise.
35803 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
35804 Likewise.
35805 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
35806 Likewise.
35807 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
35808 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
35809 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
35810 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
35811 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
35812 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
35813 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
35814 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
35815 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
35816 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
35817 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
35818 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
35819 * partmap/amiga.c (grub_amiga_partition_map_init)
35820 (grub_amiga_partition_map_fini): Likewise.
35821 * partmap/apple.c (grub_apple_partition_map_init)
35822 (grub_apple_partition_map_fini): Likewise.
35823 * partmap/pc.c (grub_pc_partition_map_init)
35824 (grub_pc_partition_map_fini): Likewise.
35825 * partmap/sun.c (grub_sun_partition_map_init,
35826 grub_sun_partition_map_fini): Likewise.
35827 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
35828 Likewise.
35829
35830 * util/grub-emu.c: Include <grub_modules_init.h>.
35831 (main): Don't initialize and de-initialize any modules directly,
35832 use `grub_init_all' and `grub_fini_all' instead.
35833
35834 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
35835 `grub_vesafb_mod_init'.
35836 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
35837 all users.
35838 * term/i386/pc/vga.c (grub_vga_init): Renamed to
35839 `grub_vga_mod_init'. Updated all users.
35840 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
35841
35842 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
35843 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
35844 rules.
35845
35846 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
35847 Generate a function to initialize the module in utilities.
35848 Updated all callers.
35849 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
35850 initialize the module in utilities. Updated all callers.
35851
35852 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
35853
35854 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
35855 escape sequence and a literal ^L to clear the screen.
35856
35857 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
35858 when returning from Open Firmware.
35859
35860 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
35861
35862 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
35863 (grub_ofconsole_height): Likewise.
35864 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
35865 manually insert a '\n'.
35866 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
35867 `grub_ofconsole_height'. Return early if these are already set.
35868
35869 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
35870
35871 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
35872 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
35873 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
35874 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
35875 and `normal/script.c'.
35876 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
35877 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
35878 (test_mod_SOURCES): New variable.
35879 (test_mod_CFLAGS): Likewise.
35880 (test_mod_LDFLAGS): Likewise.
35881 (pkgdata_MODULES): Add `test.mod'.
35882 (grub_script.tab.c): New rule.
35883 (grub_script.tab.h): Likewise.
35884
35885 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
35886
35887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
35888 `commands/test.c', `normal/execute.c', `normal/lexer.c',
35889 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
35890 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
35891 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
35892 (test_mod_SOURCES): New variable.
35893 (test_mod_CFLAGS): Likewise.
35894 (pkgdata_MODULES): Add `test.mod'.
35895 (grub_script.tab.c): New rule.
35896 (grub_script.tab.h): Likewise.
35897
35898 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
35899
35900 Add initial scripting support.
35901
35902 * commands/test.c: New file.
35903 * include/grub/script.h: Likewise.
35904 * normal/execute.c: Likewise.
35905 * normal/function.c: Likewise.
35906 * normal/lexer.c: Likewise.
35907 * normal/parser.y: Likewise.
35908 * normal/script.c: Likewise.
35909
35910 * configure.ac: Add `AC_PROG_YACC' test.
35911
35912 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
35913 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
35914 `normal/function.c' and `normal/script.c'.
35915 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
35916 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
35917 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
35918 variables.
35919 (pkgdata_MODULES): Add `test.mod'.
35920 (grub_script.tab.c): New rule.
35921 (grub_script.tab.h): Likewise.
35922
35923 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
35924
35925 * include/grub/normal.h (grub_test_init): New prototype.
35926 (grub_test_fini): Likewise.
35927
35928 * normal/command.c: Include <grub/script.h>.
35929 (grub_command_execute): Rewritten.
35930
35931 * util/grub-emu.c (main): Call `grub_test_init' and
35932 `grub_test_fini'.
35933
35934 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
35935
35936 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
35937 to 0.
35938 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
35939 there are no pending characters.
35940
35941 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
35942
35943 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
35944 `grub_strndup' to drop device arguments. Replace unnecessary
35945 `grub_strndup' with `grub_strdup'.
35946
35947 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
35948
35949 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
35950 `debug' environment variable has been set.
35951
35952 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
35953
35954 * Makefile.in (install-local): Use $(DATA).
35955 (uninstall): Likewise.
35956 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
35957 (sbin_UTILITIES): ... to here.
35958 (sbin_SCRIPTS): New variable.
35959 (grub_install_SOURCES): New variable.
35960 * util/powerpc/ieee1275/grub-install.in: New file.
35961 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
35962 variable.
35963 (add_segments): Call `grub_util_get_path'.
35964
35965 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
35966
35967 From Timothy Baldwin:
35968 * commands/ls.c (grub_ls_list_files): Close FILE with
35969 grub_file_close.
35970 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
35971
35972 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
35973
35974 * include/grub/parser.h: New file.
35975
35976 * kern/parser.c: Likewise.
35977
35978 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
35979 (grub_setup_SOURCES): Likewise.
35980 (grub_probefs_SOURCES): Likewise.
35981 (grub_emu_SOURCES): Likewise.
35982 (kernel_img_HEADERS): Add `parser.h'.
35983
35984 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
35985 (grub_emu_SOURCES): Add `kern/parser.c'.
35986 (grubof_SOURCES): Likewise.
35987
35988 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
35989 (grubof_SOURCES): Add `kern/parser.c'.
35990
35991 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
35992
35993 * kern/misc.c (grub_split_cmdline): Removed function.
35994
35995 * kern/rescue.c: Include <grub/parser.h>.
35996 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
35997 of `grub_split_cmdline'.
35998
35999 * normal/command.c: Include <grub/parser.h>.
36000 (grub_command_execute): Use `grub_parser_split_cmdline' instead
36001 of `grub_split_cmdline'.
36002
36003 * normal/completion.c: Include <grub/parser.h>.
36004 (cmdline_state): New variable.
36005 (iterate_dir): End the filename with a quote depending on the
36006 command line state.
36007 (get_state): new function.
36008 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
36009 split the arguments and determine the current argument. When the
36010 argument string is not quoted, escape all spaces.
36011
36012 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36013
36014 * normal/sparc64/setjmp.S: New file.
36015
36016 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36017
36018 * include/grub/sparc64/libgcc.h: New file.
36019 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
36020 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
36021 normal/sparc64/setjmp.c.
36022
36023 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36024
36025 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
36026 * kern/sparc64/cache.S: New file.
36027 * kern/sparc64/cache.c: Removed.
36028 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
36029 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
36030 -mtune=ultrasparc.
36031 (COMMON_LDFLAGS): Add -melf64_sparc.
36032 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
36033 (grubof_SOURCES): Use cache.S instead of cache.c.
36034 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
36035 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
36036 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
36037 commented though.
36038 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
36039 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
36040 (linux_mod_CFLAGS): Commented out.
36041 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
36042 out because module isn't built.
36043 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
36044 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
36045 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
36046 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
36047 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
36048 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
36049 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
36050 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
36051 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
36052 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
36053 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36054 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36055 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
36056 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
36057
36058 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
36059
36060 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
36061 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
36062 longer, because HFS should not be used on PC.
36063
36064 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36065
36066 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
36067 consistently within the loop.
36068
36069 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
36070
36071 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
36072 directory can not be read.
36073
36074 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36075
36076 * configure.ac (AC_INIT): Increase the version number to 1.91.
36077
36078 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
36079 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
36080 term/i386/pc/serial.c.
36081
36082 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36083
36084 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
36085 file size must be permitted.
36086
36087 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
36088 between %ah and %al.
36089
36090 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36091
36092 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
36093 grub_uint64_t.
36094 Call the hook with a NUL-terminated filename.
36095 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
36096 grub_cpu_to_be32.
36097
36098 * kern/term.c (cursor_state): New variable.
36099 (grub_term_set_current): Reset the cursor state on a new
36100 terminal.
36101 (grub_setcursor): Rewritten to use CURSOR_STATE.
36102 (grub_getcursor): New function.
36103
36104 * include/grub/term.h (grub_getcursor): New prototype.
36105
36106 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
36107 integers on ARM. Reported by Timothy Baldwin
36108 <T.E.Baldwin99@members.leeds.ac.uk>.
36109
36110 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
36111
36112 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
36113 allocated.
36114 (grub_sfs_dir): Likewise.
36115
36116 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
36117
36118 Add support for the SFS filesystem.
36119
36120 * fs/sfs.c: New file.
36121
36122 * DISTLIST: Added `fs/sfs.c'.
36123
36124 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
36125 (grub_probefs_SOURCES): Likewise.
36126 (grub_emu_SOURCES): Likewise.
36127 (pkgdata_MODULES): Add `sfs.mod'.
36128 (sfs_mod_SOURCES): New variable.
36129 (sfs_mod_CFLAGS): Likewise.
36130 (sfs_mod_LDFLAGS): Likewise.
36131
36132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
36133 (pkgdata_MODULES): Add `sfs.mod'.
36134 (sfs_mod_SOURCES): New variable.
36135 (sfs_mod_CFLAGS): Likewise.
36136
36137 * util/grub-emu.c (main): Call `grub_sfs_init' and
36138 `grub_sfs_fini'.
36139
36140 * include/grub/fs.h (grub_sfs_init): New prototype.
36141 (grub_sfs_fini): Likewise.
36142
36143 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
36144
36145 Add support for the AFFS filesystem.
36146
36147 * fs/affs.c: New file.
36148
36149 * DISTLIST: Added `fs/affs.c'.
36150
36151 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
36152 (grub_probefs_SOURCES): Likewise.
36153 (grub_emu_SOURCES): Likewise.
36154 (pkgdata_MODULES): Add `affs.mod'.
36155 (affs_mod_SOURCES): New variable.
36156 (affs_mod_CFLAGS): Likewise.
36157 (affs_mod_LDFLAGS): Likewise.
36158
36159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
36160 (pkgdata_MODULES): Add `affs.mod'.
36161 (affs_mod_SOURCES): New variable.
36162 (affs_mod_CFLAGS): Likewise.
36163
36164 * util/grub-emu.c (main): Call `grub_affs_init' and
36165 `grub_affs_fini'.
36166
36167 * include/grub/fs.h (grub_affs_init): New prototype.
36168 (grub_affs_fini): Likewise.
36169
36170 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
36171
36172 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
36173
36174 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
36175
36176 * configure.ac: Accept `x86_64' as host_cpu. In that case add
36177 `-m32' to CFLAGS.
36178
36179 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
36180 linking.
36181
36182 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
36183 (COMMON_LDFLAGS): New variable.
36184 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
36185 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
36186 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
36187 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
36188 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
36189 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
36190 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
36191 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
36192 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
36193 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
36194 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
36195 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
36196 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
36197 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
36198 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
36199 variables.
36200 (normal_mod_ASFLAGS): Add `-m32'.
36201
36202 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
36203 (grub_host_size_t, grub_host_ssize_t): New types.
36204 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
36205 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
36206 `GRUB_HOST_SIZEOF_VOID_P'.
36207
36208 * include/grub/kernel.h (struct grub_module_header): Type of
36209 member offset changed to `grub_host_off_t'. Type of member size
36210 changed to `grub_host_size_t'.
36211 (struct grub_module_info): Type of member offset changed to
36212 `grub_host_off_t'. Type of member size changed to
36213 `grub_host_size_t'.
36214
36215 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
36216
36217 Make GRUB's kernel compliant to Multiboot Specification.
36218
36219 * kern/i386/pc/startup.S (multiboot_header): New label.
36220 (multiboot_entry): Likewise.
36221 (multiboot_trampoline): Likewise.
36222
36223 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36224 Increased to 0x4A0.
36225
36226 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
36227 put parentheses after a question mark.
36228 [!GRUB_UTIL] (my_mod): New variable.
36229
36230 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
36231
36232 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
36233
36234 Adds support for the XFS filesystem. Btrees are not supported
36235 yet.
36236
36237 * fs/xfs.c: New file.
36238
36239 * DISTLIST: Added `fs/xfs.c'.
36240
36241 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
36242 (grub_probefs_SOURCES): Likewise.
36243 (grub_emu_SOURCES): Likewise.
36244 (pkgdata_MODULES): Add `xfs.mod'.
36245 (xfs_mod_SOURCES): New variable.
36246 (xfs_mod_CFLAGS): Likewise.
36247
36248 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
36249 (pkgdata_MODULES): Add `xfs.mod'.
36250 (xfs_mod_SOURCES): New variable.
36251 (xfs_mod_CFLAGS): Likewise.
36252
36253 * util/grub-emu.c (main): Call `grub_xfs_init' and
36254 `grub_xfs_fini'.
36255
36256 * include/grub/fs.h (grub_xfs_init): New prototype.
36257 (grub_xfs_fini): Likewise.
36258
36259
36260 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
36261
36262 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
36263 color modes, allow greater than 16 colors to be configured as
36264 a default palette.
36265
36266 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
36267
36268 * normal/completion.c (complete_arguments): Add the qualifier
36269 const into OPTIONS.
36270
36271 From Omniflux <omniflux+lists@omniflux.com>:
36272 * include/grub/terminfo.h: New file.
36273 * include/grub/tparm.h: Likewise.
36274 * include/grub/i386/pc/serial.h: Likewise.
36275 * term/terminfo.c: Likewise.
36276 * term/tparm.c: Likewise.
36277 * term/i386/pc/serial.c: Likewise.
36278 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
36279 serial.mod.
36280 (terminfo_mod_SOURCES): New variable.
36281 (terminfo_mod_CFLAGS): Likewise.
36282 (serial_mod_SOURCES): Likewise.
36283 (serial_mod_CFLAGS): Likewise.
36284
36285 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
36286
36287 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
36288 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
36289 and kern/powerpc/ieee1275/cmain.c, respectively.
36290
36291 * boot/powerpc/ieee1275/crt0.S: Moved to ...
36292 * kern/powerpc/ieee1275/crt0.S: ... here.
36293
36294 * boot/powerpc/ieee1275/cmain.c: Moved to ...
36295 * kern/powerpc/ieee1275/cmain.c: ... here.
36296
36297 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
36298 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
36299 instead of boot/powerpc/ieee1275/crt0.S and
36300 boot/powerpc/ieee1275/cmain.c, respectively.
36301
36302 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
36303 sectors. It was not used anyway.
36304
36305 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
36306
36307 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
36308 `unused parameter' warning.
36309
36310 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
36311
36312 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
36313 function.
36314 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
36315 getcharwidth.
36316
36317 2005-08-28 Marco Gerards <metgerards@student.han.nl>
36318
36319 * include/grub/normal.h (enum grub_completion_type): Added
36320 `GRUB_COMPLETION_TYPE_ARGUMENT'.
36321
36322 * normal/cmdline.c (print_completion): Handle
36323 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
36324 * normal/menu_entry.c (store_completion): Likewise.
36325
36326 * normal/completion.c (complete_arguments): New function.
36327 (grub_normal_do_completion): Call `complete_arguments' when the
36328 current words start with a dash.
36329
36330 2005-08-27 Marco Gerards <metgerards@student.han.nl>
36331
36332 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
36333 `gzio.mod' instead of `io.mod').
36334
36335 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
36336
36337 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
36338 (DISTDIRS): Added io and video.
36339 Rewrite the search routine to make an output consistently.
36340
36341 * DISTLIST: Added conf/sparc64-ieee1275.mk,
36342 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
36343 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
36344 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
36345 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
36346 util/powerpc/ieee1275/misc.c.
36347
36348 * include/grub/gzio.h: New file.
36349 * io/gzio.c: Likewise.
36350
36351 * kern/file.c (grub_file_close): Call grub_device_close only if
36352 FILE->DEVICE is not NULL.
36353
36354 * include/grub/mm.h [!NULL] (NULL): New macro.
36355
36356 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
36357
36358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
36359 (pkgdata_MODULES): Added gzio.mod.
36360 (gzio_mod_SOURCES): New variable.
36361 (gzio_mod_CFLAGS): Likewise.
36362
36363 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
36364 (pkgdata_MODULES): Added gzio.mod.
36365 (gzio_mod_SOURCES): New variable.
36366 (gzio_mod_CFLAGS): Likewise.
36367
36368 * commands/cat.c: Include grub/gzio.h.
36369 (grub_cmd_cat): Use grub_gzfile_open instead of
36370 grub_file_open.
36371
36372 * commands/cmp.c: Include grub/gzio.h.
36373 (grub_cmd_cmp): Use grub_gzfile_open instead of
36374 grub_file_open.
36375
36376 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
36377 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
36378 grub_file_open.
36379 (grub_rescue_cmd_module): Likewise.
36380
36381 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
36382
36383 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
36384 kern/sparc64/ieee1275/init.c because it contains _start.
36385 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
36386
36387 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
36388
36389 * configure.ac: Add support for sparc64 host with ieee1275
36390 firmware.
36391 * configure: Generated from configure.ac.
36392 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
36393 instead of int.
36394 (grub_ofdisk_read): Likewise.
36395 (grub_ofdisk_open): Use %p to print pointer values, and cast the
36396 pointers as (void *) to remove a warning.
36397 (grub_ofdisk_close): Likewise.
36398 (grub_ofdisk_read): Likewise.
36399 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
36400 returns, so make it return void to remove a warning.
36401 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
36402 Corresponding prototype change.
36403 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
36404 values, and cast the pointers as (void *) to remove a warning.
36405 (grub_mm_dump): Likewise.
36406 * conf/sparc64-ieee1275.mk: New file.
36407 * conf/sparc64-ieee1275.rmk: Likewise.
36408 * include/grub/sparc64/setjmp.h: Likewise.
36409 * include/grub/sparc64/types.h: Likewise.
36410 * include/grub/sparc64/ieee1275/console.h: Likewise.
36411 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
36412 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
36413 * include/grub/sparc64/ieee1275/time.h: Likewise.
36414 * kern/sparc64/cache.c: Likewise.
36415 * kern/sparc64/dl.c: Likewise.
36416 * kern/sparc64/ieee1275/init.c: Likewise.
36417 * kern/sparc64/ieee1275/openfw.c: Likewise.
36418
36419 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
36420
36421 * util/console.c (grub_ncurses_putchar): If C is greater than
36422 0x7f, set C to a question mark.
36423 (grub_ncurses_getcharwidth): New function.
36424 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
36425 getcharwidth.
36426
36427 * normal/menu.c (print_entry): Made aware of Unicode. First,
36428 convert TITLE to UCS-4, and predict the cursor position by
36429 grub_getcharwidth.
36430
36431 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
36432 const to SRC.
36433 * kern/misc.c (grub_utf16_to_utf8): Likewise.
36434
36435 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
36436
36437 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
36438 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
36439 grub_strcat.
36440
36441 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
36442 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
36443 grub_strcpy and grub_strlen. Take it into account that a space
36444 character is inserted as a delimiter.
36445
36446 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
36447
36448 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
36449 invalid magic in the error.
36450
36451 * commands/search.c: New file.
36452
36453 * util/grub-emu.c (main): Call grub_search_init and
36454 grub_search_fini.
36455
36456 * kern/rescue.c (grub_rescue_print_disks): Removed.
36457 (grub_rescue_print_devices): New function.
36458 (grub_rescue_cmd_ls): Use grub_device_iterate with
36459 grub_rescue_print_devices instead of grub_disk_dev_iterate with
36460 grub_rescue_print_disks.
36461
36462 * kern/partition.c (grub_partition_iterate): Return the result of
36463 PARTMAP->ITERATE instead of GRUB_ERRNO.
36464
36465 * kern/device.c: Include grub/partition.h.
36466 (grub_device_iterate): New function.
36467
36468 * include/grub/partition.h (grub_partition_iterate): Return int
36469 instead of grub_err_t.
36470
36471 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
36472 prototype.
36473 [GRUB_UTIL] (grub_search_fini): Likewise.
36474
36475 * include/grub/device.h (grub_device_iterate): New prototype.
36476
36477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
36478 commands/search.c.
36479 (pkgdata_MODULES): Added search.mod.
36480 (search_mod_SOURCES): New variable.
36481 (search_mod_CFLAGS): Likewise.
36482
36483 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
36484 (pkgdata_MODULES): Added search.mod.
36485 (search_mod_SOURCES): New variable.
36486 (search_mod_CFLAGS): Likewise.
36487
36488 * commands/ls.c (grub_ls_list_disks): Renamed to ...
36489 (grub_ls_list_devices): ... this, and use grub_device_iterate.
36490 All callers changed.
36491
36492 * DISTLIST: Added commands/search.c.
36493
36494 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
36495
36496 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
36497 conversion.
36498 (grub_getcharwidth): New function.
36499
36500 * kern/misc.c (grub_utf8_to_ucs4): New function.
36501
36502 * include/grub/term.h (struct grub_term): Added a new member
36503 "getcharwidth".
36504 (grub_getcharwidth): New prototype.
36505
36506 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
36507
36508 * term/i386/pc/console.c (map_char): New function. Segregated from
36509 grub_console_putchar.
36510 (grub_console_putchar): Use map_char.
36511 (grub_console_getcharwidth): New function.
36512 (grub_console_term): Specified grub_console_getcharwidth as
36513 getcharwidth.
36514
36515 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
36516 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
36517
36518 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
36519 GRUB_ERRNO.
36520 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
36521 on grub_strtoul completely.
36522 (write_char): Declare local variables in the beginning of the
36523 function.
36524 (grub_vesafb_getcharwidth): New function.
36525 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
36526 getcharwidth.
36527
36528 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
36529
36530 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
36531 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
36532 commands/i386/pc/vbetest.c.
36533
36534 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
36535 call grub_vbe_get_controller_info again, because the returned
36536 information is volatile.
36537 (grub_vbe_set_video_mode): Mostly rewritten.
36538 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
36539 grub_vbe_status_t correctly.
36540 (grub_vbe_get_video_mode_info): Likewise.
36541 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
36542 several if statements.
36543
36544 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
36545 * commands/i386/pc/vbeinfo.c: ... this.
36546
36547 * commands/i386/pc/vbe_test.c: Renamed to ...
36548 * commands/i386/pc/vbetest.c: ... this.
36549
36550 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
36551 ...
36552 (grub_cmd_vbeinfo): ... this. Save video modes before
36553 iterating. Skip a video mode, if it is not available, not enough
36554 information is given or it is monochrome. Show the memory
36555 model. Leave the interpretation of MODEVAR to grub_strtoul
36556 completely.
36557 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
36558 (GRUB_MOD_FINI): Likewise.
36559
36560 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
36561 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
36562 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
36563 duplicated grub_env_get. Leave the interpretation of MODEVAR to
36564 grub_strtoul completely.
36565 (real2pm): Removed.
36566 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
36567 (GRUB_MOD_FINI): Likewise.
36568
36569 * normal/misc.c: Include grub/mm.h.
36570
36571 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
36572 vbe_list_modes with vbetest.mod and vbeinfo.mod.
36573 (vbe_list_modes_mod_SOURCES): Removed.
36574 (vbe_list_modes_mod_CFLAGS): Likewise.
36575 (vbe_test_mod_SOURCES): Likewise.
36576 (vbe_test_mod_CFLAGS): Likewise.
36577 (vbeinfo_mod_SOURCES): New variable.
36578 (vbeinfo_mod_CFLAGS): Likewise.
36579 (vbetest_mod_SOURCES): Likewise.
36580 (vbetest_mod_CFLAGS): Likewise.
36581
36582 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
36583
36584 * normal/misc.c: New file.
36585
36586 * DISTLIST: Added normal/misc.c.
36587
36588 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
36589 DISK to HOOK. Call HOOK with DISK.
36590 * partmap/apple.c (apple_partition_map_iterate): Likewise.
36591 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36592 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36593
36594 * normal/menu_entry.c (struct screen): Added a new member
36595 "completion_shown".
36596 (completion_buffer): New global variable.
36597 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
36598 (store_completion): New function.
36599 (complete): Likewise.
36600 (clear_completions): Likewise.
36601 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
36602 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
36603 a tab, call complete.
36604
36605 * normal/completion.c (disk_dev): Removed.
36606 (print_simple_completion): Likewise.
36607 (print_partition_completion): Likewise.
36608 (print_func): New global variable.
36609 (add_completion): Do not take the arguments WHAT or PRINT any
36610 longer. Added a new argument TYPE. Instead of printing directly,
36611 call PRINT_FUNC if not NULL.
36612 All callers changed.
36613 (complete_device): Use a local variable DEV instead of
36614 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
36615 (grub_normal_do_completion): Take a new argument HOOK. Do not
36616 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
36617 empty string, return NULL instead.
36618 All callers changed.
36619
36620 * normal/cmdline.c (print_completion): New function.
36621
36622 * kern/partition.c (grub_partition_iterate): Add an argument DISK
36623 to HOOK.
36624 All callers changed.
36625
36626 * kern/disk.c (grub_print_partinfo): Removed.
36627
36628 * include/grub/partition.h (struct grub_partition_map): Add a new
36629 argument DISK into HOOK of ITERATE.
36630 (grub_partition_iterate): Add a new argument DISK to HOOK.
36631
36632 * include/grub/normal.h (enum grub_completion_type): New enum.
36633 (grub_completion_type_t): New type.
36634 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
36635 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
36636 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
36637 (GRUB_COMPLETION_TYPE_FILE): Likewise.
36638 (grub_normal_do_completion): Added a new argument HOOK.
36639 (grub_normal_print_device_info): New prototype.
36640
36641 * include/grub/disk.h (grub_print_partinfo): Removed.
36642
36643 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
36644 (normal_mod_SOURCES): Likewise.
36645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36646 (normal_mod_SOURCES): Likewise.
36647
36648 * commands/ls.c (grub_ls_list_disks): Use
36649 grub_normal_print_device_info instead of grub_print_partinfo. Free
36650 PNAME.
36651 (grub_ls_list_files): Use grub_normal_print_device_info instead of
36652 duplicating the code.
36653
36654 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
36655
36656 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
36657 follow GCS more precisely.
36658 * commands/i386/pc/vbe_test.c: Likewise.
36659 * include/grub/i386/pc/vbe.h: Likewise.
36660 * term/i386/pc/vesafb.c: Likewise.
36661 * video/i386/pc/vbe.c: Likewise.
36662
36663 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
36664
36665 * DISTLIST: Added term/i386/pc/vesafb.c
36666 DISTLIST: Added video/i386/pc/vbe.c
36667 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
36668 DISTLIST: Added commands/i386/pc/vbe_test.c.
36669 * commands/i386/pc/vbe_list_modes.c: New file.
36670 * commands/i386/pc/vbe_test.c: Likewise.
36671 * term/i386/pc/vesafb.c: Likewise.
36672 * video/i386/pc/vbe.c: Likewise.
36673 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
36674 (grub_vbe_probe) Added prototype.
36675 (grub_vbe_set_video_mode) Likewise.
36676 (grub_vbe_get_video_mode) Likewise.
36677 (grub_vbe_get_video_mode_info) Likewise.
36678 (grub_vbe_set_pixel_rgb) Likewise.
36679 (grub_vbe_set_pixel_index) Likewise.
36680 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
36681 (pkgdata_MODULES): Added vesafb.mod.
36682 (pkgdata_MODULES): Added vbe_list_modes.mod.
36683 (pkgdata_MODULES): Added vbe_test.mod.
36684 (vbe_mod_SOURCES): Added.
36685 (vbe_mod_CFLAGS): Likewise.
36686 (vesafb_mod_SOURCES): Likewise.
36687 (vesafb_mod_CFLAGS): Likewise.
36688 (vbe_list_modes_mod_SOURCES): Likewise.
36689 (vbe_list_modes_mod_CFLAGS): Likewise.
36690 (vbe_test_mod_SOURCES): Likewise.
36691 (vbe_test_mod_CFLAGS): Likewise.
36692
36693 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
36694
36695 * normal/command.c (grub_command_execute): If INTERACTIVE is
36696 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
36697 CMDLINE. Disable the pager if INTERACTIVE is true.
36698 All callers are changed.
36699
36700 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
36701 before reading a config file.
36702 * normal/main.c (read_config_file): Even if a command is not
36703 found, register it if it is within an entry.
36704
36705 * util/grub-emu.c: Include sys/types.h and unistd.h.
36706 (options): Added --hold.
36707 (struct arguments): Added a new member "hold".
36708 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
36709 missing.
36710 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
36711 cleared by a debugger, if it is not zero.
36712
36713 * include/grub/normal.h (grub_command_execute): Add an argument
36714 INTERACTIVE.
36715
36716 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
36717
36718 * DISTLIST: Added include/grub/i386/pc/vbe.h.
36719
36720 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
36721
36722 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
36723 program with another one, because the old one didn't detect a bug
36724 in gcc-3.4. Always use regparm 2, because the new test is still
36725 not enough for gcc-4.0. Someone must investigate a simple test
36726 case which detects a bug in gcc-4.0.
36727
36728 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
36729
36730 * DISTLIST: Added normal/completion.c.
36731
36732 * normal/completion.c: New file.
36733
36734 * term/i386/pc/console.c (grub_console_getwh): New function.
36735 (grub_console_term): Assign grub_console_getwh to getwh.
36736
36737 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
36738 function is defined in normal/completion.c as
36739 grub_normal_do_completion.
36740 (grub_cmdline_get): Use grub_normal_do_completion instead of
36741 grub_tab_complete.
36742
36743 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
36744 returns non-zero, otherwise return 0.
36745 (grub_partition_iterate): First, probe the partition map. Then,
36746 call ITERATE only for this partition map.
36747
36748 * kern/misc.c (grub_strncmp): Rewritten.
36749
36750 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
36751 returns non-zero. Otherwise return 0.
36752
36753 * include/grub/partition.h (grub_partition_map_iterate): Return
36754 int instead of void.
36755
36756 * include/grub/normal.h (grub_normal_do_completion): New prototype.
36757
36758 * include/grub/misc.h (grub_strncmp): Change the type of N to
36759 grub_size_t.
36760
36761 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
36762 of void.
36763
36764 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
36765 unsigned explicitly before comparing it with I.
36766
36767 * kern/main.c (grub_env_write_root): Add the attribute unused into
36768 VAR.
36769
36770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
36771 normal/completion.c.
36772 (normal_mod_SOURCES): Likewise.
36773 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36774 (normal_mod_SOURCES): Likewise.
36775
36776 * normal/command.c (grub_iterate_commands): If ITERATE returns
36777 non-zero, return one immediately.
36778
36779 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
36780
36781 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
36782 * kern/i386/pc/startup.S: Updated Global Descriptor table's
36783 descriptions.
36784 (grub_vbe_get_controller_info): New function.
36785 (grub_vbe_get_mode_info): Likewise.
36786 (grub_vbe_set_mode): Likewise.
36787 (grub_vbe_get_mode): Likewise.
36788 (grub_vbe_set_memory_window): Likewise.
36789 (grub_vbe_get_memory_window): Likewise.
36790 (grub_vbe_set_scanline_length): Likewise.
36791 (grub_vbe_get_scanline_length): Likewise.
36792 (grub_vbe_set_display_start): Likewise.
36793 (grub_vbe_get_display_start): Likewise.
36794 (grub_vbe_set_palette_data): Likewise.
36795 * include/grub/i386/pc/vbe.h: New file.
36796
36797 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
36798
36799 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
36800 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
36801 * DISTLIST: Likewise.
36802 * kern/ieee1275/of.c: Moved to ...
36803 * kern/ieee1275/ieee1275.c: ... here.
36804
36805 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
36806
36807 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
36808 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
36809 Pass 0 as `end' parameter to grub_strtoul().
36810
36811 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
36812
36813 * include/grub/powerpc/ieee1275/console.h: Do not include
36814 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
36815 ifdef.
36816 (grub_console_cur_color): Remove i386-specific prototype.
36817 (grub_console_real_putchar): Likewise.
36818 (grub_console_checkkey): Likewise.
36819 (grub_console_getkey): Likewise.
36820 (grub_console_getxy): Likewise.
36821 (grub_console_gotoxy): Likewise.
36822 (grub_console_cls): Likewise.
36823 (grub_console_setcursor): Likewise.
36824 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
36825 Include <grub/machine/console.h>.
36826 * term/ieee1275/ofconsole.c: Likewise.
36827
36828 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
36829
36830 * Makefile.in (LIBLZO): New variable.
36831
36832 * configure.ac: Check for LZO version 2.
36833
36834 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
36835 lzo/lzo1x.h instead of lzo1x.h.
36836
36837 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
36838 of -llzo.
36839
36840 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
36841 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
36842
36843 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
36844 copying the data from PARTITION to P.
36845
36846 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
36847
36848 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
36849 negative, unload the module.
36850
36851 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
36852 map is "pc_partition_map" but not "pc".
36853 (usage): Fix the description. The options are --boot-image and
36854 --core-image but not --boot-file or --core-file.
36855 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
36856 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
36857 DEFAULT_DIRECTORY.
36858
36859 * util/i386/pc/grub-install.in: Do not specify --boot-file or
36860 --core-file. Specify INSTALL_DEVICE as an argument.
36861
36862 * util/console.c: Include config.h.
36863 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
36864 [HAVE_NCURSES_H]: Include ncurses.h.
36865 [HAVE_CURSES_H]: Include curses.h.
36866 [!A_NORMAL] (A_NORMAL): Defined as zero.
36867 [!A_STANDOUT] (A_STANDOUT): Likewise.
36868
36869 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
36870 -lncurses.
36871 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
36872
36873 * configure.ac: Check for curses libraries and headers.
36874
36875 * Makefile.in (LIBCURSES): New variable.
36876
36877 * genmk.rb (Script::rule): Set the executable bits.
36878
36879 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
36880 name of the PC partition map is "pc_partition_map" but not "pc".
36881
36882 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
36883
36884 * util/i386/pc/grub-install.in (grub_probefs): New variable.
36885 (modules): Likewise.
36886 (usage): Added descriptions for --modules and --grub-probefs.
36887 Handle --modules and --grub-probefs. Save the arguments in MODULES
36888 and GRUB_PROBEFS, respectively.
36889 Auto-detect a filesystem module against GRUBDIR. If the result is
36890 empty and modules are not specified explicitly, abort the
36891 installation. Add the result to MODULES.
36892
36893 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
36894 disk/powerpc/ieee1275/ofdisk.c,
36895 include/grub/powerpc/ieee1275/init.h and
36896 term/powerpc/ieee1275/ofconsole.c.
36897 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
36898 term/ieee1275/ofconsole.c.
36899
36900 * include/grub/powerpc/ieee1275/console.h: Resurrected.
36901
36902 * COPYING: Upgraded to the latest version. Only the address of the
36903 FSF office has changed.
36904
36905 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
36906
36907 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
36908 kern/ieee1275.c with kern/ieee1275/of.c.
36909
36910 * kern/ieee1275.c: Moved to ...
36911 * kern/ieee1275/of.c: ... here.
36912
36913 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
36914
36915 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
36916 readability.
36917
36918 * config.guess: Updated to the latest version from gnulib.
36919 * config.sub: Likewise.
36920 * install.sh: Likewise.
36921 * mkinstalldirs: Likewise.
36922
36923 * include/grub/console.h: Removed. This file is arch-specific. Do
36924 not put this in include/grub.
36925
36926 * include/grub/i386/pc/console.h: Resurrected.
36927
36928 * util/console.c: Include grub/machine/console.h instead of
36929 grub/console.h.
36930 * util/grub-emu.c: Likewise.
36931
36932 2005-08-04 Marco Gerards <metgerards@student.han.nl>
36933
36934 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
36935 hardcoded value.
36936
36937 From Vincent Pelletier <subdino2004@yahoo.fr>
36938 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
36939 Redefined to use grub_getwh.
36940 (grub_term): New member named getwh.
36941 (grub_getwh): New prototype.
36942 * kern/term.c (grub_getwh): New function.
36943 * term/i386/pc/console.c (grub_console_getwh): New function.
36944 (grub_console_term): New member `getwh'.
36945 * term/i386/pc/vga.c (grub_vga_getwh): New function.
36946 (grub_vga_term): New member `getwh'.
36947 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
36948 grub_ssize_t.
36949 (grub_ofconsole_getw): New function.
36950 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
36951 (grub_ofconsole_term): New field named getwh and new initial
36952 value.
36953
36954 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
36955
36956 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
36957 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
36958 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
36959 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
36960 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
36961 of <grub/machine/ieee1275.h>.
36962 * commands/ieee1275/reboot.c: Likewise.
36963 * boot/powerpc/ieee1275/ieee1275.c: Move ...
36964 * kern/ieee1275.c: ... to here. All users updated. Change all
36965 parameter structs to use new type `grub_ieee1275_cell_t'.
36966 * term/powerpc/ieee1275/ofconsole.c: Move ...
36967 * term/ieee1275/ofconsole.c: ... to here. All users updated.
36968 * disk/powerpc/ieee1275/ofdisk.c: Move ...
36969 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
36970 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
36971 to return int.
36972 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
36973 Remove unused prototypes. All users updated.
36974 * include/grub/powerpc/ieee1275/console.h: Removed.
36975 * include/grub/powerpc/ieee1275/ieee1275.h: Define
36976 `grub_ieee1275_cell_t'.
36977 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
36978 Cast comparisons with -1 to the correct type.
36979 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
36980 type to match `grub_ieee1275_entry_fn'.
36981
36982 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
36983
36984 * DISTLIST: Added util/i386/pc/grub-probefs.c.
36985
36986 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
36987 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
36988 partmap/sun.c.
36989 (grub_probefs_SOURCES): New variable.
36990
36991 * util/i386/pc/grub-probefs.c: New file.
36992
36993 * util/i386/pc/grub-setup.c (main): Call
36994 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
36995 grub_hfs_init and grub_jfs_init to initialize the system. Call
36996 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
36997 grub_pc_partition_map_fini to finish the system.
36998
36999 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
37000
37001 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
37002 function.
37003 (grub_multiboot_load_elf32): Likewise.
37004 (grub_multiboot_is_elf64): Likewise.
37005 (grub_multiboot_load_elf64): Likewise.
37006 (grub_multiboot_load_elf): Likewise.
37007 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
37008 an ELF32 or ELF64 file.
37009 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
37010
37011 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
37012 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
37013 NULL before calling FS->LABEL.
37014 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
37015 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
37016 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
37017 before calling FS->LABEL.
37018
37019 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
37020
37021 * util/i386/pc/grub-install.in (datadir): New variable.
37022 (libdir): Removed.
37023 (pkgdatadir): New variable.
37024 (pkglibdir): Removed.
37025
37026 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
37027
37028 * DISTLIST: Added util/i386/pc/grub-install.in.
37029
37030 * util/i386/pc/grub-install.in: New file.
37031
37032 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
37033 (grub_install_SOURCES): Likewise.
37034
37035 * genmk.rb: Added support for scripts.
37036 (Script): New class.
37037 (scripts): New variable.
37038
37039 * Makefile.in (install-local): Install sbin_SCRIPTS by
37040 INSTALL_SCRIPT.
37041 (uninstall): Remove sbin_SCRIPTS.
37042
37043 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
37044 device, try to get a GRUB device by
37045 grub_util_biosdisk_get_grub_dev.
37046 Free DEST_DEV.
37047
37048 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
37049 description for --device-map.
37050
37051 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
37052
37053 Change the semantics of variable hooks. They now return strings
37054 instead of error values.
37055
37056 * util/i386/pc/grub-setup.c: Include grub/env.h.
37057 (setup): Use grub_device_set_root instead of grub_env_set.
37058
37059 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
37060 grub_env_get instead of grub_device_set_root and
37061 grub_device_get_root, respectively.
37062
37063 * kern/main.c (grub_env_write_root): New function.
37064 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
37065 grub_env_set instead of grub_device_set_root.
37066
37067 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
37068 many variables.
37069 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
37070 rather than calling ENV->WRITE_HOOK afterwards.
37071 (grub_env_get): Return the result of ENV->READ_HOOK rather than
37072 passing a pointer of a pointer.
37073 (grub_register_variable_hook): Change the types of "read_hook" and
37074 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
37075 respectively.
37076 Allocate the default empty string on the heap, because this string
37077 may be freed later.
37078
37079 * kern/device.c: Include grub/env.h.
37080 (grub_device_set_root): Removed.
37081 (grub_device_get_root): Likewise.
37082 (grub_device_open): Use grub_env_get instead of
37083 grub_device_get_root.
37084
37085 * include/grub/env.h (grub_env_read_hook_t): New type.
37086 (grub_env_write_hook_t): Likewise.
37087 (grub_env_var): Change the types of "read_hook" and "write_hook"
37088 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
37089 (grub_register_variable_hook): Likewise.
37090
37091 * include/grub/device.h (grub_device_set_root): Removed.
37092 (grub_device_set_root): Likewise.
37093
37094 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
37095 make sure that DIRNAME terminates with '/', so that
37096 grub_fat_find_dir will fail if PATH is not a directory.
37097
37098 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
37099 from DIRNAME.
37100 Use the qualifier auto for print_files and print_files_long.
37101 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
37102 as a regular file.
37103 Put a newline only if there is no error.
37104 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
37105 used.
37106
37107 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
37108
37109 * kern/partition.c (grub_partition_probe): Initialize PART to
37110 NULL. Otherwise, when no partition map is registered, this returns
37111 a garbage.
37112
37113 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
37114
37115 * partmap/apple.c (apple_partition_map_iterate): Check if POS
37116 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
37117 valid.
37118
37119 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
37120
37121 * commands/ls.c (grub_ls_list_disks): Print the filesystem
37122 information on each device, if it does not have partitions. Print
37123 "Device" instead of "Disk", because this function is not specific
37124 to disk devices.
37125
37126 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
37127 static to ensure that it is put on the memory rather than a
37128 register.
37129
37130 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37131
37132 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
37133 (grub_cat_init): Likewise.
37134 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
37135 (options): Likewise.
37136 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
37137 (grub_configfile_init): Likewise.
37138 * font/manager.c (GRUB_MOD_INIT): Likewise.
37139 * commands/help.c (GRUB_MOD_INIT): Likewise.
37140 (grub_help_init): Likewise.
37141 * normal/command.c (grub_command_init): Likewise.
37142 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
37143 * disk/loopback.c (grub_loop_init): Likewise.
37144 (GRUB_MOD_INIT): Likewise.
37145 * commands/ls.c (grub_ls_init): Likewise.
37146 (GRUB_MOD_INIT): Likewise.
37147 (options): Likewise.
37148 * commands/boot.c (grub_boot_init): Likewise.
37149 (GRUB_MOD_INIT): Likewise.
37150 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
37151 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
37152 (GRUB_MOD_INIT): Likewise.
37153 * commands/cmp.c (grub_cmp_init): Likewise.
37154 (GRUB_MOD_INIT): Likewise.
37155
37156 * normal/arg.c: Use <> instead of "" to include header files.
37157 (SHORT_ARG_HELP): New macro.
37158 (SHORT_ARG_USAGE): Likewise.
37159 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
37160 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
37161 descriptions.
37162 (find_short): Check if C is 'h' or 'u' explicitly.
37163 (grub_arg_show_help): Use space characters instead of tabs. Treat
37164 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
37165 are shown with --help and --usage only if they are not used for
37166 the command itself.
37167 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
37168 'h' and 'u'.
37169
37170 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
37171 const into "longarg". Change the type of "shortarg" to int.
37172
37173 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37174
37175 * boot/i386/pc/boot.S (boot_drive_check): New label.
37176
37177 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
37178 macro.
37179
37180 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
37181 which do not pass a boot drive correctly. Copied from GRUB Legacy.
37182
37183 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37184
37185 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
37186 When turning off Gate A20, skip the check and return immediately,
37187 because this is not fatal usually.
37188
37189 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37190
37191 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
37192 be 0x7C00 instead of 0x8000.
37193
37194 * boot/i386/pc/pxeboot.S: Rewritten.
37195
37196 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
37197 EXT_C.
37198 (gate_a20_check_state): Read a byte from 0x108000. Invert the
37199 result.
37200
37201 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
37202
37203 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
37204 robustness. This routine now supports a BIOS call and System
37205 Control Port A to modify the gate A20.
37206
37207 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37208 Increased to 0x440.
37209
37210 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
37211
37212 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
37213 device path and resulting ihandle.
37214 (grub_ofdisk_close): dprintf the ihandle being closed.
37215 (grub_ofdisk_read): dprintf function parameters.
37216 * kern/mm.c (grub_mm_init_region): Likewise.
37217 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
37218 (grub_linux_boot): dprintf the Linux entry point, initrd address and
37219 size, and boot arguments.
37220 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
37221 before loading into memory.
37222 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
37223 before loading into memory.
37224
37225 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
37226
37227 * kern/mm.c: Added much documentation.
37228 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
37229 8, set to 5 instead of 8.
37230
37231 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
37232
37233 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
37234
37235 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
37236 (grub_mkdevicemap_SOURCES): New variable.
37237
37238 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
37239 lib/device.c of GRUB Legacy.
37240
37241 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
37242
37243 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
37244 instead of PATH is NULL.
37245
37246 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
37247
37248 * commands/cmp.c (BUFFER_SIZE): New macro.
37249 (grub_cmd_cmp): Close the right file at the right time. Compare
37250 only data just read. Don't report files of different size as
37251 identical. Dynamically allocate buffers. Move variable
37252 declarations at the beginning of function.
37253
37254 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
37255
37256 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
37257 reverse.
37258
37259 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
37260
37261 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
37262 when backspace is pressed at beginning of line.
37263
37264 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
37265
37266 * DISTLIST: Added genfslist.sh.
37267
37268 * normal/main.c (fs_module_list): New variable.
37269 (autoload_fs_module): New function.
37270 (read_fs_list): Likewise.
37271 (grub_normal_execute): Call read_fs_list.
37272
37273 * kern/fs.c (grub_fs_autoload_hook): New variable.
37274 (grub_fs_probe): Added support for auto-loading.
37275
37276 * include/grub/normal.h (struct grub_fs_module_list): New struct.
37277 (grub_fs_module_list_t): New type.
37278
37279 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
37280 (grub_fs_autoload_hook): New prototype.
37281
37282 * genfslist.sh: New file.
37283
37284 * genmk.rb: Added a rule to generate a filesystem list.
37285
37286 2005-06-30 Marco Gerards <metgerards@student.han.nl>
37287
37288 * configure.ac: Fix the test for cross-compiling.
37289
37290 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
37291 define GRUB_UTIL anymore.
37292
37293 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
37294 so this function works on other systems than just big endian.
37295 (load_modules): Likewise.
37296 (add_segments): Likewise.
37297
37298 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
37299
37300 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
37301 contains `l' modifier, get a long from va_arg().
37302
37303 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
37304
37305 * kern/mm.c (grub_free): If the next free block which is being
37306 merged is the first free block, set the first block to the block
37307 being freed.
37308 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
37309
37310 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
37311
37312 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
37313 `grub_ieee1275_chosen'.
37314
37315 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
37316
37317 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
37318 (grub_ieee1275_chosen): New variable.
37319 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
37320 `chosen'.
37321 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
37322 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
37323 Rename first argument to `phandle' for consistency.
37324 (grub_ieee1275_get_property_length): Likewise.
37325 (grub_ieee1275_next_property): Likewise. Change type of first argument
37326 to grub_ieee1275_phandle_t.
37327 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
37328 Move export next to declaration.
37329 (grub_ieee1275_chosen): New variable.
37330 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
37331 Correct cosmetic typo.
37332 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
37333 `grub_ieee1275_chosen'.
37334 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
37335 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
37336 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
37337 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
37338 `grub_ieee1275_chosen'.
37339
37340 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
37341
37342 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
37343 /chosen/bootargs.
37344 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
37345 /chosen/bootargs as "variable=value" pairs.
37346
37347 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
37348
37349 * include/grub/misc.h (grub_dprintf): New macro.
37350 (grub_real_dprintf): New prototype.
37351 (grub_strword): Likewise.
37352 (grub_iswordseparator): Likewise.
37353 * kern/misc.c (grub_real_dprintf): New function.
37354 (grub_strword): Likewise.
37355 (grub_iswordseparator): Likewise.
37356
37357 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
37358
37359 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
37360 (roundup): Remove macro.
37361 (grub_ieee1275_flags): Make static.
37362 (grub_ieee1275_realmode): Remove.
37363 (grub_ieee1275_test_flag): New function.
37364 (grub_ieee1275_set_flag): Likewise.
37365 (find_options): Rename to `grub_ieee1275_find_options'; update
37366 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
37367 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
37368 (cmain): New prototype.
37369 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
37370 `grub_ieee1275_flags' directly.
37371 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
37372 machine/biosdisk.h.
37373 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
37374 Don't include grub/machine/init.h.
37375 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
37376 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
37377 Remove prototype.
37378 (grub_ieee1275_realmode): Likewise.
37379 (grub_ieee1275_flag): New enum.
37380 (grub_ieee1275_test_flag): New prototype.
37381 (grub_ieee1275_set_flag): New prototype.
37382 * include/grub/powerpc/ieee1275/init.h: Remove file.
37383 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
37384 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
37385 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
37386 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
37387 comment.
37388 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
37389 `grub_ieee1275_test_flag'.
37390 (grub_ieee1275_encode_devname): Likewise.
37391
37392 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
37393
37394 * include/grub/powerpc/ieee1275/ieee1275.h
37395 (grub_ieee1275_encode_devname): New prototype.
37396 (grub_ieee1275_get_filename): Likewise.
37397 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
37398 function.
37399 (grub_set_prefix): Likewise.
37400 (grub_machine_init): Call grub_set_prefix.
37401 * kern/powerpc/ieee1275/openfw.c: Fix typos.
37402 (grub_parse_type): New enum.
37403 (grub_ieee1275_get_devargs): New function.
37404 (grub_ieee1275_get_devname): Likewise.
37405 (grub_ieee1275_parse_args): Likewise.
37406 (grub_ieee1275_get_filename): Likewise.
37407 (grub_ieee1275_encode_devname): Likewise.
37408
37409 2005-03-30 Marco Gerards <metgerards@student.han.nl>
37410
37411 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
37412 `grub_loader_unset'.
37413
37414 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
37415
37416 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
37417 instead of grub_ieee1275_interpret.
37418 (grub_halt_init): New function.
37419 (grub_halt_fini): Likewise.
37420 (GRUB_MOD_INIT): Correct message grammar.
37421 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
37422 instead of grub_ieee1275_interpret.
37423 (grub_reboot_init): New function.
37424 (grub_reboot_fini): Likewise.
37425 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
37426 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
37427 util/i386/pc/misc.c with commands/ieee1275/halt.c,
37428 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
37429 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
37430 function.
37431 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
37432 Add prototype.
37433 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
37434 prototype.
37435 (grub_halt): Likewise.
37436 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
37437 (cmain): Remove __attribute__((unused)).
37438 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
37439 (grub_heap_len): Likewise.
37440 (grub_machine_fini): New function.
37441 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
37442 (grub_halt): Likewise.
37443 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
37444 function.
37445 * util/powerpc/ieee1275/misc.c: New file.
37446
37447 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
37448
37449 * DISTLIST: New file.
37450 * gendistlist.sh: Likewise.
37451
37452 * Makefile.in (COMMON_DISTFILES): Removed.
37453 (BOOT_DISTFILES): Likewise.
37454 (CONF_DISTFILES): Likewise.
37455 (DISK_DISTFILES): Likewise.
37456 (FS_DISTFILES): Likewise.
37457 (INCLUDE_DISTFILES): Likewise.
37458 (KERN_DISTFILES): Likewise.
37459 (LOADER_DISTFILES): Likewise.
37460 (TERM_DISTFILES): Likewise.
37461 (UTIL_DISTFILES): Likewise.
37462 (DISTFILES): Likewise.
37463 (uninstall): Uninstall files in $(pkgdata_DATA).
37464 (DISTLIST): New target.
37465 (distdir): Use the contents of the file DISTLIST to get a list of
37466 distributed files.
37467
37468 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
37469
37470 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
37471 descriptor. This is ported from GRUB Legacy.
37472
37473 * gencmdlist.sh: Added an extra semicolon to make it work with
37474 old sed versions. Reported by Robert Bihlmeyer
37475 <robbe@orcus.priv.at>.
37476
37477 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
37478
37479 Automatic loading of commands is supported.
37480
37481 * normal/main.c (read_command_list): New function.
37482 (grub_normal_execute): Call read_command_list.
37483
37484 * normal/command.c (grub_register_command): Return zero or CMD.
37485 Allocate CMD->NAME from the heap.
37486 Initialize CMD->MODULE_NAME to zero.
37487 Find the same name as well. If the same command is found and it is
37488 a dummy command, overwrite members. If it is not a dummy command,
37489 return zero.
37490 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
37491 (grub_command_find): If a dummy command is found, load a module
37492 and retry to find a command only once.
37493
37494 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
37495 make sure that each command is loaded.
37496
37497 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
37498 macro.
37499 (struct grub_command): Remove const from the member `name'.
37500 Add a new member `module_name'.
37501 (grub_register_command): Return grub_command_t.
37502
37503 * commands/help.c (grub_cmd_help): Call grub_command_find to make
37504 sure that each command is loaded.
37505
37506 * genmk.rb (PModule::rule): Specify a module name without the
37507 suffix ".mod" to gencmdlist.sh.
37508
37509 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
37510
37511 * gencmdlist.sh: New file.
37512
37513 * genmk.rb (PModule::rule): Generate a rule for a command list.
37514 Clean command.lst.
37515 Generate command.lst from $(COMMANDFILES).
37516
37517 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
37518 (DATA): Added $(pkgdata_DATA).
37519 (install-local): Install files in $(pkgdata_DATA).
37520
37521 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
37522
37523 * term/i386/pc/vga.c (debug_command): Removed.
37524 (GRUB_MOD_INIT): Do not register the command "debug".
37525
37526 From Hollis Blanchard:
37527 * commands/configfile.c: New file.
37528 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
37529 commands/configfile.c.
37530 (pkgdata_MODULES): Added configfile.mod.
37531 (configfile_mod_SOURCES): New variable.
37532 (configfile_mod_CFLAGS): Likewise.
37533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37534 commands/configfile.c.
37535 (pkgdata_MODULES): Added configfile.mod.
37536 (configfile_mod_SOURCES): New variable.
37537 (configfile_mod_CFLAGS): Likewise.
37538 * util/grub-emu.c (main): Call grub_configfile_init and
37539 grub_configfile_fini.
37540 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
37541 prototype.
37542 [GRUB_UTIL] (grub_configfile_fini): Likewise.
37543
37544 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
37545
37546 * normal/arg.c (grub_arg_show_help): Do not show the bug report
37547 address.
37548
37549 * commands/help.c (grub_cmd_help): Do not print newlines after
37550 the last command in print_command_help.
37551
37552 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
37553
37554 * commands/default.h: New file.
37555 * commands/timeout.h: Likewise.
37556 * normal/context.c: Likewise.
37557
37558 * util/misc.c: Do not include sys/times.h.
37559 Include sys/time.h and grub/machine/time.h.
37560 (grub_get_rtc): Rewritten with gettimeofday.
37561
37562 * util/grub-emu.c (main): Call grub_default_init and
37563 grub_timeout_init before grub_normal_init, and call
37564 grub_timeout_fini and grub_default_fini after grub_main.
37565
37566 * util/console.c (grub_ncurses_checkkey): Return the read
37567 character or -1.
37568
37569 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
37570 timeouts.
37571
37572 * normal/main.c (read_config_file): Push MENU. If this fails,
37573 print an error and wait for a user input.
37574 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
37575 If a menu is empty or an error occurs, pop MENU.
37576 (grub_normal_execute): Pop and free MENU after grub_menu_run
37577 returns.
37578
37579 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
37580
37581 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
37582 include time.h.
37583 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
37584 without GRUB_UTIL.
37585 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
37586 time.h.
37587 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
37588 without GRUB_UTIL.
37589
37590 * include/grub/normal.h (struct grub_menu_list): New struct.
37591 (grub_menu_list_t): New type.
37592 (struct grub_context): New struct.
37593 (grub_context_t): New type.
37594 (grub_register_command): Got rid of EXPORT_FUNC.
37595 (grub_unregister_command): Likewise.
37596 (grub_context_get): New prototype.
37597 (grub_context_get_current_menu): Likewise.
37598 (grub_context_push_menu): Likewise.
37599 (grub_context_pop_menu): Likewise.
37600 [GRUB_UTIL] (grub_default_init): Likewise.
37601 [GRUB_UTIL] (grub_default_fini): Likewise.
37602 [GRUB_UTIL] (grub_timeout_init): Likewise.
37603 [GRUB_UTIL] (grub_timeout_fini): Likewise.
37604
37605 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
37606 commands/timeout.c and normal/context.c.
37607 (pkgdata_MODULES): Added default.mod and timeout.mod.
37608 (normal_mod_SOURCES): Added normal/context.c.
37609 (default_mod_SOURCES): New variable.
37610 (default_mod_CFLAGS): Likewise.
37611 (timeout_mod_SOURCES): Likewise.
37612 (timeout_mod_CFLAGS): Likewise.
37613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
37614 conf/i386-pc.rmk.
37615 (pkgdata_MODULES): Added default.mod and timeout.mod.
37616 (normal_mod_SOURCES): Added normal/context.c.
37617 (default_mod_SOURCES): New variable.
37618 (default_mod_CFLAGS): Likewise.
37619 (timeout_mod_SOURCES): Likewise.
37620 (timeout_mod_CFLAGS): Likewise.
37621
37622 * Makefile.in (all-local): Added $(MKFILES).
37623
37624 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
37625
37626 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
37627 (grub_emu_SOURCES): Likewise.
37628 (pkgdata_MODULES): Add `sun.mod'.
37629 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
37630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37631 `partmap/sun.c'.
37632 (pkgdata_MODULES): Add `sun.mod'.
37633 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
37634 * include/grub/partition.h (grub_sun_partition_map_init): New
37635 prototype.
37636 (grub_sun_partition_map_fini): Likewise.
37637 * partmap/sun.c: New file.
37638 * util/grub-emu.c (main): Initialize and de-initialize the sun
37639 partitionmap support.
37640
37641 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
37642
37643 This implements an Emacs-like menu entry editor.
37644
37645 * normal/menu_entry.c: New file.
37646
37647 * util/console.c (grub_ncurses_putchar): Translate some Unicode
37648 characters to ASCII.
37649 (saved_char): New variable.
37650 (grub_ncurses_checkkey): Rewritten completely.
37651 (grub_ncurses_getkey): Likewise.
37652 (grub_ncurses_init): Call raw instead of cbreak.
37653
37654 * normal/menu.c (print_entry): Do not put a space.
37655 (init_page): Renamed to ...
37656 (grub_menu_init_page): ... this. All callers changed.
37657 (edit_menu_entry): Removed.
37658 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
37659
37660 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
37661
37662 * kern/misc.c (grub_vprintf): Call grub_refresh.
37663
37664 * normal/menu.c (DISP_LEFT): Renamed to ...
37665 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
37666 * normal/menu.c (DISP_UP): Renamed to ...
37667 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
37668 * normal/menu.c (DISP_RIGHT): Renamed to ...
37669 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
37670 * normal/menu.c (DISP_DOWN): Renamed to ...
37671 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
37672 * normal/menu.c (DISP_HLINE): Renamed to ...
37673 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
37674 * normal/menu.c (DISP_VLINE): Renamed to ...
37675 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
37676 * normal/menu.c (DISP_UL): Renamed to ...
37677 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
37678 * normal/menu.c (DISP_UR): Renamed to ...
37679 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
37680 * normal/menu.c (DISP_LL): Renamed to ...
37681 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
37682 * normal/menu.c (DISP_LR): Renamed to ...
37683 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
37684 * normal/menu.c (TERM_WIDTH): Renamed to ...
37685 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
37686 * normal/menu.c (TERM_HEIGHT): Renamed to ...
37687 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
37688 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
37689 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
37690 * normal/menu.c (TERM_MARGIN): Renamed to ...
37691 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
37692 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
37693 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
37694 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
37695 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
37696 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
37697 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
37698 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
37699 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
37700 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
37701 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
37702 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
37703 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
37704 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
37705 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
37706 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
37707 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
37708 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
37709 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
37710 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
37711 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
37712 All callers changed.
37713
37714 * include/grub/normal.h: New prototype.
37715
37716 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
37717 normal/menu_entry.c.
37718 (normal_mod_SOURCES): Likewise.
37719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37720 (normal_mod_SOURCES): Likewise.
37721
37722 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
37723
37724 * include/grub/normal.h (grub_halt_init): New prototype.
37725 (grub_halt_fini): Likewise.
37726 (grub_reboot_init): Likewise.
37727 (grub_reboot_fini): Likewise.
37728
37729 * util/grub-emu.c: Include signal.h.
37730 (main_env): New global variable.
37731 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
37732 catch C-c.
37733 (grub_machine_fini): New function.
37734 (main): Call grub_halt_init and grub_reboot_init before
37735 grub_main, and grub_reboot_fini and grub_halt_fini after it.
37736 Call setjmp with MAIN_ENV to go back afterwards.
37737 Call grub_machine_fini right before return.
37738
37739 * include/grub/util/misc.h: Include setjmp.h.
37740 (main_env): New prototype.
37741
37742 * include/grub/kernel.h (grub_machine_fini): New prototype.
37743 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
37744 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
37745
37746 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
37747 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
37748 * term/i386/pc/console.c (grub_console_fini): Likewise.
37749
37750 * util/i386/pc/misc.c: New file.
37751
37752 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
37753 util/i386/pc/misc.c, commands/i386/pc/halt.c and
37754 commands/i386/pc/reboot.c.
37755
37756 2005-02-14 Guillem Jover <guillem@hadrons.org>
37757
37758 * include/grub/dl.h (grub_dl_check_header): New prototype.
37759 (grub_arch_dl_check_header): Change return type to grub_err_t,
37760 remove size parameter and export function. Update all callers.
37761 * kern/dl.c (grub_dl_check_header): New function.
37762 (grub_dl_load_core): Use `grub_dl_check_header' instead of
37763 `grub_arch_dl_check_header'. Check ELF type. Check if sections
37764 are inside the core.
37765 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
37766 independent ELF header checks.
37767 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
37768 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
37769 `grub_dl_check_header' instead of explicit checks. Check for the
37770 ELF type.
37771 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
37772 `grub_dl_check_header' instead of explicit checks. Remove arch
37773 specific ELF header checks.
37774
37775 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
37776 argument SIZE.
37777
37778 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
37779
37780 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
37781 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
37782
37783 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
37784
37785 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
37786 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
37787 (part_map_iterate): Clear `grub_errno' and return 0 if
37788 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
37789 * partmap/amiga.c (amiga_partition_map_iterate): Return
37790 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
37791 * partmap/apple.c (apple_partition_map_iterate): Likewise.
37792
37793 2005-02-01 Guillem Jover <guillem@hadrons.org>
37794
37795 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
37796 help info.
37797
37798 2005-01-31 Marco Gerards <metgerards@student.han.nl>
37799
37800 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
37801 Removed prototype.
37802 (grub_rescue_cmd_linux): New prototype.
37803 (grub_rescue_cmd_initrd): Likewise.
37804 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
37805 `bi_rec'.
37806 (grub_linux_release_mem): Release the memory for the initrd.
37807 (grub_load_linux): Renamed from this...
37808 (grub_rescue_cmd_linux): ...To this. Changed all callers.
37809 Changed `entry' not to be static. Loop over memory regions to
37810 find another one when the default fails.
37811 (grub_rescue_cmd_initrd): New function.
37812 (grub_linux_init): Remove function.
37813 (grub_linux_fini): Likewise.
37814 (GRUB_MOD_INIT): Register `initrd'.
37815 (GRUB_MOD_FINI): Unregister `initrd'.
37816 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
37817 Function removed.
37818 (grub_linux_normal_fini): Likewise.
37819 (GRUB_MOD_INIT): Register `initrd'.
37820 (GRUB_MOD_FINI): Unregister `initrd'.
37821
37822 2005-01-31 Marco Gerards <metgerards@student.han.nl>
37823
37824 * commands/help.c: New file.
37825 * normal/arg.c (show_help): Renamed to...
37826 (grub_arg_show_help): ... this.
37827 * commands/i386/pc/halt.c: New file.
37828 * commands/i386/pc/reboot.c: Likewise.
37829 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
37830 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
37831 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
37832 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
37833 variables.
37834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37835 `commands/help.c'.
37836 (pkgdata_MODULES): Add `help.mod'.
37837 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
37838 * grub/i386/pc/init.h (grub_reboot): New prototype.
37839 (grub_halt): Likewise.
37840 * include/grub/normal.h (grub_arg_show_help): New prototype.
37841 (grub_help_init): Likewise.
37842 (grub_help_fini): Likewise.
37843 * util/grub-emu.c (main): Initialize and deinitialize the help
37844 command.
37845
37846 * normal/cmdline.c (grub_cmdline_get): Doc fix.
37847
37848 * normal/command.c (grub_command_init): Fixed the description of
37849 the `set' and `unset' commands.
37850
37851 2005-01-31 Marco Gerards <metgerards@student.han.nl>
37852
37853 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
37854 function.
37855 * commands/ieee1275/halt.c: New file.
37856 * commands/ieee1275/reboot.c: Likewise.
37857 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
37858 `__attribute__ ((unused))'. Some GCS related fixed.
37859 (grub_suspend_init) [GRUB_UTIL]: Function removed.
37860 (grub_suspend_fini): Likewise.
37861 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
37862 and `halt.mod'.
37863 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
37864 (halt_mod_CFLAGS): New variables.
37865 * include/grub/powerpc/ieee1275/ieee1275.h
37866 (grub_ieee1275_interpret): New prototype.
37867
37868 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
37869
37870 * include/grub/misc.h (memmove): New prototype.
37871 (memcpy): Likewise.
37872
37873 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
37874
37875 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
37876 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
37877
37878 2005-01-22 Marco Gerards <metgerards@student.han.nl>
37879
37880 * kern/misc.c (grub_strndup): Function rewritten.
37881
37882 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
37883
37884 * normal/menu.c (TERM_WIDTH): Macro redefined.
37885 (TERM_TOP_BORDER_Y): Likewise.
37886 (draw_border): Replaced while-loop by a for-loop. Make the number
37887 of lines consistent with the number of lines displayed in
37888 print_entries. Added a margin below the rectangle.
37889 (print_entry): Make the entry fit in the rectangle.
37890 (print_entries): Display the scroll arrows next to the right
37891 border.
37892
37893 2005-01-21 Marco Gerards <metgerards@student.han.nl>
37894
37895 * fs/minix.c (grub_minix_find_file): Reserve more space for
37896 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
37897 `grub_strncpy' to copy `path' into it.
37898
37899 2005-01-21 Marco Gerards <metgerards@student.han.nl>
37900
37901 Add the loopback device, a device via which files can be accessed
37902 as devices.
37903
37904 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
37905 (pkgdata_MODULES): Add loopback.mod.
37906 (loopback_mod_SOURCES): New variable.
37907 (loopback_mod_CFLAGS): Likewise.
37908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37909 `disk/loopback.c'.
37910 (pkgdata_MODULES): Add loopback.mod.
37911 (loopback_mod_SOURCES): New variable.
37912 (loopback_mod_CFLAGS): Likewise.
37913 * disk/loopback.c: new file.
37914 * include/grub/normal.h (grub_loop_init): New prototype.
37915 (grub_loop_fini): New prototype.
37916 * util/grub-emu.c (main): Initialize and de-initialize loopback
37917 support.
37918 * include/grub/disk.h (grub_disk_dev_id): Add
37919 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
37920
37921 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
37922
37923 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
37924 function.
37925 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
37926 (suspend_mod_SOURCES): New variable.
37927 (suspend_mod_CFLAGS): Likewise.
37928 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
37929 New prototype.
37930 * commands/ieee1275/suspend.c: New file.
37931
37932 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37933
37934 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
37935 ((unused))' to `__attribute__ ((used))'.
37936 (GRUB_MOD_FINI): Likewise.
37937 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
37938 * genmk.rb (PModule): Assign space to common symbols when linking
37939 modules.
37940
37941 2005-01-20 Marco Gerards <metgerards@student.han.nl>
37942
37943 * include/grub/mm.h (grub_mm_init_region): Change the type of the
37944 `unsigned' arguments to `grub_size_t'.
37945 (grub_malloc): Likewise.
37946 (grub_realloc): Likewise.
37947 (grub_memalign): Likewise.
37948 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
37949 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
37950 * util/misc.c (grub_malloc): Likewise.
37951 (grub_realloc): Likewise.
37952 * kern/mm.c (get_header_from_pointer): Change the casts to
37953 `unsigned' into a cast to `grub_size_t'.
37954
37955 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
37956 point to `currnode' when `currnode' is changed.
37957
37958 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
37959 Schottelius <nico-linux@schottelius.org>.
37960
37961 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
37962
37963 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
37964 (note_path): Remove variable.
37965 (GRUB_IEEE1275_NOTE_NAME): New macro.
37966 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
37967 (grub_ieee1275_note_hdr): New structure.
37968 (grub_ieee1275_note_desc): Likewise.
37969 (grub_ieee1275_note): Likewise.
37970 (load_note): Remove `dir' argument. All callers updated. Remove
37971 `note_img' and `path'. Do not load a file from `note_path'.
37972 Initialize a struct grub_ieee1275_note and write that to `out'.
37973 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
37974
37975 2005-01-05 Marco Gerards <metgerards@student.han.nl>
37976
37977 * util/misc.c (grub_util_read_image): Revert last change. It
37978 called `grub_util_read_at', which seeks from the beginning of the
37979 file.
37980
37981 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
37982
37983 * TODO: Add note about endianness in grub-mkimage.
37984 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
37985 section.
37986 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
37987 (grub_mkimage_SOURCES): New target.
37988 * include/grub/kernel.h (grub_start_addr): Remove variable.
37989 (grub_end_addr): Likewise.
37990 (grub_total_module_size): Likewise.
37991 (grub_kernel_image_size): Likewise.
37992 (GRUB_MODULE_MAGIC): New constant.
37993 (grub_module_info): New structure.
37994 (grub_arch_modules_addr): New prototype.
37995 (grub_get_end_addr): Remove prototype.
37996 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
37997 * include/grub/powerpc/ieee1275/kernel.h: New file.
37998 * include/grub/util/misc.h (grub_util_get_fp_size): New
37999 prototype.
38000 (grub_util_read_at): Likewise.
38001 (grub_util_write_image_at): Likewise.
38002 * kern/main.c (grub_get_end_addr): Remove function.
38003 (grub_load_modules): Call grub_arch_modules_addr instead of using
38004 grub_end_addr. Look for a grub_module_info struct in memory. Use
38005 the grub_module_info fields instead of calling grub_get_end_addr
38006 as loop conditions. Move grub_add_unused_region code here.
38007 (grub_add_unused_region): Remove function.
38008 * kern/i386/pc/init.c: Include grub/cache.h.
38009 (grub_machine_init): Remove call to grub_get_end_addr. Remove
38010 one call to add_mem_region.
38011 (grub_arch_modules_addr): New function.
38012 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
38013 (grub_total_module_size): Likewise.
38014 Include grub/machine/kernel.h.
38015 (grub_arch_modules_addr): New function.
38016 * util/grub-emu.c (grub_end_addr): Remove variable.
38017 (grub_total_module_size): Likewise.
38018 (grub_arch_modules_addr): New function.
38019 * util/misc.c: Include unistd.h.
38020 (grub_util_get_fp_size): New function.
38021 (grub_util_read_at): Likewise.
38022 (grub_util_write_image_at): Likewise.
38023 (grub_util_read_image): Call grub_util_read_at.
38024 (grub_util_write_image): Call grub_util_write_image_at.
38025 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
38026 additional memory in kernel_img for a struct grub_module_info.
38027 Fill in that grub_module_info.
38028 * util/powerpc/ieee1275/grub-mkimage.c: New file.
38029
38030 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38031
38032 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
38033 New function.
38034 * include/grub/powerpc/ieee1275/ieee1275.h
38035 (grub_ieee1275_milliseconds): New prototype.
38036 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
38037 Change to 1000.
38038 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
38039 grub_ieee1275_milliseconds.
38040
38041 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38042
38043 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
38044 variable.
38045 (find_options): New function.
38046 (cmain): Call find_options.
38047 * include/grub/powerpc/ieee1275/ieee1275.h
38048 (grub_ieee1275_realmode): New extern variable.
38049 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
38050 grub_map if grub_ieee1275_realmode is false.
38051
38052 2004-12-29 Marco Gerards <metgerards@student.han.nl>
38053
38054 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
38055 lines are inserted and make it work like readline. Reported by
38056 Vincent Pelletier <subdino2004@yahoo.fr>.
38057
38058 2004-12-28 Marco Gerards <metgerards@student.han.nl>
38059
38060 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
38061
38062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
38063 `kern/powerpc/cache.S'.
38064
38065 2004-12-27 Marco Gerards <metgerards@student.han.nl>
38066
38067 * genmk.rb: Handle the `Program' class in the main loop. Written
38068 by Johan Rydberg <jrydberg@gnu.org>.
38069 (Program): New class.
38070 (programs): New variable.
38071 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
38072 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
38073 instead of "grub/kernel.h". Include <grub/machine/init.h>.
38074 (help_arch): Function removed.
38075 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
38076 `powerpc/libgcc.h' and `loader.h'.
38077 (pkgdata_PROGRAMS): New variable.
38078 (sbin_UTILITIES): Variable removed.
38079 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
38080 (grubof_SOURCES): Variable re-defined so it only includes the
38081 core functionality.
38082 (grubof_CFLAGS): Remove `-DGRUBOF'.
38083 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
38084 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
38085 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
38086 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
38087 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
38088 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
38089 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
38090 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
38091 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
38092 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
38093 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38094 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
38095 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
38096 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
38097 (pc_mod_CFLAGS): New variables.
38098 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
38099 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
38100 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
38101 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
38102 Moved from here...
38103 * include/grub/i386/pc/init.h (grub_os_area_addr)
38104 (rub_os_area_size): ... to here.
38105 * include/grub/powerpc/ieee1275/ieee1275.h
38106 (grub_ieee1275_entry_fn): Export symbol.
38107 * include/grub/powerpc/ieee1275/init.h: New file.
38108 * include/grub/powerpc/libgcc.h: Likewise.
38109 * include/grub/cache.h: Likewise.
38110 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
38111 <hollis@penguinppc.org>.
38112 * kern/dl.c: Include <grub/cache.h>.
38113 (grub_dl_flush_cache): New function.
38114 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
38115 for this module.
38116 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
38117 (grub_console_init): Removed prototypes.
38118 (grub_machine_init): Don't initialize the modules anymore.
38119 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
38120 static.
38121 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
38122 Macro undef removed.
38123 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
38124 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
38125 relocation `R_PPC_REL32'. Return an error when the relocation is
38126 unknown.
38127 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
38128 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
38129 * util/misc.c (grub_arch_sync_caches): Likewise.
38130
38131 2004-12-19 Marco Gerards <metgerards@student.han.nl>
38132
38133 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
38134 `symlist.c', add `grubof_symlist.c'.
38135 (symlist.c): Variable removed.
38136 (grubof_HEADERS): Variable added.
38137 (grubof_symlist.c): New target.
38138 (kernel_syms.lst): Use `grubof_HEADERS' instead of
38139 `kernel_img_HEADERS'.
38140 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
38141 * kern/powerpc/dl.c: New file.
38142 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
38143 Function removed.
38144 (grub_arch_dl_relocate_symbols): Likewise.
38145 (grub_register_exported_symbols): Likewise.
38146
38147 2004-12-13 Marco Gerards <metgerards@student.han.nl>
38148
38149 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
38150 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
38151 to fail instead. Reported by Vincent Pelletier
38152 <subdino2004@yahoo.fr>.
38153
38154 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
38155 it is not allocated. Reported by Vincent Pelletier
38156 <subdino2004@yahoo.fr>.
38157
38158 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
38159 output so the output looks better.
38160
38161 2004-12-04 Marco Gerards <metgerards@student.han.nl>
38162
38163 Modulize the partition map support and add support for the amiga
38164 partition map.
38165
38166 * commands/ls.c: Include <grub/partition.h> instead of
38167 <grub/machine/partition.h>.
38168 * kern/disk.c: Likewise.
38169 * kern/rescue.c: Likewise.
38170 * loader/i386/pc/chainloader.c: Likewise.
38171 * normal/cmdline.c: Likewise.
38172 * kern/powerpc/ieee1275/init.c: Likewise.
38173 (grub_machine_init): Call `grub_pc_partition_map_init',
38174 `grub_amiga_partition_map_init' and
38175 `grub_apple_partition_map_init'.
38176 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
38177 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
38178 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
38179 `partition.h' and `pc_partition.h'.
38180 (grub_setup_SOURCES): Remove
38181 `disk/i386/pc/partition.c'. Add `kern/partition.c',
38182 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
38183 (grub_emu_SOURCES): Likewise.
38184 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
38185 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
38186 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
38187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
38188 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
38189 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
38190 (grubof_SOURCES): Likewise.
38191 * disk/i386/pc/partition.c: File removed.
38192 * disk/powerpc/ieee1275/partition.c: Likewise.
38193 * include/grub/powerpc/ieee1275/partition.h: Likewise.
38194 * include/grub/i386/pc/partition.h: Likewise.
38195 * kern/partition.c: New file.
38196 * partmap/amiga.c: Likewise.
38197 * partmap/apple.c: Likewise.
38198 * partmap/pc.c: Likewise.
38199 * include/grub/partition.h: Likewise..
38200 * include/grub/pc_partition.h: Likewise.
38201 * util/grub-emu.c: Include <grub/partition.h> instead of
38202 <grub/machine/partition.h>.
38203 (main): Call `grub_pc_partition_map_init',
38204 `grub_amiga_partition_map_init' and
38205 `grub_apple_partition_map_init' and deinitialize afterwards.
38206 * util/i386/pc/biosdisk.c: Include `#include
38207 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
38208 `<grub/machine/partition.h>'.
38209 * util/i386/pc/grub-setup.c: Likewise.
38210 * util/i386/pc/biosdisk.c: Likewise.
38211 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
38212 partition information in case of a PC partition.
38213 * util/i386/pc/grub-setup.c: Include `#include
38214 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
38215 `<grub/machine/partition.h>'.
38216 (setup): Only access the PC specific partition information in case
38217 of a PC partition.
38218
38219 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
38220
38221 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
38222 (grub_longjmp): Likewise.
38223 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
38224 20.
38225 * normal/powerpc/setjmp.S: New file.
38226 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
38227 `normal/powerpc/setjmp.S'.
38228 (grubof_CFLAGS): Add `-DGRUBOF'.
38229 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
38230 [GRUB_UTIL && !GRUBOF].
38231
38232 2004-11-16 Marco Gerards <metgerards@student.han.nl>
38233
38234 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
38235 property named `name'. Correctly handle the error returned by
38236 `grub_ieee1275_finddevice' if a device can not be opened.
38237
38238 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
38239
38240 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
38241 `actual' for negativity.
38242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
38243 kern/fshelp.c.
38244
38245 2004-11-01 Marco Gerards <metgerards@student.han.nl>
38246
38247 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
38248 (PAGE_OFFSET): New macro.
38249 (CRTC_ADDR_PORT): Likewise.
38250 (CRTC_DATA_PORT): Likewise.
38251 (START_ADDR_HIGH_REGISTER): Likewise.
38252 (START_ADDR_LOW_REGISTER): Likewise.
38253 (GRAPHICS_ADDR_PORT): Likewise.
38254 (GRAPHICS_DATA_PORT): Likewise.
38255 (READ_MAP_REGISTER): Likewise.
38256 (INPUT_STATUS1_REGISTER): Likewise.
38257 (INPUT_STATUS1_VERTR_BIT): Likewise.
38258 (page): New variable.
38259 (wait_vretrace): New function.
38260 (set_read_map): Likewise.
38261 (set_start_address): Likewise.
38262 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
38263 the right page.
38264 (check_vga_mem): Take the page into account.
38265 (write_char): Likewise.
38266 (write_cursor): Likewise.
38267 (scroll_up): Likewise. Copy the page to the page that is not
38268 shown and switch between both pages.
38269 (grub_vga_putchar): Fix off by one error.
38270 (grub_vga_cls): Wait for the vertical retrace. Take the page into
38271 account.
38272
38273 2004-11-01 Marco Gerards <metgerards@student.han.nl>
38274
38275 Add support for iso9660 (including rockridge).
38276
38277 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
38278 (iso9660_mod_SOURCES): New variable.
38279 (iso9660_mod_CFLAGS): Likewise.
38280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
38281 * include/grub/fs.h (grub_iso9660_init): New prototype.
38282 * util/grub-emu.c (main): Call `grub_iso9660_init'.
38283 * fs/iso9660.c: New file.
38284
38285 * include/grub/misc.h (grub_strncat): New prototype.
38286 * kern/misc.c (grub_strncat): New function.
38287
38288 * fs/hfs.c (grub_hfs_mount): Translate the error
38289 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
38290 * fs/jfs.c (grub_jfs_mount): Likewise.
38291 * fs/ufs.c (grub_ufs_mount): Likewise.
38292
38293 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
38294
38295 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
38296 which initialized BAT registers.
38297 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
38298 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
38299 Move from here...
38300 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
38301 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
38302 ... to here.
38303 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
38304 (grub_mapclaim): Likewise.
38305 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
38306 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
38307 hand.
38308
38309 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
38310
38311 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
38312 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
38313 -ffreestanding and -msoft-float.
38314
38315 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
38316
38317 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
38318 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
38319 set in grub_ieee1275_flags.
38320
38321 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
38322
38323 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
38324 prototype.
38325 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
38326 grub_console_init first.
38327 Change the memory range used for grub_ieee1275_claim and
38328 grub_mm_init_region.
38329 Print an error message if the claim fails.
38330 Include <grub/misc.h>.
38331
38332 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
38333
38334 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
38335 Call grub_children_iterate for device nodes of type `scsi',
38336 `ide', or `ata'.
38337 (grub_ofdisk_open): Remove manual device alias resolution.
38338 Fix memory leak when device cannot be opened.
38339 * include/grub/powerpc/ieee1275/ieee1275.h
38340 (grub_children_iterate): New prototype.
38341 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
38342 New function.
38343 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38344 Return -1 if args.size was -1.
38345
38346 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
38347
38348 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
38349 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
38350 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
38351 Open Firmware's memory for it; claim memory from _start to _end.
38352 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
38353 (_end): New extern.
38354 (_start): Zero BSS from __bss_start to _end.
38355 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
38356 New extern.
38357 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
38358
38359 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
38360
38361 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
38362 -1 if args.base was -1.
38363
38364 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
38365
38366 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
38367 escape sequence instead of a literal ^L. Also call
38368 grub_ofconsole_gotoxy.
38369
38370 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
38371
38372 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
38373 void * arguments to grub_addr_t. All callers updated. Also make
38374 the `result' argument optional.
38375 (grub_ieee1275_release): change void * arguments to grub_addr_t.
38376 All callers updated.
38377
38378 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
38379
38380 * commands/ls.c (grub_ls_list_files): Use the string following the
38381 initial ')', if present, as the filesystem path.
38382 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
38383
38384 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
38385
38386 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
38387
38388 Make the source code of the menu interface more readable.
38389
38390 * normal/menu.c: Include grub/mm.h.
38391 (TERM_WIDTH): New macro.
38392 (TERM_HEIGHT): Likewise.
38393 (TERM_INFO_HEIGHT): Likewise.
38394 (TERM_MARGIN): Likewise.
38395 (TERM_SCROLL_WIDTH): Likewise.
38396 (TERM_TOP_BORDER_Y): Likewise.
38397 (TERM_LEFT_BORDER_X): Likewise.
38398 (TERM_BORDER_WIDTH): Likewise.
38399 (TERM_MESSAGE_HEIGHT): Likewise.
38400 (TERM_BORDER_HEIGHT): Likewise.
38401 (TERM_NUM_ENTRIES): Likewise.
38402 (TERM_FIRST_ENTRY_Y): Likewise.
38403 (TERM_ENTRY_WIDTH): Likewise.
38404 (TERM_CURSOR_X): Likewise.
38405 (draw_border): Use macros instead of magic numbers.
38406 (print_entry): Likewise.
38407 (print_entries): Likewise.
38408 (run_menu): Likewise. Also, handle the key 'e'.
38409 (run_menu_entry): Ignore empty command lines.
38410 (print_message): Added a new argument EDIT. If EDIT is true,
38411 print a different message.
38412 (init_page): Likewise.
38413 (edit_menu_entry): New function. Not implemented yet.
38414
38415 2004-09-17 Marco Gerards <metgerards@student.han.nl>
38416
38417 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
38418 can be loaded from normal mode.
38419
38420 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
38421 `multiboot.mod'.
38422 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
38423 (multiboot_mod_CFLAGS): New variables.
38424 * loader/i386/pc/linux_normal.c: New file.
38425 * loader/i386/pc/multiboot_normal.c: Likewise.
38426
38427 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
38428 attribute `unused'.
38429
38430 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
38431 `fdiro' to read the mode information from instead of `diro'.
38432
38433 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
38434 looking up a symlink.
38435
38436 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
38437 macro.
38438 * normal/command.c (grub_command_execute): Don't parse the
38439 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
38440 flags of the command.
38441
38442 * normal/menu.c (grub_menu_run): Fix typo.
38443
38444 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
38445
38446 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
38447
38448 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
38449 `y + 1' instead of `y - 1'.
38450
38451 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
38452
38453 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
38454
38455 From Hollis Blanchard <hollis@penguinppc.org>:
38456 * kern/misc.c (memmove): New alias for grub_memmove.
38457 (memcmp): New alias for grub_memcmp.
38458 (memset): New alias for grub_memset.
38459 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38460 Change "int handle" to "grub_ieee1275_phandle_t handle".
38461 * include/grub/powerpc/ieee1275/ieee1275.h
38462 (grub_ieee1275_get_property): Likewise.
38463
38464 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
38465
38466 Added normal mode command `chainloader' as module chain.mod, which
38467 depends on normal.mod and _chain.mod.
38468
38469 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
38470 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
38471 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
38472 Deleted prototype.
38473 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
38474 but arguments parsing moved to ...
38475 (grub_chainloader_cmd): ... here. New function.
38476 * include/grub/i386/pc/chainloader.h: New file.
38477 * loader/i386/pc/chainloader_normal.c: Likewise.
38478
38479 2004-09-11 Marco Gerards <metgerards@student.han.nl>
38480
38481 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
38482 (grub_mkimage_LDFLAGS): Likewise.
38483 (grub_emu_SOURCES): Likewise.
38484 (kernel_img_HEADERS): Added fshelp.h.
38485 * fs/ext2.c: Include <grub/fshelp.h>.
38486 (FILETYPE_REG): New macro.
38487 (FILETYPE_INO_REG): Likewise.
38488 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
38489 Changed all users.
38490 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
38491 all users.
38492 (grub_fshelp_node): New struct.
38493 (grub_ext2_data): Added member `diropen'. Changed member `inode'
38494 to a pointer.
38495 (grub_ext2_get_file_block): Removed function.
38496 (grub_ext2_read_block): New function.
38497 (grub_ext2_read_file): Replaced parameter `data' by `node'.
38498 This function was written.
38499 (grub_ext2_mount): Read the root inode. Create a diropen struct.
38500 (grub_ext2_find_file): Removed function.
38501 (grub_ext2_read_symlink): New function.
38502 (grub_ext2_iterate_dir): Likewise.
38503 (grub_ext2_open): Rewritten.
38504 (grub_ext2_dir): Rewritten.
38505 * include/grub/fshelp.h: New file.
38506 * fs/fshelp.c: Likewise.
38507
38508 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
38509
38510 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
38511 (print_message): Add a missing newline.
38512 (run_menu): Added timeout support.
38513 (run_menu_entry): New local function.
38514 (grub_menu_run): Added support for booting.
38515
38516 * kern/loader.c (grub_loader_is_loaded): New function.
38517
38518 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
38519 (grub_get_rtc): Exported.
38520
38521 * include/grub/i386/pc/time.h: Include grub/symbol.h.
38522 (grub_get_rtc): Exported.
38523
38524 * include/grub/normal.h (struct grub_command_list): Remove
38525 constant from the member `command'.
38526
38527 * include/grub/loader.h (grub_loader_is_loaded): Declared.
38528
38529 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
38530
38531 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
38532
38533 2004-08-28 Marco Gerards <metgerards@student.han.nl>
38534
38535 Add support for the JFS filesystem.
38536
38537 * fs/jfs.c: New file.
38538 * include/grub/fs.h (grub_jfs_init): New prototype.
38539 (grub_jfs_fini): New prototype.
38540 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
38541 (grub_emu_SOURCES): Likewise.
38542 (pkgdata_MODULES): Add jfs.mod.
38543 (jfs_mod_SOURCES): New variable.
38544 (jfs_mod_CFLAGS): Likewise.
38545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
38546 (grubof_SOURCES): Likewise.
38547 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
38548
38549 * fs/fat.c (grub_fat_find_dir): Convert the filename little
38550 endian to the host endian.
38551 (grub_fat_utf16_to_utf8): Move function from there...
38552 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
38553 the endianness of the source string anymore.
38554 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
38555
38556 2004-08-24 Marco Gerards <metgerards@student.han.nl>
38557
38558 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
38559 (grub_boot_fini) [GRUB_UTIL]: Likewise.
38560 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
38561 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
38562
38563 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
38564 (grub_hfs_iterate_dir): Make the function static. Add prototypes
38565 for `node_found' and `it_dir'.
38566 (grub_hfs_dir): Add prototype for `dir_hook'.
38567
38568 * fs/minix.c (grub_minix_get_file_block): Add prototype for
38569 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
38570 and `indir32' to silence a gcc warning.
38571
38572 * include/grub/fs.h (grub_hfs_init): New prototype.
38573 (grub_hfs_fini): Likewise.
38574
38575
38576 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
38577
38578 Each disk device has its own id now. This is useful to make use
38579 of multiple disk devices.
38580
38581 * include/grub/disk.h (grub_disk_dev_id): New enum.
38582 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
38583 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
38584
38585 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
38586 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
38587
38588 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
38589 GRUB_DISK_DEVICE_OFDISK_ID as an id.
38590
38591 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
38592 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
38593
38594 * include/grub/disk.h (struct grub_disk_dev): Added a new member
38595 "id" which is used by the cache manager.
38596
38597 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
38598 of just "GRUB".
38599
38600 2004-08-18 Marco Gerards <metgerards@student.han.nl>
38601
38602 * fs/hfs.c: New file.
38603 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
38604 (grub_emu_SOURCES): Likewise.
38605 (pkgdata_MODULES): Add hfs.mod.
38606 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
38607 (grubof_SOURCES): Likewise.
38608 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
38609
38610 * include/grub/misc.h (grub_strncasecmp): Add prototype.
38611 * kern/misc.c (grub_strncasecmp): Add function.
38612
38613 2004-08-14 Marco Gerards <metgerards@student.han.nl>
38614
38615 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
38616 with parentheses.
38617
38618 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
38619 (grub_ext2_dir): In case the directory entry type is unknown, read
38620 it from the inode.
38621
38622 2004-08-02 Peter Bruin <pjbruin@dds.nl>
38623
38624 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
38625 grub_load_linux instead of grub_rescue_cmd_linux as second
38626 argument of grub_rescue_register_command.
38627
38628 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
38629
38630 2004-07-27 Marco Gerards <metgerards@student.han.nl>
38631
38632 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
38633 function.
38634 * commands/boot.c: Remove the check for `GRUB_UTIL'.
38635 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
38636 `loader/powerpc/ieee1275/linux.c',
38637 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
38638 * include/grub/powerpc/ieee1275/ieee1275.h
38639 (grub_ieee1275_release): New prototype.
38640 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
38641 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
38642 normal, boot, linux and linux_normal.
38643 * loader/powerpc/ieee1275/linux.c: New file.
38644 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
38645
38646 2004-07-12 Marco Gerards <metgerards@student.han.nl>
38647
38648 * normal/arg.c (grub_arg_parse): Correct error handling after
38649 reallocating the argumentlist (check if `argl' is not null instead
38650 of checking if `args' is not null).
38651 * kern/mm.c (grub_realloc): Return the same pointer when using the
38652 same region, instead of returning the header address.
38653
38654 2004-07-11 Marco Gerards <metgerards@student.han.nl>
38655
38656 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
38657 one block instead of two when looking for the initial partition.
38658 (grub_partition_probe): Initialize the local variable `p' with 0.
38659 Use base 10 for the grub_strtoul call.
38660 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
38661 need for one local variable.
38662 (grub_strtoul): Don't add the new value to `num', instead of that
38663 just assign it.
38664
38665 2004-07-11 Marco Gerards <metgerards@student.han.nl>
38666
38667 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
38668 (pxeboot_img_SOURCES): New variable.
38669 (pxeboot_img_ASFLAGS): Likewise.
38670 (pxeboot_img_LDFLAGS): Likewise.
38671 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
38672 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
38673 <lode_leroy@hotmail.com>.
38674
38675 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
38676
38677 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
38678 there was no input.
38679
38680 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
38681
38682 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
38683 the history buffer logic.
38684
38685 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
38686
38687 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
38688 (FILETYPE_INO_SYMLINK): New macros.
38689 (grub_ext2_find_file): Check if the node is a directory using the
38690 inode stat information instead of using the filetype in the
38691 dirent. Exclude the first character of an absolute symlink.
38692 (grub_ext2_dir): Mask out the filetype part of the mode member of
38693 the inode.
38694
38695 2004-05-24 Marco Gerards <metgerards@student.han.nl>
38696
38697 Add support for UFS version 1 and 2. Add support for the minix
38698 filesystem version 1 and 2, both the variants with 14 and 30 long
38699 filenames.
38700
38701 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
38702 fs/minix.c.
38703 (grub_emu_SOURCES): Likewise.
38704 (pkgdata_MODULES): Add ufs.mod and minix.mod.
38705 (ufs_mod_SOURCES): New variable.
38706 (ufs_mod_CFLAGS): Likewise.
38707 (minix_mod_SOURCES): Likewise.
38708 (minix_mod_CFLAGS): Likewise.
38709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
38710 fs/minix.c.
38711 (grubof_SOURCES): Likewise.
38712 * fs/ufs.c: New file.
38713 * fs/minix.c: New file.
38714 * include/grub/fs.h (grub_ufs_init): New prototype.
38715 (grub_ufs_fini): Likewise.
38716 (grub_minix_init): Likewise.
38717 (grub_minix_fini): Likewise.
38718 * util/grub-emu.c (main): Initialize and deinitialize UFS and
38719 minix fs.
38720
38721 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
38722
38723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
38724 commands/ls.c, commands/terminal.c, commands/boot.c,
38725 commands/cmp.c and commands/cat.c.
38726 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
38727
38728 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
38729 "env.h"
38730
38731 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
38732
38733 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
38734 and grub_, respectively. Because the conversion is trivial and
38735 mechanical, I omit the details here. Please refer to the CVS
38736 if you need more information.
38737
38738 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
38739
38740 * include/pupa: Renamed to ...
38741 * include/grub: ... this.
38742 * util/i386/pc/pupa-mkimage.c: Renamed to ...
38743 * util/i386/pc/grub-mkimage.c: ... this.
38744 * util/i386/pc/pupa-setup.c: Renamed to ...
38745 * util/i386/pc/grub-setup.c: ... this.
38746 * util/pupa-emu.c: Renamed to ...
38747 * util/grub-emu.c: ... this.
38748
38749 2004-03-29 Marco Gerards <metgerards@student.han.nl>
38750
38751 Add support for the newworld apple macintosh (PPC). This has been
38752 tested on the powerbook 2000 only. It only adds support for
38753 generic ieee1275 functions, console and disk support. This should
38754 be easy to port to other architectures with support for Open
38755 Firmware.
38756
38757 * configure.ac: Accept the powerpc as host_cpu. In the case of
38758 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
38759 specific tests are only executed while building for the i386.
38760 Inverse test for crosscompile.
38761 * genmk.rb (Utility): Allow assembler files.
38762 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
38763 * conf/powerpc-ieee1275.rmk: New file.
38764 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
38765 * disk/powerpc/ieee1275/partition.c: Likewise.
38766 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
38767 * include/pupa/powerpc/ieee1275/console.h: Likewise.
38768 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
38769 * include/pupa/powerpc/ieee1275/time.h: Likewise.
38770 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
38771 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
38772 * include/pupa/powerpc/ieee1275/loader.h
38773 * include/pupa/powerpc/setjmp.h: Likewise.
38774 * include/pupa/powerpc/types.h: Likewise.
38775 * kern/powerpc/ieee1275/init.c: Likewise.
38776 * kern/powerpc/ieee1275/openfw.c: Likewise.
38777 * term/powerpc/ieee1275/ofconsole.c: Likewise.
38778
38779 These files were written by Johan Rydberg
38780 (jrydberg@night.trouble.net) and I only modified them slightly.
38781
38782 * boot/powerpc/ieee1275/cmain.c: New file.
38783 * boot/powerpc/ieee1275/crt0.S: Likewise.
38784 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
38785 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
38786
38787 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
38788
38789 * Makefile.in: Update copyright.
38790 * genmodsrc.sh: Likewise.
38791 * gensymlist.sh: Likewise.
38792 * term/i386/pc/vga.c: Indent correctly.
38793
38794 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
38795 bugreporting address.
38796 * util/i386/pc/pupa-setup.c (usage): Likewise,
38797 (main): Call pupa_ext2_init and pupa_ext2_fini.
38798
38799 * fs/fat.c (log2): Renamed to ...
38800 (fat_log2): ... this.
38801 All callers changed.
38802 * kern/misc.c (memcpy): Alias to pupa_memmove.
38803 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
38804 lvalue cast.
38805 * util/console.c (pupa_ncurses_fini): Return 0.
38806
38807 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
38808 Move fail label here.
38809 [__GNU__]: Don't warn when using stat.
38810 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
38811 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
38812 long int. Use strtol instead of strtoul.
38813
38814 2004-03-14 Marco Gerards <metgerards@student.han.nl>
38815
38816 * commands/boot.c: New file.
38817 * commands/cat.c: Likewise.
38818 * commands/cmp.c: Likewise.
38819 * commands/ls.c: Likewise.
38820 * commands/terminal.c: Likewise.
38821 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
38822 (pupa_register_command): Changed interface to match the new
38823 argument parser.
38824 (pupa_command_execute): Changed (almost rewritten) so it uses
38825 pupa_split_command. Added support for setting variables using the
38826 syntax `foo=bar'.
38827 (rescue_command): Changed to work with the new argument parser.
38828 (terminal_command): Moved from here to commands/terminal.c.
38829 (set_command): New function.
38830 (unset_command): New function.
38831 (insmod_command): New function.
38832 (rmmod_command): New function.
38833 (lsmod_command): New function.
38834 (pupa_command_init): Don't initialize the command terminal
38835 anymore. Initialize the commands set, unset, insmod, rmmod and
38836 lsmod.
38837 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
38838 (kernel_img_HEADERS): Add arg.h and env.h.
38839 (pupa_mkimage_LDFLAGS): Add kern/env.c.
38840 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
38841 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
38842 normal/arg.c.
38843 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
38844 terminal.mod.
38845 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
38846 (boot_mod_SOURCES): New variable.
38847 (terminal_mod_SOURCES): Likewise.
38848 (ls_mod_SOURCES): Likewise.
38849 (cmp_mod_SOURCES): Likewise.
38850 (cat_mod_SOURCES): Likewise.
38851
38852 * normal/arg.c: New file.
38853 * kern/env.c: Likewise.
38854 * include/pupa/arg.h: Likewise.
38855 * include/pupa/env.h: Likewise.
38856 * font/manager.c (font_command): Changed to match argument parsing
38857 interface changes.
38858 (PUPA_MOD_INIT): Likewise.
38859 * hello/hello.c (pupa_cmd_hello): Likewise.
38860 (PUPA_MOD_INIT): Likewise.
38861 * include/pupa/disk.h: Include <pupa/device.h>.
38862 (pupa_print_partinfo): New prototype.
38863 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
38864 (pupa_dl_get_prefix): Likewise.
38865 * include/pupa/misc.h: Include <pupa/err.h>.
38866 (pupa_isgraph): New prototype.
38867 (pupa_isdigit): Likewise.
38868 (pupa_split_cmdline): Likewise.
38869 * include/pupa/normal.h: Include <pupa/arg.h>.
38870 (pupa_command): Changed the prototype of the member `func' to
38871 match the argument parsing interface. Added member `options'.
38872 (pupa_register_command): Updated to match function.
38873 (pupa_arg_parse): New prototype.
38874 (pupa_hello_init) [PUPA_UTIL]: New prototype.
38875 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
38876 (pupa_ls_init) [PUPA_UTIL]: Likewise.
38877 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
38878 (pupa_cat_init) [PUPA_UTIL]: Likewise.
38879 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
38880 (pupa_boot_init) [PUPA_UTIL]: Likewise.
38881 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
38882 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
38883 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
38884 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
38885 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
38886 * kern/disk.c: Include <pupa/file.h>.
38887 (pupa_print_partinfo): New function.
38888 * kern/dl.c: Include <pupa/env.h>.
38889 (pupa_dl_dir): Variable removed.
38890 (pupa_dl_load): Use the environment variable `prefix' instead of
38891 the variable pupa_dl_dir.
38892 (pupa_dl_set_prefix): Function removed.
38893 (pupa_dl_get_prefix): Likewise.
38894 * kern/i386/pc/init.c: Include <pupa/env.h>.
38895 (pupa_machine_init): Use the environment variable `prefix' instead of
38896 using pupa_dl_set_prefix to set the prefix.
38897 * kern/main.c: Include <pupa/env.h>.
38898 (pupa_set_root_dev): Use the environment variable `prefix' instead of
38899 using pupa_dl_get_prefix to get the prefix.
38900 * kern/misc.c: Include <pupa/env.h>.
38901 (pupa_isdigit): New function.
38902 (pupa_isgraph): Likewise.
38903 (pupa_ftoa): Likewise.
38904 (pupa_vsprintf): Added support for printing values of the type
38905 `double'. Make it possible to format variable output when using
38906 formatting like `%1.2%f'.
38907 (pupa_split_cmdline): New function.
38908 * kern/rescue.c: Include <pupa/env.h>.
38909 (next_word): Removed function.
38910 (pupa_rescue_cmd_prefix): Likewise.
38911 (pupa_rescue_cmd_set): New function.
38912 (pupa_rescue_cmd_unset): New function.
38913 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
38914 split the command line instead of splitting it here. Added
38915 support for setting variables using the syntax `foo=bar'. Don't
38916 initialize the prefix command anymore. Initialized the set and
38917 unset commands.
38918 * normal/cmdline.c: Include <pupa/env.h>.
38919 (pupa_tab_complete): Added prototypes for print_simple_completion,
38920 print_partition_completion, add_completion, iterate_commands,
38921 iterate_dev, iterate_part and iterate_dir. Moved code to print
38922 partition information from here to kern/disk.c.
38923 (pupa_cmdline_run): Don't check if the function exists anymore.
38924 * normal/main.c: Include <pupa/env.h>.
38925 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
38926 instead of using pupa_dl_get_prefix to get the prefix.
38927 * term/i386/pc/vga.c: Include <pupa/arg.h>.
38928 (check_vga_mem): Cast pointers to `void *' to silence a gcc
38929 warning.
38930 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
38931 (pupa_vga_setcolor): Declare unused variables with `__attribute__
38932 ((unused))' to silence a gcc warning.
38933 (pupa_vga_setcolor): Likewise.
38934 (debug_command): Changed to match argument parsing
38935 interface changes.
38936 * util/pupa-emu.c: Include <pupa/env.h>.
38937 (options): Added 0's for unused fields to silence a gcc warning.
38938 (argp): Likewise.
38939 (main): Use the environment variable `prefix' instead of using
38940 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
38941 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
38942 and terminal.
38943
38944 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
38945 * util/misc.c: Include <malloc.h>.
38946 (pupa_malloc): Rewritten so errors are correctly reported.
38947 (pupa_realloc): Likewise.
38948 (pupa_memalign): Likewise.
38949 (pupa_mm_init_region): Declare unused variables with
38950 `__attribute__ ((unused))' to silence a gcc warning.
38951 * normal/i386/setjmp.S: Remove tab at the end of the file to
38952 silence a gcc warning.
38953 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
38954 variables with `__attribute__ ((unused))' to silence a gcc
38955 warning.
38956 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
38957 local variable i unsigned to silence a gcc warning.
38958
38959 * kern/term.c: Include <pupa/misc.h>.
38960 (pupa_more_lines): New variable.
38961 (pupa_more): Likewise.
38962 (pupa_putcode): When the pager is active pause at the end of every
38963 screen.
38964 (pupa_set_more): New function.
38965 * include/pupa/term.h (pupa_set_more): New prototype.
38966
38967
38968 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
38969
38970 Now this project is GRUB 2 rather than PUPA. The location of
38971 the CVS repository was moved to GRUB's.
38972
38973 * configure.ac: Use bug-grub as the reporting address.
38974 Use GRUB instead of PUPA.
38975 Change the version number to 1.90.
38976
38977 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
38978
38979 * genkernsyms.sh: Updated copyright information.
38980 * genmk.rb: Likewise.
38981 * genmodsrc.sh: Likewise.
38982 * gensymlist.sh: Likewise.
38983 * boot/i386/pc/boot.S: Likewise.
38984 * boot/i386/pc/diskboot.S: Likewise.
38985 * disk/i386/pc/biosdisk.c: Likewise.
38986 * disk/i386/pc/partition.c: Likewise.
38987 * font/manager.c: Likewise.
38988 * fs/ext2.c: Likewise.
38989 * fs/fat.c: Likewise.
38990 * include/pupa/boot.h: Likewise.
38991 * include/pupa/device.h: Likewise.
38992 * include/pupa/disk.h: Likewise.
38993 * include/pupa/dl.h: Likewise.
38994 * include/pupa/elf.h: Likewise.
38995 * include/pupa/err.h: Likewise.
38996 * include/pupa/file.h: Likewise.
38997 * include/pupa/font.h: Likewise.
38998 * include/pupa/fs.h: Likewise.
38999 * include/pupa/kernel.h: Likewise.
39000 * include/pupa/loader.h: Likewise.
39001 * include/pupa/misc.h: Likewise.
39002 * include/pupa/mm.h: Likewise.
39003 * include/pupa/net.h: Likewise.
39004 * include/pupa/normal.h: Likewise.
39005 * include/pupa/rescue.h: Likewise.
39006 * include/pupa/setjmp.h: Likewise.
39007 * include/pupa/symbol.h: Likewise.
39008 * include/pupa/term.h: Likewise.
39009 * include/pupa/types.h: Likewise.
39010 * include/pupa/i386/setjmp.h: Likewise.
39011 * include/pupa/i386/types.h: Likewise.
39012 * include/pupa/i386/pc/biosdisk.h: Likewise.
39013 * include/pupa/i386/pc/boot.h: Likewise.
39014 * include/pupa/i386/pc/console.h: Likewise.
39015 * include/pupa/i386/pc/init.h: Likewise.
39016 * include/pupa/i386/pc/kernel.h: Likewise.
39017 * include/pupa/i386/pc/linux.h: Likewise.
39018 * include/pupa/i386/pc/loader.h: Likewise.
39019 * include/pupa/i386/pc/memory.h: Likewise.
39020 * include/pupa/i386/pc/multiboot.h: Likewise.
39021 * include/pupa/i386/pc/partition.h: Likewise.
39022 * include/pupa/i386/pc/time.h: Likewise.
39023 * include/pupa/i386/pc/vga.h: Likewise.
39024 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
39025 * include/pupa/util/getroot.h: Likewise.
39026 * include/pupa/util/misc.h: Likewise.
39027 * include/pupa/util/resolve.h: Likewise.
39028 * kern/device.c: Likewise.
39029 * kern/disk.c: Likewise.
39030 * kern/dl.c: Likewise.
39031 * kern/err.c: Likewise.
39032 * kern/file.c: Likewise.
39033 * kern/fs.c: Likewise.
39034 * kern/loader.c: Likewise.
39035 * kern/main.c: Likewise.
39036 * kern/misc.c: Likewise.
39037 * kern/mm.c: Likewise.
39038 * kern/rescue.c: Likewise.
39039 * kern/term.c: Likewise.
39040 * kern/i386/dl.c: Likewise.
39041 * kern/i386/pc/init.c: Likewise.
39042 * kern/i386/pc/lzo1x.S: Likewise.
39043 * kern/i386/pc/startup.S: Likewise.
39044 * loader/i386/pc/chainloader.c: Likewise.
39045 * loader/i386/pc/linux.c: Likewise.
39046 * loader/i386/pc/multiboot.c: Likewise.
39047 * normal/cmdline.c: Likewise.
39048 * normal/command.c: Likewise.
39049 * normal/main.c: Likewise.
39050 * normal/menu.c: Likewise.
39051 * normal/i386/setjmp.S: Likewise.
39052 * term/i386/pc/console.c: Likewise.
39053 * term/i386/pc/vga.c: Likewise.
39054 * util/console.c: Likewise.
39055 * util/genmoddep.c: Likewise.
39056 * util/misc.c: Likewise.
39057 * util/pupa-emu.c: Likewise.
39058 * util/resolve.c: Likewise.
39059 * util/unifont2pff.rb: Likewise.
39060 * util/i386/pc/biosdisk.c: Likewise.
39061 * util/i386/pc/getroot.c: Likewise.
39062 * util/i386/pc/pupa-mkimage.c: Likewise.
39063 * util/i386/pc/pupa-setup.c: Likewise.
39064
39065 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
39066
39067 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
39068 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
39069 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
39070 reading and reset it after reading.
39071 (pupa_ext2_close): Return PUPA_ERR_NONE.
39072
39073 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
39074 Correct value.
39075 (struct linux_kernel_header): Add kernel_version and
39076 initrd_addr_max.
39077 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
39078 pupa_file_read succeeds.
39079 (pupa_rescue_cmd_initrd): Implement.
39080
39081 2003-12-03 Marco Gerards <metgerards@student.han.nl>
39082
39083 * fs/ext2.c (pupa_ext2_label): New function.
39084 (pupa_ext2_fs): Added label.
39085 * fs/fat.c (pupa_fat_label): New function.
39086 (pupa_fat_fs): Added label.
39087 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
39088
39089 * kern/misc.c (pupa_strndup): New function.
39090 * include/pupa/misc.h (pupa_strndup): New prototype.
39091
39092 * include/pupa/normal.h: Include <pupa/err.h>.
39093 (pupa_set_history): New prototype.
39094 (pupa_iterate_commands): New prototype.
39095 * normal/cmdline.c: Include <pupa/machine/partition.h>,
39096 <pupa/disk.h>, <pupa/file.h>.
39097 (hist_size): New variable.
39098 (hist_lines): Likewise.
39099 (hist_end): Likewise.
39100 (hist_used): Likewise.
39101 (pupa_set_history): New function.
39102 (pupa_history_get): Likewise.
39103 (pupa_history_add): Likewise.
39104 (pupa_history_replace): Likewise.
39105 (pupa_tab_complete): Likewise.
39106 (pupa_cmdline_run): Added tab completion and history buffer. Tab
39107 completion shows partitionnames while completing partitions, this
39108 feature was suggested by Jeff Bailey.
39109 * normal/command.c (pupa_iterate_commands): New function.
39110 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
39111 (pupa_normal_init): Initialize history buffer.
39112 (PUPA_MOD_INIT): Likewise.
39113 (pupa_normal_fini): Free the history buffer.
39114 (PUPA_MOD_FINI): Likewise.
39115
39116 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
39117 key.
39118
39119 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
39120 * configure.ac [i386]: Check for regparam bug.
39121 (NESTED_FUNC_ATTR) [! i386]: Defined.
39122
39123 2003-11-17 Marco Gerards <metgerards@student.han.nl>
39124
39125 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
39126 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
39127 (pupa_emu_SOURCES): New variable.
39128 (pupa_emu_LDFLAGS): Likewise.
39129 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
39130 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
39131 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
39132 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
39133 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
39134 (pupa_jmp_buf): New typedef.
39135 (pupa_setjmp) [PUPA_UTIL]: New macro.
39136 (pupa_longjmp) [PUPA_UTIL]: Likewise.
39137 * include/pupa/term.h (struct pupa_term): New member `refresh'.
39138 (pupa_refresh): New prototype.
39139 * include/pupa/util/getroot.h: New file.
39140 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
39141 it.
39142 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
39143 (pupa_rescue_cmd_cat): Likewise.
39144 (pupa_rescue_cmd_ls): Likewise.
39145 (pupa_rescue_cmd_testload): Likewise.
39146 (pupa_rescue_cmd_lsmod): Likewise.
39147 * normal/cmdline.c (pupa_cmdline_get): Likewise.
39148 * normal/menu.c (run_menu): Likewise.
39149 * kern/term.c (pupa_cls): Likewise.
39150 (pupa_refresh): New function.
39151 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
39152 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
39153 * util/console.c: New file.
39154
39155 * util/i386/pc/getroot.c: New file.
39156 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
39157 (pupa_putchar): New function.
39158 (pupa_refresh): Likewise.
39159 (xgetcwd): Function moved to ...
39160 (strip_extra_slashes): Likewise.
39161 (get_prefix): Likewise.
39162 * util/i386/pc/getroot.c: ... here.
39163 (find_root_device): Function moved and renamed to...
39164 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
39165 Changed all callers.
39166 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
39167 and renamed to...
39168 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
39169 Changed all callers.
39170 * util/misc.c (pupa_memalign): New function.
39171 (pupa_mm_init_region): Likewise.
39172 (pupa_register_exported_symbols): Likewise.
39173 (pupa_putchar): Function removed.
39174 * util/pupa-emu.c: New file.
39175
39176 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
39177
39178 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
39179 (_multiboot_mod_SOURCES): New variable.
39180 (_multiboot_mod_CFLAGS): Likewise.
39181 * loader/i386/pc/multiboot.c: New file.
39182 * include/pupa/i386/pc/multiboot.h: Likewise.
39183 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
39184 (pupa_multiboot_real_boot): New function.
39185 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
39186 (pupa_multiboot_real_boot): New prototype.
39187 (pupa_rescue_cmd_multiboot): Likewise
39188 (pupa_rescue_cmd_module): Likewise.
39189
39190 * kern/loader.c (pupa_loader_set): Continue when
39191 pupa_loader_unload_func() fails.
39192 (pupa_loader_unset): New function.
39193 * include/pupa/loader.h (pupa_loader_unset): New prototype.
39194
39195 * kern/misc.c (pupa_stpcpy): New function.
39196 * include/pupa/misc.h (pupa_stpcpy): New prototype.
39197
39198 2003-11-12 Marco Gerards <metgerards@student.han.nl>
39199
39200 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
39201 for available extensions.
39202
39203 * include/pupa/i386/pc/time.h: New file.
39204 * kern/disk.c: Include <pupa/machine/time.h>.
39205 (PUPA_CACHE_TIMEOUT): New macro.
39206 (pupa_last_time): New variable.
39207 (pupa_disk_open): Flush the cache when there was a timeout.
39208 (pupa_disk_close): Reset the timer.
39209 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
39210 pupa_currticks.
39211 * util/misc.c: Include <sys/times.h>
39212 (pupa_get_rtc): New function.
39213
39214 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
39215
39216 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
39217 as blocks.
39218 (pupa_ext2_get_file_block): Use blocks member.
39219
39220 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
39221 first block. Return -1 instead of pupa_errno on error.
39222
39223 2003-10-27 Marco Gerards <metgerards@student.han.nl>
39224
39225 * README: In the pupa-mkimage example use _chain instead of chain
39226 and ext2 instead of fat.
39227 * TODO: Replace ext2fs with jfs as an example. Add an item for
39228 adding journal playback for ext2fs.
39229 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
39230 (pkgdata_MODULES): Added ext2.mod.
39231 (ext2_mod_SOURCES): New variable.
39232 (ext2_mod_CFLAGS): Likewise.
39233 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
39234 * include/pupa/misc.h (pupa_strncpy): New prototype.
39235 (pupa_strcat): Likewise.
39236 (pupa_strncmp): Likewise.
39237 * kern/misc.c (pupa_strcat): Enable function.
39238 (pupa_strncpy): New function.
39239 (pupa_strncmp): Likewise.
39240 * fs/ext2.c: New file.
39241
39242 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
39243 when the read failed before retrying.
39244 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
39245 (_FILE_OFFSET_BITS): Likewise.
39246 * configure.ac: Added AC_SYS_LARGEFILE.
39247
39248 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
39249
39250 * genmk.rb (PModule#rule): Make sure to get only symbol names
39251 from the output of nm.
39252 Reported by Robert Millan <rmh.grub@aybabtu.com>.
39253
39254 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
39255
39256 I forgot to check in these changes for a long time. This adds
39257 incomplete support for VGA console, and this is still very
39258 buggy. Also, a lot of consideration is required for I18N,
39259 UNICODE, and VGA font issues. Therefore, assume that this is
39260 such that "better than nothing".
39261
39262 * font/manager.c: New file.
39263 * include/pupa/font.h: Likewise.
39264 * include/pupa/i386/pc/vga.h: Likewise.
39265 * term/i386/pc/vga.c: Likewise.
39266 * util/unifont2pff.rb: Likewise.
39267
39268 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
39269 (pkgdata_MODULES): Added vga.mod and font.mod.
39270 (vga_mod_SOURCES): New variables.
39271 (vga_mod_CFLAGS): Likewise.
39272 (font_mod_SOURCES): Likewise.
39273 (font_mod_CFLAGS): Likewise.
39274
39275 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
39276
39277 * include/pupa/term.h: Include pupa/err.h.
39278 (struct pupa_term): Added init and fini.
39279 Changed the argument of putchar to pupa_uint32_t.
39280
39281 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
39282 (pupa_console_real_putchar): New prototype.
39283 (pupa_console_putchar): Removed.
39284 (pupa_console_checkkey): Exported.
39285 (pupa_console_getkey): Likewise.
39286
39287 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
39288 characters.
39289
39290 * kern/term.c (pupa_term_set_current): Rewritten.
39291 (pupa_putchar): Likewise.
39292 (pupa_putcode): New function.
39293
39294 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
39295 (pupa_console_real_putchar): ... this.
39296 (pupa_vga_set_mode): New function.
39297 (pupa_vga_get_font): Likewise.
39298
39299 * normal/command.c: Include pupa/term.h.
39300 (terminal_command): New function.
39301 (pupa_command_init): Register the command "terminal".
39302
39303 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
39304 (DISP_UP): Likewise.
39305 (DISP_RIGHT): Likewise.
39306 (DISP_DOWN): Likewise.
39307 (DISP_HLINE): Likewise.
39308 (DISP_VLINE): Likewise.
39309 (DISP_UL): Likewise.
39310 (DISP_UR): Likewise.
39311 (DISP_LL): Likewise.
39312 (DISP_LR): Likewise.
39313
39314 * term/i386/pc/console.c (pupa_console_putchar): New function.
39315
39316 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
39317
39318 * util/resolve.c (pupa_util_resolve_dependencies): BUG
39319 FIX. Reverse the path_list.
39320
39321 * include/pupa/normal.h: Export pupa_register_command and
39322 pupa_unregister_command.
39323
39324 * hello/hello.c (pupa_cmd_hello): New module.
39325 * conf/i386-pc.rmk: Added hello.mod.
39326
39327 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
39328
39329 * kern/i386/pc/lzo1x.S: New file.
39330
39331 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
39332 (compress_kernel): New variable.
39333 (generate_image): Heavily modified to support compressing a
39334 large part of the core image.
39335
39336 * util/misc.c (pupa_util_read_image): Fix a file descriptor
39337 leak.
39338 (pupa_util_load_image): New function.
39339
39340 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
39341 (pupa_compressed_size): New variable.
39342 (codestart): Enable Gate A20 here.
39343 Decompress the compressed part of the core image.
39344 Rearrange the code to put functions and variables which are
39345 required for initialization in the non-compressed part.
39346 Include lzo1x.S.
39347
39348 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
39349 here.
39350
39351 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
39352
39353 * include/pupa/i386/pc/kernel.h
39354 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
39355 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
39356 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
39357 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
39358 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
39359
39360 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
39361
39362 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
39363 (Utility#rule): Likewise.
39364
39365 * configure.ac: Check if LZO is available.
39366
39367 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
39368
39369 * include/pupa/normal.h: New file.
39370 * include/pupa/setjmp.h: Likewise.
39371 * include/pupa/i386/setjmp.h: Likewise.
39372 * normal/cmdline.c: Likewise.
39373 * normal/command.c: Likewise.
39374 * normal/main.c: Likewise.
39375 * normal/menu.c: Likewise.
39376 * normal/i386/setjmp.S: Likewise.
39377
39378 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
39379 (pupa_rescue_cmd_initrd): Likewise.
39380
39381 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
39382 Likewise.
39383
39384 * kern/i386/pc/startup.S (translation_table): New variable.
39385 (translate_keycode): New function.
39386 (pupa_console_getkey): Call translate_keycode.
39387
39388 * kern/rescue.c (attempt_normal_mode): New function.
39389 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
39390 it failed, print a message.
39391
39392 * kern/mm.c (pupa_real_malloc): Print more information when a
39393 free magic is broken.
39394 (pupa_free): If the first free header is not free actually, set
39395 it to P.
39396
39397 * kern/main.c (pupa_load_normal_mode): Just load the module
39398 "normal".
39399 (pupa_main): Don't print the message
39400 "Entering into rescue mode..." here.
39401
39402 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
39403 Declared.
39404 (pupa_rescue_cmd_initrd): Likewise.
39405 (pupa_rescue_cmd_initrd): Likewise.
39406
39407 * include/pupa/symbol.h (FUNCTION): Specify the type.
39408 (VARIABLE): Likewise.
39409
39410 * include/pupa/err.h (pupa_err_t): Added
39411 PUPA_ERR_UNKNOWN_COMMAND.
39412
39413 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
39414 (pupa_dl_get_prefix): Likewise.
39415
39416 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
39417 Added _chain.mod and _linux.mod instead of chain.mod and
39418 linux.mod.
39419 (chain_mod_SOURCES): Renamed to ...
39420 (_chain_mod_SOURCES): ... this.
39421 (chain_mod_CFLAGS): Renamed to ...
39422 (_chain_mod_CFLAGS): ... this.
39423 (linux_mod_SOURCES): Renamed to ...
39424 (_linux_mod_SOURCES): ... this.
39425 (linux_mod_CFLAGS): Renamed to ...
39426 (_linux_mod_CFLAGS): ... this.
39427 (normal_mod_SOURCES): New variable.
39428 (normal_mod_CFLAGS): Likewise.
39429 (normal_mod_ASFLAGS): Likewise.
39430
39431 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
39432
39433 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
39434 possible.
39435
39436 * kern/dl.c (pupa_dl_ref): Refer depending modules
39437 recursively.
39438 (pupa_dl_unref): Unrefer depending modules recursively.
39439 Don't call pupa_dl_unload implicitly, because PUPA can crash if
39440 a module is unloaded before one depending on that module is
39441 unloaded.
39442 (pupa_dl_unload): Unload depending modules explicitly,
39443 if possible.
39444
39445 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
39446
39447 * include/pupa/i386/pc/linux.h: New file.
39448 * loader/i386/pc/linux.c: Likewise.
39449
39450 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
39451 Removed.
39452 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
39453 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
39454 of PUPA_CHAINLOADER_BOOT_SECTOR.
39455
39456 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
39457 (pupa_linux_prot_size): New variable.
39458 (pupa_linux_tmp_addr): Likewise.
39459 (pupa_linux_real_addr): Likewise.
39460 (pupa_linux_boot_zimage): New function.
39461 (pupa_linux_boot_bzimage): Likewise.
39462
39463 * kern/i386/pc/init.c (struct mem_region): New structure.
39464 (MAX_REGIONS): New macro.
39465 (mem_regions): New variable.
39466 (num_regions): Likewise.
39467 (pupa_os_area_addr): Likewise.
39468 (pupa_os_area_size): Likewise.
39469 (pupa_lower_mem): Likewise.
39470 (pupa_upper_mem): Likewise.
39471 (add_mem_region): New function.
39472 (compact_mem_regions): Likewise.
39473 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
39474 the size of the conventional memory and that of so-called upper
39475 memory (before the first memory hole).
39476 Instead of adding each found region to free memory, use
39477 add_mem_region and add them after removing overlaps.
39478 Also, add only 1/4 of the upper memory to free memory. The rest
39479 is used for loading OS images. Maybe this is ad hoc, but this
39480 makes it much easier to relocate OS images when booting.
39481
39482 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
39483 (pupa_enter_rescue_mode): Don't register initrd and module.
39484
39485 * kern/mm.c: Include pupa/dl.h.
39486
39487 * kern/main.c: Include pupa/file.h and pupa/device.h.
39488
39489 * kern/loader.c (pupa_loader_load_module_func): Removed.
39490 (pupa_loader_load_module): Likewise.
39491
39492 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
39493 ``.o''.
39494
39495 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
39496 (pupa_linux_tmp_addr): Likewise.
39497 (pupa_linux_real_addr): Likewise.
39498 (pupa_linux_boot_zimage): Likewise.
39499 (pupa_linux_boot_bzimage): Likewise.
39500
39501 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
39502 (pupa_upper_mem): Likewise.
39503 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
39504 module is too dangerous.
39505
39506 * include/pupa/loader.h (pupa_os_area_addr): Declared.
39507 (pupa_os_area_size): Likewise.
39508 (pupa_loader_set): Remove the first argument. Loader doesn't
39509 manage modules or initrd any longer.
39510 (pupa_loader_load_module): Removed.
39511
39512 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
39513 (linux_mod_SOURCES): New variable.
39514 (linux_mod_CFLAGS): Likewise.
39515
39516 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
39517
39518 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
39519 the length of a blocklist correctly.
39520
39521 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
39522 Use ioctl only if the OS file is a block device.
39523 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
39524 not very useful for normal files.
39525
39526 * kern/main.c (pupa_set_root_dev): New function.
39527 (pupa_load_normal_mode): Likewise.
39528 (pupa_main): Call those above.
39529
39530 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
39531 pupa_uint16_t.
39532
39533 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
39534
39535 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39536
39537 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
39538 (setup): Configure the installed partition information and the
39539 dl prefix.
39540
39541 * loader/i386/pc/chainloader.c (my_mod): New variable.
39542 (pupa_chainloader_unload): New function.
39543 (pupa_rescue_cmd_chainloader): Refer itself.
39544 (PUPA_MOD_INIT): Save its own module in MY_MOD.
39545
39546 * kern/i386/pc/startup.S (install_partition): Removed.
39547 (version_string): Likewise.
39548 (config_file): Likewise.
39549 (pupa_install_dos_part): New variable.
39550 (pupa_install_bsd_part): Likewise.
39551 (pupa_prefix): Likewise.
39552 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
39553
39554 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
39555 and pupa/misc.h.
39556 (make_install_device): New function.
39557 (pupa_machine_init): Set the dl prefix.
39558
39559 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
39560 (buf): Renamed to ...
39561 (linebuf): ... this.
39562 (pupa_rescue_cmd_prefix): New function.
39563 (pupa_rescue_cmd_insmod): Likewise.
39564 (pupa_rescue_cmd_rmmod): Likewise.
39565 (pupa_rescue_cmd_lsmod): Likewise.
39566 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
39567 rmmod and lsmod.
39568
39569 * kern/mm.c (pupa_memalign): If failed even after invalidating
39570 disk caches, unload unneeded modules and retry.
39571
39572 * kern/misc.c (pupa_memmove): New function.
39573 (pupa_memcpy): Removed.
39574 (pupa_strcpy): New function.
39575 (pupa_itoa): Made static.
39576
39577 * kern/dl.c (pupa_dl_iterate): New function.
39578 (pupa_dl_ref): Likewise.
39579 (pupa_dl_unref): Likewise.
39580 (pupa_dl_unload): Return if succeeded or not.
39581 (pupa_dl_unload_unneeded): New function.
39582 (pupa_dl_unload_all): Likewise.
39583 (pupa_dl_init): Renamed to ...
39584 (pupa_dl_set_prefix): ... this.
39585 (pupa_dl_get_prefix): New function.
39586
39587 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
39588 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
39589 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
39590 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
39591 (pupa_install_dos_part): Declared.
39592 (pupa_install_bsd_part): Likewise.
39593 (pupa_prefix): Likewise.
39594 (pupa_boot_drive): Likewise.
39595
39596 * include/pupa/types.h: Fix a typo.
39597
39598 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
39599 pupa_memmove.
39600 (pupa_memmove): Declared.
39601 (pupa_strcpy): Likewise.
39602
39603 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
39604 pupa_mod_init takes one argument, its own module.
39605 (pupa_dl_unload_unneeded): Declared.
39606 (pupa_dl_unload_all): Likewise.
39607 (pupa_dl_ref): Likewise.
39608 (pupa_dl_unref): Likewise.
39609 (pupa_dl_iterate): Likewise.
39610 (pupa_dl_init): Renamed to ...
39611 (pupa_dl_set_prefix): ... this.
39612 (pupa_dl_get_prefix): Declared.
39613
39614 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
39615 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
39616 unloaded.
39617 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
39618 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
39619
39620 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
39621 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
39622
39623 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
39624
39625 * util/i386/pc/pupa-setup.c (setup): Define the internal
39626 function find_first_partition_start at the top level, because GCC
39627 3.0.x cannot compile internal functions in deeper scopes
39628 correctly.
39629 (find_root_device): Use lstat instead of stat.
39630 Don't follow symbolic links.
39631 Fix the path-constructing code.
39632
39633 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
39634 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
39635 by a BLKGETSIZE ioctl first, because block devices don't fill
39636 the member st_mode of the structure stat on Linux.
39637 [__linux__] (linux_find_partition): Use a temporary buffer
39638 REAL_DEV for the working space. Copy it to DEV before returning.
39639 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
39640 buffer cache consistent.
39641 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
39642 strncmp. The previous value was merely wrong.
39643 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
39644
39645 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
39646 FAT size is 12. The previous value was merely wrong.
39647
39648 * kern/main.c (pupa_main): Don't split the starting message from
39649 newlines.
39650
39651 * kern/term.c (pupa_putchar): Put CR after LF instead of before
39652 LF, because BIOS goes crazy about character attributes in this
39653 case.
39654
39655 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
39656
39657 * include/i386/pc/util/biosdisk.h: New file.
39658 * util/i386/pc/biosdisk.c: Likewise.
39659 * util/i386/pc/pupa-setup.c: Likewise.
39660
39661 * Makefile.in (INCLUDE_DISTFILES): Added
39662 include/pupa/i386/pc/util/biosdisk.h.
39663 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
39664 directory util/i386/pc.
39665 (install-local): Added a rule for sbin_UTILITIES.
39666 (uninstall): Likewise.
39667
39668 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
39669
39670 * util/misc.c (xrealloc): New function.
39671 (pupa_malloc): Likewise.
39672 (pupa_free): Likewise.
39673 (pupa_realloc): Likewise.
39674 (pupa_stop): Likewise.
39675 (pupa_putchar): Likewise.
39676
39677 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
39678
39679 * include/pupa/util/misc.h (xrealloc): Declared.
39680
39681 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
39682 macro.
39683 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
39684 (PUPA_BOOT_MACHINE_BPB_END): ... this.
39685
39686 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
39687 [PUPA_UTIL] (pupa_fat_fini): Likewise.
39688
39689 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
39690 way should be implemented.
39691 [PUPA_UTIL] (pupa_fat_fini): Likewise.
39692
39693 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
39694 the size of NAME for safety.
39695 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
39696 0x88.
39697
39698 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
39699 (pupa_setup_SOURCES): Likewise.
39700
39701 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
39702
39703 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
39704
39705 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
39706 bunch of pushl's from pusha, because this destroys the return
39707 value.
39708
39709 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
39710
39711 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
39712 This means that any missing prototypes could be fatal. Also, you
39713 must take care when writing assembly code. See the comments at
39714 the beginning of startup.S, for more details.
39715
39716 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
39717 compilation mechanism.
39718 (pupa_chainloader_real_boot): Likewise.
39719 (pupa_biosdisk_rw_int13_extensions): Likewise.
39720 (pupa_biosdisk_rw_standard): Likewise.
39721 (pupa_biosdisk_check_int13_extensions): Likewise.
39722 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
39723 (pupa_biosdisk_get_diskinfo_standard): Likewise.
39724 (pupa_get_memsize): Likewise.
39725 (pupa_get_mmap_entry): Likewise.
39726 (pupa_console_putchar): Likewise.
39727 (pupa_console_setcursor): Likewise.
39728 (pupa_getrtsecs): Use pushl instead of push.
39729
39730 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
39731 memory instead of the stack for a mmap entry, because some
39732 BIOSes may ignore the maximum size and overflow.
39733
39734 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
39735
39736 * genmk.rb (PModule#rule): Compile automatically generated
39737 sources with module-specific CFLAGS as well as other sources.
39738
39739 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
39740
39741 * configure.ac: Check ld.
39742 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
39743 respectively, before checking endianness and sizes.
39744
39745 * Makefile.in (LD): New variable.
39746
39747 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
39748
39749 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
39750
39751 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
39752
39753 * Changelog: New file.
39754