]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/loader/machoXX.c: Remove nested functions.
[grub2.git] / ChangeLog
1 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/loader/machoXX.c: Remove nested functions.
4
5 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
6
7 Remove nested functions from disk and file read hooks.
8
9 * include/grub/disk.h (grub_disk_read_hook_t): New type.
10 (struct grub_disk): Add read_hook_data member.
11 * include/grub/file.h (struct grub_file): Likewise.
12 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
13 argument.
14
15 Update all callers.
16
17 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
18
19 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
20 Fix off by one error in enumerating extended partitions.
21
22 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
23
24 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
25 memory leak if device name is not found.
26
27 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
28
29 * grub-core/normal/menu_entry.c (update_screen): remove
30 unused variable `off' which caused scroll down arrow to be always shown.
31
32 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
33
34 * grub-core/normal/menu_entry.c (insert_string): fix off by one
35 access to unallocated memory.
36
37 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
38
39 * Makefile.util.def: Add partmap/msdos.c to common library.
40 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
41 * grub-core/disk/ldm.c: Check for existence of
42 GRUB_PC_PARTITION_TYPE_LDM.
43
44 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
45
46 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
47 sizes and display sector size.
48
49 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
50
51 Implement new command cmosdump.
52
53 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
54
55 Support Openfirmware disks with non-512B sectors.
56
57 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
58 size of the disk.
59 * (grub_ofdisk_get_block_size): New function.
60 * (grub_ofdisk_prepare): Use the correct block size.
61 * (grub_ofdisk_read): Likewise.
62 * (grub_ofdisk_write): Likewise.
63 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
64 New proto.
65
66 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
67
68 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
69
70 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
71
72 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
73 on first error.
74
75 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
78 freeing it.
79
80 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
81
82 Implement USBDebug (full USB stack variant).
83
84 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
85
86 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
87 unless they have unexpected values.
88
89 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
92 grub_print_error.
93
94 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
95
96 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
97 zero-out of port structure.
98
99 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
100
101 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
102 of extended attributes.
103
104 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
105
106 * util/grub-install.in: change misleading comment about
107 device.map creation
108
109 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
110
111 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
112 when menu highlight color isn't set.
113
114 2013-01-27 C. Masloch <pushbx@38.de>
115
116 Improve FreeDOS direct loading support compatibility.
117
118 * include/grub/i386/relocator.h (grub_relocator16_state):
119 New member ebp.
120 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
121 variable.
122 (grub_relocator16_boot): Handle %ebp.
123 * grub-core/lib/i386/relocator16.S: Likewise.
124 * grub-core/loader/i386/pc/freedos.c:
125 Load BPB to pass kernel which partition to load from.
126 Check that kernel file is not too large.
127 Set register dl to BIOS unit number as well.
128
129 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
130
131 * util/grub-reboot.in (usage): Document the need for
132 GRUB_DEFAULT=saved.
133 * util/grub-set-default.in (usage): Likewise.
134 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
135
136 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
139 than defining WORDS_BIGENDIAN manually.
140
141 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
142
143 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
144 invariants.
145
146 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
147
148 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
149 nested.
150 (blit_comb: add_device_width): Likewise.
151
152 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
153
154 Remove nested functions from USB iterators.
155
156 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
157 (grub_usb_controller_iterate_hook_t): Likewise.
158 (grub_usb_iterate): Add hook_data argument.
159 (grub_usb_controller_iterate): Likewise.
160 (struct grub_usb_controller_dev.iterate): Likewise.
161
162 Update all implementations and callers.
163
164 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
167 margin when not needed.
168
169 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
170
171 Make color variables global instead of it being per-terminal.
172
173 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
174
175 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
176 asterisk.
177
178 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
179
180 Fix powerpc and sparc64 build failures caused by un-nesting memory
181 map iterators.
182
183 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
184
185 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
186 parameter declarations.
187
188 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
189
190 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
191
192 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
193
194 Improve spkmomdem reliability by adding a separator between bytes.
195
196 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
197
198 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
199 an Acer registration utility with several sightings in the wild.
200 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
201
202 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
203
204 Remove nested functions from filesystem directory iterators.
205
206 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
207 (struct grub_fs.dir): Add hook_data argument.
208
209 Update all implementations and callers.
210
211 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
212
213 * docs/grub.texi (Multi-boot manual config): Fix typo for
214 "recommended".
215
216 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
217
218 * util/grub-mkimage.c (main): Postpone freeing arguments.output
219 until after its use in generate_image.
220
221 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
222
223 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
224 initrd size to addr_min, since the initrd will be allocated after
225 this address.
226
227 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
228
229 * conf/Makefile.common: Fix autogen rules to pass definition
230 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
231
232 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
233
234 * include/grub/elf.h: Update ARM definitions based on binutils.
235
236 2013-01-20 Aleš Nesrsta <starous@volny.cz>
237
238 Split long USB transfers into short ones.
239
240 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
241
242 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
243 is interrupted by ESC.
244
245 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
246
247 * util/grub-script-check.c (main): Uniform the error message.
248
249 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
250
251 Remove nested functions from ELF iterators.
252
253 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
254
255 Remove nested functions from device iterators.
256
257 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
258 (grub_arc_iterate_devs): Add hook_data argument.
259 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
260 (struct grub_ata_dev.iterate): Add hook_data argument.
261 * include/grub/device.h (grub_device_iterate_hook_t): New type.
262 (grub_device_iterate): Add hook_data argument.
263 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
264 (struct grub_disk_dev.iterate): Add hook_data argument.
265 (grub_disk_dev_iterate): Likewise.
266 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
267 Likewise.
268 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
269 Likewise.
270 * include/grub/partition.h (grub_partition_iterate_hook_t): New
271 type.
272 (struct grub_partition_map.iterate): Add hook_data argument.
273 (grub_partition_iterate): Likewise.
274 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
275 (struct grub_scsi_dev.iterate): Add hook_data argument.
276
277 Update all callers.
278
279 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
280
281 Fix typos for "developer" and "development".
282
283 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
284
285 Add license header to spkmodem-recv.c.
286
287 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
288
289 Rewrite spkmodem to use PIT for timing. Double the speed.
290
291 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
292
293 Add new command pcidump.
294
295 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
296
297 New terminal outputs using serial: morse and spkmodem.
298
299 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
300
301 Improve bidi handling in entry editor.
302
303 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
304
305 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
306 argument to prevent name collision.
307
308 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
309
310 Remove nested functions from script reading and parsing.
311
312 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
313 getline_data argument, passed to getline.
314 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
315 getline_data argument, passed to grub_parser_split_cmdline.
316 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
317 lexerstate->getline_data to lexerstate->getline.
318 (grub_script_lexer_init): Add getline_data argument, saved in
319 lexerstate->getline_data.
320 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
321 argument, passed to grub_script_parse.
322 * grub-core/script/script.c (grub_script_parse): Add getline_data
323 argument, passed to grub_script_lexer_init.
324 * include/grub/parser.h (grub_parser_split_cmdline): Update
325 prototype. Update all callers to pass appropriate getline data.
326 (struct grub_parser.parse_line): Likewise.
327 (grub_rescue_parse_line): Likewise.
328 * include/grub/reader.h (grub_reader_getline_t): Add void *
329 argument.
330 * include/grub/script_sh.h (struct grub_lexer_param): Add
331 getline_data member.
332 (grub_script_parse): Update prototype. Update all callers to pass
333 appropriate getline data.
334 (grub_script_lexer_init): Likewise.
335 (grub_normal_parse_line): Likewise.
336
337 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
338 data argument.
339 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
340 static instead of nested. Rename to ...
341 (grub_parser_execute_getline): ... this.
342 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
343 data argument.
344 * grub-core/normal/main.c (read_config_file: getline): Make static
345 instead of nested. Rename to ...
346 (read_config_file_getline): ... this.
347 (grub_normal_read_line): Add unused data argument.
348 * grub-core/script/execute.c (grub_script_execute_sourcecode:
349 getline): Make static instead of nested. Rename to ...
350 (grub_script_execute_sourcecode_getline): ... this.
351 * util/grub-script-check.c (main: get_config_line): Make static
352 instead of nested.
353
354 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
355
356 Remove nested functions from memory map iterators.
357
358 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
359 argument, passed to hook.
360 * grub-core/kern/i386/coreboot/mmap.c
361 (grub_linuxbios_table_iterate): Likewise.
362 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
363 instead of nested.
364 (grub_machine_mmap_iterate): Add hook_data argument.
365 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
366 Add hook_data argument, passed to hook.
367 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
368 Likewise.
369 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
370 Likewise.
371 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
372 Likewise.
373 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
374 Likewise.
375 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
376 Likewise.
377 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
378 Likewise.
379 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
380 (grub_machine_mmap_iterate): Likewise.
381 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
382 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
383 prototype.
384 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
385 Remove NESTED_FUNC_ATTR from here and from all users.
386 (grub_mmap_iterate): Update prototype.
387 (grub_efi_mmap_iterate): Update prototype. Update all callers to
388 pass appropriate hook data.
389 (grub_machine_mmap_iterate): Likewise.
390
391 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
392 static instead of nested.
393 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
394 Rename to ...
395 (lsmmap_hook): ... this.
396 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
397 Likewise.
398 (grub_efiemu_mmap_fill: fill_hook): Likewise.
399 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
400 heap_init): Likewise.
401 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
402 Rename to ...
403 (mmap_iterate_hook): ... this.
404 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
405 Likewise.
406 * grub-core/lib/ieee1275/relocator.c
407 (grub_relocator_firmware_get_max_events: count): Likewise.
408 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
409 to ...
410 (grub_relocator_firmware_fill_events_iter): ... this.
411 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
412 hook): Likewise. Rename to ...
413 (grub_relocator_alloc_chunk_align_iter): ... this.
414 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
415 Rename to ...
416 (generate_e820_mmap_iter): ... this.
417 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
418 Rename to ...
419 (count_hook): ... this.
420 (grub_linux_boot: hook): Likewise. Rename to ...
421 (grub_linux_boot_mmap_find): ... this.
422 (grub_linux_boot: hook_fill): Likewise. Rename to ...
423 (grub_linux_boot_mmap_fill): ... this.
424 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
425 hook): Likewise. Rename to ...
426 (grub_fill_multiboot_mmap_iter): ... this.
427 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
428 hook): Likewise. Rename to ...
429 (count_hook): ... this.
430 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
431 hook): Likewise. Rename to ...
432 (grub_fill_multiboot_mmap_iter): ... this.
433 * grub-core/loader/powerpc/ieee1275/linux.c
434 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
435 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
436 Likewise. Rename to ...
437 (alloc_phys_choose): ... this.
438 (determine_phys_base: get_physbase): Likewise.
439 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
440 find_hook): Likewise.
441 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
442 (malloc_hook: count_hook): Likewise.
443 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
444 Likewise. Rename to ...
445 (lower_hook): ... this.
446 (grub_mmap_get_upper: hook): Likewise. Rename to ...
447 (upper_hook): ... this.
448 (grub_mmap_get_post64: hook): Likewise. Rename to ...
449 (post64_hook): ... this.
450 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
451 Likewise. Rename to ...
452 (lower_hook): ... this.
453 (grub_mmap_get_upper: hook): Likewise. Rename to ...
454 (upper_hook): ... this.
455 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
456 (grub_mmap_iterate: fill_hook): Likewise.
457 (fill_mask): Pass addr and mask within a single struct.
458 (grub_cmd_badram: hook): Make static instead of nested. Rename
459 to ...
460 (badram_iter): ... this.
461 (grub_cmd_cutmem: hook): Likewise. Rename to ...
462 (cutmem_iter): ... this.
463
464 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
465
466 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
467 delimit path in strings using quotes.
468 * util/getroot.c (grub_guess_root_devices): Likewise.
469 (grub_make_system_path_relative_to_its_root): Likewise.
470 * util/grub-probe.c (probe): Likewise.
471 * util/ieee1275/ofpath.c (find_obppath): Likewise.
472 (xrealpath): Likewise.
473
474 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
475
476 Fix compilation with older compilers.
477
478 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
479 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
480 declarations.
481 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
482 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
483 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
484 identifier with b.
485 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
486 * include/grub/crypto.h: Add type defines.
487 * util/import_gcrypth.sed: Remove duplicate type defines.
488
489 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
490
491 New command list_trusted.
492
493 * grub-core/commands/verify.c (grub_cmd_list): New function.
494
495 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
496
497 * util/grub-mkimage.c (generate_image): Fix "size of public key"
498 info message.
499
500 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
501
502 Remove nested functions from PCI iterators.
503
504 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
505 passed to hook. Update all callers to pass appropriate hook data.
506 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
507 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
508 Remove NESTED_FUNC_ATTR from here and from all users.
509 (grub_pci_iterate): Update prototype.
510 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
511 instead of nested. Rename to ...
512 (grub_cs5536_find_iter): ... this.
513 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
514 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
515 Likewise.
516 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
517 Likewise.
518 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
519 Likewise.
520 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
521 Likewise.
522 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
523 * grub-core/video/radeon_fuloong2e.c
524 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
525 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
526 find_card): Likewise.
527 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
528 Likewise.
529
530 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
531
532 * grub-core/commands/verify.c: Mark messages for translating.
533
534 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
535
536 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
537 fatal.
538
539 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
540
541 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
542 fatal.
543
544 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * autogen.sh: Do not try to delete nonexistant files.
547 * util/import_gcrypth.sed: Add some missing header removals.
548
549 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
550
551 Clean up dangling references to grub-setup.
552 Fixes Ubuntu bug #1082045.
553
554 * docs/grub.texi (Images): Refer generally to grub-install rather
555 than directly to grub-setup.
556 (Installing GRUB using grub-install): Remove direct reference to
557 grub-setup.
558 (Device map) Likewise.
559 (Invoking grub-install): Likewise.
560 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
561 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
562 * util/grub-install.in (usage): Likewise.
563
564 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
565 Apply to grub-bios-setup and grub-sparc64-setup rather than to
566 grub-setup.
567 * configure.ac: Remove grub_setup output variable.
568
569 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
570 to grub-bios-setup.
571 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
572 grub-setup to grub-sparc64-setup.
573
574 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
575
576 Import gcrypt public-key cryptography and implement signature checking.
577
578 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
579
580 * grub-core/fs/ntfs.c: Ue more appropriate types.
581 * grub-core/fs/ntfscomp.c: Likewise.
582 * include/grub/ntfs.h: Likewise.
583
584 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
585
586 Support Apple FAT binaries on non-Apple platforms.
587
588 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
589 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
590 Likewise.
591 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
592 Apple FAT binaries.
593
594 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
595
596 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
597 sector devices.
598
599 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
600
601 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
602 explicitly zeroing elements.
603 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
604 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
605 of elements in a structure already allocated using grub_zalloc.
606 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
607
608 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
609
610 * docs/grub.texi (grub_cpu): New subsection.
611 (grub_platform): Likewise.
612
613 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
614
615 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
616
617 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
618
619 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
620 divisions.
621
622 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
623
624 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
625 * grub-core/fs/ntfscomp.c: Likewise.
626 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
627 (grub_ntfs_comp): Likewise.
628
629 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
630
631 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
632 Rename to ...
633 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
634 of groups_per_block. All users updated.
635
636 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
639 grub_error properly.
640 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
641 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
642
643 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
644
645 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
646 always in /boot/zfs.
647 Reported by: Yuta Satoh.
648
649 2013-01-03 Yuta Satoh <nigoro>
650
651 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
652 ${grub_probe}
653
654 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
655
656 * configure.ac: Extend -Wno-trampolines to host.
657
658 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
659
660 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
661 entry->len = 0.
662
663 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
664
665 * docs/grub.texi (Invoking grub-mkrelpath): New section.
666 (Invoking grub-script-check): Likewise.
667
668 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
669
670 * docs/grub.texi (Invoking grub-mount): New section.
671 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
672
673 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
674
675 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
676 test failures, so that a failing unit test correctly causes 'make
677 check' to fail.
678
679 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
680
681 Fix failing printf test.
682
683 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
684 '$' in the correct order when collecting type information.
685
686 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
687
688 * docs/grub.texi (configfile): Explain environment variable
689 handling.
690 (source): New section.
691 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
692
693 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
694
695 Remove several trivially-unnecessary uses of nested functions.
696
697 * grub-core/commands/i386/pc/sendkey.c
698 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
699 instead of nested.
700 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
701 Rename to ...
702 (legacy_file_getline): ... this.
703 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
704 Likewise.
705 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
706 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
707 to ...
708 (probe_dummy_iter): ... this.
709 * grub-core/kern/i386/coreboot/mmap.c
710 (grub_linuxbios_table_iterate: check_signature): Likewise.
711 * grub-core/kern/parser.c (grub_parser_split_cmdline:
712 check_varstate): Likewise. Mark inline.
713 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
714 an additional parameter.
715 (find_long: fnd_long): Likewise. Pass two additional parameters.
716 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
717 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
718 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
719 Likewise. Rename to ...
720 (grub_cmos_find_port_iter): ... this.
721 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
722 Rename to ...
723 (find_rtc_iter): ... this.
724
725 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
726 function directly into the function body, since it is only called
727 once.
728
729 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
730
731 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
732 __attribute__ ((unused)).
733 * grub-core/video/bochs.c (find_card): Likewise.
734 * grub-core/video/cirrus.c (find_card): Likewise.
735 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
736 * grub-core/video/sis315pro.c (find_card): Likewise.
737 * grub-core/video/sm712.c (find_card): Likewise.
738
739 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
740
741 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
742 Fixes Savannah bug #37821.
743
744 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
745
746 Apply program name transformations at build-time rather than at
747 run-time. Fixes Debian bug #696465.
748
749 * acinclude.m4 (grub_TRANSFORM): New macro.
750 * configure.ac: Create output variables with transformed names for
751 most programs.
752 * util/bash-completion.d/grub-completion.bash.in: Use
753 pre-transformed variables for program names.
754 * util/grub-install.in: Likewise.
755 * util/grub-kbdcomp.in: Likewise.
756 * util/grub-mkconfig.in: Likewise.
757 * util/grub-mkconfig_lib.in: Likewise.
758 * util/grub-mknetdir.in: Likewise.
759 * util/grub-mkrescue.in: Likewise.
760 * util/grub-mkstandalone.in: Likewise.
761 * util/grub-reboot.in: Likewise.
762 * util/grub-set-default.in: Likewise.
763 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
764 * tests/util/grub-shell-tester.in: Remove unused assignment.
765 * tests/util/grub-shell.in: Likewise.
766 * util/grub.d/00_header.in: Likewise.
767
768 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
769
770 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
771
772 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
773 HAVE_RAW_DECL_GETS.
774 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
775
776 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
777
778 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
779 Reported by: Eriks Latosheks <foresterlv>.
780
781 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
782
783 * docs/grub.texi (Network): Update instructions on generating netboot
784 image.
785
786 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
787
788 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
789 around device name if necessarry.
790
791 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
792
793 * util/grub-install.in: Follow the symbolic link parameter added
794 to the file command.
795
796 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
797
798 * util/grub-install.in: Remove stale TODO.
799
800 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
801
802 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
803 dynamic allocation for the bootpath buffer.
804
805 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
806
807 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
808 window too small.
809
810 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
811
812 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
813 argument rather than font name. All users updated.
814 (grub_gfxterm_set_window): Likewise.
815
816 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
817
818 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
819 from working.
820
821 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
822
823 * util/getroot.c (convert_system_partition_to_system_disk): Support
824 nbd disks.
825
826 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
829 infinite loop on corrupted FS.
830
831 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
832
833 Fix big-endian mtime.
834
835 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
836 together sec and usec.
837 (grub_ufs_dir): Use correct byteswapping for UFS time.
838
839 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
840
841 Support big-endian UFS1.
842
843 * Makefile.util.def (libgrubmods): Add ufs_be.c
844 * grub-core/Makefile.core.def (ufs1_be): New module.
845 * grub-core/fs/ufs_be.c: New file.
846 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
847 the file.
848
849 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
850
851 * include/grub/types.h: Fix functionality unaffecting typo in
852 GRUB_TARGET_WORDSIZE conditional macro.
853
854 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
855
856 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
857
858 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
859
860 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
861 that /netbsd appears first (when it exists).
862
863 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
864
865 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
866 Fixes Savannah bug #37558.
867
868 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
869
870 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
871 description of extract_entries_configfile.
872
873 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
874
875 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
876 preferred_address.
877 (grub_cmd_linux): Likewise.
878 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
879 preferred_lifetime. Update all users.
880
881 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
882
883 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
884 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
885
886 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
887
888 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
889 errors from grub-probe to /dev/null, not stdout.
890
891 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
892
893 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
894 sector 1.
895
896 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
897
898 * util/grub-install.in: Make the error message if $source_dir
899 doesn't exist more useful.
900
901 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
902
903 Fix grub-emu build on FreeBSD.
904
905 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
906 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
907 headers on Linux.
908 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
909 implementation is currently Linux-specific.
910 * util/getroot.c (exec_pipe): Define only on Linux or when either
911 libzfs or libnvpair is unavailable.
912 (find_root_devices_from_poolname): Remove unused path variable.
913
914 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
915
916 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
917 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
918 should fit before end == 63.
919
920 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
921
922 * util/grub-setup.c (write_rootdev): Remove unused core_img
923 parameter. Update all callers.
924 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
925 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
926 GRUB_SETUP_BIOS.
927
928 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
929
930 * util/grub-mkconfig_lib.in (grub_tab): New variable.
931 (grub_add_tab): New function.
932 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
933 * util/grub.d/10_illumos.in: Likewise.
934 * util/grub.d/10_kfreebsd.in: Likewise.
935 * util/grub.d/10_linux.in: Likewise.
936 * util/grub.d/10_netbsd.in: Likewise.
937 * util/grub.d/10_windows.in: Likewise.
938 * util/grub.d/10_xnu.in: Likewise.
939 * util/grub.d/20_linux_xen.in: Likewise.
940 * util/grub.d/30_os-prober.in: Likewise.
941
942 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
943
944 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
945 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
946 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
947 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
948 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
949 ieee1275-nocursor.
950 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
951 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
952
953 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
956 le-conversion.
957 Reported by: BURETTE, Bernard.
958
959 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
960
961 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
962 from comment.
963
964 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
965
966 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
967 IEEE1275 machines. Fixes powerpc-emu compilation.
968 * include/grub/terminfo.h: Likewise.
969
970 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
971
972 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
973 a const pointer.
974 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
975 const pointer.
976 (efiemu_set_variable): Make vendor_guid a const pointer.
977
978 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
979
980 Don't require grub-mkconfig_lib to generate manpages for programs.
981
982 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
983 dependencies, don't add grub-mkconfig_lib.
984 (program): Pass empty adddeps.
985 (script): Pass grub-mkconfig_lib as adddeps.
986
987 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
988
989 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
990 * util/getroot.c (grub_find_device): Likewise.
991 (get_mdadm_uuid): Likewise.
992 (grub_util_is_imsm): Likewise.
993 (grub_util_pull_device): Likewise.
994 * util/grub-probe.c (probe): Likewise.
995
996 2012-09-10 Benoit Gschwind <gschwind>
997
998 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
999 (devs): Add devpath_8.
1000
1001 2012-09-08 Peter Jones <pjones@redhat.com>
1002
1003 * grub-core/Makefile.core.def (efifwsetup): New module.
1004 * grub-core/commands/efi/efifwsetup.c: New file.
1005 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1006 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1007 New define.
1008 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1009
1010 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1011
1012 * configure.ac: Add SuSe path.
1013
1014 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1015
1016 * NEWS: Fix typo.
1017
1018 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1019
1020 * util/import_gcry.py: Sort cipher_files, to make build system
1021 generation more deterministic.
1022
1023 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1026 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1027 (grub_set_datetime): Likewise.
1028
1029 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1032 warnings.
1033
1034 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1037
1038 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1041
1042 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1043
1044 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1045 required for checkouts from bzr, but it may be useful for users or
1046 distributors wishing to update translations against a tarball
1047 distribution, and it can be helpful for the tarball to be a superset
1048 of what's in bzr.
1049
1050 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1051
1052 * Makefile.am (EXTRA_DIST): Add
1053 grub-core/tests/boot/linux.init-mips.S,
1054 grub-core/tests/boot/linux.init-ppc.S, and
1055 grub-core/tests/boot/linux-ppc.cfg.
1056
1057 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1058
1059 * grub-core/mmap/mips/loongson: Remove empty directory.
1060
1061 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1062
1063 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1064 gone.
1065
1066 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1067
1068 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1069 grub-sparc64-setup.
1070
1071 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1072
1073 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1074
1075 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1076
1077 * po/POTFILES.in: Regenerated.
1078
1079 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1080
1081 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1082 (NetBSD): New subsection.
1083
1084 2012-07-22 Ales Nesrsta <starous@volny.cz>
1085
1086 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1087 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1088
1089 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1090
1091 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1092 * util/grub.d/10_hurd.in: Add missing quoting.
1093 * util/grub.d/10_illumos.in: Likewise.
1094 * util/grub.d/10_kfreebsd.in: Likewise.
1095 * util/grub.d/10_linux.in: Likewise.
1096 * util/grub.d/20_linux_xen.in: Likewise.
1097
1098 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 New command `lsefi'.
1101
1102 * grub-core/Makefile.core.def (lsefi): New module.
1103 * grub-core/commands/efi/lsefi.c: New file.
1104 * include/grub/efi/api.h: Add more GUIDs.
1105
1106 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1109 (grub_bsd_elf32_hook): Likewise.
1110 (grub_bsd_elf64_size_hook): Likewise.
1111 (grub_bsd_elf64_hook): Likewise.
1112 (grub_bsd_load_elf): Likewise.
1113
1114 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1117 if hash function is unavailable.
1118 (dec_stream_header): Likewise.
1119
1120 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1123 filter state.
1124
1125 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1126
1127 Fix coreboot compilation.
1128
1129 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1130 (grub_vga_text_init_real): ... this.
1131 (grub_vga_text_fini): Rename to ...
1132 (grub_vga_text_fini_real): ... this.
1133
1134 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1137
1138 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/lib/legacy_parse.c: Support clear and testload.
1141
1142 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1145
1146 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1149
1150 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 * grub-core/net/tftp.c (ack): Fix endianness problem.
1153 (tftp_receive): Likewise.
1154 Reported by: Michael Davidsaver.
1155
1156 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1159
1160 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1163 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1164 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1165
1166 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1169 efi_mmap_size.
1170 Reported by: Stuart Hayes.
1171
1172 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1175
1176 * grub-core/Makefile.core.def (mda_text): New module.
1177 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1178 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1179 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1180 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1181 here.
1182 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1183 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1184 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1185 here.
1186 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1187 to ..
1188 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1189 ... here
1190 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1191 here.
1192 * grub-core/term/i386/vga_common.c: Removed.
1193 * include/grub/i386/vga_common.h: Likewise.
1194 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1195 (grub_vga_cr_bw_read): Likewise.
1196 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1197 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1198 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1199 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1200 grub_vga_cr_read/grub_vga_cr_write.
1201 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1202
1203 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 * configure.ac: Bump version to 2.00.
1206 * grub-core/normal/main.c (features): Add feature_200_final.
1207
1208 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1209 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1210
1211 * NEWS: Fix unclarity and language mistakes.
1212
1213 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1216 additional size to 3 pages.
1217 Reported by: Stuart Hayes.
1218
1219 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 * NEWS: Add 2.00 entry.
1222
1223 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1224
1225 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1226 put explicit "/" for empty path.
1227 (wildcard_expand): Improve dprintf.
1228
1229 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1230
1231 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1232 it's equal to currnode. This can happen with "" symlink.
1233
1234 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1235
1236 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1237 echo shell command by printf command.
1238
1239 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1242 the value returned by firmware is the maximal position, not diumension.
1243 (grub_terminfo_output_state): Use a more sane fallback.
1244
1245 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1246
1247 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1248
1249 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1252 frequency to 150 MHz.
1253
1254 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1255
1256 Apple fixes.
1257
1258 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1259 __APPLE_
1260 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1261 definition.
1262 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1263
1264 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Handle slash in HFS label.
1267
1268 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1269 (grub_hfs_dir): Tanslate slash.
1270 (grub_hfs_label): Don't translate slash.
1271
1272 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1275 network protocol listing since it introduces problematic dependency on
1276 net module.
1277
1278 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1279
1280 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1281
1282 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 Init video early on yeeloong to avoid being rebooted by watchdog.
1285
1286 * grub-core/Makefile.am (gensm712): New target.
1287 (sm712_start.S): Likewise.
1288 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1289 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1290 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1291 description.
1292 * include/grub/vga.h: Move registry definitions to...
1293 * include/grub/vgaregs.h: ... here.
1294
1295 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1296
1297 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1298 signedness.
1299
1300 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1301
1302 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1303 platforms with firmware disk drivers in the core.
1304
1305 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1308 informative verbose message.
1309 (read_lv): Handle 64-bit segment size.
1310
1311 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1314
1315 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1316
1317 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1318 character but still remove trainling spaces.
1319 (grub_fat_label): Ignore archive flag.
1320
1321 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1324 cast between linux_kernel_header and linux_kernel_params.
1325
1326 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1329 type for size.
1330 (grub_raid6_recover_func_t): Likewise.
1331 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1332 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1333
1334 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1337
1338 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1339
1340 Fix overflow.
1341
1342 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1343 [__NetBSD__]: Add explicit cast before bitshift.
1344
1345 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 * configure.ac: Bump to 2.00~rc1.
1348
1349 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1352 half of $a0.
1353
1354 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1355 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1356
1357 * docs/grub.texi: Fix search syntax.
1358 (Multi-boot manual config): Put msdos rather than GPT example.
1359 Grammar corrections.
1360
1361 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1364
1365 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1368
1369 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1372 message on double free. Put the value of magic in case of mismatch.
1373
1374 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1375
1376 Speed-up video on yeeloong.
1377
1378 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1379 add cached_ptr.
1380 (grub_video_sm712_video_fini): Unmap cached_ptr.
1381 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1382 (grub_video_sm712_set_active_render_target): Removed.
1383 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1384 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1385 sync caches.
1386
1387 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 Avoid flushing the same line multiple times on loongson.
1390
1391 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1392 Step in 32 bytes and not 1 byte.
1393 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1394 Likewise.
1395
1396 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1399 subvolumes.
1400
1401 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 Implement flow control for http.
1404
1405 * grub-core/net/http.c (parse_line): Handle response 206.
1406 (http_receive): Stall if too many packets are in the queue.
1407 (http_establish): Fix range header.
1408 (http_seek): Fix double free.
1409 (http_close): Likewise.
1410 (http_packets_pulled): New function.
1411 (grub_http_protocol): Set http_seek
1412 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1413 (ack_real): Set window depending on i_stall.
1414 (grub_net_send_tcp_packet): Likewise.
1415 (grub_net_tcp_stall): New function.
1416 (grub_net_tcp_unstall): Likewise.
1417 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1418 (grub_net_tcp_unstall): Likewise.
1419
1420 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1423
1424 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1427
1428 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1429
1430 * tests/util/grub-shell.in: Fix a typo.
1431
1432 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 Implement flow control for tftp.
1435
1436 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1437 packets but stop only if stop condition is satisfied.
1438 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1439 `stall' instead of `eof' as stop condition.
1440 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1441 (http_err): Likewise.
1442 * grub-core/net/tftp.c (ack): Replace the first argument with data
1443 instead of socket.
1444 (tftp_receive): Stall if too many packets are in wait queue.
1445 (tftp_packets_pulled): New function.
1446 (grub_tftp_protocol): Set packets_pulled.
1447 * include/grub/net.h (grub_net_packets): New field count.
1448 (grub_net_put_packet): Increment count.
1449 (grub_net_remove_packet): Likewise.
1450 (grub_net_app_protocol): New field `packets_pulled'.
1451 (grub_net): New field `stall'.
1452
1453 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1456 sync part to handle them.
1457
1458 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1461 * grub-core/net/drivers/ieee1275/ofnet.c
1462 (grub_ieee1275_net_config_real): Likewise.
1463
1464 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1465
1466 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1467 the direct route for server/gateway.
1468
1469 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1472 IP address to server name since we may not hame the DNS.
1473
1474 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1475
1476 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1477 freeing random buffer on failure.
1478 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1479
1480 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1483
1484 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1485
1486 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1487 reserved bytes.
1488 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1489 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1490 Handle malloc error correctly.
1491
1492 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1495 blocks.
1496
1497 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1500 increment.
1501
1502 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1505 none is explicitly specified.
1506
1507 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1508
1509 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1510 while reallocating.
1511
1512 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 Respect netmask from bootp/dhcp.
1515
1516 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1517 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1518 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1519 into ...
1520 (grub_net_add_ipv4_local): ... this.
1521 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1522 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1523 (grub_net_add_ipv4_local): New proto.
1524
1525 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1528 determining EFI memory map size.
1529
1530 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1533
1534 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1537 when looking for partition separator.
1538
1539 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1542 Escape commas.
1543
1544 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 Restructure FAT driver to avoid hook in label reading as it hits a
1547 GCC bug.
1548
1549 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1550 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1551 (grub_fat_iterate_dir): Split into ...
1552 (grub_fat_iterate_init): ... this, ...
1553 (grub_fat_iterate_fini): ... this, ...
1554 (grub_fat_iterate_dir_next): ... and this. All users updated.
1555
1556 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1559 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1560 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1561 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1562 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1563 New fields last_key and last_key_time.
1564 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1565 extended key-esc into extended key-extended key.
1566
1567 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1568
1569 Avoid unnecessary memcpy of whole video buffer.
1570
1571 * grub-core/video/fb/video_fb.c (dirty): New struct.
1572 (framebuffer): Add members current_dirty and previous_dirty.
1573 (dirty): New function.
1574 (grub_video_fb_fill_rect): Update dirty.
1575 (common_blitter): Likewise.
1576 (grub_video_fb_scroll): Likewise.
1577 (doublebuf_blit_update_screen): Copy only dirty part.
1578 (doublebuf_pageflipping_update_screen): Likewise.
1579 (grub_video_fb_doublebuf_blit_init): Init dirty.
1580 (doublebuf_pageflipping_init): Likewise.
1581 (grub_video_fb_setup): Likewise.
1582
1583 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1586 poll rate.
1587
1588 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 Fix wildcard regexp dot and other special characters handling.
1591 Reported by: Robert Mabee.
1592
1593 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1594 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1595 (split_path): Trigger expansion on '?'.
1596 (unescape): New function.
1597 (wildcard_expand): Unescape parts copied without globbing.
1598 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1599 (grub_script_arglist_to_argv): Don't unescape expansions.
1600
1601 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * include/grub/net.h (grub_net_card): New member txbufsize.
1604 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1605 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1606 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1607 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1608 txbufsize.
1609 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1610 compatible property to check for macs. Set
1611 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1612 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1613 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1614 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1615 (send_card_buffer): Use txbuf.
1616 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1617 nested function out of the parent while on it.
1618
1619 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1622 presence check.
1623 (grub_ieee1275_net_config_real): Fix config pointer.
1624
1625 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1628 filename parsing to non-block devices.
1629
1630 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1633
1634 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1637 All users updated.
1638
1639 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1642 UUID search command even if hints probing failed.
1643
1644 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 * po/POTFILES.in: Regenerated.
1647
1648 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1649
1650 Speed-up video on fuloong.
1651
1652 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1653 New function.
1654 (grub_pci_device_unmap_range): Handle non-cached address.
1655 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1656 add direct_ptr.
1657 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1658 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1659 (grub_video_sis315pro_set_active_render_target): Removed.
1660 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1661 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1662 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1663 sync caches.
1664 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1665 New proto.
1666
1667 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 * docs/grub.texi (Multi-boot manual config): New section.
1670
1671 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 Avoid slow read-back from VRAM.
1674
1675 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1676 Move from here ...
1677 * grub-core/video/fb/video_fb.c
1678 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1679 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1680 (front_target): Remove front_target. Add pages.
1681 (grub_video_fb_init): Skip setting front_pages.
1682 (grub_video_fb_fini): Likewise.
1683 (doublebuf_blit_update_screen): Use pages.
1684 (grub_video_fb_doublebuf_blit_init): Likewise.
1685 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1686 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1687 (grub_video_fb_setup): Prefer doublebuffing.
1688
1689 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1692 gzio.
1693
1694 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 Add loongson tests.
1697
1698 * tests/util/grub-shell.in: Handle loongson.
1699 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1700 drivers.
1701 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1702 Reboot instead of shutdown if REBOOT is defined.
1703
1704 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1707 sized ports since unlike on real hardware qemu supports only 32-bit
1708 regs.
1709
1710 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1713 * util/grub-mkrescue.in: Handle loongson.
1714
1715 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1718 Set is_part appropriately.
1719 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1720 names. Canonicalize partition without full disk.
1721
1722 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 Revert usb-quiesce since it's wrong.
1725
1726 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1727 (grub_ofdisk_init): Don't do quiesce.
1728
1729 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1732 PowerMac workaround to Xserves as well.
1733 Information supplied by: Benjamin Herrenschmidt.
1734
1735 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 Don't assume that beginning address is also the entry point on ppc.
1738
1739 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1740 (grub_linux_boot): Use linux_entry.
1741 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1742 (grub_linux_load64): Likewise.
1743
1744 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1747
1748 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1751 needlessly lose the console.
1752
1753 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1754
1755 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1756 space.
1757
1758 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1761 than current grub_get_rtc() not implemented when booted with
1762 coreboot without TSC.
1763
1764 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
1765 Add machine/time.h to kernel headers on loongson.
1766 * grub-core/Makefile.core.def (kernel): Remove
1767 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
1768 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
1769 (grub_get_rtc): Likewise.
1770 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
1771 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
1772 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
1773 * grub-core/kern/i386/tsc.c (grub_tsc_init)
1774 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
1775 rather than installing known non-working time source.
1776 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
1777 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
1778 * include/grub/time.h: Don't include machine/time.h.
1779 * include/grub/efi/time.h: Removed.
1780 * include/grub/i386/efi/time.h: Likewise.
1781 * include/grub/i386/ieee1275/time.h: Likewise.
1782 * include/grub/powerpc/ieee1275/time.h: Likewise.
1783 * include/grub/sparc64/ieee1275/time.h: Likewise.
1784 * include/grub/x86_64/efi/time.h: Likewise.
1785
1786 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1787
1788 Remove dot on i and j when combining with above diacritics.
1789
1790 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
1791 value.
1792 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
1793 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
1794 with dotless variants when any combining above is present.
1795
1796 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
1799 text and not binary.
1800
1801 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 Stop polling as soon as we have the packet we were waiting for.
1804
1805 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
1806 All users updated.
1807 * grub-core/net/arp.c (have_pending): New var.
1808 (pending_req): Likewise.
1809 (grub_net_arp_send_request): Fill pending_req and use have_pending as
1810 stop indicator.
1811 (grub_net_arp_receive): Set have_pending.
1812 * grub-core/net/dns.c (recv_data): New field stop.
1813 (recv_hook): Set stop.
1814 (grub_net_dns_lookup): Init stop and use as stop condition.
1815 * grub-core/net/http.c (http_establish): Use headers_recv as stop
1816 condition.
1817 * grub-core/net/net.c (grub_net_poll_cards): New argument
1818 stop_condition. Stop when it goes true.
1819 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
1820 indicator.
1821 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
1822
1823 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 Keep TX and RX buffers on EFI rather than always allocate new ones.
1826
1827 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
1828 card. All users updated.
1829 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
1830 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
1831 (get_card_packet): Likewise.
1832 (grub_efinet_findcards): Init new fields.
1833
1834 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1835
1836 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
1837 compilation error on sparc64.
1838
1839 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 Use ITC on IA64 rather than broken routine based on daytime.
1842
1843 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
1844 ia64.
1845 (grub_get_rtc) [__ia64__]: Likewise.
1846 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
1847 (get_itc): New function.
1848 (grub_rtc_get_time_ms): Likewise.
1849 (grub_machine_init): Calibrate ITC.
1850 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
1851 Keep only on non-ia64. Don't export since it's broken and used only
1852 if TSC is unavailable.
1853
1854 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
1857 even if it's used.
1858 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
1859 Skip if parent is unused.
1860
1861 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1862
1863 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
1864
1865 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 Fix wildcard escaping.
1868
1869 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
1870 * grub-core/script/execute.c (wildcard_escape): .. to here.
1871 Don't escape dot.
1872 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
1873 * grub-core/script/execute.c (wildcard_unescape): .. to here.
1874 Don't escape dot.
1875 * grub-core/script/execute.c (gettext_append): Always escape.
1876 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
1877 * grub-core/script/yylex.l: Don't cut away the escaping.
1878 * tests/grub_script_echo1.in: Add tests with wildcard.
1879
1880 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
1883 (ftdi_hw_configure): Likewise.
1884 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
1885 define.
1886 (real_config): Handle 1.5 stop bits.
1887 (pl2303_hw_configure): Likewise.
1888
1889 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1890
1891 * Makefile.am: Add ppc linux bootcheck.
1892 * grub-core/tests/boot/linux-ppc.cfg: New file.
1893 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
1894
1895 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 * tests/grub_script_expansion.in: Skip network protocols.
1898
1899 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1900
1901 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
1902
1903 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
1906 --rom-directory.
1907 Add -graft-points.
1908
1909 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1910
1911 ESCC serial driver for conducting sautomated tests in qemu.
1912 Not tested on real hardware.
1913
1914 * include/grub/serial.h (grub_serial_port): New field escc_desc.
1915 * grub-core/term/ieee1275/escc.c: New file.
1916 * grub-core/Makefile.core.def (escc): New module.
1917
1918 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
1921 invalid on error.
1922 (serial_hw_fetch): Don't read invalid handle.
1923 (serial_hw_put): Don't write into invalid handle.
1924
1925 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 Add a 1.5 stop bits value.
1928
1929 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
1930 * include/grub/serial.h (grub_serial_stop_bits_t): Add
1931 GRUB_SERIAL_STOP_BITS_1_5.
1932
1933 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1934
1935 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
1936 value rather than let it uninited.
1937
1938 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/commands/wildcard.c (+check_file): New function.
1941 (wildcard_expand): Don't expand to non-existing files, expand with
1942 suffix and not attempt to expand if not needed.
1943
1944 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
1947 out of partitions containing other partitions.
1948
1949 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
1952 on some qemu versions with GRUB.
1953
1954 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
1955 define.
1956 (grub_openbsd_bootarg_pcibios): New struct.
1957 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
1958 Add PCIINFO.
1959
1960 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1961
1962 * tests/util/grub-shell.in: Trim firmware output on EFI.
1963
1964 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
1967 and coreboot since it's already in kernel.
1968
1969 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
1972 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1973 to here. New return value start. All users updated.
1974 Recursively scan linear mappings.
1975 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
1976 proto.
1977 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
1978 Use grub_util_get_dm_node_linear_info.
1979 * util/getroot.c (convert_system_partition_to_system_disk): Use
1980 grub_util_info rather than grub_dprintf.
1981 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
1982
1983 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
1986
1987 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
1988 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
1989
1990 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * include/grub/types.h (grub_set_unaligned64): New function.
1993 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
1994 (setup): Likewise.
1995
1996 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1997
1998 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
1999 (grub_ofdisk_fini): Quiesce USB devices.
2000
2001 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2002
2003 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2004 caches.
2005
2006 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2009
2010 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2011
2012 * grub-core/disk/pata.c (grub_pata_pio_read)
2013 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2014 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2015
2016 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 Extend automated tests to qemu-mips.
2019
2020 * Makefile.am: reorganise tests and enable qemu-mips.
2021 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2022 * grub-core/tests/boot/linux.init-mips.S: New file.
2023 * tests/partmap_test.in: Handle ata0 disks.
2024 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2025 non-pc i386.
2026
2027 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2028
2029 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2030 ia64.
2031 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2032 quotes while on it.
2033
2034 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2035
2036 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2037 (grub_halt): Likewise.
2038 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2039
2040 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * grub-core/term/serial.c (grub_serial_register)
2043 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2044 the behaviour in line with x86 platforms.
2045
2046 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2049 (grub_ata_strncpy): Likewise.
2050 (grub_ata_identify): Add missing byteswaps.
2051
2052 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2055 byte-swap.
2056 (screen_read_char): Likewise.
2057 (grub_vga_text_cls): Likewise.
2058
2059 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2062 filenames.
2063 (make_file_path): Likewise.
2064
2065 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2066
2067 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2068 machines.
2069 Tested by: Paulo Flabiano Smorigo.
2070 Crucial information about API supplied by: Coleen <Last name unknown>.
2071 Reviewed by: Coleen <Last name unknown>.
2072
2073 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 * util/grub-mkimage.c: Disable -Wcast-align.
2076
2077 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2080 as they are fatal.
2081
2082 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2085
2086 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 * util/grub-probe.c (escape_of_path): Fix double free.
2089
2090 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * grub-core/commands/videoinfo.c (hook): Show pitch.
2093
2094 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2095
2096 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2097
2098 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2101 (probe): Add ieee1275 to OFW devices.
2102
2103 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2106
2107 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 Handle IBM OFW path.
2110
2111 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2112 available.
2113 (of_path_of_scsi): Handle vdevice.
2114
2115 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2118 Allocate in multiples of 16 to avoid adding a few bytes free region the
2119 windows bugs upon.
2120
2121 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2122
2123 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2124 Allocate in multiples of 16 to avoid adding a few bytes free region the
2125 windows bugs upon.
2126 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2127
2128 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2131 resolutions.
2132 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2133 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2134
2135 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2136
2137 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2138
2139 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2142 resulted in \\ at the end of the line.
2143
2144 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2147 (grub_parser_cmdline_state): Likewise.
2148 (grub_parser_split_cmdline): Likewise.
2149
2150 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2153 /dev/root and /dev/dm-*.
2154
2155 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2158 fix partially stale display.
2159
2160 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2163 substraction.
2164
2165 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2166
2167 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2168 Fix MBR remapping workaround.
2169 (grub_util_biosdisk_read) [__linux__]: Likewise.
2170
2171 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2174
2175 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 * configure.ac: Bump to beta6.
2178
2179 2012-05-31 Christer Weinigel <christer@weinigel.se>
2180
2181 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2182
2183 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2186 (grub_cmd_linux): Likewise.
2187
2188 2012-05-31 Christer Weinigel <christer@weinigel.se>
2189
2190 Fix EHCI low-speed.
2191
2192 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2193 (GRUB_EHCI_MULT_TWO): Likewise.
2194 (GRUB_EHCI_MULT_THREE): Likewise.
2195 (GRUB_EHCI_CMASK_MASK): New enum value.
2196 (GRUB_EHCI_SMASK_MASK): Likewise.
2197 (GRUB_EHCI_CMASK_OFF): Likewise.
2198 (GRUB_EHCI_SMASK_OFF): Likewise.
2199 (grub_ehci_pci_iter): Enable periodic schedule.
2200 (grub_ehci_parse_notrun): Likewise.
2201 (grub_ehci_restore_hw): Likewise.
2202 (grub_ehci_setup_qh): Set flags for low speed transfers.
2203 (grub_ehci_find_qh): Use periodic list for low speed.
2204 (grub_ehci_setup_transfer): Check periodic queue as well.
2205 (grub_ehci_check_transfer): Likewise.
2206 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2207
2208 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2209
2210 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2211 parameter is used.
2212
2213 2012-05-31 Peter Jones <pjones@redhat.com>
2214
2215 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2216 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2217 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2218
2219 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2220
2221 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2222 uninited variable. Allocate at least setup_sects.
2223
2224 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2225
2226 Fix handling of EFI with big memory maps.
2227
2228 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2229 (real_mode_mem): Likewise.
2230 (real_mode_target): Likewise.
2231 (real_mode_pages): Likewise.
2232 (prot_mode_pages): Likewise.
2233 (linux_params): New var.
2234 (linux_cmdline): Likewise.
2235 (free_pages): Don't set real mode variables.
2236 (allocate_pages): Don't allocate real mode memory.
2237 (grub_e820_add_region): Remove the limit.
2238 (grub_linux_boot): Allocate and copy real mode memory.
2239 (grub_linux_unload): Free linux_cmdline.
2240 (grub_cmd_linux): Use temporary storage for parameters.
2241 (grub_cmd_initrd): Likewise.
2242 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2243 (linux_kernel_params): Make it 1K big.
2244
2245 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * Makefile.util.def: Remove -Wno-format.
2248 * grub-core/Makefile.core.def: Likewise.
2249
2250 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * tests/cmp_unit_test.c: Add missing failure message.
2253 * tests/example_unit_test.c: Likewise.
2254 * tests/printf_unit_test.c: Likewise.
2255
2256 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2259 relaxation of protective MBR requirements.
2260
2261 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * configure.ac: Add condition for COND_HOST_XNU.
2264 * Makefile.util.def (10_xnu): New script.
2265 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2266
2267 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2270 objconv bug.
2271
2272 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2273
2274 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2275 Binary on other platforms stays identical.
2276
2277 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2280 Apple.
2281
2282 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2285
2286 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2289 rather than defining size_t ourselves to avoid conflict.
2290
2291 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2292
2293 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2294 initialisation to avoid __bzero reference.
2295
2296 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2299 version.
2300 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2301 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2302 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2303 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2304 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2305
2306 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2309 * grub-core/kern/misc.c: Likewise.
2310 * grub-core/loader/i386/xnu.c: Likewise.
2311 * include/grub/i386/tsc.h: Likewise.
2312 * include/grub/symbol.h: Likewise.
2313
2314 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2317 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2318 on older compiler.
2319
2320 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2323 Implement Apple flavour.
2324 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2325
2326 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2327
2328 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2329 (memmove) [__APPLE__]: Likewise.
2330 (memcpy) [__APPLE__]: Likewise.
2331 (memset) [__APPLE__]: Likewise.
2332 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2333 (memmove) [__APPLE__]: Likewise.
2334 (memcpy) [__APPLE__]: Likewise.
2335 (memset) [__APPLE__]: Likewise.
2336
2337 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2340 dependency discard.
2341
2342 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 * grub-core/normal/main.c (read_config_file): Provide config_file and
2345 config_directory.
2346 * util/grub.d/41_custom.in: Use config_directoy when available.
2347
2348 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2351 (grub_bfs_dir): Likewise.
2352
2353 2012-05-27 Peter Jones <pjones@redhat.com>
2354
2355 The old code gives arguments to a printf function which can't work
2356 correctly, and the compiler complains.
2357
2358 * grub-core/tests/example_functional_test.c (example_test): Add
2359 missing text.
2360 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2361 * include/grub/test.h (grub_test_assert_helper): New declaration.
2362 (grub_test_assert): Use grub_test_assert_helper.
2363
2364 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2367 (exfctest): ... this to avoid overlong filenames.
2368 All users updated.
2369
2370 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 Handle "." and ".." on squashfs.
2373
2374 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2375 Make inode numbers into stack.
2376 (grub_squash_read_symlink): Use stack.
2377 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2378 (make_root_node): Fill stack.
2379 (grub_squash_open): Use stack.
2380
2381 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2384 freeing.
2385
2386 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2389 stderr on test calls.
2390
2391 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2394
2395 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2398
2399 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2402 "..".
2403
2404 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2407 (grub_hfsplus_iterate_dir): Add "." and "..".
2408
2409 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2410
2411 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2412 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2413
2414 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2415
2416 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2417 (find_path): Handle "." and "..".
2418
2419 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2420
2421 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2422 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2423 (grub_affs_iterate_dir): Handle hardlinks.
2424
2425 2012-05-26 Matthew Garrett <mjg@redhat.com>
2426
2427 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2428 (grub_efi_console_fini): Likewise.
2429 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2430 (grub_video_gop_fill_mode_info): Rename to ...
2431 (grub_video_gop_fill_real_mode_info): ... this.
2432 (grub_video_gop_fill_mode_info): New function.
2433 (grub_video_gop_setup): Setup double framebuffer.
2434 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2435 Free offscreen.
2436 (grub_video_gop_swap_buffers): Copy framebuffer.
2437 (grub_video_gop_fini): Free offscreen buffer.
2438 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2439 New enum.
2440 (grub_efi_gop_blt_pixel): New struct.
2441
2442 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * gentpl.py: Remove error disabling for objconv.
2445
2446 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 * configure.ac: Remove -Wunitialized as it's not available on older
2449 compilers.
2450
2451 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 Fix extent overflow comparator.
2454
2455 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2456 (grub_hfsplus_read_block): Set type.
2457 (grub_hfsplus_cmp_extkey): Compare type.
2458
2459 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2462
2463 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2464
2465 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2466 than 0.
2467
2468 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2471 (dejavu_bold_14.pf2): New target.
2472
2473 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * configure.ac: Fix djvu font detection.
2476
2477 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2480 ext* instead of ext2.
2481
2482 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2485 name with \0.
2486
2487 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2488
2489 * docs/grub-dev.texi: Remove dot from .png.
2490
2491 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2494 protective entry in any slot.
2495 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2496 if protective entry is found in any slot.
2497
2498 Protective entry in non-first slot make no sense but is a widespread
2499 brain damage.
2500
2501 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2504
2505 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2508 with old reiserfs.
2509 (grub_reiserfs_open): Don't free root.
2510
2511 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2512
2513 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2514 after freeing for safety.
2515
2516 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2519 Reported by: Jordan Uggla.
2520
2521 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2522
2523 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2524 actual implementation. Specifically, clarify that the grub menu will
2525 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2526 passed.
2527
2528 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2529
2530 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2531 of r0.
2532
2533 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2534
2535 Remove unjustified hard dependency of normal.mod on gfxterm.
2536
2537 * include/grub/term.h (grub_term_output): New member fullscreen.
2538 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2539 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2540 (grub_gfxterm): Set .fullscreen.
2541 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2542 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2543
2544 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2545
2546 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2547 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2548 Mention case-insensitive AFFS, SFS and JFS.
2549
2550 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2551
2552 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2553
2554 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2557 a bad FS.
2558
2559 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2560
2561 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2562 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2563
2564 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2567 (grub_jfs_mount): Fill caseins.
2568 (grub_jfs_find_file): Respect caseins.
2569
2570 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2571
2572 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2573 through UTF-16.
2574
2575 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2576
2577 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2578 New argument origpath. All users updated.
2579
2580 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2581
2582 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2583 (read_attr): Ensure that we read start of possibly compressed block.
2584
2585 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2588 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2589 All users updated.
2590
2591 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2594 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2595 (dejavu.pf2): Replace with ...
2596 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2597 this.
2598
2599 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * util/grub.d/20_linux_xen.in: Add missing line.
2602
2603 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2606 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2607 (grub_utf16_to_utf8): Likewise.
2608
2609 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2612 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2613 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2614 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2615 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2616 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2617
2618 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2621 a bad FS.
2622
2623 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2626 (grub_udf_read_symlink): Handle read_string failure.
2627
2628 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2631 comment.
2632
2633 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 Fix handling of UDF symlinks.
2636
2637 * grub-core/fs/udf.c (read_string): New argument outbuf.
2638 All users updated.
2639 (grub_ufs_read_symlink): Rename to ...
2640 (grub_udf_read_symlink): ... this. All users updated.
2641 Handle symlinks with more than one component.
2642
2643 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2646 symlinks. Replace leading colon with a slash.
2647
2648 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2651 filename.
2652
2653 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2654
2655 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2656 match in inner node.
2657
2658 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2661 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2662 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2663 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2664 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2665 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2666 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2667 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2668 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2669
2670 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 Use grub-probe and not cmp to check that disk is empty.
2673
2674 * util/grub-install.in: Use grub-probe for zero-check.
2675 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2676 (probe): Handle PRINT_ZERO_CHECK.
2677 (argp_parser): Handle -t zero_check.
2678
2679 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 Flush block cache on adding disk to device map.
2682
2683 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2684 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2685 adding.
2686 (read_device_map): Likewise.
2687 (open_device): Flush on opening.
2688
2689 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2692 (handle_symlink): Fix off-by-one error.
2693 Canonicalize the target.
2694 (grub_cpio_dir): Canonicalize the name.
2695 Fix memory leak.
2696 Set directory.
2697 (grub_cpio_open): Canonicalize the name.
2698
2699 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2702 handling.
2703
2704 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2707 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2708
2709 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2710
2711 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2712 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2713 All users updated.
2714
2715 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2718 counterpart.
2719
2720 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 Fix UFS1 big file support.
2723
2724 * grub-core/fs/ufs.c (INODE): Removed.
2725 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2726 64-bit.
2727 (INODE_MODE): Simplify.
2728 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2729 (grub_ufs_lookup_symlink): Don't use INODE.
2730
2731 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2734
2735 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2736 (grub_minix_data): Replace log_block_size with block_size.
2737 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2738 (grub_minix_mount): Fill block_size.
2739
2740 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 * configure.ac: Bump to beta5.
2743
2744 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2745
2746 Fix wrapped HFS+ handling.
2747
2748 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2749 blocks_start. All users updated.
2750 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2751 wrapping offset.
2752 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2753
2754 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 Fix long symlinks on reiserfs.
2757
2758 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2759 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2760 (grub_reiserfs_iterate_dir): Save size for non-directories.
2761 (grub_reiserfs_open): Don't reread stat block as we already know the
2762 size.
2763 (grub_reiserfs_read): Split into...
2764 (grub_reiserfs_read_real): ... and ...
2765 (grub_reiserfs_read): ...this.
2766
2767 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 Fix non-indexed JFS.
2770
2771 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
2772 (grub_jfs_data): New field namecomponentlen.
2773 (grub_jfs_mount): Fill namecomponentlen.
2774 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2775
2776 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
2779 * tests/grub_script_echo1.in: Add tests.
2780
2781 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * util/grub-install.in: Ignore empty devicetree directory.
2784
2785 2012-05-08 Bean <bean123ch@gmail.com>
2786
2787 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
2788 All users updated.
2789 (free_rsm): Free header as well.
2790 (free_old_fragments): Fix memory leak.
2791 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
2792 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
2793 (destroy_pq): Likewise.
2794 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2795
2796 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2797
2798 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
2799 resulting hash as a precaution.
2800
2801 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
2804 '_' in variable names.
2805 * grub-core/net/net.c (grub_net_network_level_interface_register):
2806 Likewise.
2807
2808 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2809
2810 Fix AFFS with non-512B blocks.
2811
2812 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
2813 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
2814 (grub_affs_data): Replace blocksize with log_blocksize.
2815 (grub_affs_read_block): Fix non-512B blocks.
2816 (grub_affs_read_symlink): Likewise.
2817 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
2818 (grub_affs_read): Fix non-512B blocks.
2819 (grub_affs_label): Likewise.
2820 (grub_affs_mtime): Likewise.
2821 (grub_affs_mount): Fix block detection routine.
2822
2823 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 Add filesystem mtime to AFFS.
2826
2827 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
2828 (aftime2ctime): New function.
2829 (grub_affs_dir): Use aftime2ctime.
2830 (grub_affs_label): Fix return value.
2831 (grub_affs_mtime): New function.
2832 (grub_affs_fs): Add mtime.
2833
2834 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
2837 UTF-8.
2838
2839 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
2842 UTF-8.
2843
2844 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2847
2848 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
2851 flags.
2852 (FLAGS_CASE_SENSITIVE): New enum value.
2853 (cache_entry): New struct.
2854 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
2855 cache_size and cache.
2856 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
2857 Add log_blocksize and fshelp_flags.
2858 (grub_sfs_read_extent): Handle non-512 blocks.
2859 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
2860 (grub_sfs_read_file): Handle non-512 blocks.
2861 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
2862 fshelp_flags.
2863 (grub_sfs_read_symlink): Handle non-512 blocks.
2864 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
2865 (grub_sfs_dir): Free cache.
2866 (grub_sfs_close): Likewise.
2867
2868 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
2871 filesystems.
2872
2873 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
2876
2877 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
2880
2881 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
2884 (grub_sfs_read_extent): Likewise.
2885 (grub_sfs_read_block): Likewise.
2886 (grub_sfs_mount): Likewise.
2887 (grub_sfs_iterate_dir): Likewise.
2888 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
2889 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
2890
2891 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 Fix errors on compressed NTFS with 512B clusters.
2894
2895 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
2896 types.
2897 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
2898 not 0.
2899 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
2900 Relax check for inline extents.
2901 (ntfscomp): Return correct -1 on error and not 0.
2902
2903 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * util/grub-install.in: Fix handling of prefix containing spaces.
2906
2907 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
2910 (grub_squash_read_data): Fix offset byte-swapping.
2911
2912 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2913
2914 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
2915 per common usage and preffered in several parts of code.
2916 (grub_memcmp): Likewise.
2917 (grub_strncmp): Likewise.
2918 * include/grub/misc.h (grub_strcasecmp): Likewise.
2919 (grub_strncasecmp): Likewise.
2920 * Makefile.util.def (cmp_test): New test.
2921 (grub_script_strcmp): Likewise.
2922 * tests/cmp_unit_test.c: New file.
2923 * tests/grub_script_strcmp.in: Likewise.
2924 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
2925
2926 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * include/grub/pci.h: Move enums into no-asm part.
2929
2930 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2931
2932 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
2933
2934 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2935
2936 * util/getroot.c (find_hurd_root_device): Try to make error message
2937 and comments to translators clearer.
2938
2939 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2940
2941 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
2942
2943 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
2946 btrfs.
2947
2948 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * docs/grub.cfg: Update.
2951
2952 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 * docs/grub.texi (PXE): Remove not present variables.
2955
2956 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/net/net.c (defserver_set_env): New function.
2959 (defserver_get_env): Likewise.
2960 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
2961
2962 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2963
2964 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
2965 entries.
2966
2967 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
2970 * grub-core/kern/emu/hostdisk.c: Likewise.
2971
2972 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2973
2974 Handle hurd userspace partitions.
2975
2976 * util/getroot.c (find_hurd_root_device): New function.
2977 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
2978
2979 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
2982 names.
2983 Reported by: Bastian Blank.
2984
2985 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2986
2987 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
2988 crossing page boundary.
2989
2990 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 Fix B-tree search in BFS, especially in presence of non-ASCII
2993 characters.
2994
2995 * grub-core/fs/bfs.c (bfs_strcmp): New function.
2996 (find_in_b_tree): Use standard bsearch + btree algorithm.
2997
2998 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3001 and so on.
3002
3003 2012-05-03 Matthew Garrett <mjg@redhat.com>
3004 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 Suspend broadcom cards in order to stop their DMA.
3007
3008 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3009 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3010 (pci): Don't build on x86 EFI.
3011 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3012 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3013 New function.
3014 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3015 stop_broadcom if running on EFI.
3016 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3017 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3018 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3019 (grub_pci_find_capability): New proto.
3020
3021 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3022
3023 * docs/grub.texi: Remove dot from the extension as it apparently
3024 doesn't work with some makeinfo versions.
3025
3026 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3029 with GRUB expectance.
3030
3031 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3034
3035 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3038 zero after directory block since last entry may be not 0-terminated if
3039 it ends on block boundary. Use continue instead of if spanning whole
3040 loop.
3041
3042 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 Support 4K sectors UDF inline files.
3045
3046 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3047 (grub_udf_extended_file_entry): Likewise.
3048 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3049 All users updated.
3050 (get_fshelp_size): New function.
3051 (grub_udf_read_icb): Read whole block.
3052 (grub_udf_iterate_dir): Likewise.
3053 (grub_udf_dir): Likewise.
3054 (grub_udf_open): Likewise.
3055
3056 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3059
3060 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3063 inline symlinks in addition to workaround.
3064
3065 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3068
3069 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3072
3073 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3076
3077 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 Fix reiserfs big seek times.
3080
3081 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3082 exact. All users updated.
3083 (grub_reiserfs_read): Use nearest btree search for seeking.
3084 Fix return value on error.
3085
3086 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3089 entries.
3090 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3091 * docs/grub.texi: Update menuentry description.
3092
3093 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3096 crash when embedding onto filesystem.
3097
3098 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3099
3100 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3101 name.
3102
3103 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3106
3107 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3110 commit.
3111
3112 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3113 2012-05-01 Bean <bean123ch@gmail.com>
3114
3115 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3116
3117 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3120 Special behaviour for len = 0 to read whole file isn't used anywhere and
3121 can cause buffer ovewrflows in several places.
3122
3123 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3126
3127 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 Handle RAIDZ on non-512B sectors.
3130
3131 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3132 max_children_ashift.
3133 (fill_vdev_info_real): Fill max_children_ashift.
3134 (read_device): Use max_children_ashift.
3135
3136 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3139
3140 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3141
3142 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3143 disk names.
3144 * docs/grub.texi: Update device.map parts.
3145
3146 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 Don't scan into non-diskfilter devices having diskfilter names.
3149
3150 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3151 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3152 handling.
3153 (scan_disk_hook): New function.
3154
3155 2012-04-29 Bean <bean123ch@gmail.com>
3156
3157 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3158 allocation.
3159
3160 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3161
3162 * configure.ac: Detect starfield theme font path
3163 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3164
3165 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3168 geometry on serial consoles.
3169
3170 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3173 because of network consoles.
3174
3175 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3178 handling.
3179
3180 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3181
3182 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3183 falls on Q syndrom.
3184
3185 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3186
3187 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3188 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3189
3190 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3193 Allocate at lest 8192 for temporary buffer as required for lzo.
3194
3195 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3198 to cluster_bits, since it's already added in.
3199 (grub_fat_read_data): Likewise.
3200
3201 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3204 as long as cluster size is multiple of 512 bytes.
3205
3206 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3207
3208 * util/grub-mkrescue.in: Fix locale directory.
3209
3210 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 * grub-core/kern/emu/hostdisk.c (map): Make static.
3213
3214 2012-04-23 Bean <bean123ch@gmail.com>
3215
3216 * util/grub-fstest.c (fstest): Add missing break.
3217
3218 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3219
3220 Fix hurd build.
3221
3222 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3223 not define nr variable.
3224 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3225 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3226 grub_find_device): Do not define.
3227
3228 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 Fix kfreebsd compile and behaviour.
3231
3232 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3233 format-security.
3234 * util/getroot.c: Fix wait.h include.
3235 (grub_guess_root_devices): Error if grub_find_device fails.
3236 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3237 (grub_util_get_dev_abstraction): Likewise.
3238 (grub_util_pull_device): Likewise.
3239 (grub_util_get_grub_dev): Likewise.
3240 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3241
3242 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 Fix and unify wholedisk detection.
3245
3246 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3247 is_part. All users updated.
3248 (device_is_wholedisk): Removed.
3249 (grub_util_biosdisk_get_grub_dev): Use is_part.
3250
3251 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3254 mode.
3255
3256 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * configure.ac: Bump to beta4.
3259
3260 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3263 --fs-uuid --set UUID syntax.
3264
3265 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3266
3267 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3268 disunification.
3269
3270 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3271
3272 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3273
3274 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3275
3276 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3277
3278 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3279
3280 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3281
3282 2012-04-18 Bean <bean123ch@gmail.com>
3283
3284 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3285 place.
3286
3287 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3290 users updated.
3291 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3292 corresponding to GRUB partitions.
3293 (grub_util_biosdisk_write): Likewise.
3294
3295 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 Scan mdraid before LVM.
3298
3299 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3300 (grub_diskfilter_register_front): ... this.
3301 (grub_diskfilter_register_back): New function.
3302 All users of grub_diskfilter_register updated.
3303
3304 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3305
3306 * util/grub-install.in: Fix an automatic target detection bug.
3307
3308 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * util/grub-install.in: New option --efi-directory.
3311
3312 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3315 boot services if we have no other choice.
3316
3317 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3320 document it.
3321 * tests/util/grub-shell.in: Update to --directory.
3322
3323 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3326
3327 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3328
3329 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3330 (grub_minix_read_file): Likewise.
3331 (grub_minix_read_inode): Likewise.
3332 (grub_minix_find_file): Likewise.
3333 (grub_minix_dir): Likewise.
3334
3335 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * util/grub-setup.c (setup): Fix partition handling and blocklist
3338 check.
3339
3340 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3343 redundant buggy overlap check.
3344
3345 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3348 and grub-mknetdir.
3349
3350 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3353 kh.loadflags on pre-2.00 kernels.
3354
3355 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3356
3357 Terminate UNDI and PXE before launching the payload to avoid problems
3358 with DMA.
3359
3360 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3361 (grub_loader_flags): ... this. All users updated.
3362 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3363 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3364 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3365 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3366 function.
3367 (grub_pxe_restore): Likewise.
3368 (fini_hnd): New var.
3369 (GRUB_MOD_INIT): Register shutdown hook.
3370 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3371 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3372 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3373 (grub_loader_set): Rename second argument to flags.
3374
3375 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3376
3377 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3378 written bytes.
3379 (grub_get_num_of_utf8_bytes): New function.
3380 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3381 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3382 executing it.
3383 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3384 (grub_ucs4_to_utf8): Change return type.
3385
3386 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3389 warning.
3390 * grub-core/fs/bfs.c (hop_level): Likewise.
3391 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3392
3393 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 * grub-core/lib/adler32.c: Recode due to license unclearness.
3396
3397 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3400 (test_header): Likewise.
3401
3402 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3403
3404 Fix --help formatting.
3405
3406 * util/grub-mkconfig_lib.in (print_option_help): New function.
3407 (grub_fmt): Likewise.
3408 * util/grub-install.in: Use print_option_help and grub_fmt.
3409 * util/grub-kbdcomp.in: Likewise.
3410 * util/grub-mkconfig.in: Likewise.
3411 * util/grub-mknetdir.in: Likewise.
3412 * util/grub-mkrescue.in: Likewise.
3413 * util/grub-mkstandalone.in: Likewise.
3414 * util/grub-reboot.in: Likewise.
3415 * util/grub-set-default.in: Likewise.
3416 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3417
3418 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * linguas.sh: Remove autogenerated *.po.
3421
3422 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * po/README: Move language fetcing to ...
3425 * linguas.sh: ... here.
3426 * po/README: Point to linguas.sh.
3427
3428 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 * po/README: Exclude ko.po due to disclaimer problems.
3431
3432 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3433
3434 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3435 len = 0.
3436 (grub_gettext_translate_real): Handle 0th string.
3437 (grub_gettext_translate): Ensure that "" isn't translated.
3438
3439 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3442 TRANSLATORS comment.
3443 (grub_diskfilter_print_partmap): Propagate changing of error into
3444 warning.
3445
3446 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3449 to uint64_t to prevent overflow.
3450 (grub_diskfilter_lv): Increase start_extent and extent_count
3451 to uint64_t to prevent overflow.
3452
3453 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * configure.ac: Increase version.
3456
3457 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3460
3461 * po/Rules-translit: New file.
3462 * po/arabic.sed: Likewise.
3463 * po/cyrillic.sed: Likewise.
3464 * po/greek.sed: Likewise.
3465 * po/hebrew.sed: Likewise.
3466 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3467 * po/Makefile.in.in: Add extra_dist4.
3468
3469 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3470
3471 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3472
3473 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3474 modify names. Introduce MODE_BIGENDIAN.
3475 * grub-core/fs/minix_be.c: New file.
3476 * grub-core/fs/minix2_be.c: Likewise
3477 * grub-core/fs/minix3_be.c: Likewise.
3478 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3479 minix3_be.
3480 * grub-core/Makefile.core.def (minix_be): New module.
3481 (minix2_be): Likewise.
3482 (minix3_be): Likewise.
3483
3484 2012-04-01 Felix <email@hamburg.de>
3485
3486 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3487 (devs): Add MBP 2011.
3488
3489 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3492
3493 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3494
3495 * grub-core/normal/cmdline.c (print_completion): New field
3496 prompt_len.
3497 (grub_cmdline_get): Handle width properly.
3498
3499 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3500
3501 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3502
3503 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3506 after 29th of February.
3507
3508 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 Fix exfat endianness handling.
3511
3512 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3513 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3514 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3515 Byte-swap utf16 when necessary.
3516 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3517
3518 2012-03-31 Anton Blanchard <anton@samba.org>
3519 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 Fix btrfs endianness handling.
3522
3523 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3524 (lower_bound): Make root uint64_t. Use root in le.
3525 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3526 (find_path): Fix template key init.
3527 (grub_btrfs_dir): Fix mtime byteswap.
3528 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3529
3530 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3533 recursion_depth. Break infinite resursions. All users updated.
3534
3535 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3538 after free.
3539 Reported by: Peter Jones.
3540
3541 2012-03-31 Anton Blanchard <anton@samba.org>
3542
3543 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3544 8 bit values.
3545
3546 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3547
3548 * util/grub-install.in: Fix nvram call for PreP.
3549
3550 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3553 the error when some elements are missing into a warning.
3554
3555 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3558
3559 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3560
3561 * docs/grub.texi (Invoking grub-probe): New section.
3562 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3563
3564 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3565
3566 Fix tab and wide character handling in editor and menu.
3567
3568 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3569 agglomerate control characters with combining marks.
3570 (bidi_line_wrap): Allow break on tab.
3571 (grub_unicode_get_comb_start): New function.
3572 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3573 and tab correctly.
3574 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3575 with a space.
3576 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3577 fixed_tab_size. All users updated.
3578 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3579 (grub_term_getcharwidth): Handle \t.
3580 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3581 and copy.
3582
3583 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 Handle big-endian mdraid.
3586
3587 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3588 * grub-core/Makefile.core.def (mdraid09_be): New module.
3589 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3590 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3591 * grub-core/disk/mdraid_linux_be.c: New file.
3592
3593 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3596
3597 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3600 missing quotes which caused confusion among translators.
3601
3602 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * util/grub-mkconfig_lib.in: Fix typo.
3605
3606 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3609 spaces.
3610 * tests/grub_script_leading_whitespace.in: New file.
3611 * Makefile.util.def (grub_script_leading_whitespace): New test.
3612
3613 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3616 to work.
3617
3618 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3621 starts with control character.
3622
3623 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3626 overflow.
3627 (grub_gdb_outbuf): Likewise.
3628
3629 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3632 zero terminator. Fixes a crash.
3633
3634 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3635
3636 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3637 beyond 4 GiB.
3638 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3639 images independently of preffered adderss field.
3640
3641 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3644 * grub-core/commands/regexp.c: Likewise.
3645 * grub-core/loader/i386/linux.c: Likewise.
3646 * grub-core/partmap/msdos.c: Likewise.
3647 * grub-core/script/execute.c: Likewise.
3648 * grub-core/term/gfxterm.c: Likewise.
3649
3650 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 Add variable parsing in $"..." and fix several mismatches with bash.
3653
3654 * Makefile.util.def (grub_script_gettext): New test.
3655 * grub-core/script/execute.c (parse_string): New function.
3656 (gettext_append): Likewise.
3657 (grub_script_arglist_to_argv): Use gettext_append.
3658 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3659 * tests/grub_script_gettext.in: New file.
3660
3661 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 Fix handling of leading spaces in scripts.
3664
3665 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3666 spaces.
3667 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3668 other than skipping \r. All users updated.
3669 * tests/grub_script_echo1.in: Add space-related tests.
3670 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3671
3672 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3673
3674 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3675
3676 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 * configure.ac: Bump up the version to beta2.
3679
3680 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 Fix gettext reload bugs (e.g. inability to disable gettext
3683 once enabled).
3684
3685 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3686 main_context and secondary_context. All functions updated.
3687 (grub_gettext_translate): Rename to ...
3688 (grub_gettext_translate_real): ... this. Return NULL on failed
3689 translate.
3690 (grub_gettext_translate): Handle secondary context.
3691 (grub_gettext_delete_list): Close file and zero-out the context.
3692 (grub_mofile_open): Don't call grub_gettext_delete_list.
3693 Don't close file.
3694 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3695 if locale="" to avoid pointless error message.
3696 (grub_gettext_env_write_lang): Update lang even if load fails.
3697 Handle secondary context.
3698 (grub_gettext_reread_prefix): New function.
3699 (read_main): Likewise.
3700 (read_secondary): Likewise.
3701 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3702 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3703 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3704 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3705
3706 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * configure.ac: Decrease warning level to avoid spurious warnings and
3709 to be able to compile with GCC 4.2.
3710 * Makefile.util.def: Remove -Wno-error=logical-op.
3711
3712 2012-03-10 William Bittner <william.bittner@gmail.com>
3713
3714 * util/import_unicode.py: Add missing brackets around string for
3715 python 3 support.
3716
3717 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 Fix efi chainloader on network root.
3720
3721 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3722 network devices.
3723 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3724 New function.
3725
3726 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3729 unused show_text member.
3730 * docs/grub.texi: Document "text" property.
3731
3732 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3735 in dprintf.
3736
3737 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 Fix IMSM handling on Fedora.
3740
3741 * util/getroot.c (grub_util_is_imsm): New function.
3742 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3743
3744 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3745
3746 * Makefile.am: Strip gold section.
3747 * conf/Makefile.common: Likewise.
3748 * gentpl.py: Likewise.
3749 * grub-core/Makefile.core.def: Likewise.
3750 * grub-core/genmod.sh.in: Likewise.
3751
3752 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3755 * util/grub.d/20_linux_xen.in: Likewise.
3756 Based on Debian patch.
3757
3758 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 * util/grub.d/10_linux.in: Fix syntax error resulting in
3761 Richard Laager's patch.
3762 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3763
3764 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
3767 dependencies.
3768
3769 2012-03-10 Richard Laager <rlaager@wiktel.com>
3770
3771 * util/grub.d/10_linux.in: Fix ZFS root passing.
3772
3773 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3776 * grub-core/commands/xnu_uuid.c: Likewise.
3777 * grub-core/loader/efi/appleloader.c: Likewise.
3778 * grub-core/script/execute.c: Likewise.
3779 * grub-core/script/main.c: Likewise.
3780 * util/grub-mkfont.c: Likewise.
3781
3782 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * util/grub-mkfont.c (options): Use more appropriate "select" that
3785 "set" for face index.
3786
3787 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * util/grub-editenv.c (options): Gettextize command summaries.
3790
3791 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
3794 "out of memory" error messagge.
3795
3796 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
3799 of diskfilter for diskfilter on diskfilter support.
3800
3801 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
3804
3805 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3806
3807 * util/grub-install.in: Check for themes/starfield/theme.txt and not
3808 themes/starfield.
3809
3810 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
3813
3814 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
3817
3818 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
3821 of error message.
3822
3823 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
3826
3827 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
3830 message.
3831 * util/grub-install.in: Fix and gettextize error message.
3832
3833 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
3836 Gettextize.
3837 * util/grub-mount.c (options): Likewise.
3838
3839 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
3842 gettextize.
3843 * grub-core/commands/search_wrap.c (options): Likewise.
3844
3845 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
3848
3849 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
3852 size calculation.
3853 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
3854 none is known.
3855
3856 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
3859 "temporary" since it's used in identifier and is limited in space.
3860
3861 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3862
3863 * po/POTFILES.in: Regenerate. Include *.h since they contain
3864 translatable strings as well.
3865
3866 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3869 byte-swap on big-endian.
3870 Reported by: Lennart Sorensen
3871
3872 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
3875 (allocate_pages): Improve dprintf.
3876 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
3877 code32_start. Fill code32_start and kernel_alignment in params.
3878 (grub_cmd_initrd): Use prot_init_space.
3879
3880 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
3883
3884 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * util/grub-install.in: Add missing dot at the end of sentence.
3887
3888 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3889
3890 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3891 * grub-core/commands/videotest.c: Likewise.
3892 * grub-core/loader/i386/linux.c: Likewise.
3893
3894 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
3897 sentence.
3898 Reported by: Milo Casagrande.
3899
3900 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3901
3902 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
3903 * grub-core/commands/gptsync.c: Likewise.
3904 * grub-core/commands/hashsum.c: Likewise.
3905 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3906 * grub-core/commands/legacycfg.c: Likewise.
3907 * grub-core/io/gzio.c: Likewise.
3908 * grub-core/net/net.c: Likewise.
3909 * grub-core/term/gfxterm.c: Likewise.
3910 * grub-core/term/terminfo.c: Likewise.
3911 * grub-core/tests/test_blockarg.c: Likewise.
3912 * grub-core/video/video.c: Likewise.
3913 * util/grub-install.in: Likewise.
3914 * util/grub-mkfont.c: Likewise.
3915
3916 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3917
3918 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
3919
3920 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * grub-core/commands/search_wrap.c (options): Fix a typo.
3923 Reported by: David Prévot.
3924
3925 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3926
3927 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
3928 description.
3929
3930 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3931
3932 * util/grub-script-check.c (main): Fix a syntax error message which was
3933 unclear.
3934
3935 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3936
3937 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
3938
3939 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
3942 messages.
3943
3944 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3945
3946 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
3947 without argument.
3948 * util/grub-mount.c (options): Likewise.
3949
3950 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
3953
3954 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3955
3956 * grub-core/net/http.c: Add TRANSLATORS comments.
3957 * grub-core/normal/cmdline.c: Likewise.
3958 * grub-core/normal/misc.c: Likewise.
3959 * grub-core/partmap/msdos.c: Likewise.
3960 * grub-core/parttool/msdospart.c: Likewise.
3961 * grub-core/script/execute.c: Likewise.
3962 * grub-core/script/main.c: Likewise.
3963 * grub-core/term/terminfo.c: Likewise.
3964 * grub-core/video/bitmap.c: Likewise.
3965 * util/grub-install.in: Likewise.
3966 * util/grub-mkimage.c: Likewise.
3967 * util/grub-mklayout.c: Likewise.
3968 * util/grub-setup.c: Likewise.
3969
3970 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
3973 with similar messages in grub-fstest.
3974
3975 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 * util/grub-install.in: Unify "option requires an argument" message
3978 with similar messages in other files.
3979 * util/grub-mkconfig.in: Likewise.
3980
3981 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * util/grub-set-default.in: Replace printf with gettext_printf (the
3984 string in in question is already translated from grub-reboot)
3985
3986 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * configure.ac: Bump up the version to beta1.
3989
3990 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
3993 case when min_align = 0.
3994
3995 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
3998 and fix a case when line_start overflows.
3999
4000 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * util/grub-reboot.in (usage): Mention id posibility.
4003 * util/grub-set-default.in (usage): Likewise.
4004
4005 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4008 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4009 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4010 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4011 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4012 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4013 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4014
4015 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4016
4017 * grub-core/commands/menuentry.c (options): Remove
4018 GRUB_ARG_OPTION_REPEATABLE.
4019 Reported by: Andreas Vogel
4020
4021 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4022
4023 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4024
4025 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4026
4027 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4028 error.
4029
4030 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4031
4032 Use sort -V by the idea of Georgi Georgiev.
4033
4034 * util/grub-mkconfig_lib.in (version_sort): New function.
4035 (version_test_numeric): Use version_sort.
4036
4037 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4038
4039 Use submenus in grub-mkconfig.
4040
4041 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4042 * util/grub-mkconfig_lib.in (grub_quote): New function.
4043 (gettext_printf): Use gettext and not gettext_quoted to fix several
4044 messages.
4045 * util/grub.d/10_hurd.in: Use submenus.
4046 * util/grub.d/10_kfreebsd.in: Likewise.
4047 * util/grub.d/10_linux.in: Likewise.
4048 * util/grub.d/10_netbsd.in: Likewise.
4049 * util/grub.d/20_linux_xen.in: Likewise.
4050 * util/grub.d/30_os-prober.in: Likewise.
4051 * util/grub.d/10_illumos.in: Add missing quoting.
4052 * util/grub.d/10_windows.in: Likewise.
4053
4054 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 Fix menu title instability bug.
4057
4058 * grub-core/commands/menuentry.c (options): New option --id.
4059 (grub_normal_add_menu_entry): New argument id. All users updated.
4060 (grub_cmd_menuentry): Handle --id.
4061 (grub_menu_init): Accept unknown arguments.
4062 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4063 feature_menuentry_options.
4064 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4065 saved_entry.
4066 (get_entry_number): Match with id as well.
4067 * include/grub/menu.h (grub_menu_entry): New member id.
4068 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4069 * util/grub.d/00_header.in: Define menuentry_id_option.
4070 * util/grub.d/10_hurd.in: Define id.
4071 * util/grub.d/10_illumos.in: Likewise.
4072 * util/grub.d/10_kfreebsd.in: Likewise.
4073 * util/grub.d/10_linux.in: Likewise.
4074 * util/grub.d/10_netbsd.in: Likewise.
4075 * util/grub.d/10_windows.in: Likewise.
4076 * util/grub.d/20_linux_xen.in: Likewise.
4077 * util/grub.d/30_os-prober.in: Likewise.
4078
4079 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4080
4081 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4082 "scope" with "body".
4083
4084 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4085
4086 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4087 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4088 prot_size and prot_file_size.
4089
4090 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4091
4092 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4093 All users updated. If easily=1 require raid-5/-6 to be full.
4094 (is_node_readable): Likewise.
4095 (scan_devices): Scan incomplete but readable LVs at the end.
4096 (grub_diskfilter_memberlist): Pull missing devices.
4097 (insert_array): Skip scanning until device is complete or scan is
4098 done otherwise.
4099 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4100 check.
4101 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4102 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4103
4104 2012-03-03 Matthew Garrett <mjg@redhat.com>
4105 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4106
4107 Avoid EFI boot services when loading Linux.
4108
4109 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4110 avoid_efi_bootservices. All users updated.
4111 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4112 argument avoid_efi_bootservices. All users updated.
4113 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4114 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4115 align, min_align, relocatable, prefered_address. All users updated.
4116 Allocate avoiding boot services if kernel is relocatable.
4117 (grub_cmd_linux): Check if kernel is relocatable.
4118 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4119 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4120 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4121 avoid_efi_boot_services.
4122 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4123 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4124 (linux_kernel_params): Likewise.
4125
4126 2012-03-03 Matthew Garrett <mjg@redhat.com>
4127 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 Use EDID on EFI.
4130
4131 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4132 datasize_out.
4133 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4134 modes. Set gop_handle.
4135 (grub_video_gop_get_edid): New function.
4136 (grub_gop_get_preferred_mode): Likewise.
4137 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4138 (grub_video_efi_gop_adapter): Set .get_edid.
4139 * include/grub/efi/edid.h: New file.
4140 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4141
4142 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * util/grub-install.in: Load efivars unconditionally.
4145
4146 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4147
4148 * po/Rules-piglatin: Change suffix from .po-update-en to
4149 .po-update-en-piglatin.
4150
4151 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4152
4153 Add a pig farm.
4154
4155 * po/piglatin.sed: New file.
4156 * po/en@piglatin.header: Likewise.
4157 * po/Rules-piglatin: Likewise.
4158 * po/README: Add en@piglatin to autogenerated languages.
4159
4160 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4163 "Command for ...".
4164 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4165 "Check" since we don't check anything.
4166 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4167 is 64-bit one.
4168 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4169 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4170 (grub_md_sha512_real): Likewise.
4171
4172 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * grub-core/commands/gptsync.c: Fix typographic quoting.
4175 * grub-core/commands/ieee1275/suspend.c: Likewise.
4176 * grub-core/commands/parttool.c: Likewise.
4177 * grub-core/commands/search_wrap.c: Likewise.
4178 * grub-core/commands/videoinfo.c: Likewise.
4179 * grub-core/gfxmenu/gui_label.c: Likewise.
4180 * grub-core/hello/hello.c: Likewise.
4181 * grub-core/kern/emu/main.c: Likewise.
4182 * grub-core/net/net.c: Likewise.
4183 * grub-core/normal/menu.c: Likewise.
4184 * grub-core/normal/menu_text.c: Likewise.
4185 * grub-core/normal/misc.c: Likewise.
4186 * util/grub-editenv.c: Likewise.
4187 * util/grub-install.in: Likewise.
4188 * util/grub-kbdcomp.in: Likewise.
4189 * util/grub-mkconfig.in: Likewise.
4190 * util/grub-mknetdir.in: Likewise.
4191 * util/grub-mkrescue.in: Likewise.
4192 * util/grub-mkstandalone.in: Likewise.
4193 * util/grub-reboot.in: Likewise.
4194 * util/grub-set-default.in: Likewise.
4195 * util/grub-setup.c: Likewise.
4196 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4197
4198 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4199
4200 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4201 * grub-core/commands/keystatus.c: Likewise.
4202 * grub-core/commands/loadenv.c: Likewise.
4203 * grub-core/commands/probe.c: Likewise.
4204 * grub-core/commands/regexp.c: Likewise.
4205 * grub-core/commands/true.c: Likewise.
4206 * grub-core/commands/videoinfo.c: Likewise.
4207 * grub-core/disk/cryptodisk.c: Likewise.
4208 * grub-core/disk/ldm.c: Likewise.
4209 * grub-core/disk/loopback.c: Likewise.
4210 * grub-core/disk/luks.c: Likewise.
4211 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4212 * grub-core/kern/disk.c: Likewise.
4213 * grub-core/kern/emu/hostdisk.c: Likewise.
4214
4215 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4218 * util/grub-install.in: Add missing quote in the comment.
4219
4220 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4223 * grub-core/commands/lsmmap.c: Likewise.
4224 * grub-core/commands/minicmd.c: Likewise.
4225 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4226 * grub-core/commands/regexp.c: Likewise.
4227 * grub-core/gdb/gdb.c: Likewise.
4228 * grub-core/term/gfxterm.c: Likewise.
4229 * util/grub-mkconfig.in: Likewise.
4230 * util/grub-mkfont.c: Likewise.
4231 * util/grub-mklayout.c: Likewise.
4232 * util/grub-mknetdir.in: Likewise.
4233 * util/grub-mkrescue.in: Likewise.
4234 * util/grub.d/30_os-prober.in: Likewise.
4235
4236 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4237
4238 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4239 with "Direct color" and "Packed" with "Packed pixel".
4240 (grub_cmd_videoinfo): Simplify legend.
4241
4242 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4245 absolutely unclear error message.
4246
4247 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * util/grub-mkstandalone.in: Remove confusing leftover print.
4250
4251 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4254 comments.
4255 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4256 (GRUB_MOD_INIT): Likewise.
4257 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4258 VGA mode.
4259 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4260 comments.
4261 * util/grub-install.in (usage): Likewise.
4262 Spell ID in whole letters.
4263 Add missing ending dot.
4264 Quote variables.
4265 * util/grub-reboot.in: Fix capitalisation.
4266 * util/grub-set-default.in: Likewise.
4267
4268 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4269
4270 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4271 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4272 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4273 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4274 Disable -Werror for -Wdeprecated-declarations.
4275 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4276 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4277 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4278 (grub_util_get_grub_dev): Make luks handling dependent on
4279 HAVE_DEVICE_MAPPER and not __linux__.
4280 (get_win32_path): Fix format security.
4281 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4282 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4283 Don't try grub_find_zpool_from_dir.
4284 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4285 #ifdef-out paresdir.
4286
4287 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4288
4289 * util/grub-pe2elf.c (usage): Add missing noreturn.
4290 (write_section_data): Rename name to shname to avoid shadowing.
4291 (write_symbol_table): Rename name to symname to avoid shadowing.
4292 Fix write_reloc_section call.
4293
4294 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4297 to ensure that it's after the last byte of .text.
4298
4299 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 * util/ieee1275/ofpath.c (my_isdigit): New function.
4302 (trailing_digits): Use my_isdigit.
4303 (strip_trailing_digits): Likewise.
4304
4305 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4308 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4309
4310 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 * grub-core/kern/i386/pc/startup.S: Define __start.
4313
4314 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4315
4316 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4317 strip already transforms he format.
4318
4319 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4322
4323 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 * util/grub-install.in: Add missing gettext init.
4326 * util/grub-kbdcomp.in: Likewise.
4327 * util/grub-mkconfig.in: Likewise.
4328 * util/grub-mknetdir.in: Likewise.
4329 * util/grub-mkrescue.in: Likewise.
4330 * util/grub-mkstandalone.in: Likewise.
4331 * util/grub-reboot.in: Likewise.
4332 * util/grub-set-default.in: Likewise.
4333 * util/grub.d/00_header.in: Likewise.
4334 * util/grub.d/10_hurd.in: Likewise.
4335 * util/grub.d/10_windows.in: Likewise.
4336 * util/grub.d/30_os-prober.in: Likewise.
4337 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4338
4339 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 * po/Rules-swiss: Fix header comment.
4342
4343 2012-02-29 Andreas Vogel <anvoit>
4344
4345 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4346 resulted in leak of arguments.
4347
4348 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4351 reed_solomon_size const definition instead of computing it since
4352 Apple assembler doesn't support the later.
4353
4354 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * gentpl.py (kernel): Rewrite Apple part.
4357
4358 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4361
4362 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4365 ELF section gap.
4366 (load_image): Likewise.
4367
4368 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 * configure.ac: Fix a typo in previous commit.
4371
4372 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 Don't add -Wl,-N on Apple platform.
4375
4376 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4377 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4378
4379 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4380
4381 * grub-core/Makefile.core.def (lzma_decompress): Use
4382 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4383
4384 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4385
4386 * grub-core/genmod.sh.in: Rewrite the Apple part.
4387
4388 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4389
4390 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4391 comparison.
4392
4393 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4394
4395 * acinclude.m4 (grub_CHECK_PIC): New test.
4396 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4397
4398 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4401 to avoid the warning.
4402
4403 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4404
4405 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4406 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4407 after. All users updated.
4408
4409 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 Use the common size routine in hostfs so we can read disks as well.
4412
4413 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4414 (grub_util_get_fd_size): ... this. Return size in bytes.
4415 All users updated.
4416 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4417 grub_util_get_fd_size.
4418
4419 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4420
4421 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4422 Add blocksize retrieval.
4423
4424 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 * configure.ac: Restore CFLAGS after efiemu check.
4427
4428 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4431 Apple bug.
4432
4433 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4434
4435 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4436
4437 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4440 (grub_cmd_halt): Likewise.
4441
4442 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4445 for local arithmetics.
4446 Break %sp init into 2 instructions.
4447 Add 0 byte at the end.
4448
4449 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4450
4451 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4452 before loops.
4453
4454 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4455
4456 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4457 for context.
4458
4459 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4460
4461 * grub-core/disk/ldm.c (make_vg): Init part.name.
4462 (grub_ldm_detect): Silence spurious warning.
4463 (grub_util_is_ldm): Likewise.
4464
4465 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4468 sane value to avoid a spurious warning.
4469
4470 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4473 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4474
4475 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4476
4477 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4478 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4479
4480 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4483 hardcoding the relevant info.
4484
4485 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4486
4487 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4488 missing const qualifiers.
4489 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4490
4491 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4492
4493 * util/getroot.c [__APPLE__]: Add missing includes.
4494 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4495
4496 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4499
4500 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4501
4502 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4503 avoid conflicts.
4504
4505 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4506
4507 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4508
4509 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4512 and grub_file_close call.
4513
4514 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4515
4516 Add LZSS Mach-O support (needed for new xnu kernelcache).
4517
4518 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4519 * grub-core/loader/lzss.c: New file.
4520 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4521 on Mach-O open failure.
4522 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4523 Don't free cmdsXX in uncompressedXX is set.
4524 (grub_macho_file): Init new fields.
4525 New argument is_64bit. All users updated.
4526 Handle compressed. Error out if no suitable architecture is found.
4527 Don't close file.
4528 (grub_macho_open): New argument is_64bit. All users updated.
4529 * grub-core/loader/macho32.c: Add defines for new fields.
4530 * grub-core/loader/macho64.c: Likewise.
4531 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4532 (grub_macho_parse): Handle compressed.
4533 Defer actual processing if compressed.
4534 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4535 "filename". All users updated.
4536 (grub_macho_size): New argument "filename". All users updated.
4537 (grub_macho_get_entry_point): Likewise.
4538 (grub_macho_load): Handle compressed.
4539 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4540 (GRUB_MACHO_LZSS_OFFSET): New define.
4541 (grub_decompress_lzss): New proto.
4542 * include/grub/machoload.h (grub_macho_file): New fields to handle
4543 compressed.
4544 (grub_macho_contains_macho64): Remove proto.
4545 (grub_macho_contains_macho32): Likewise.
4546 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4547
4548 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4551
4552 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4553
4554 Fix make dist.
4555
4556 * Makefile.am (starfield_theme_files): New var.
4557 (starfield_DATA): Use starfield_theme_files.
4558 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4559 Add bootcheck-related files.
4560 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4561 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4562 and font_char_metrics.txt.
4563 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4564 (setjmp): Add lib/ia64/longjmp.S.
4565 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4566 * po/POTFILES.in: Regenerate.
4567 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4568 DISTFILES.common.extra1.
4569 * util/devicemap.c: Removed.
4570 * grub-core/lib/i386/relocator_backward.S: Likewise.
4571 * util/import_gcry.py: Remove unused files. Add extra_dist for
4572 ChangeLog.
4573
4574 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4577 grub_gettext_delete_list before changing grub_gettext_max to avoid
4578 running out of array bounds.
4579
4580 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4581
4582 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4583 grub_vga_text_init/grub_vga_text_fini.
4584
4585 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4588
4589 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 * configure.ac: Bump to 2.00~beta0.
4592
4593 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4596 missing initialisation.
4597
4598 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4599
4600 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4601
4602 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 Support v2 xnu boot arguments.
4605
4606 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4607 New argument fsbfreq_out.
4608 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4609 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4610 be used.
4611 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4612 darwin_version.
4613 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4614 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4615 (grub_xnu_boot_params): Rename to ...
4616 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4617 (grub_xnu_boot_params_v2): New struct.
4618
4619 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4622 zeroing of CRC field before computing CRC.
4623
4624 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4625
4626 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4627 Change order of allocations to decrease fragmentation.
4628
4629 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4630
4631 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4632
4633 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4634
4635 Use write-combining MTRR to speed up video with buggy BIOSes.
4636
4637 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4638 (cpuid): New define.
4639 (rdmsr): Likewise.
4640 (wrmsr): Likewise.
4641 (mtrr_base): Likewise.
4642 (mtrr_mask): Likewise.
4643 (grub_vbe_enable_mtrr_entry): New function.
4644 (grub_vbe_enable_mtrr): Likewise.
4645 (grub_vbe_disable_mtrr): Likewise.
4646 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4647 control off to BIOS.
4648 (grub_video_vbe_init): Fill mtrr.
4649 (grub_video_vbe_fini): Disable mtrr.
4650 (grub_video_vbe_get_info_and_fini): Likewise.
4651 (grub_video_vbe_setup): Enable mtrr.
4652
4653 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4654
4655 * include/grub/partition.h (grub_partition_map): Change prototype of
4656 embed to take a maximum value for nsectors.
4657 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4658 * include/grub/fs.h (grub_fs): Likewise.
4659 * grub-core/partmap/msdos.c (embed_signatures): New array.
4660 (pc_partition_map_embed): Check for and avoid sectors matching any
4661 of the signatures in embed_signatures, up to max_nsectors.
4662 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4663 returned sector map to max_nsectors.
4664 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4665 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4666 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4667 * util/grub-setup.c (setup): Allow for the embedding area being
4668 split into multiple blocklists. Tell dest_partmap->embed the
4669 maximum number of sectors we care about.
4670
4671 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4674 Specify blocklist_install and reserver_first_sector for all fs.
4675 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4676 blocklists.
4677
4678 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 * util/grub-install.in: Clarify strings.
4681 Fix source dir check.
4682
4683 2012-02-27 Richard Laager <rlaager@wiktel.com>
4684
4685 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4686 "zfs" and "fuse.zfs" as synonyms.
4687
4688 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 * configure.ac: Put platform and target_cpu substitutions back since
4691 they are used for directories.
4692
4693 2012-02-27 Richard Laager <rlaager@wiktel.com>
4694 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4697 * util/grub.d/20_linux_xen.in: Likewise.
4698
4699 2012-02-27 Richard Laager <rlaager@wiktel.com>
4700
4701 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4702 with full paths.
4703
4704 2012-02-27 Richard Laager <rlaager@wiktel.com>
4705
4706 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4707 unescape.
4708
4709 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4710
4711 Don't use insecure popen in getroot.
4712
4713 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4714 (exec_pipe): ... here.
4715 (find_root_devices_from_poolname): Use exec_pipe.
4716
4717 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 Remove platform and target_cpu replacement.
4720
4721 * configure.ac: Remove platform and target_cpu substitutions.
4722 * tests/util/grub-shell.in: Use modinfo.
4723 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4724 explicitly.
4725
4726 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 Autodetect platform in grub-install but allow override.
4729
4730 * util/grub-install.in: Autodetect platform. Support --target and
4731 --directory. Read platform from modinfo.sh.
4732
4733 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4734
4735 Support btrfs multi-volume probe.
4736
4737 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4738 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4739 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4740 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4741 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4742 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4743 grub_find_root_devices_from_btrfs if on btrfs.
4744
4745 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 Remove any awareness of *.c util files about target.
4748
4749 * Makefile.util.def (grub-setup): Split to ...
4750 (grub-bios-setup): ... and this.
4751 (grub-sparc64-setup): ... and this.
4752 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4753 * docs/man/grub-setup.h2m: Split into ...
4754 * docs/man/grub-sparc64-setup.h2m: ... this.
4755 * docs/man/grub-bios-setup.h2m: ... and this.
4756 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4757 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4758 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4759 (grub_target_addr_t): Remove.
4760 (grub_target_size_t): Remove.
4761 (grub_target_ssize_t): Remove.
4762 * util/grub-install.in: Use new grub-*-setup.
4763 * util/grub-mkimagexx.c (Elf_Word): New define.
4764 (Elf_Half): Likewise.
4765 (Elf_Section): Likewise.
4766 (ELF_ST_TYPE): Likewise.
4767 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
4768 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
4769
4770 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 Replace grub_target_addr with more appropriate types.
4773
4774 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
4775 grub_target_addr with grub_addr.
4776 * grub-core/commands/iorw.c (grub_cmd_read): Replace
4777 grub_target_addr with grub_port.
4778 (grub_cmd_write): Likewise.
4779 * grub-core/commands/memrw.c (grub_cmd_read): Replace
4780 grub_target_addr with grub_addr.
4781 (grub_cmd_write): Likewise.
4782 * grub-core/video/efi_uga.c (find_line_len): Likewise.
4783
4784 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
4787 const qualifier for vendor_guid.
4788
4789 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4790
4791 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4792 const qualifier.
4793 (efiemu_memequal): Likewise.
4794 (find_variable): Likewise.
4795
4796 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4797
4798 Fix missing console prototype on qemu-mips.
4799
4800 * include/grub/mips/qemu_mips/console.h: New file.
4801
4802 2012-02-27 Matthew Garrett <mjg@redhat.com>
4803 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
4806 * include/grub/efi/efi.h: Likewise.
4807 * include/grub/efi/api.h: Add guid for EFI-specified variables.
4808 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
4809 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
4810 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
4811 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
4812 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
4813
4814 2012-02-27 Matthew Garrett <mjg@redhat.com>
4815
4816 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
4817
4818 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4819
4820 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
4821 error.
4822
4823 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4824
4825 * configure.ac: Remove inappropriate use of program_transform_name
4826 on grubdir and bootdir but allow explicit specification of those
4827 variables.
4828
4829 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 * util/grub-mknetdir.in (grub_prefix): Removed.
4832 (subdir): Use @bootdirname@ and @grubdirname@.
4833
4834 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4835
4836 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
4837
4838 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4839
4840 * po/POTFILES.in: Regenerated.
4841
4842 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 Remove improper use of program_transform_name on pkglibrootdir.
4845
4846 * configure.ac (pkglibrootdir): Removed.
4847 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
4848 * util/grub-mkimage.c: Likewise.
4849
4850 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
4853 warning.
4854
4855 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4856
4857 * util/grub-install.in: Use file identifier if no UUID is available
4858 or user explicitly prompted for it.
4859
4860 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
4861
4862 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
4863 (freebsd_get_zfs): New function.
4864 (grub_freebsd_boot): Pass zfs UUID.
4865 (grub_cmd_freebsd): Set zfs UUID.
4866
4867 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 * conf/Makefile.common (platformdir): Base on pkglibdir and not
4870 pkglibrootdir.
4871
4872 2012-02-27 Mike Gilbert <floppym@gentoo.org>
4873
4874 Add configure flag to control libzfs integration.
4875
4876 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
4877
4878 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
4881 device.
4882 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
4883 small devices.
4884
4885 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 Remove grub_{modname}_init and grub_{modname}_fini. They should never
4888 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
4889 be used on non-modules.
4890
4891 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
4892 Rename to grub_boot_init.
4893 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
4894 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
4895 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
4896 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
4897 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
4898 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
4899 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
4900 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
4901 includes.
4902 (grub_machine_init): Remove empty inits.
4903 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
4904 includes.
4905 (grub_machine_init): Remove empty inits.
4906 * grub-core/term/arc/console.c: Remove explicit proto.
4907 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
4908 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
4909 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4910 grub_at_keyboard_fini.
4911 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
4912 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
4913 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4914 grub_gfxterm_fini.
4915 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
4916 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
4917 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4918 grub_vgatext_fini.
4919 * grub-core/term/ieee1275/console.c: Remove explicit proto.
4920 * grub-core/term/serial.c (GRUB_MOD_INIT)
4921 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
4922 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4923 grub_serial_fini.
4924 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
4925 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
4926 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4927 grub_terminfo_fini.
4928 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
4929 (GRUB_MOD_FINI): Likewise.
4930 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
4931 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
4932 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4933 grub_video_radeon_fuloong2e_fini.
4934 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
4935 [LOONGSON]: Rename to grub_video_sis315pro_init.
4936 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4937 grub_video_sis315pro_fini.
4938 * grub-core/video/sm712.c (GRUB_MOD_INIT)
4939 [LOONGSON]: Rename to grub_video_sm712_init.
4940 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4941 grub_video_sm712_fini.
4942 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
4943 (grub_at_keyboard_fini): Likewise.
4944 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
4945 Don't declare grub_{modname}_init.
4946 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
4947 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
4948 New proto.
4949 (grub_keylayouts_fini) [!EMU]: Likewise.
4950 * include/grub/serial.h (grub_serial_init) [!EMU]:
4951 New proto.
4952 (grub_serial_fini) [!EMU]: Likewise.
4953 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
4954 New proto.
4955 (grub_terminfo_fini) [!EMU]: Likewise.
4956 * include/grub/video.h (grub_font_init) [!EMU]:
4957 New proto.
4958 (grub_font_fini) [!EMU]: Likewise.
4959 (grub_gfxterm_init) [!EMU]: Likewise.
4960 (grub_gfxterm_fini) [!EMU]: Likewise.
4961 (grub_video_sm712_init) [!EMU]: Likewise.
4962 (grub_video_sm712_fini) [!EMU]: Likewise.
4963 (grub_video_sis315pro_init) [!EMU]: Likewise.
4964 (grub_video_sis315pro_fini) [!EMU]: Likewise.
4965 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
4966 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
4967
4968 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4969
4970 Make nand a prefix for nand devices.
4971
4972 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
4973
4974 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
4977 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
4978
4979 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * include/grub/env.h (grub_env_find): Remove prototype.
4982 * grub-core/kern/env.c (grub_env_find): Make static.
4983 (grub_env_set): Remove useless set.
4984
4985 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4986
4987 * grub-core/kern/i386/realmode.S: Remove useless align.
4988
4989 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * include/grub/dl.h (grub_dl_load_file): Don't export.
4992
4993 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4994
4995 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
4996 grub_dprintf.
4997
4998 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4999
5000 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5001 grub_errors.
5002 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5003 not reloading whole superblock but only the part which is really needed.
5004 Remove useless grub_errors.
5005 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5006 grub_errors.
5007
5008 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5009
5010 Don't export grub_get_rtc.
5011
5012 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5013 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5014
5015 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5018
5019 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5022 argument since it can be deduced from diskfilter. All users updated.
5023
5024 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5025
5026 Remove prio_list.
5027
5028 * include/grub/list.h (grub_prio_list): Removed.
5029 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5030 GRUB_COMMAND_PRIO_MASK.
5031 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5032 GRUB_COMMAND_FLAG_ACTIVE.
5033 (grub_prio_list_insert): Removed.
5034 (grub_prio_list_remove): Likewise.
5035 (GRUB_AS_PRIO_LIST): Likewise.
5036 (GRUB_AS_PRIO_LIST_P): Likewise.
5037 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5038 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5039 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5040 * grub-core/kern/command.c (grub_register_command_prio): Inline
5041 the prio_list code.
5042 (grub_unregister_command): Likewise.
5043
5044 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5045
5046 Fix interrupt mixup from previous commit.
5047
5048 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5049 (grub_realidt): New var.
5050 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5051 Load idt.
5052 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5053 New declaration.
5054 (grub_relocator16_boot): Set grub_relocator16_idt.
5055 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5056 (LOCAL(realidt)): ... this.
5057 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5058 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5059 (grub_realidt): New variable.
5060
5061 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5062
5063 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5064 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5065 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5066 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5067 Gettextize.
5068 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5069 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5070 * po/POTFILES.in: Regenerate.
5071
5072 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5075 errors.
5076
5077 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5080 \0.
5081 (add_length): Likewise.
5082
5083 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5084 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5085
5086 GDB serial and backtrace support.
5087
5088 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5089 (prot_to_real): Likewise.
5090 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5091 * grub-core/Makefile.core.def (backtrace): New module.
5092 (gdb): Likewise.
5093 * grub-core/gdb/cstub.c: New file.
5094 * grub-core/gdb/gdb.c: Likewise.
5095 * grub-core/gdb/i386/idt.c: Likewise.
5096 * grub-core/gdb/i386/machdep.S: Likewise.
5097 * grub-core/gdb/i386/signal.c: Likewise.
5098 * grub-core/lib/i386/backtrace.c: Likewise.
5099 * grub-core/lib/backtrace.c: Likewise.
5100 * include/grub/backtrace.h: Likewise.
5101 * include/grub/gdb.h: Likewise.
5102 * include/grub/i386/gdb.h: Likewise.
5103
5104 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5105
5106 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5107 New function.
5108 (add_length): Likewise.
5109 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5110 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5111 proto.
5112 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5113 __argp_get_display_len.
5114
5115 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5116
5117 $"..." support in scripts.
5118
5119 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5120 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5121 * grub-core/script/yylex.l: Likewise.
5122 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5123 value.
5124
5125 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 * gentpl.py: Remove obsolete pkglib_DATA handling.
5128
5129 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5132 mailing list.
5133
5134 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5135 * util/grub-kbdcomp.in: Likewise.
5136 * util/grub-mkconfig.in: Likewise.
5137 * util/grub-mkconfig_lib.in: Likewise.
5138 * util/grub-mknetdir.in: Likewise.
5139 * util/grub-mkrescue.in: Likewise.
5140 * util/grub-mkstandalone.in: Likewise.
5141 * util/grub-reboot.in: Likewise.
5142 * util/grub-set-default.in: Likewise.
5143 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5144
5145 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5146
5147 Remove GRUB_PREFIX.
5148
5149 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5150 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5151 used for backward compatibility.
5152
5153 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5154
5155 Add new all_video module.
5156
5157 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5158 * grub-core/Makefile.core.def (all_video): New module.
5159 * grub-core/genmoddep.awk: Generate dependency of all_video from
5160 video.lst.
5161 * grub-core/lib/fake_module.c: New file.
5162 * grub-core/normal/main.c (features): Add feature_all_video_module.
5163 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5164 don't do explicit search again.
5165 insmod all_video in load_video if available.
5166
5167 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 Another round of string clarification and adding TRANSLATORS comments.
5170
5171 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5172
5173 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5174
5175 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5176
5177 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5178 to grub_ssize_t.
5179 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5180 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5181
5182 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5183
5184 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5185 trailing newline implicitly. All users updated.
5186
5187 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 Implement serial on IEEE1275 and EFI.
5190
5191 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5192 on emu. Mention arc and emu as the only platforms without serial
5193 support.
5194 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5195 ieee1275 platforms.
5196 * grub-core/term/efi/serial.c: New file.
5197 * grub-core/term/ieee1275/serial.c: Likewise.
5198 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5199 specification if no ns8250 driver is available.
5200 (grub_cmd_serial): Likewise.
5201 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5202 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5203 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5204 (grub_efi_parity_type_t): New type.
5205 (grub_efi_stop_bits_t): Likewise.
5206 (grub_efi_serial_io_interface): New struct.
5207 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5208 available for all interfaces.
5209 Add EFI and IEEE1275 fields.
5210 (grub_ofserial_init): New proto.
5211 (grub_efiserial_init): Likeiwse.
5212 * util/grub.d/00_header.in: Don't check for the presence of serial
5213 module.
5214
5215 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5216
5217 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5218 name as if it was an alias.
5219
5220 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * grub-core/commands/lsacpi.c (options): Fix typo.
5223
5224 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 Convert grub-emu to argp.
5227
5228 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5229 emu.
5230 * util/argp_common.c: Rename to ...
5231 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5232 Add missing includes.
5233 * grub-core/kern/emu/main.c: Convert to argp.
5234 * po/POTFILES.in: Regenerate.
5235 * util/grub-install.in (usage): Make first letter lowcase in messages
5236 for uniformity.
5237 * util/grub-setup.c (options): Likewise.
5238
5239 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5240
5241 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5242 Put back accidently commented-out code.
5243
5244 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5245
5246 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5247 loop check using Brent algorithm.
5248 (grub_hfsplus_btree_search): Likewise.
5249
5250 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5251
5252 * util/grub-install.in: Fix usage of wrong device for PreP install.
5253
5254 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5255
5256 * conf/Makefile.common (CFLAGS_GNULIB): Add
5257 -Wno-unsafe-loop-optimizations.
5258 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5259 on tools.
5260 * grub-core/commands/legacycfg.c: Add pragma to skip
5261 -Wunsafe-loop-optimizations.
5262 (check_password_md5_real): Fix loop counter type.
5263 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5264 reading.
5265 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5266 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5267 loop condition.
5268 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5269 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5270 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5271 condition.
5272 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5273 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5274 avoid possible infinite loops.
5275 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5276 and -Wunsafe-loop-optimizations.
5277 * grub-core/script/yylex.l: Likewise.
5278 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5279 (print_glyphs): Avoid infinite loops.
5280 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5281
5282 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5283
5284 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5285 to avoid infinite loop.
5286 (disp_acpi_rsdt_table): Likewise.
5287
5288 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * grub-core/font/font.c (grub_font_load): Add support for default
5291 path for fonts ($prefix/fonts).
5292 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5293 for checking if string is a path.
5294 * grub-core/normal/main.c (features): Add feature_default_font_path.
5295 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5296 * util/grub.d/00_header.in: Use default directory if possible.
5297 * util/grub-install.in: Install unicode.pf2.
5298
5299 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5302 * po/Rules-swiss: New file.
5303 * po/swiss.sed: Likewise.
5304
5305 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5306
5307 * grub-core/fs/btrfs.c (find_device): Fix typos.
5308 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5309 * util/grub-mkrelpath.c (argp_parser): Likewise.
5310 Reported by: Yuri Chornoivan.
5311
5312 2012-02-23 Dalet Omega <daletomega@gmail.com>
5313
5314 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5315 for usual informative messages.
5316
5317 2012-02-23 Dalet Omega <daletomega@gmail.com>
5318
5319 Starfield theme.
5320
5321 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5322 * conf/Makefile.common: Define starfielddir.
5323 * configure.ac: Configure starfield.
5324 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5325 * themes/starfield/README: Likewise.
5326 * themes/starfield/blob_w.png: Likewise.
5327 * themes/starfield/boot_menu_c.png: Likewise.
5328 * themes/starfield/boot_menu_e.png: Likewise.
5329 * themes/starfield/boot_menu_n.png: Likewise.
5330 * themes/starfield/boot_menu_ne.png: Likewise.
5331 * themes/starfield/boot_menu_nw.png: Likewise.
5332 * themes/starfield/boot_menu_s.png: Likewise.
5333 * themes/starfield/boot_menu_se.png: Likewise.
5334 * themes/starfield/boot_menu_sw.png: Likewise.
5335 * themes/starfield/boot_menu_w.png: Likewise.
5336 * themes/starfield/slider_c.png: Likewise.
5337 * themes/starfield/slider_n.png: Likewise.
5338 * themes/starfield/slider_s.png: Likewise.
5339 * themes/starfield/src/blob_nw.xcf: Likewise.
5340 * themes/starfield/src/bootmenu/: Likewise.
5341 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5342 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5343 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5344 * themes/starfield/src/slider_c.xcf: Likewise.
5345 * themes/starfield/src/slider_n.xcf: Likewise.
5346 * themes/starfield/src/slider_s.xcf: Likewise.
5347 * themes/starfield/src/terminalbox/: Likewise.
5348 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5349 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5350 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5351 * themes/starfield/starfield.png: Likewise.
5352 * themes/starfield/terminal_box_c.png: Likewise.
5353 * themes/starfield/terminal_box_e.png: Likewise.
5354 * themes/starfield/terminal_box_n.png: Likewise.
5355 * themes/starfield/terminal_box_ne.png: Likewise.
5356 * themes/starfield/terminal_box_nw.png: Likewise.
5357 * themes/starfield/terminal_box_s.png: Likewise.
5358 * themes/starfield/terminal_box_se.png: Likewise.
5359 * themes/starfield/terminal_box_sw.png: Likewise.
5360 * themes/starfield/terminal_box_w.png: Likewise.
5361 * themes/starfield/theme.txt: Likewise.
5362
5363 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 * util/grub.d/00_header.in: Add missing export theme.
5366
5367 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5368
5369 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5370 already included.
5371 Reported by: Eren D.
5372
5373 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * conf/Makefile.common (grubdatadir): Removed.
5376 (Makefile.am): Move eveything grubdata to pkgdata.
5377
5378 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5379
5380 * grub-core/commands/acpihalt.c (get_sleep_type):
5381 Remove unused variable.
5382
5383 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5384
5385 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5386 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5387 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5388 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5389 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5390 i18n with gettext no-op.
5391 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5392 GRUB_ACPI_OPCODE_STRING_CONST.
5393 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5394 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5395
5396 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5397
5398 * po/POTFILES.in: Regenerate.
5399
5400 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5401
5402 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5403 -Wno-error=missing-noreturn.
5404
5405 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5408 condition to avoid possibly infinite loops.
5409 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5410 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5411
5412 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5413
5414 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5415 condition to avoid possibly infinite loops.
5416
5417 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5418
5419 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5420 on show_error.
5421
5422 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5425
5426 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5429
5430 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 * util/bin2h.c (usage): Add missing attribute noreturn.
5433
5434 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5437 if the size isn't divisible by 512.
5438
5439 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 Make list_push and list_remove functions rather than inline functions
5442 to decrease size and avoid aliasing violations.
5443
5444 * include/grub/list.h (grub_list_push): Move to ...
5445 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5446 * include/grub/list.h (grub_list_remove): Move to ...
5447 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5448
5449 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5450
5451 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5452 and -Wunused-result.
5453
5454 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5455
5456 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5457 Reported by: Seth Goldberg
5458
5459 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5460
5461 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5462
5463 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5464
5465 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5466 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5467 command line.
5468 * docs/grub.texi (Simple configuration): Document
5469 GRUB_CMDLINE_GNUMACH.
5470
5471 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5472
5473 * conf/Makefile.common (platform_SCRIPTS): New variable.
5474 (platform_PROGRAMS): Likewise.
5475 * gentpl.py: Mark *,module and *.image for install.
5476 * grub-core/gdb_grub.in: Add a notice of expected environment.
5477 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5478 (gmodule.pl): Likewise.
5479
5480 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5481
5482 Replace grub_checkkey with grub_getkey_noblock.
5483
5484 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5485 (grub_getkey_noblock): ... this. All users updated.
5486
5487 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 * grub-core/kern/emu/console.c: Move to ...
5490 * grub-core/term/emu/console.c: ...here.
5491 (grub_ncurses_getkey): Fix return value if no key is detected.
5492
5493 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5494
5495 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5496 (grub_unit_test_fini): Likewise.
5497 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5498
5499 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 * include/grub/test.h (GRUB_UNIT_TEST)
5502
5503 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5504
5505 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5506 Better error handling.
5507 (grub_script_return): Likewise.
5508 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5509
5510 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5511
5512 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5513 rimplicit redifinition.
5514
5515 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5516
5517 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5518 GRUB.
5519
5520 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5523 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5524 prompt here.
5525
5526 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5529 as GRUB_ERR_BUG. Don't malloc if no device is available.
5530
5531 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5534 Mark calling with invalid term as GRUB_ERR_BUG.
5535
5536 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5539 packets rather than raising an error.
5540
5541 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5542
5543 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5544 in if.
5545
5546 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5549 diagnostic to dprintf.
5550 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5551
5552 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5553
5554 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5555 device name.
5556
5557 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5558
5559 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5560 (grub_ntfs_iterate_dir): Likewise.
5561
5562 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 Efiemu stylistic fixes and gettext.
5565
5566 * grub-core/efiemu/i386/loadcore32.c
5567 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5568 * grub-core/efiemu/i386/loadcore64.c
5569 (grub_arch_efiemu_relocate_symbols64): Likewise.
5570 * grub-core/efiemu/i386/pc/cfgtables.c
5571 (grub_machine_efiemu_init_tables): Likewise.
5572 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5573 (grub_efiemu_loadcore_initXX): Add a filename argument.
5574 All users updated.
5575 Improved error message.
5576 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5577 Add a filename argument.
5578 All users updated.
5579 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5580 Reclassify double relocation as GRUB_ERR_BUG.
5581
5582 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5585 handling.
5586
5587 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5590 on partition.
5591
5592 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5595
5596 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 Improve string. Gettextize.
5599
5600 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5603 utils.
5604 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5605
5606 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5609 [GRUB_UTIL]: New function.
5610 (insert_array) [GRUB_UTIL]: Store partmaps.
5611 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5612 partmaps.
5613 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5614 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5615 (probe_abstraction): Print diskfilter and not raid.
5616 Reported by: Lennart Sorensen
5617
5618 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5621 * util/grub-mkimagexx.c (MASK3): New define.
5622 (add_value_to_slot_20b): Use MASK3.
5623 (add_value_to_slot_21): Likewise.
5624 (relocate_addresses): Fix format specification.
5625 (load_image): Explicitly init symtab_section.
5626
5627 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5628
5629 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5630 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5631
5632 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5633
5634 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5635 on powerpc.
5636 Reported by: Lennart Sorensen
5637
5638 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5639
5640 * gentpl.py: Add missing license header.
5641 * docs/grub.texi: Update copyright year.
5642
5643 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5644
5645 Source grub-mkconfig_lib from the build directory at build time.
5646 Suggested by: Vladimir Serbinenko.
5647
5648 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5649 * util/grub-install.in: Define pkgdatadir if not already set, and source
5650 grub-mkconfig_lib from there.
5651 * util/grub-kbdcomp.in: Likewise.
5652 * util/grub-mkconfig.in: Likewise.
5653 * util/grub-mknetdir.in: Likewise.
5654 * util/grub-mkrescue.in: Likewise.
5655 * util/grub-mkstandalone.in: Likewise.
5656 * util/grub-reboot.in: Likewise.
5657 * util/grub-set-default.in: Likewise.
5658 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5659
5660 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5661
5662 Increase warning level.
5663
5664 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5665 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5666 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5667 (TARGET_CFLAGS): Likewise.
5668 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5669 * grub-core/Makefile.core.def (decompressor_xz): Add
5670 -Wno-unreachable-code.
5671 (normal): Add -Wno-redundant-decls.
5672 (xzio): Add -Wno-unreachable-code.
5673 (lzopio): Add -Wno-redundant-decls -Wno-error.
5674 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5675 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5676 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5677 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5678 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5679 * grub-core/kern/i386/coreboot/init.c: Add exception to
5680 -Wsuggest-attribute=noreturn.
5681 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5682 * grub-core/kern/ia64/dl_helper.c: Likewise.
5683 * grub-core/kern/mips/dl.c: Likewise.
5684 * grub-core/kern/sparc64/dl.c: Likewise.
5685 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5686 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5687 (memcmp): Likewise.
5688 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5689 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5690 * grub-core/loader/mips/linux.c: Likewise.
5691 * grub-core/loader/multiboot_elfxx.c: Likewise.
5692 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5693 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5694 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5695 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5696 fixme.
5697 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5698 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5699 Fix prototype.
5700
5701 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5702
5703 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5704 address.
5705
5706 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5709 Avoid improper use of strings.
5710 (grub_cmd_legacy_initrdnounzip): Likewise.
5711
5712 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5713
5714 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5715 attribute.
5716 (grub_util_info): Likewise.
5717 (grub_util_error): Likewise.
5718
5719 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5722 * util/grub-fstest.c (fstest): Likewise.
5723
5724 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5727 (grub_md_sha512_real): Likewise.
5728 (grub_util_get_geli_uuid): Likewise.
5729 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5730 (grub_util_biosdisk_open): Fix format specification.
5731 Respect format security.
5732 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5733 (xrealloc): Likewise.
5734 (xasprintf): Likewise.
5735
5736 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5737
5738 * util/import_gcry.py: Include grub/crypto.h in init.c.
5739
5740 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5743 (generate_image): Make prefix a const char *.
5744 Fix format specifications. Respect format security.
5745 Avoid void * arithmetics.
5746 Avoid shadowing.
5747 (argp_parser): Remove unused variable. Respect format security.
5748 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5749 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5750 (count_funcs): Remove unused variable.
5751 (relocate_addresses): Fix format specification.
5752 Disable x86-64 with elf32. Remove unused variables.
5753 (add_fixup_entry): Avoid shadowing.
5754 (make_reloc_section): Fix format specification.
5755 Use assert.
5756 (locate_sections): Fix format specifications.
5757 (load_image): Avoid shadowing.
5758
5759 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5762 Fix format specifications. Respect format security.
5763 Don't translate already translated grub_errmsg.
5764 (argp_parser): Remove unused variable
5765
5766 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
5769
5770 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
5773 (main): Likewise. Use xmalloc. Respect format security.
5774
5775 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
5778 a const char *.
5779 (argp_parser): Remove unused variable.
5780
5781 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
5784 (add_pixel): Make static.
5785 (add_font): Likewise.
5786 (write_string_section): Make name and str a const char *.
5787 (write_be16_section): Make name a const char *.
5788 (print_glyphs): Make static.
5789 (write_font_ascii_bitmap): Likewise.
5790 (write_font_width_spec): Likewise.
5791 (write_font_pf2): Likewise.
5792 (argp_parser): Remove unused variable.
5793 Respect format security.
5794 (main): Avoid shadowing. Respect format security.
5795
5796 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 * util/grub-editenv.c (argp_parser): Make static.
5799 (create_envblk_file): Use xmalloc.
5800 (open_envblk_file): Likewise.
5801 Resepect format security.
5802 (set_variables): Respect format security.
5803
5804 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5805
5806 * util/getroot.c (grub_find_device): Respect format security.
5807 (get_mdadm_uuid): Remove unused variable.
5808 (grub_util_pull_device): Dont call gettext on already translated
5809 grub_errmsg.
5810 (find_system_device): Remove unused variable.
5811 (grub_util_get_grub_dev): Likewise.
5812 (grub_make_system_path_relative_to_its_root): Respect format security.
5813
5814 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5815
5816 * util/grub-fstest.c (execute_command): Make first argument
5817 a const char *.
5818 (read_file): Avoid shadowing.
5819 Reuse underlying error message if device open fails.
5820 (cmd_cmp): Respect format security.
5821 (root): Make const char *.
5822 (fstest): Remove args argument and use global copy.
5823 Respect format security.
5824 (argp_parser): Make static.
5825 (main): Make default_root const char *.
5826
5827 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * util/grub-mount.c (root): Make const char *.
5830 (execute_command): Make first argument a const char *.
5831 (fuse_init): Respect format security.
5832 (argp_parser): Make static. Remove unused variable.
5833 (main): Make default_root a const char *.
5834 Respect format security.
5835
5836 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * util/grub-probe.c (probe): Don't call gettext on already translated
5839 grub_errmsg.
5840 Remove unused variables.
5841 (argp_parser): Remove unused variable.
5842
5843 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5844
5845 * util/grub-script-check.c (argp_parser): Remove unused variable.
5846 (main): Rename read to curread to avoid shadowing.
5847
5848 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5849
5850 * util/misc.c (grub_util_write_image_at): Fix format specification.
5851 (grub_util_write_image): Likewise.
5852 (grub_script_execute_argument_to_string): Removed (unused).
5853 (grub_script_execute_menuentry): Likewise.
5854 (grub_putchar): Likewise.
5855
5856 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
5859 (FUNCTION) [GRUB_UTIL]: Likewise.
5860 (VARIABLE) [GRUB_UTIL]: Likewise.
5861
5862 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
5865 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
5866
5867 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
5870 buffer.
5871
5872 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5873
5874 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
5875 (LzmaEnc_SaveState): Removed (unused).
5876 (LzmaEnc_RestoreState): Likewise.
5877 (LzmaEnc_InitPriceTables): Made static.
5878 (LzmaEnc_Construct): Likewise.
5879 (LzmaEnc_FreeLits): Likewise.
5880 (LzmaEnc_Destruct): Likewise.
5881 (LzmaEnc_Init): Likewise.
5882 (LzmaEnc_InitPrices): Likewise.
5883 (LzmaEnc_Finish): Likewise.
5884 (LzmaEnc_PrepareForLzma2): Removed (unused).
5885 (LzmaEnc_MemPrepare): Likewise.
5886 (LzmaEnc_GetNumAvailableBytes): Likewise.
5887 (LzmaEnc_GetCurBuf): Likewise.
5888 (LzmaEnc_CodeOneMemBlock): Likewise.
5889
5890 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5891
5892 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
5893 (grub_util_ldm_embed): Likewise.
5894
5895 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 * util/grub-editenv.c (print_var): Rename name to varname to
5898 avoid shadowing.
5899 (main): Rename index to curindex to avoid shadowing.
5900 Make filename a const char *.
5901
5902 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
5905 to arg_getline to avoid shadowing.
5906
5907 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
5910 disk_ to avoid shadowing.
5911
5912 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
5915 curindex to avoid shadowing.
5916 Make static.
5917 (MatchFinder_GetNumAvailableBytes): Make static.
5918
5919 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
5922 avoid shadowing.
5923
5924 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
5927 argument from encrypt to do_encrypt to avoid shadowing.
5928
5929 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
5932 incorrect nesting of #if's.
5933
5934 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5935
5936 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
5937 checks which are always false on some platforms.
5938 (grub_cmd_lsacpi): Likewise.
5939 * grub-core/kern/misc.c (grub_strtoul): Likewise.
5940 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
5941 Likewise.
5942
5943 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5944
5945 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
5946 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
5947
5948 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5949
5950 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
5951 re_dfa_t to avoid breaking alignment invariants.
5952 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
5953 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
5954
5955 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
5958 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
5959
5960 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
5963 Fix declaration.
5964
5965 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
5968 conserve alignment invariants.
5969 (grub_ehci_ehcc_read16): Likewise.
5970 (grub_ehci_oper_read32): Likewise.
5971 (grub_ehci_oper_write32): Likewise.
5972 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
5973 Conserve alignment invariants.
5974
5975 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
5978 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
5979 declarations.
5980
5981 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5982
5983 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
5984 Remove unused variable.
5985
5986 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
5989 Remove set in if.
5990
5991 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * include/grub/net.h: Remove double declarations.
5994
5995 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 Remove "payload" command in ia64 Linux loader since I couldn't
5998 find any evidence of it being used for anything.
5999 Replace "relocate" command with an environment variable
6000
6001 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6002 fields.
6003 (ia64_boot_payload): Removed.
6004 (last_payload): Likewise.
6005 (RELOCATE_OFF): Likewise.
6006 (RELOCATE_ON): Likewise.
6007 (RELOCATE_FORCE): Likewise.
6008 (relocate): Likewise.
6009 (free_pages): Don't free payloads.
6010 (grub_load_elf64): Use common error messages.
6011 Use "linux_relocate" variable.
6012 Increase the space after boot_params.
6013 (grub_cmd_payload): Removed.
6014 (grub_cmd_relocate): Likewise.
6015 (grub_cmd_fpswa): Improve messages.
6016 (cmd_payload): Removed.
6017 (cmd_relocate): Likewise.
6018 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6019 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6020
6021 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 Convert UHCI to DMA framework.
6024
6025 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6026 (grub_uhci_pci_iter): Fill new members
6027 (grub_alloc_td): Use P2V and V2P functions.
6028 (grub_free_queue): Likewise.
6029 (grub_alloc_qh): Likewise.
6030 (grub_uhci_setup_transfer): Likewise.
6031 (grub_uhci_check_transfer): Likewise.
6032
6033 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6036 Remove assignment in if while on it.
6037
6038 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 * util/grub-mkstandalone.in: Fix modules directory.
6041
6042 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6045 on i386-pc target.
6046 (argp_parser): Accept "auto" as compression specification.
6047
6048 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 Fix `help' with unloaded modules.
6051
6052 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6053 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6054 (grub_dyncmd_dispatcher): Small stylistic fix.
6055 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6056 explicit help is requested.
6057
6058 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6061 Explicitly init restart while on it.
6062
6063 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6066 uninited variable.
6067
6068 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6069
6070 * util/grub-mknetdir.in: Use . rather than source for POSIX
6071 compatibility.
6072
6073 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6074
6075 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6076
6077 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6078
6079 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6080 variable.
6081
6082 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6085 without quotes.
6086
6087 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6090
6091 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6094 iteration of partitions.
6095
6096 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 Improve gettext support. Stylistic fixes and error handling fixes while
6099 on it.
6100
6101 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6102
6103 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6104 part. Instead setup the correct stack in RM.
6105 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6106 for stack.
6107 * include/grub/i386/relocator_private.h: New file.
6108
6109 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6112 argument.
6113 * util/grub-fstest.c (options): Add missing DEVICE part.
6114
6115 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6116
6117 Clarify and unify messages.
6118
6119 * grub-core/commands/hashsum.c (options): Unify messages.
6120 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6121 literal-only message as translatable.
6122 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6123 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6124 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6125 commands.
6126 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6127 key, not the key used to unlock. Clarify what it's used for.
6128 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6129 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6130 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6131 * util/grub-editenv.c (options): Unify "verbose" message.
6132 * util/grub-fstest.c (read_file): Unify error message.
6133 (fstest): Add quotes around commands.
6134 (options): Unify "verbose" message.
6135 * util/grub-install.in: Add quotes around variable name.
6136 * util/grub-kbdcomp.in: Unify error message.
6137 * util/grub-mkfont.c (main): Likewise.
6138 * util/grub-mkrescue.in: Likewise.
6139 * util/grub-mklayout.c (options): Unify "verbose" message.
6140 * util/grub-mkstandalone.in: Unify help and verbose messages.
6141 * util/grub-mount.c (options): Unify "verbose" message.
6142 * util/grub-probe.c (options): Likewise.
6143 * util/grub-script-check.c (options): Likewise.
6144 * util/grub-setup.c (setup): Unify no-terminator message.
6145 (options): Use DEVICE and not DEV.
6146 Unify "verbose" message.
6147 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6148
6149 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6150
6151 Improve and unify messages.
6152
6153 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6154 name. All users updated.
6155 Print filename in error.
6156 (read_device_map): Print filename in error.
6157 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6158 (grub_util_get_os_disk): Likewise.
6159 (grub_util_biosdisk_get_grub_dev): Likewise.
6160 (grub_util_check_block_device): Likewise.
6161 (grub_util_check_char_device): Likewise.
6162 (grub_make_system_path_relative_to_its_root): Likewise.
6163 * util/grub-editenv.c (create_envblk_file): Likewise.
6164 (open_envblk_file): Likewise.
6165 (write_envblk): Likewise.
6166 * util/grub-fstest.c (cmd_cp): Likewise.
6167 (cmd_cat): Likewise.
6168 (cmd_cmp): Likewise.
6169 * util/grub-menulst2cfg.c (main): Likewise.
6170 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6171 (write_font_width_spec): Likewise.
6172 (write_font_pf2): Likewise.
6173 * util/grub-mkimage.c (generate_image): New argument outname.
6174 All users updated.
6175 Remove unreacheable message.
6176 (options): Unify messages.
6177 (help_filter): Likewise.
6178 * util/grub-mklayout.c (usage): Removed (unused).
6179 (main): Print filename in error.
6180 * util/grub-mkrescue.in: Fix wrong quoting.
6181 * util/grub-setup.c (setup): Print filename in error.
6182 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6183 (check_sas): Likewise.
6184 * util/misc.c (grub_util_get_fp_size): Removed.
6185 (grub_util_get_image_size): Print filename in error.
6186 (grub_util_read_at): Removed.
6187 (grub_util_read_image): Print filename in error.
6188 (grub_util_load_image): Likewise.
6189 (grub_util_write_image_at): New argument filename. All users updated.
6190 Print filename in error.
6191 (grub_util_write_image): New argument filename. All users updated.
6192 Print filename in error.
6193 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6194 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6195
6196 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6197
6198 * grub-core/Makefile.core.def (pxechain): New module.
6199 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6200 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6201 function.
6202 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6203 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6204
6205 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6208 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6209 * include/grub/err.h (grub_error_saved): New struct.
6210 (grub_errmsg): Make array size explicit.
6211 * include/grub/misc.h (grub_error_save): New function.
6212 (grub_error_load): Likewise.
6213 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6214 (grub_error_push): Update `errno' member name.
6215 (grub_error_pop): Likewise
6216 * grub-core/net/tftp.c (tftp_data): New member save_err.
6217 (tftp_receive): Save error.
6218 (tftp_open): Restore error.
6219
6220 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6223 to real mode down to execute A20-related code in protected mode as
6224 intended.
6225
6226 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6227
6228 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6229 NULL when the argument `level' has an unexpected value.
6230
6231 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 Move platform-dependent files from $prefix to $prefix/$platform.
6234
6235 * config.h.in (GRUB_TARGET_CPU): New definition.
6236 (GRUB_PLATFORM): Likewise.
6237 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6238 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6239 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6240 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6241 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6242 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6243 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6244 * grub-core/normal/term.c (read_terminal_list): Likewise.
6245 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6246 $prefix/locale.
6247 (grub_gettext_init_ext): Likewise.
6248 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6249 grub_platform.
6250 * util/grub-install.in: Update directories.
6251 * util/grub-mknetdir.in: Likewise.
6252 * util/grub-mkrescue.in: Likewise.
6253
6254 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6257 grub_error framework. All users updated.
6258
6259 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6260
6261 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6262 lists (by always binsearching), improve caching (cache strings
6263 used for binsearch, not only results), improve
6264 maintainability (by using more structured binary search) and correct
6265 error handling.
6266
6267 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6268
6269 * grub-core/script/execute.c (grub_script_return): Fix warning.
6270
6271 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * grub-core/script/execute.c (grub_script_return): Fix potential
6274 NULL-dereference.
6275 Reported by: Jim Meyering.
6276
6277 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 * po/POTFILES.in: Regenerate.
6280 * util/grub-install.in: Gettextize the strings missed in first pass.
6281
6282 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * Makefile.util.def (grub-mkdevicemap): Removed.
6285 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6286 * include/grub/util/deviceiter.h: Removed.
6287 * util/deviceiter.c: Likewise.
6288 * util/getroot.c (grub_util_get_os_disk): New function.
6289 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6290 replacement for EFI.
6291 * util/grub-mkdevicemap.c: Removed.
6292 * util/grub-probe.c (probe): Handle PRINT_DISK.
6293 (argp_parser): Handle -t disk.
6294
6295 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6296
6297 * util/grub-mkfont.c: Migrate to argp.
6298 * util/grub-mklayout.c: Likewise.
6299 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6300 * util/grub-mkrelpath.c: Likewise.
6301 * util/grub-probe.c: Likewise.
6302 * util/grub-script-check.c: Likewise.
6303
6304 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6305
6306 * util/grub-reboot.in: Add missing datarootdir.
6307 Add missing newline.
6308 * util/grub-set-default.in: Add missing datarootdir.
6309 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6310 * util/grub-mkrescue.in: Likewise.
6311
6312 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6315
6316 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 * util/grub-kbdcomp.in: Add decent help and gettextize.
6319 * docs/man/grub-kbdcomp.h2m: New file.
6320
6321 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 Migrate grub-mkimage.c to argp.
6324
6325 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6326 (grub-setup): Likewise.
6327 * util/grub-setup.c (print_version): Move to ...
6328 * util/argp_common.c (print_version): ... here.
6329 * util/grub-setup.c (argp_program_version_hook): Move to ...
6330 * util/argp_common.c (argp_program_version_hook): ... here.
6331 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6332 safety.
6333 * util/grub-mkimage.c (main): Migrate to argp.
6334
6335 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * util/grub-mkrescue.in: Use same message as
6338 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6339 for better translations.
6340
6341 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6342
6343 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6344 options with generic grub-mkrescue.in with the goal of future
6345 merge.
6346
6347 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6348
6349 * grub-core/kern/mm.c: Add missing include of i18n.h
6350 * grub-core/lib/relocator.c: Likewise.
6351
6352 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6353
6354 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6355 error.
6356 (allocate_pages): Check return value.
6357 Replace fatal with error.
6358 (grub_linux_boot): Replace printf with dprintf.
6359 Check find_mmap_size return value.
6360 Replace fatal with error.
6361 Don't call grub_machine_fini.
6362 (grub_load_elf64): Replace printf with dprintf.
6363 (grub_cmd_linux): Likewise.
6364 (grub_cmd_initrd): Likewise.
6365 (grub_cmd_payload): Likewise.
6366
6367 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6368
6369 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6370 message.
6371 * grub-core/video/radeon_fuloong2e.c
6372 (grub_video_radeon_fuloong2e_setup): Likewise.
6373 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6374 * grub-core/video/video.c (grub_video_set_mode): Don't override
6375 standard out of memory message.
6376
6377 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6378
6379 NetBSD disk wedge support.
6380
6381 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6382 [__NetBSD__]: Handle NetBSD disk wedges.
6383 * util/getroot.c (convert_system_partition_to_system_disk)
6384 [__NetBSD__]: Likewise.
6385
6386 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6387
6388 * util/grub-mkconfig.in: Use umask rather than chmod to create
6389 grub.cfg.new to avoid insecure grub.cfg.
6390
6391 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6392
6393 * grub-core/commands/ls.c: Gettextize.
6394 * grub-core/commands/setpci.c: Likewise.
6395 * grub-core/commands/videotest.c: Likewise.
6396 * grub-core/disk/geli.c: Likewise.
6397 * grub-core/kern/mm.c: Likewise.
6398 * grub-core/lib/relocator.c: Likewise.
6399 * grub-core/loader/efi/appleloader.c: Likewise.
6400 * grub-core/loader/i386/xnu.c: Likewise.
6401 * grub-core/loader/ia64/efi/linux.c: Likewise.
6402 * grub-core/loader/xnu.c: Likewise.
6403 * grub-core/net/dns.c: Likewise.
6404 * grub-core/net/net.c: Likewise.
6405 * grub-core/script/lexer.c: Likewise.
6406 * grub-core/script/parser.y: Likewise.
6407 * grub-core/script/yylex.l: Likewise.
6408 * util/getroot.c: Likewise.
6409 * util/grub-setup.c: Likewise.
6410
6411 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6412
6413 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6414 number.
6415
6416 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6417
6418 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6419
6420 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6423 macro.
6424 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6425 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6426
6427 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6430 * util/grub-install.in: Gettextize.
6431 * util/grub-mkconfig.in: Likewise.
6432 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6433 if not available.
6434 (grub_warn): Gettextize.
6435 * util/grub-mknetdir.in: Gettextize.
6436 * util/grub-mkrescue.in: Likewise.
6437 * util/grub-mkstandalone.in: Likewise.
6438 * util/grub-reboot.in: Likewise.
6439 * util/grub-set-default.in: Likewise.
6440 * util/grub.d/00_header.in: Likewise.
6441 * util/grub.d/10_hurd.in: Likewise.
6442 * util/grub.d/10_kfreebsd.in: Likewise.
6443 * util/grub.d/10_linux.in: Likewise.
6444 * util/grub.d/10_netbsd.in: Likewise.
6445 * util/grub.d/10_windows.in: Likewise.
6446 * util/grub.d/20_linux_xen.in: Likewise.
6447 * util/grub.d/30_os-prober.in: Likewise.
6448 * po/POTFILES-shell.in: Regenerate.
6449
6450 2012-02-03 Richard Laager <rlaager@wiktel.com>
6451
6452 * util/grub-mkimage.c (main): Fix format-security warning.
6453 * util/grub-mkrelpath.c (main): Likewise.
6454 * util/grub-probe.c (main): Likewise.
6455
6456 2012-02-03 Richard Laager <rlaager@wiktel.com>
6457
6458 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6459 failure.
6460 Put back lost PRINT_DRIVE.
6461
6462 2012-02-03 Richard Laager <rlaager@wiktel.com>
6463
6464 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6465 (grub_guess_root_devices): Replace strlen with sizeof.
6466 Avoid crash.
6467 (find_root_devices_from_poolname): Remove unused variable.
6468 Handle raidzN.
6469
6470 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6471
6472 Support install on multi-device filesystems.
6473
6474 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6475 (grub_guess_root_devices): ...this. Return char **. All users updated.
6476 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6477 Removed.
6478 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6479 (find_root_devices_from_poolname): ... here.
6480 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6481 Support zfs-fuse.
6482 (grub_guess_root_device): Rename to ...
6483 (grub_guess_root_devices): ... this. Return char **. All users updated.
6484 * util/grub-install.in: Handle multi-device filesystems.
6485 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6486 argument. All users updated.
6487 Handle multi-device filesystems.
6488 Use 'delim' as separator.
6489 Remove device check to allow filesystems on file.
6490 (main): Support -0 argument. Handle multi-device.
6491 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6492 Fix a cross-device check while on it.
6493 (arguments): Remove root_dev.
6494 (argp_parser): Remove -r.
6495 (main): Remove root_dev.
6496
6497 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6500
6501 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6504 symbol.
6505 Reported by: NODA, Kai <nodakai>.
6506
6507 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 Fix ehci on amd64.
6510
6511 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6512 pointers.
6513 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6514 (grub_ehci_setup_qh): Likewise.
6515 (grub_ehci_find_qh): Likewise.
6516 (grub_ehci_transaction): Likewise.
6517 (grub_ehci_setup_transfer): Likewise.
6518 (grub_ehci_check_transfer): Likewise.
6519 (grub_ehci_portstatus): Likewise.
6520 (grub_ehci_detect_dev): Likewise.
6521 (grub_ehci_transfer_controller_data): New field td_last_phys.
6522 (grub_ehci_setup_transfer): Fill td_last_phys.
6523 (grub_ehci_check_transfer): Use td_last_phys.
6524
6525 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6526
6527 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6528 if no submenu is present.
6529
6530 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6531
6532 CBI support.
6533
6534 * include/grub/usb.h (grub_usbms_protocol_t): New values
6535 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6536 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6537 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6538 (grub_usbms_dev): Add subclass, protocol and intrpt.
6539 Remove in_maxsz and out_maxsz.
6540 (grub_usbms_reset): Rename to ...
6541 (grub_usbms_bo_reset): .. this.
6542 (grub_usbms_cbi_cmd): New function.
6543 (grub_usbms_cbi_reset): Likewise.
6544 (grub_usbms_reset): Likewise.
6545 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6546 (grub_usbms_transfer): Rename to ...
6547 (grub_usbms_transfer_bo): ... this.
6548 (grub_usbms_transfer_cbi): Likewise.
6549 (grub_usbms_transfer): Likewise.
6550
6551 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6552 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6555 the support for the CS5536 modification thereos and few bugfixes.
6556
6557 * grub-core/Makefile.core.def (ehci): New module.
6558 * grub-core/bus/usb/ehci.c: New file.
6559 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6560 port and hubaddr. All users updated.
6561 Save port and hubaddr into dev structure.
6562 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6563 define.
6564 * include/grub/pci.h (grub_dma_phys2virt): New function.
6565 (grub_dma_virt2phys): Likewise.
6566 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6567
6568 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6571 check as some mkfs implementations omit it.
6572
6573 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6576
6577 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6578
6579 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6580 Add new member volname2.
6581 (grub_jfs_label): Use volname2 if available.
6582
6583 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6586 over last_mounted as seen in image generated by mkfs.nilfs2.
6587 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6588
6589 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6592 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6593 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6594
6595 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6596
6597 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6598 over the sector.
6599
6600 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6603 subvolume name (by removing a bogus and useless check).
6604
6605 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6608 sizeof while on it.
6609
6610 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6613 (grub_scsi_read_capacity10): ... this.
6614 (grub_scsi_read_capacity16): New function.
6615 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6616 0xffffffff.
6617 Fix off-by-one error.
6618 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6619 64-bit unsigned.
6620 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6621 (grub_scsi_read_capacity10): ... this.
6622 (grub_scsi_read_capacity_data): Rename to ...
6623 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6624 (grub_scsi_read_capacity16): New struct.
6625 (grub_scsi_read_capacity16_data): Likewise.
6626 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6627 grub_scsi_cmd_read_capacity10.
6628 New command grub_scsi_cmd_read_capacity16.
6629
6630 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 SCSI >2TiB support.
6633
6634 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6635 (grub_scsi_write16): Likewise.
6636 (grub_scsi_read): Use read16 when necessary.
6637 (grub_scsi_write): Likewise.
6638 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6639 (grub_scsi_write16): Likewise.
6640 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6641
6642 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 SCSI write support (for usbms mainly).
6645
6646 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6647 a const pointer.
6648 (grub_scsi_write): Implement.
6649 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6650
6651 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6654 variable.
6655
6656 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6659
6660 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6661
6662 * po/POTFILES.in: Regenerate.
6663
6664 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6665
6666 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6667 with grub_printf to avoid unnecessary fatal failure.
6668
6669 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6670
6671 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6672 (INT_MAX): Likewise.
6673 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6674 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6675 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6676 (strcpy): Likewise.
6677 (strstr): Likewise.
6678 (strchr): Likewise.
6679 (strncpy): Likewise.
6680 (strcat): Likewise.
6681 (strncat): Likewise.
6682 (strcoll): Likewise.
6683 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6684 (GRUB_INT_MAX): Likewise.
6685
6686 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6687
6688 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6689 unexpected error.
6690 (optimize_utf8): Likewise.
6691 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6692
6693 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * grub-core/boot/i386/pc/lnxboot.S: Use
6696 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6697 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6698 location.
6699 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6700 definition.
6701 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6702
6703 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6704
6705 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6706 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6707 now to avoid double free.
6708 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6709 hostdisk.
6710 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6711 * util/grub-probe.c (escape_of_path): Always return a new copy.
6712 (print_full_name): Escape path.
6713 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6714 Fix hints on abstractions.
6715
6716 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6717
6718 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6719 Don't add "root" line if no compatibility hont is available.
6720 Suggested by: Seth Goldberg.
6721
6722 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6725 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6726 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6727 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6728
6729 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6732
6733 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * util/grub-pe2elf.c (ehdr): Make static.
6736 (shdr): Likewise.
6737 (num_sections): Likewise.
6738 (offset): Likewise.
6739
6740 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 Eliminate ofpath limits and possible overflows.
6743
6744 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6745 (OF_PATH_MAX): Removed.
6746 (MAX_DISK_CAT): New const.
6747 (find_obppath): Use allocated rather than preallocated buffer.
6748 Return result. Argument of_path removed. All users updated.
6749 Add missing fdstat.
6750 (xrealpath): New function.
6751 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6752 Allocate rather than use preallocated buffer. All users updated.
6753 (__of_path_common): Use allocated rather than preallocatecd buffer.
6754 Return result. Argument of_path removed. All users updated.
6755 (vendor_is_ATA): Read only needed part form the file.
6756 (check_sas): Allocate depending on contents rather than fixed.
6757 (main) [STANDALONE]: Handle NULL result.
6758
6759 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6762
6763 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 Cryptodisk write support.
6766
6767 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
6768 (grub_cryptodisk_decrypt): Moved logic to ...
6769 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
6770 (grub_cryptodisk_write): Implement.
6771 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
6772 (grub_util_fd_write): ... this. Make global.
6773 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
6774
6775 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6776
6777 * include/grub/list.h (grub_list_remove): Don't crash if element is
6778 removed twice.
6779
6780 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 Rename ofconsole to console.
6783
6784 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
6785 as sysnonym to console.
6786 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
6787 * grub-core/term/ieee1275/console.c: ... this. All users updated.
6788 Rename grub_ofconsole_ to grub_console_. All users updated
6789 (grub_console_term_output): Rename "ofconsole" to "console".
6790 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
6791 as "console".
6792
6793 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
6796 handling.
6797 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
6798 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
6799 GRUB_DISK_DEVICE_FILE_ID.
6800
6801 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
6804 and improve performance.
6805
6806 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6807
6808 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
6809 missing ieee1275/ prefix on whole disk.
6810
6811 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
6814 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
6815
6816 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6817
6818 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
6819
6820 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6821
6822 Merge common RAID and LVM logic to an abstract diskfilter.
6823 Add LDM support using the same framework.
6824
6825 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
6826 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
6827 (libgrubmods): Remove grub-core/disk/raid.c and
6828 grub-core/partmap/gpt.c.
6829 * grub-core/Makefile.core.def (ldm): New module.
6830 (raid): Renamed to diskfilter. All users updated.
6831 * grub-core/disk/raid.c: Moved to ...
6832 * grub-core/disk/diskfilter.c: ... here.
6833 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
6834 (lv_num): New var.
6835 (find_array): Renamed to ...
6836 (find_lv): ... this. Support multi-LV. Skip nameless LVs
6837 (grub_is_array_readable): Renamed to ...
6838 (grub_is_lv_readable): ... this. Support multinode hierarchy.
6839 (insert_array): New argument id.
6840 (is_node_readable): New function.
6841 (scan_device): Rename to ...
6842 (scan_disk): .. this. Restrict to one disk.
6843 (scan_devices): New function.
6844 (grub_diskfilter_iterate): Support multi-LV.
6845 Skip invisible and nameless LVs.
6846 (grub_diskfilter_memberlist): Support multi-LV.
6847 (grub_diskfilter_read_node): New function.
6848 (grub_raid_read): Most of logic moved to ...
6849 (read_segment): ... here
6850 (read_lv): New function.
6851 (grub_diskfilter_get_vg_by_uuid): New function.
6852 (grub_diskfilter_make_raid): Likewise.
6853 * grub-core/disk/ldm.c: New file.
6854 * grub-core/disk/lvm.c (vg_list): Removed.
6855 (lv_count): Likewise.
6856 (scan_depth): Likewise.
6857 (is_lv_readable): Likewise.
6858 (grub_lvm_getvalue): Advance pointer past the number.
6859 (find_lv): Removed.
6860 (do_lvm_scan): Refactored into ...
6861 (grub_lvm_detect): ... this. Support raid.
6862 (grub_lvm_iterate): Removed.
6863 (grub_lvm_memberlist): Likewise.
6864 (grub_lvm_open): Likewise.
6865 (grub_lvm_close): Likewise.
6866 (read_lv): Likewise.
6867 (read_node): Likewise.
6868 (is_node_readable): Likewise.
6869 (is_lv_readable): Likewise.
6870 (grub_lvm_read): Likewise.
6871 (grub_lvm_write): Likewise.
6872 (grub_lvm_dev): Use diskfilter
6873 (GRUB_MOD_INIT): Likewise.
6874 (GRUB_MOD_FINI): Likewise.
6875 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
6876 new interface.
6877 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
6878 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6879 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
6880 grub_diskfilter_read_node.
6881 Fix a bug with xor.
6882 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
6883 grub_diskfilter_read_node.
6884 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
6885 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
6886 (grub_disk_dev_iterate): Move from here...
6887 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
6888 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6889 Make global.
6890 (grub_hostdisk_find_partition_start): Likewise.
6891 (grub_hostdisk_os_dev_to_grub_drive): New function.
6892 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
6893 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
6894 * util/getroot.c (make_device_name): ... here.
6895 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6896 Move to ...
6897 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
6898 * grub-core/kern/emu/hostdisk.c
6899 (convert_system_partition_to_system_disk): Move to ...
6900 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
6901 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
6902 * util/getroot.c (device_is_wholedisk): ... here.
6903 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
6904 * util/getroot.c (find_system_device): ... here.
6905 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
6906 Move to ...
6907 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
6908 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
6909 Move to ...
6910 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
6911 Handle LDM.
6912 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
6913 Move to ...
6914 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
6915 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
6916 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
6917 DISKFILTER.
6918 * include/grub/raid.h: Renamed to ...
6919 * include/grub/diskfilter.h: ... this.
6920 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
6921 (GRUB_RAID_LAYOUT_*): Make into array.
6922 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
6923 (grub_diskfilter_vg): New struct.
6924 (grub_diskfilter_pv_id): Likewise.
6925 (grub_raid_member): Removed.
6926 (grub_raid_array): Likewise.
6927 (grub_diskfilter_pv): New struct.
6928 (grub_diskfilter_lv): Likewise.
6929 (grub_diskfilter_segment): Likewise.
6930 (grub_diskfilter_node): Likewise.
6931 (grub_diskfilter_get_vg_by_uuid): New proto.
6932 (grub_raid_register): Inline.
6933 (grub_diskfilter_unregister): Likewise.
6934 (grub_diskfilter_make_raid): New proto.
6935 (grub_diskfilter_vg_register): Likewise.
6936 (grub_diskfilter_read_node): Likewise.
6937 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
6938 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
6939 (grub_util_is_ldm): Likewise.
6940 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
6941 (grub_hostdisk_find_partition_start): Likewise.
6942 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
6943 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
6944 New definition.
6945 (grub_gpt_partition_map_iterate): New proto.
6946 * include/grub/lvm.h (grub_lvm_vg): Removed.
6947 (grub_lvm_pv): Likewise.
6948 (grub_lvm_lv): Likewise.
6949 (grub_lvm_segment): Likewise.
6950 (grub_lvm_node): Likewise.
6951 * util/getroot.c [...]
6952 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
6953 (probe_abstraction): Likewise.
6954 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
6955 (main): Remove dead logic.
6956
6957 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
6958
6959 Simplify root device discover and don't fail when trying to open
6960 incorrect devices.
6961
6962 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
6963 function.
6964 (get_diskname_from_path): Likewise.
6965 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
6966 of iterating.
6967
6968 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
6971
6972 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6973
6974 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
6975 pastthe end.
6976
6977 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6978
6979 * util/grub-install.in: Add missing \.
6980 Reported by: gentoofan
6981
6982 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
6985 (direct_read): Use correct compressed size.
6986 (grub_squash_read_data): Likewise.
6987
6988 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 * docs/grub.texi (Platform limitations): New section.
6991 (Platform-specific operations): Likewise.
6992 * docs/grub-dev.texi (Porting): Likewise.
6993
6994 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6995
6996 IEEE1275 disk write support.
6997
6998 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
6999 const void *.
7000 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7001 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7002 and seek loginc to ...
7003 (grub_ofdisk_prepare): ... here.
7004 (grub_ofdisk_write): Implement.
7005
7006 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7007
7008 ARC disk write support.
7009
7010 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7011 (reopen): New argument writable. All users updated.
7012 Handle required access mode.
7013 (grub_arcdisk_write): Implement.
7014 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7015 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7016
7017 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7018
7019 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7020 (read_sblock): Don't attempt to read superblocks outside the disk size.
7021
7022 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7023
7024 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7025 first superblock to find the second one when possible.
7026
7027 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7028
7029 * util/grub-install.in: Fix an ARC bug.
7030 Print a warning if no platform-specific setup is available.
7031
7032 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7033
7034 Use static allocation rather than scratch pointer in reed_solomon.
7035 It decreases its size significantly and avoids a variable in .text.
7036
7037 * grub-core/lib/reed_solomon.c (scratch): Removed.
7038 (chosenstat): New const or static array.
7039 (sigma): Likewise.
7040 (errpot): Likewise.
7041 (errpos): Likewise.
7042 (sy): Likewise.
7043 (mstat): Likewise.
7044 (errvals): Likewise.
7045 (eqstat): Likewise.
7046 (pol_evaluate): Replace x with log_x argument. All users updated.
7047 (syndroms): Removed.
7048 (gauss_solve): Use statically allocated arrays.
7049 (rs_recover): Likewise.
7050 Calculate syndroms directly.
7051 (decode_block): Use statically allocated arrays.
7052 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7053 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7054
7055 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 Eliminate fixed limit on reed solomon decoder length.
7058
7059 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7060 rather than hardcoding the address.
7061 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7062 no_reed_solomon_length.
7063 Move gate_a20 to no-reed-solomon part.
7064 Don't force a particular size of no reed-solomon part.
7065 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7066 Removed.
7067 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7068 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7069
7070 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7071
7072 * grub-core/commands/wildcard.c (match_files): Handle filenames
7073 without explicit device.
7074 (wildcard_expand): Don't add explicit device if not already present.
7075 * tests/grub_script_echo1.in: Add a new expansion test.
7076
7077 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7078
7079 Replace single-linked with double-linked lists. It results in more
7080 compact and more efficient code.
7081
7082 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7083 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7084 (grub_list_remove): Moved from here ...
7085 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7086 (grub_prio_list_insert): Set prev.
7087 * include/grub/list.h (grub_list): Add prev. All users updated.
7088
7089 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7090
7091 Handle newer autotools. Add some missing quotes while on it.
7092
7093 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7094 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7095 (pkgdata_DATA): ... here.
7096 * Makefile.util.def (update-grub_lib): Removed.
7097 * conf/Makefile.common (pkglib_DATA): Removed.
7098 (pkglib_SCRIPTS): Likewise.
7099 (pkgdata_DATA): New variable.
7100 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7101 needed.
7102 Add missing quotes.
7103 Remove unused variable while on it.
7104 * tests/util/grub-shell.in: Likewise.
7105 * util/grub-install.in: Likewise.
7106 * util/grub-mkconfig.in: Likewise.
7107 * util/grub-mknetdir.in: Likewise.
7108 * util/grub-mkrescue.in: Likewise.
7109 * util/grub-mkstandalone.in: Likewise.
7110 * util/grub.d/00_header.in: Likewise.
7111 * util/grub.d/10_hurd.in: Likewise.
7112 * util/grub.d/10_illumos.in: Likewise.
7113 * util/grub.d/10_kfreebsd.in: Likewise.
7114 * util/grub.d/10_linux.in: Likewise.
7115 * util/grub.d/10_netbsd.in: Likewise.
7116 * util/grub.d/10_windows.in: Likewise.
7117 * util/grub.d/20_linux_xen.in: Likewise.
7118 * util/grub.d/30_os-prober.in: Likewise.
7119 * util/update-grub_lib.in: Removed.
7120
7121 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7122
7123 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7124 a workaround for intel problem.
7125
7126 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7127 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7128 2012-01-23 pfsmorigo
7129
7130 * util/grub-install.in: Support dd'in into PreP partition.
7131 * util/grub-probe.c (probe): Support discovering partition type.
7132 (main): Support -t msdos_parttype.
7133
7134 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7137 infinite recursion using counter.
7138 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7139 init to skip it if the magic check fails.
7140 (dec_stream_header): Init s->crc32.
7141
7142 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7143 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7144 2012-01-22 Richard Laager <rlaager@wiktel.com>
7145
7146 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7147 All users updated.
7148 (find_bestub): Determine correct size.
7149 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7150 (scan_disk): Align the size down.
7151 Call check pool before find_bestub to have ashift.
7152
7153 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7156 dprintf in no-malloc zone.
7157
7158 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7159
7160 * configure.ac: Add back in test for limits.h.
7161
7162 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 Support 4K-sector NTFS.
7165
7166 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7167 (grub_ntfs_data): Remove blocksize.
7168 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7169 Remove data argument. All users updated.
7170
7171 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7174 being in .text to avoid dprel references.
7175 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7176 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7177 (grub_arch_highmemsize): Likewise.
7178 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7179 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7180 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7181
7182 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7185
7186 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7187 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7188
7189 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7190
7191 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7192 GRUB_UTIL.
7193 (grub_set_datetime_cmos): Likewise.
7194
7195 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7196
7197 Make XZ compression parameters dependent on target and not host CPU.
7198
7199 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7200 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7201
7202 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7203
7204 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7205 set but not used variable.
7206
7207 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7208
7209 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7210 created when no uuid support is compiled into mkfs.reiser.
7211
7212 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7215 (utf8_to_macroman): Do the opposite.
7216 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7217
7218 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 * configure.ac: Refise build qemu_mips w/o unifont.
7221
7222 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 Eliminate grub_min/grub_max prone to overflow usage.
7225
7226 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7227 (poll_nonroot_hub): Likewise.
7228 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7229 (grub_affs_label): Likewise.
7230 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7231 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7232 (grub_hfs_label): Likewise.
7233 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7234 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7235 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7236 (zap_leaf_array_get): Likewise.
7237 (dnode_get_path): Likewise.
7238 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7239 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7240 * grub-core/script/execute.c (grub_script_break): Likewise.
7241 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7242 grub_max.
7243 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7244 * include/grub/misc.h (grub_min): Removed.
7245 (grub_max): Likewise.
7246
7247 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7248
7249 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7250 direct.inode = 0.
7251
7252 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7255
7256 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7257
7258 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7259
7260 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7263 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7264
7265 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7266
7267 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7268 rather than a hack for grub_strncasemap.
7269
7270 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 Support multiple initrds
7273 Note: part of this was accidently committed in r3739.
7274
7275 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7276 initrd.
7277 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7278 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7279 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7280 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7281 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7282
7283 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7284
7285 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7286 disks with unknown size.
7287 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7288
7289 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 Remove defines pertaining to arbitrary limits not affecting GRUB
7292 anymore.
7293
7294 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7295 (EXT2_MAX_SYMLINKCNT): Likewise.
7296 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7297 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7298 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7299 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7300 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7301 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7302 (DN_MAX_OBJECT_SHIFT): Likewise.
7303 (DN_MAX_OFFSET_SHIFT): Likewise.
7304 (DN_MAX_OBJECT): Likewise.
7305 (DNODES_PER_LEVEL_SHIFT): Likewise.
7306 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7307 (SPA_MAXBLOCKSIZE): Likewise.
7308 (SPA_BLOCKSIZES): Likewise.
7309 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7310 (MZAP_MAX_BLKSZ): Likewise.
7311
7312 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7315 handle NULL appropriately.
7316 Remove MIN.
7317
7318 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 Fix efiemu.
7321
7322 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7323 cpu/types.h.
7324 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7325 * configure.ac: Fix efiemu check.
7326
7327 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7330 grub_probe.
7331 Reported by: adamwill
7332
7333 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7334
7335 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7336
7337 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7338
7339 Fix handling of wide characters in gfxterm.
7340
7341 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7342 (clear_char): Likewise.
7343 (paint_char): Skip code == NULL chars.
7344 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7345
7346 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7347
7348 * grub-core/normal/charset.c: Move comment to right place.
7349
7350 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7353 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7354 (grub_affs_mount): Revert the correct version checking.
7355
7356 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 * docs/grub.texi (Unicode): Mention several other unsupported features.
7359
7360 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7361
7362 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7363 case statements as compile-time one.
7364 (direct_read): Prevent spurious warnings.
7365 (grub_squash_read_data): Likewise.
7366
7367 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7368
7369 Various squash4 fixes and LZO and XZ support.
7370
7371 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7372 Add xzembed source files.
7373 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7374 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7375 (grub_squash_inode): New subtype long_dir.
7376 (SQUASH_TYPE_LONG_DIR): New inode type.
7377 (COMPRESSION): New enum.
7378 (XZBUFSIZ): New const.
7379 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7380 (read_chunk): Use data->decompress.
7381 (zlib_decompress): New function.
7382 (lzo_decompress): Likewise.
7383 (xz_decompress): Likewise.
7384 (squash_mount): Set new data fields.
7385 (grub_squash_iterate_dir): Handle long dir.
7386 (squash_unmount): Free xzdec and xzbuf.
7387 (grub_squash_open): Check ino type.
7388 (direct_read): Stylistic fixes. Use data->decompress.
7389 (grub_squash_read_data): Likewise.
7390 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7391 (get_byte): Likewise.
7392 (grub_zlib_disk_read): Removed.
7393 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7394 (GRUB_POSIX_BOOL_DEFINED): New define.
7395 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7396 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7397 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7398 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7399
7400 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 Don't override more informative errors.
7403
7404 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7405 * grub-core/font/font.c (open_section): Likewise.
7406 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7407 filename. Don't override errors.
7408 (grub_cmd_openbsd_ramdisk): Don't override errors.
7409 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7410 (grub_cmd_initrd): Likewise.
7411 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7412 (grub_cmd_initrd): Likewise.
7413 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7414 (grub_cmd_linux): Likewise.
7415 (grub_cmd_initrd): Likewise.
7416 (grub_cmd_payload): Likewise.
7417 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7418 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7419 (grub_cmd_module): Likewise.
7420 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7421 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7422 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7423 (grub_cmd_xnu_mkext): Likewise.
7424 (grub_cmd_xnu_ramdisk): Likewise.
7425 (grub_xnu_check_os_bundle_required): Likewise.
7426 (grub_xnu_load_kext_from_dir): Likewise.
7427 (grub_cmd_xnu_kextdir): Likewise.
7428 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7429
7430 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7433 as 1024 in block size field. Found on one of my test images.
7434 Small optimisation while on it.
7435
7436 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7437
7438 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7439 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7440 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7441 performance fixes while on it.
7442 (grub_sfs_close): Fix memory leak while on it.
7443 (grub_sfs_label): Convert Latin1 to UTF-8.
7444
7445 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7446
7447 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7448 space to avoid overflows.
7449 (grub_hfs_label): Convert from macroman to UTF-8.
7450
7451 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7452
7453 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7454
7455 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7458
7459 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * unicode: Import Unicode 6.0 data.
7462
7463 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7464
7465 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7466 outside of range.
7467
7468 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7469
7470 Avoid cutting in the middle of UTF-8 character.
7471
7472 * include/grub/charset.h (grub_getend): New function.
7473 * grub-core/script/function.c (grub_script_function_find): Use
7474 grub_getend.
7475 * grub-core/normal/completion.c (add_completion): Likewise.
7476
7477 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7480 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7481 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7482 (GRUB_UNICODE_TAG_END): Likewise.
7483 (GRUB_UNICODE_LAST_VALID): Likewise.
7484
7485 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7488 len and make it smaller. All users updated.
7489 * util/import_unicode.py: Put length and not end character.
7490 Check length.
7491
7492 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7493
7494 Make better Unicode-compliant and unify some UTF-8 code pathes.
7495
7496 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7497 valid character.
7498 (grub_is_valid_utf8): Use grub_utf8_process.
7499 Check resulting code range.
7500 (grub_utf8_to_ucs4): Use grub_utf8_process.
7501 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7502 valid character.
7503
7504 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7505
7506 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7507
7508 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 * docs/grub.texi (Filesystems): Mention AFS.
7511
7512 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7513
7514 * docs/grub.texi (Filesystems): Clarify restrictions.
7515 (Regexp): Mention non-Unicode regexp behaviour.
7516 (Other): Mention non-Unicode matching behaviour.
7517
7518 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 Make HFS implementation use MacRoman.
7521
7522 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7523 (macroman): New const array.
7524 (macroman_to_utf8): New function.
7525 (utf8_to_macroman): Likewise.
7526 (grub_hfs_find_dir): Use utf8_to_macroman.
7527 (grub_hfs_dir): Use macroman_to_utf8.
7528 Set case_insensitive.
7529
7530 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7531
7532 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7533
7534 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7535
7536 Integrate hints into autogeneration scripts.
7537
7538 * docs/grub.texi (Filesystems): Add a hostdisk example.
7539 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7540 (grub-probe): Add ofpath.
7541 * gentpl.py: Remove group nosparc64.
7542 * grub-core/commands/search.c (cache_entry): New struct.
7543 (cache): New var.
7544 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7545 * grub-core/commands/search_wrap.c (options): Add platform-specific
7546 hint options.
7547 (grub_cmd_search): Handle platform-specific hints.
7548 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7549 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7550 (grub_util_biosdisk_data): Likewise.
7551 (grub_util_biosdisk_open): Set device_map.
7552 (read_device_map): Handle "" as indication of no map.
7553 Set device_map.
7554 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7555 (grub_util_biosdisk_get_compatibility_hint): New function.
7556 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7557 * include/grub/emu/hostdisk.h
7558 (grub_util_biosdisk_get_compatibility_hint): New proto.
7559 * util/grub-install.in: Don't call grub-mkdevicemap.
7560 Add platform-specific hint to load.cfg.
7561 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7562 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7563 hints. Set root preliminary to compatibility hint, not to OS name.
7564 * util/grub-probe.c (PRINT_*): Add hints.
7565 (print): Make static.
7566 (escape_of_path): New function.
7567 (guess_bios_drive): Likewise.
7568 (guess_efi_drive): Likewise.
7569 (guess_baremetal_drive): Likewise.
7570 (print_full_name): Likewise.
7571 (probe): Handle hints.
7572 (main): Likewise.
7573 * util/ieee1275/devicemap.c: Removed.
7574 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7575 updated.
7576 (grub_util_devname_to_ofpath): Return NULL on failure.
7577
7578 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7579 resource leak.
7580 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7581
7582 * po/POTFILES.in: Regenerated.
7583
7584 Allow purely long options
7585
7586 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7587 (SHORT_ARG_USAGE): Likewise.
7588 (grub_arg_show_help): Compare opt with help_options.
7589 (parse_option): Receive opt as argument. If makes big simplificatons.
7590 All users updated
7591
7592 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7593
7594 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7595 Restructure to avoid warning.
7596
7597 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7598
7599 * util/grub-install.in: Account for possible escaped comma in device
7600 name.
7601
7602 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7605 channel.
7606
7607 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7610 allocation and zero-setting.
7611 (grub_ieee1275_get_devname): Check that alias is complete.
7612
7613 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7616 unaligned segments.
7617
7618 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7619
7620 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7621 prefix.
7622 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7623 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7624 Add ieee1275 prefix.
7625
7626 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7627
7628 * docs/grub.texi (Filesystems): Update.
7629
7630 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 Support odc, newc and bigendian cpio formats.
7633
7634 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7635 * grub-core/Makefile.core.def (newc): New module.
7636 (odc): Likewise.
7637 (cpio_be): Likewise.
7638 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7639 (MAGIC): Likewise.
7640 (MAGIC2): Likewise.
7641 (head) [MODE_ODC]: Adapt for the format.
7642 (head) [MODE_NEWC]: Likewise.
7643 (head) [!MODE_*]: Write fields of interest as arrays.
7644 (MAGIC_USTAR): Removed.
7645 (read_number) [MODE_NEWC]: Change to hex.
7646 (read_number) [!MODE_*]: Parse binary arrays.
7647 (grub_cpio_find_file): Factor out the code for better structure and
7648 always use read_number.
7649 (grub_cpio_mount): Use MAGIC and MAGIC2.
7650 (grub_cpio_dir): Exit on first hook non-0 return.
7651 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7652 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7653 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7654 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7655 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7656 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7657 * grub-core/fs/newc.c: New file.
7658 * grub-core/fs/odc.c: Likewise.
7659 * grub-core/fs/cpio_be.c: Likewise.
7660
7661 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 Fix handling of tar numbers occupying the whole field.
7664
7665 * grub-core/fs/cpio.c (read_number): New function.
7666 (grub_cpio_find_file): Use read_number instead of strtoull.
7667
7668 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7669
7670 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7671 occupying the whole field size.
7672
7673 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7674
7675 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7676
7677 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7678
7679 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7680
7681 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7682
7683 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7684 TARGET_IMG_LDFLAGS.
7685
7686 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7689 (mountinfo_entry): Increase the field size to take escaping into
7690 account.
7691 (find_root_device_from_libzfs): Add one byte to size of strings for
7692 security.
7693
7694 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7695
7696 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7697 an assert.
7698 * util/grub-setup.c (setup): Likewise.
7699
7700 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7701
7702 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7703 _LzmaDecodeA.
7704
7705 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7706
7707 * docs/grub.texi (Internationalisation): New section.
7708
7709 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * docs/grub.texi (Loopback booting): New section.
7712
7713 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7714
7715 * util/grub-mkstandalone.in: Fix minor typo errors.
7716
7717 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7718
7719 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7720
7721 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7722 net/icmp.c and net/icmp6.c.
7723 (http): New module.
7724 (priority_queue): Likewise.
7725 * grub-core/io/bufio.c: Rewritten.
7726 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7727 TYPE_WITH_CONFIGFILE_OPTION.
7728 (legacy_commands): Add bootp and dhcp.
7729 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7730 (grub_legacy_parse): Likewise.
7731 * grub-core/lib/priority_queue.c: New file.
7732 * grub-core/net/arp.c: Add missing license header.
7733 (arp_find_entry): Removed.
7734 (arp_find_entry): Likewise.
7735 (grub_net_arp_resolve): Rename to ...
7736 (grub_net_arp_send_request): ...this.
7737 (grub_net_arp_receive): New card argument.
7738 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7739 Set router and DNS server.
7740 (grub_net_configure_by_dhcp_ack): Handle routing information.
7741 (grub_cmd_bootp): Set checksum.
7742 (grub_bootp_init): Remove net_dhcp.
7743 * grub-core/net/dns.c: New file.
7744 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7745 completion.
7746 (get_card_packet): Handle allocation.
7747 (grub_efinet_findcards): Set mtu.
7748 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7749 (get_card_packet): Handle allocation.
7750 (emucard): Set mtu.
7751 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7752 (GRUB_MOD_INIT): Set mtu.
7753 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7754 mtu.
7755 (get_card_packet): Handle allocation.
7756 (grub_ofnet_findcards): Set mtu.
7757 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7758 assert.
7759 (grub_net_recv_ethernet_packet): Handle IPv6.
7760 * grub-core/net/http.c: New file.
7761 * grub-core/net/icmp.c: Likewise.
7762 * grub-core/net/icmp6.c: Likewise.
7763 * grub-core/net/ip.c (ip6addr): New type.
7764 (ip6hdr): Likewise.
7765 (reassemble): Likewise.
7766 (cmp): New function.
7767 (reassembles): New variable.
7768 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
7769 (id): New variable.
7770 (send_fragmented): New function.
7771 (grub_net_send_ip_packet): Rename to ...
7772 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
7773 Handle non-UDP.
7774 (grub_net_recv_ip_packets): Rename to ...
7775 (handle_dgram): ... this. Check checksum. Handle non-UDP.
7776 (free_rsm): New function.
7777 (free_old_fragments): Likewise.
7778 (grub_net_recv_ip4_packets): New function.
7779 (grub_net_send_ip6_packet): Likewise.
7780 (grub_net_send_ip_packet): Likewise.
7781 (grub_net_recv_ip6_packets): Likewise.
7782 (grub_net_recv_ip_packets): Likewise.
7783 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
7784 (LINK_LAYER_CACHE_SIZE): New const.
7785 (link_layer_find_entry): New function.
7786 (grub_net_link_layer_add_address): Likewise.
7787 (grub_net_link_layer_resolve_check): Likewise.
7788 (grub_net_link_layer_resolve): Likewise.
7789 (grub_net_ipv6_get_slaac): Likewise.
7790 (grub_net_ipv6_get_link_local): Likewise.
7791 (grub_cmd_ipv6_autoconf): Likewise.
7792 (parse_ip): Handle one number representation.
7793 (parse_ip6): New functoion.
7794 (match_net): Handle IPv6.
7795 (grub_net_resolve_address): Handle IPv6 and DNS.
7796 (grub_net_resolve_net_address): Handle IPv6.
7797 (route_cmp): New function.
7798 (grub_net_route_address): Find best route.
7799 (grub_net_addr_to_str): Handle IPv6.
7800 (grub_net_addr_cmp): New function.
7801 (grub_net_add_addr): Register local route.
7802 (print_net_address): Handle net address.
7803 (grub_net_poll_cards): Retransmit TCP.
7804 (grub_net_poll_cards_idle_real): Likewise.
7805 (have_ahead): New function.
7806 (grub_net_seek_real): Use underlying seek.
7807 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
7808 * grub-core/net/tcp.c: New file.
7809 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
7810 (cmp): New function.
7811 (ack): Likewise.
7812 (tftp_receive): Handle unordered input.
7813 (destroy_pq): New function.
7814 (tftp_close): Close pq.
7815 * grub-core/net/udp.c: Put missing license header.
7816 (grub_net_udp_socket): New function.
7817 (udp_socket_register): Likewise.
7818 (grub_net_udp_close): Likewise.
7819 (grub_net_recv_udp_packet): Check checksum.
7820 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
7821 * include/grub/misc.h (grub_memchr): New function.
7822 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
7823 (grub_net_card_driver): Return buf in recv.
7824 (grub_net_slaac_mac_list): New struct.
7825 (grub_network_level_protocol_id): Add ipv6.
7826 (grub_net_network_level_addr): Likewise.
7827 (grub_net_network_level_net_addr): Likewise.
7828 (grub_net_app_protocol): Add seek.
7829 (grub_net_socket): Removed.
7830 (grub_net_sockets): Likewise.
7831 (grub_net_socket_register): Likewise.
7832 (grub_net_socket_unregister): Likewise.
7833 (FOR_NET_SOCKETS): Likewise.
7834 (grub_net_add_addr): Add const.
7835 (GRUB_NET_BOOTP_*): New enum.
7836 (grub_net_addr_cmp): New proto.
7837 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
7838 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
7839 (grub_net_hwaddr_to_str): NEw proto.
7840 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
7841 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
7842 (grub_dns_init): New proto.
7843 (grub_dns_fini): Likewise.
7844 (grub_net_tcp_retransmit): Likewise.
7845 (grub_net_link_layer_add_address): Likewise.
7846 (grub_net_link_layer_resolve_check): Likewise.
7847 (grub_net_link_layer_resolve): Likewise.
7848 (grub_net_dns_lookup): Likewise.
7849 (grub_net_add_dns_server): Likewise.
7850 (grub_net_remove_dns_server): Likewise.
7851 (GRUB_NET_TRIES): New const.
7852 (GRUB_NET_INTERVAL): Likewise.
7853 * include/grub/net/arp.h: Mostly rewritten.
7854 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
7855 * include/grub/net/ip.h: Mostly rewritten.
7856 * include/grub/net/netbuff.h: Indent.
7857 * include/grub/net/tcp.h: New file.
7858 * include/grub/net/udp.h: Mostly rewritten.
7859 * include/grub/priority_queue.h: New file.
7860 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
7861 (grub_swap_bytes64_compile_time): Likewise.
7862 (grub_cpu_to_be16_compile_time): Likewise.
7863 (grub_cpu_to_be32_compile_time): Likewise.
7864 (grub_cpu_to_be64_compile_time): Likewise.
7865 (grub_be_to_cpu64_compile_time): Likewise.
7866
7867 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7868
7869 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
7870 UINT_TO_PTR with cast.
7871
7872 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7873
7874 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
7875 don't use them.
7876
7877 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7878
7879 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
7880 already there.
7881
7882 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7883
7884 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
7885 confusing ipxe.
7886
7887 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7888
7889 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
7890 Add missing const attribute.
7891 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
7892 Likewise.
7893 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
7894 Likewise.
7895
7896 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7897
7898 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
7899 misaligned access.
7900 (serpent_setkey): Likewise.
7901 (serpent_encrypt_internal): Likewise.
7902 (serpent_decrypt_internal): Likewise.
7903 (serpent_encrypt): Don't put an alignment-increasing cast.
7904 (serpent_decrypt): Likewise.
7905 (serpent_test): Likewise.
7906
7907 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
7910
7911 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7912
7913 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
7914
7915 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
7916 grub_addr_t casts.
7917 (PTR_TO_UINT64): Likewise.
7918 (PTR_TO_UINT32): Likewise.
7919
7920 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7921
7922 * util/grub-mkimage.c (generate_image): Decrease the higher limit
7923 because of stack.
7924 * util/grub-setup.c (setup): Don't add redundancy past the higher load
7925 limit.
7926
7927 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7928
7929 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
7930 text_width > available width a bit more gracefully.
7931
7932 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
7935 current address calculation.
7936
7937 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7938
7939 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
7940 stack.
7941 (encode_block): Likewise.
7942
7943 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7944
7945 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
7946 certainety.
7947
7948 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7949
7950 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
7951 non-RS part to avoid RS messing with GDT.
7952 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7953 Increase to suit in realmode routines.
7954
7955 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7956
7957 * grub-core/kern/i386/realmode.S: Increase alignment.
7958 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
7959
7960 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7961
7962 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
7963 be deterministic.
7964 (syndroms): Compute 0 syndrom.
7965 (rs_recover): Use 0 syndrom.
7966
7967 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7968
7969 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
7970
7971 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7972
7973 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
7974 brackets.
7975
7976 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7977
7978 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
7979 account.
7980 (get_top_pad): Likewise.
7981 (get_right_pad): Likewise.
7982 (get_bottom_pad): Likewise.
7983
7984 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7985
7986 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
7987
7988 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7989
7990 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
7991 attribute as the structure isn't guaranteed to be properly aligned.
7992 (grub_efi_pci_device_path): Likewise.
7993 (grub_efi_pccard_device_path): Likewise.
7994 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
7995 specify the size of `memory_type'.
7996 (grub_efi_vendor_device_path): Likewise.
7997 (grub_efi_controller_device_path): Likewise.
7998 (grub_efi_acpi_device_path): Likewise.
7999 (grub_efi_expanded_acpi_device_path): Likewise.
8000 (grub_efi_atapi_device_path): Likewise.
8001 (grub_efi_scsi_device_path): Likewise.
8002 (grub_efi_fibre_channel_device_path): Likewise.
8003 (grub_efi_1394_device_path): Likewise.
8004 (grub_efi_usb_device_path): Likewise.
8005 (grub_efi_usb_class_device_path): Likewise.
8006 (grub_efi_i2o_device_path): Likewise.
8007 (grub_efi_mac_address_device_path): Likewise.
8008 (grub_efi_ipv4_device_path): Likewise.
8009 (grub_efi_ipv6_device_path): Likewise.
8010 (grub_efi_infiniband_device_path): Likewise.
8011 (grub_efi_uart_device_path): Likewise.
8012 (grub_efi_vendor_messaging_device_path): Likewise.
8013 (grub_efi_hard_drive_device_path): Likewise.
8014 (grub_efi_cdrom_device_path): Likewise.
8015 (grub_efi_vendor_media_device_path): Likewise.
8016 (grub_efi_file_path_device_path): Likewise.
8017 (grub_efi_protocol_device_path): Likewise.
8018 (grub_efi_piwg_device_path): Likewise.
8019 (grub_efi_bios_device_path): Likewise.
8020
8021 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8022
8023 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8024 (grub_ucs4_to_utf8_alloc): Likewise.
8025 (grub_ucs4_to_utf8): Likewise.
8026 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8027 (grub_ucs4_to_utf8_alloc): Likewise.
8028
8029 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 AFFS never uses unicode.
8032
8033 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8034 (grub_latin1_to_utf8): New inline function.
8035 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8036
8037 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8038
8039 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8040 overflow.
8041
8042 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8043
8044 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8045 (grub_squash_dirent_header): Likewise.
8046 (read_chunk): Don't double swap.
8047 (grub_squash_iterate_dir): Fix swap sizes.
8048
8049 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8052
8053 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8054
8055 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8056 (grub_hfs_iterate_dir): Likewise.
8057
8058 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 Fix video on platforms where unaligned access is forbidden.
8061 Make several optimisations while on it.
8062
8063 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8064 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8065 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8066 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8067 Disable.
8068 (grub_video_fbblit_replace_16bit_1bit):
8069 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8070 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8071 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8072 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8073 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8074 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8075 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8076 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8077 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8078 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8079 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8080 (grub_video_fbblit_replace_index_RGB888): Likewise.
8081 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8082 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8083 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8084 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8085 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8086 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8087 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8088 Disable.
8089 (grub_video_fbblit_blend_XXX565_1bit):
8090 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8091 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8092 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8093 void *.
8094 * grub-core/video/fb/video_fb.c (common_blitter)
8095 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8096 (grub_video_fb_create_render_target_from_pointer)
8097 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8098 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8099 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8100 definition.
8101 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8102
8103 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8106 HH22 and HM10 relocations.
8107
8108 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8111
8112 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8113
8114 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8115 allocation succeeded.
8116
8117 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8118
8119 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8120 argument a u8 pointer. All users updated.
8121 Handle unaligned buffers.
8122
8123 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8124
8125 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8126 add_part to workaround compiler bug.
8127
8128 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8129
8130 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8131
8132 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8133
8134 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8135 Reserve alignment invariants.
8136 (grub_multiboot_load): Likewise.
8137 (retrieve_video_parameters): Likewise.
8138 (grub_multiboot_make_mbi): Likewise.
8139
8140 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8141
8142 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8143 incorrect pointer.
8144
8145 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8146
8147 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8148 (grub_pata_pio_write): Likewise.
8149
8150 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8151
8152 Add noreturn attributes and remove unreachable code.
8153
8154 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8155 code.
8156 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8157 code. Mark as noreturn.
8158 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8159 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8160 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8161 unreachable code.
8162 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8163 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8164 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8165 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8166 * include/grub/kernel.h (grub_main): Mark as noreturn.
8167 * include/grub/reader.h (grub_rescue_run): Likewise.
8168
8169 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8172 redundant declaration.
8173
8174 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8175
8176 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8177 redundant declaration.
8178 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8179
8180 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8181
8182 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8183 to ensure alignment.
8184 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8185 alignment. Ensure tmp alignment.
8186 (grub_cmd_hdparm): Ensure buf alignment.
8187 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8188 to ensure alignment.
8189 (grub_ata_dumpinfo): Ensure text alignment.
8190 (grub_atapi_identify): Preserve alignment invariant.
8191 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8192
8193 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8194
8195 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8196 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8197 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8198 * include/grub/misc.h (grub_reboot)
8199 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8200 (grub_halt) [__mips__]: Likewise.
8201
8202 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8205 Remove redundant declaration.
8206 (grub_mmap_get_post64): Likewise.
8207 (grub_mmap_get_upper): Likewise.
8208 (grub_mmap_get_lower): Likewise.
8209
8210 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8211
8212 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8213 uint32_t * to ensure alignment.
8214 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8215
8216 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8217
8218 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8219 uint16_t * to ensure alignment.
8220 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8221 alignment.
8222
8223 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8224
8225 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8226 to ensure alignment.
8227 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8228
8229 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8230
8231 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8232 Handle unaligned pointers.
8233 (u32at): Likewise.
8234 (u64at): Likewise.
8235 (fixup): Use byte access instead of v16at.
8236 (find_attr): Fix imporper usage of v32at.
8237 (read_data): Likewise.
8238 (list_file): Handle byte-swapping and unaligned strings.
8239 (grub_ntfs_label): Likewise.
8240
8241 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8242
8243 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8244 as it's not necessarily aligned.
8245
8246 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8247
8248 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8249 redundant declaration.
8250 (grub_serial_init): Likewise.
8251 (grub_terminfo_init): Likewise.
8252
8253 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8254
8255 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8256 function.
8257 (ZAP_HASH_IDX): Likewise.
8258 (ZAP_LEAF_HASH_SHIFT): Likewise.
8259 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8260 (LEAF_HASH): Likewise.
8261 (ZAP_LEAF_NUMCHUNKS): Likewise.
8262 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8263 alignment invariants. Return pointer. All users updated.
8264 (ZAP_LEAF_ENTRY): Make into inline function.
8265 (NBBY): Removed.
8266 (xor): LIkewise.
8267 (xor_out): Use grub_crypto_xor.
8268 (dnode_get_path): Use grub_get_unaligned.
8269 (nvlist_find_value): Likewise.
8270 (grub_zfs_nvlist_lookup_uint64): Likewise.
8271 (grub_zfs_nvlist_lookup_string): Likewise.
8272 (get_nvlist_size): Likewise.
8273 (grub_zfs_open): Likewise.
8274 (fill_fs_info): Likewise.
8275 (grub_zfs_dir): Likewise.
8276 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8277 alignment invariants.
8278 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8279 necessarily aligned.
8280
8281 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8282
8283 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8284
8285 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8286
8287 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8288 arithmetic to conserve alignment invariants.
8289
8290 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8291
8292 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8293 redundant declaration.
8294 (grub_efiemu_mm_obtain_request): Likewise.
8295 (grub_efiemu_prepare): Likewise.
8296
8297 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8298
8299 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8300 to match types.
8301
8302 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8303
8304 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8305 case of aunaligned recptr.
8306 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8307 alignment.
8308 (grub_hfsplus_btree_search): Handle unaligned index.
8309
8310 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8311
8312 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8313 to get freetag and skip.
8314
8315 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8318 array.
8319 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8320 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8321
8322 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8323
8324 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8325 name for checksum and fix allocation algorithm.
8326
8327 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8328
8329 * include/grub/types.h (grub_properly_aligned_t): New type.
8330 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8331 (grub_get_unaligned16): Add explicit casts.
8332 (grub_get_unaligned32): Likewise.
8333 (grub_get_unaligned64): Likewise.
8334 (grub_set_unaligned16): New function.
8335 (grub_set_unaligned32): Likewise.
8336
8337 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8338
8339 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8340
8341 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8342
8343 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8344 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8345 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8346
8347 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8350 conditionals.
8351
8352 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8353
8354 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8355 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8356
8357 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8358
8359 Unify and improve RAID and crypto xor.
8360
8361 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8362 changed to grub_crypto_xor
8363 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8364 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8365 Use bigger types when possible.
8366
8367 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8368
8369 * grub-core/disk/raid.c (scan_devices): Fix condition.
8370
8371 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8372
8373 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8374 Make name a const ptr.
8375
8376 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8377
8378 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8379 first argument a const pointer.
8380 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8381 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8382 proto.
8383 (grub_children_iterate): Likewise.
8384 (grub_machine_mmap_iterate): Remove redundant declaration.
8385
8386 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8387
8388 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8389 (grub_cmd_acpi) [!x86]: Disable EBDA.
8390
8391 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8392
8393 Enable UTF8 in gnulib regexp.
8394
8395 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8396 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8397 (isupper): Use grub_isupper.
8398 (isascii): New inline function.
8399 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8400 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8401 * grub-core/normal/charset.c (grub_utf8_process): New function.
8402 (grub_utf8_to_utf16): Use grub_utf8_process.
8403 (grub_encode_utf8_character): New function.
8404 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8405 * include/grub/charset.h (grub_utf8_process): New declaration.
8406 (grub_encode_utf8_character): Likewise.
8407 * include/grub/misc.h (grub_islower): New inline function.
8408 (grub_isupper): Likewise.
8409 (grub_strchrsub): Moved down to fix the definitions.
8410
8411 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8412
8413 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8414 specification.
8415
8416 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8417
8418 * include/grub/loader.h (grub_loader_register_preboot_hook):
8419 Use struct preboot * and not void * for handle. All users updated.
8420 (grub_loader_unregister_preboot_hook): Likewise.
8421
8422 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8425 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8426 UTF-16-BE. All users updated.
8427 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8428 (grub_hfsplus_iterate_dir): Likewise.
8429 (grub_hfsplus_label): Likewise.
8430
8431 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8432
8433 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8434
8435 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8436
8437 Add missing const qualifiers.
8438
8439 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8440 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8441 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8442 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8443 (grub_lvm_check_flag): Likewise.
8444 * grub-core/efiemu/i386/coredetect.c
8445 (grub_efiemu_get_default_core_name): Likewise
8446 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8447 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8448 * grub-core/fs/ntfs.c (fixup): Likewise.
8449 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8450 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8451 (fzap_lookup): Likewise.
8452 (zap_lookup): Likewise.
8453 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8454 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8455 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8456 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8457 (grub_freebsd_add_meta_module): Likewise.
8458 (grub_cmd_freebsd_module): Likewise.
8459 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8460 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8461 (grub_xnu_writetree_get_size): Likewise.
8462 (grub_xnu_writetree_toheap_real): Likewise.
8463 (grub_xnu_find_key): Likewise.
8464 (grub_xnu_create_key): Likewise.
8465 (grub_xnu_create_value): Likewise.
8466 (grub_xnu_register_memory): Likewise.
8467 (grub_xnu_check_os_bundle_required): Likewise.
8468 (grub_xnu_scan_dir_for_kexts): Likewise.
8469 (grub_xnu_load_kext_from_dir): Likewise.
8470 * grub-core/normal/color.c (color_list): Likewise.
8471 * grub-core/normal/completion.c (current_word): Likewise.
8472 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8473 * grub-core/term/serial.c (grub_serial_find): Likewise.
8474 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8475 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8476 Likewise.
8477 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8478 (grub_freebsd_add_meta_module): Likewise.
8479 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8480 * include/grub/net.h (grub_net_card_driver): Likewise.
8481 (grub_net_card): Likewise.
8482 (grub_net_app_protocol): Likewise.
8483 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8484 * include/grub/serial.h (grub_serial_find): Likewise.
8485 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8486 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8487 (grub_xnu_create_value): Likewise.
8488 (grub_xnu_find_key): Likewise.
8489 (grub_xnu_scan_dir_for_kexts): Likewise.
8490 (grub_xnu_load_kext_from_dir): Likewise.
8491
8492 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8493 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8494 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8495 Moved from here ...
8496 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8497
8498 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8499
8500 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8501
8502 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8503
8504 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8505 (read_device): Fix size calculation.
8506
8507 2011-11-25 Robert Millan <rmh@gnu.org>
8508
8509 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8510 (find_root_device_from_libzfs): Add zpool output parser to be used
8511 as fallback when libzfs isn't available.
8512
8513 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8514
8515 * po/Makefile.in.in: Add missing escape-continuation.
8516
8517 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8518
8519 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8520
8521 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8522
8523 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8524
8525 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8526
8527 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8528
8529 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8530
8531 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8532
8533 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 * grub-core/lib/adler32.c: Add missing license specification.
8536 * grub-core/lib/crc64.c: Likewise.
8537 * grub-core/loader/i386/pc/plan9.c: Likewise.
8538 * grub-core/partmap/plan.c: Likewise.
8539
8540 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8541
8542 Add facility to debug GRUB with gdb under qemu.
8543
8544 * grub-core/gdb_grub.in: New file.
8545 * grub-core/gmodule.pl.in: Likewise.
8546 * grub-core/Makefile.core.def (gmodule.pl): New script.
8547 (gdb_grub): Likewise.
8548
8549 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8550
8551 * util/grub-mount.c (argp_parser): Accept relative pathes.
8552 * util/grub-fstest.c (argp_parser): Likewise.
8553
8554 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 Plan9 support.
8557
8558 * Makefile.util.def (libgrubmods): Add
8559 grub-core/partmap/plan.c.
8560 * docs/grub.texi: Notice Plan9 support.
8561 * grub-core/Makefile.core.def (plan9): New module.
8562 (part_plan): Likewise.
8563 * grub-core/loader/i386/pc/plan9.c: New file.
8564 * grub-core/partmap/plan.c: Likewise.
8565 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8566 define.
8567 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8568 * include/grub/mm.h (grub_extend_alloc): New inline function.
8569
8570 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8571
8572 Make Reed-Solomon faster by using power of generator representation of
8573 GF(256)*.
8574
8575 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8576 (gf_double_t): Likewise.
8577 (gf_invert): Removed.
8578 (gf_powx): New array.
8579 (gf_powx_inv): Likewise.
8580 (scratch): Move higher.
8581 (gf_reduce): Removed.
8582 (gf_mul): Use powx.
8583 (gf_invert): Likewise.
8584 (init_inverts): Replaced with ...
8585 (init_powx): ...this. All users updated.
8586 (pol_evaluate): Replace multiplications with additions.
8587 (rs_encode): Likewise.
8588 (gauss_eliminate): Call gf_invert.
8589 (grub_reed_solomon_add_redundancy): Call init_powx.
8590 (grub_reed_solomon_recover): Call init_powx unconditionally.
8591
8592 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8593
8594 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8595
8596 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8597
8598 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8599 disk->partiton for safety.
8600
8601 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8604 Fix a memory leak.
8605 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8606
8607 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8610
8611 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8612
8613 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8614
8615 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8616
8617 Fix spaces handling in proc/self/mountinfo.
8618
8619 * util/getroot.c (unescape): New function.
8620 (grub_find_root_device_from_mountinfo): Use unescape.
8621
8622 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8623
8624 Support ZFS embedding.
8625
8626 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8627 (grub_zfs_fs): Register grub_zfs_embed.
8628
8629 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 Fix MIPS compilation.
8632
8633 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8634 * include/grub/offsets.h: Rename decompressor fields from
8635 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8636 * util/grub-mkimage.c (image_targets): Use new names.
8637
8638 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8639
8640 Defer multiboot device parsing until we're in compressed part.
8641
8642 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8643 bsd_part. setdevice has fallen into disuse.
8644 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8645 (bsd_part): Likewise.
8646 (boot_dev): New variable.
8647 (multiboot_trampoline): Don't parse multiboot device.
8648 Pass multiboot device in %edx.
8649 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8650 grub_boot_device.
8651 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8652 Likewise.
8653 * grub-core/kern/i386/pc/startup.S: Save edx.
8654 (grub_boot_drive): Removed.
8655 (grub_install_dos_part): Likewise.
8656 (grub_install_bsd_part): Likewise.
8657 (grub_boot_device): New variable.
8658 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8659 (grub_install_bsd_part): Likewise.
8660 (grub_boot_drive): Likewise.
8661 (grub_boot_device): New variable.
8662 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8663 Removed.
8664 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8665 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8666 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8667 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8668 * util/grub-install.in: Remove redundant condition.
8669
8670 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 Fix bug introduced by previous commit.
8673
8674 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8675
8676 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8677
8678 Use decompressors framework on i386-pc. It increases core size
8679 by 46 bytes but improves compatibility and maintainability.
8680
8681 * grub-core/Makefile.core.def (lzma_decompress): New image.
8682 (kernel): Add i386_pc_ldflags.
8683 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8684 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8685 to real_to_prot, prot_to_real and device info.
8686 * include/grub/offsets.h: Renamed decompressor offsets.
8687 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8688 (image_target_desc): Remove raw_size and rename decompressor fields.
8689 (compress_kernel): Handle lzma.
8690 (generate_image): Handle decompressors on i386-pc.
8691
8692 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8693
8694 * configure.ac: Add -fno-asynchronous-unwind-tables.
8695
8696 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8697
8698 Move assembly code to C by using intwrap. It increases core size
8699 by 88 bytes but improves compatibility and maintainability.
8700
8701 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8702 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8703 ... here. Translated to C.
8704 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8705 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8706 ... here. Translated to C.
8707 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8708 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8709 ... here. Translated to C.
8710 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8711 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8712 ... here. Translated to C.
8713 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8714 * grub-core/term/i386/pc/console.c (grub_console_cls):
8715 ... here. Translated to C.
8716 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8717 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8718 ... here. Translated to C.
8719 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8720 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8721 Translated to C.
8722 * grub-core/term/i386/pc/console.c (int10_9): New function.
8723 (grub_console_putchar): Likewise.
8724 * include/grub/i386/pc/console.h: Removed the not anymore shared
8725 functions.
8726
8727 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8728
8729 Move grub_chainloader_real_boot out of the kernel.
8730
8731 * grub-core/Makefile.am: Remove machine/loader.h.
8732 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8733 Removed.
8734 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8735 variable.
8736 (grub_relocator16_keep_a20_enabled): Likewise.
8737 (grub_relocator16_boot): Fill new variables.
8738 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8739 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8740 relocator.
8741 (grub_chainloader_unload): Likewise.
8742 (grub_chainloader_cmd): Likewise.
8743 * include/grub/i386/pc/loader.h: Removed.
8744 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8745 and esi. All initialisers updated.
8746
8747 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8748 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8749
8750 * Makefile.util.def (grub-mount): New util.
8751 * .bzrignore: Add grub-mount.
8752 * configure.ac: Check for fuse and enable grub-mount if available.
8753 * docs/man/grub-mount.h2m: New file.
8754 * util/grub-mount.c: Likewise.
8755
8756 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 * grub-core/commands/efi/fixvideo.c: Gettextize.
8759 * grub-core/commands/hashsum.c: Likewise.
8760 * grub-core/commands/i386/cmostest.c: Likewise.
8761 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8762 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8763 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8764 * grub-core/commands/lsmmap.c: Likewise.
8765 * grub-core/commands/menuentry.c: Likewise.
8766 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8767 * grub-core/commands/setpci.c: Likewise.
8768 * grub-core/loader/i386/bsd.c: Likewise.
8769 * grub-core/loader/i386/linux.c: Likewise.
8770 * util/getroot.c: Likewise.
8771 * util/grub-editenv.c: Likewise.
8772 * util/grub-fstest.c: Likewise.
8773 * util/grub-mkfont.c: Likewise.
8774 * util/grub-mkimage.c: Likewise.
8775 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8776 * util/grub-pe2elf.c: Likewise.
8777 * util/grub-probe.c: Likewise.
8778 * util/grub-setup.c: Likewise.
8779 * util/ieee1275/ofpath.c: Likewise.
8780 * util/misc.c: Likewise.
8781 * util/raid.c: Likewise.
8782
8783 2011-11-11 Robert Millan <rmh@gnu.org>
8784
8785 * util/getroot.c (grub_util_get_geom_abstraction): Remove
8786 __attribute__((unused)) from `os_dev', which *is* being used.
8787
8788 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
8791 forgotten define.
8792 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
8793 GRUB_IA64_DL_GOT_ALIGN.
8794 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
8795 GRUB_IA64_DL_TRAMP_ALIGN.
8796
8797 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8798
8799 Replace grub_fatal with normal errors in i386 linux loader.
8800
8801 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
8802 (allocate_pages): Check find_efi_mmap_size return value.
8803 (grub_e820_add_region): Return error.
8804 (grub_linux_boot): Check mmap return value.
8805
8806 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8807
8808 * grub-core/commands/acpihalt.c: Gettextized.
8809 * grub-core/commands/cacheinfo.c: Likewise.
8810 * grub-core/commands/cmp.c: Likewise.
8811 * grub-core/commands/efi/loadbios.c: Likewise.
8812 * grub-core/commands/gptsync.c: Likewise.
8813 * grub-core/commands/ieee1275/suspend.c: Likewise.
8814 * grub-core/commands/legacycfg.c: Likewise.
8815 * grub-core/commands/memrw.c: Likewise.
8816 * grub-core/commands/minicmd.c: Likewise.
8817 * grub-core/commands/parttool.c: Likewise.
8818 * grub-core/commands/time.c: Likewise.
8819 * grub-core/commands/videoinfo.c: Likewise.
8820 * grub-core/disk/geli.c: Likewise.
8821 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
8822 * grub-core/disk/luks.c: Likewise.
8823 * grub-core/disk/lvm.c: Likewise.
8824 * grub-core/font/font_cmd.c: Likewise.
8825 * grub-core/fs/zfs/zfscrypt.c: Likewise.
8826 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8827 * grub-core/gfxmenu/view.c: Likewise.
8828 * grub-core/kern/emu/hostdisk.c: Likewise.
8829 * grub-core/kern/emu/main.c: Likewise.
8830 * grub-core/kern/emu/misc.c: Likewise.
8831 * grub-core/kern/emu/mm.c: Likewise.
8832 * grub-core/kern/mips/arc/init.c: Likewise.
8833 * grub-core/kern/mips/loongson/init.c: Likewise.
8834 * grub-core/kern/partition.c: Likewise.
8835 * grub-core/lib/i386/halt.c: Likewise.
8836 * grub-core/lib/mips/arc/reboot.c: Likewise.
8837 * grub-core/lib/mips/loongson/reboot.c: Likewise.
8838 * grub-core/loader/i386/pc/chainloader.c: Likewise.
8839 * grub-core/loader/i386/xnu.c: Likewise.
8840 * grub-core/loader/multiboot.c: Likewise.
8841 * grub-core/net/bootp.c: Likewise.
8842 * grub-core/net/net.c: Likewise.
8843 * grub-core/normal/term.c: Likewise.
8844 * grub-core/partmap/bsdlabel.c: Likewise.
8845 * grub-core/parttool/msdospart.c: Likewise.
8846 * grub-core/term/gfxterm.c: Likewise.
8847 * grub-core/term/terminfo.c: Likewise.
8848 * grub-core/video/i386/pc/vbe.c: Likewise.
8849 * util/grub-menulst2cfg.c: Likewise.
8850 * util/grub-mkdevicemap.c: Likewise.
8851 * util/grub-mklayout.c: Likewise.
8852 * util/grub-mkrelpath.c: Likewise.
8853 * util/grub-script-check.c: Likewise.
8854 * util/ieee1275/grub-ofpathname.c: Likewise.
8855 * util/resolve.c: Likewise.
8856
8857 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 Support %1$d syntax.
8860
8861 * tests/printf_unit_test.c: New file.
8862 * Makefile.util.def (printf_test): New test.
8863 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
8864
8865 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8866
8867 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
8868 fix.
8869
8870 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8871
8872 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
8873 dprintf.
8874 * grub-core/font/font.c (grub_font_load): Likewise.
8875
8876 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 * util/grub-macho2img.c: Add comment concerning gettext.
8879 * grub-core/lib/legacy_parse.c: Likewise.
8880
8881 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8882
8883 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
8884 (grub_xvasprintf): Likewise.
8885
8886 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8887
8888 Add const keyword to grub_env_get and gettextize week days.
8889
8890 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
8891 (grub_read_hook_datetime): Return const char *.
8892 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
8893 updated.
8894 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8895 Mark for gettext.
8896 (grub_get_weekday_name): Return const char *. Call gettext.
8897 * grub-core/script/argv.c (grub_script_argv_append): Receive const
8898 char * and len as the argument. All users updated.
8899 (grub_script_argv_split_append): Receive const char *.
8900 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
8901 * include/grub/env.h (grub_env_get): Likewise.
8902 (grub_env_read_hook_t): Return const char *.
8903 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
8904 (grub_script_argv_split_append): Likewise.
8905
8906 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8907
8908 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
8909
8910 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
8913 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
8914
8915 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
8918 Fix prototype.
8919
8920 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 Fix mips compilation.
8923
8924 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
8925 normal decoder.
8926 (hashes): Use in embed decoder as well (for sizes).
8927 (dec_stream_header): Fix embed decompressor logic.
8928 (dec_stream_footer): Likewise.
8929
8930 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
8933 an error and not a fatal on unrecognised relocation types.
8934
8935 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8936
8937 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
8938 Issue error rather than printf on unknown arguments.
8939
8940 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
8943 Make buf a const.
8944
8945 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
8948 Fix module name.
8949
8950 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
8953 leftover debug printf.
8954
8955 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
8958
8959 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8960
8961 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
8962 A stylistic fix.
8963
8964 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8965
8966 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
8967
8968 2011-11-10 Shea Levy <slevy@tieronedesign.com>
8969
8970 Allow all modules to perform serial IO
8971
8972 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
8973 * include/grub/serial.h (grub_serial_port_configure): New inline
8974 function.
8975 (grub_serial_port_fetch): Likewise.
8976 (grub_serial_port_put): Likewise.
8977 (grub_serial_port_fini): Likewise.
8978 (grub_serial_find): New proto.
8979
8980 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 Put symlink at the end of the node and fix a potential
8983 memory corruption.
8984
8985 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
8986 Make symlink into an array.
8987 (set_rockridge): Set have_symlink and alloc_dirents.
8988 (grub_iso9660_read_symlink): Use new layout.
8989 (grub_iso9660_iterate_dir): Fix memory corruption.
8990 Use new layout.
8991 (grub_iso9660_dir): Set have_symlink.
8992 (grub_iso9660_open): Likewise.
8993
8994 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 Remove local keyword.
8997
8998 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
8999 (version_test_gt): Likewise.
9000 (version_find_latest): Likewise.
9001 (gettext_printf): Likewise.
9002 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9003
9004 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9007
9008 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 Fix ZFS memory and resource leaks.
9011
9012 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9013 All users updated.
9014 Free type on exit.
9015 (fill_vdev_info): New parameter inserted. All users updated.
9016 (check_pool_label): Likewise.
9017 (scan_disk): Likewise.
9018 (scan_devices): Close non-inserted disks.
9019 (fzap_iterate): Free l.
9020 (unmount_device): Free children descripto memory.
9021
9022 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9025 argument (access out of bounds).
9026
9027 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9028
9029 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9030 >= 6 drives.
9031
9032 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9035 Fix declaration.
9036
9037 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9038
9039 Fix several memory leaks.
9040
9041 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9042 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9043 (grub_cpio_dir): Likewise.
9044 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9045 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9046 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9047 (grub_romfs_label): Likewise.
9048 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9049 (squash_unmount): New function.
9050 (grub_squash_dir): Fix memory leak.
9051 (grub_squash_open): Likewise.
9052 (grub_squash_read): Likewise.
9053 (grub_squash_mtime): Likewise.
9054 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9055 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9056 * util/grub-fstest.c (fstest): Likewise.
9057
9058 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9061 avoid accessing beyond the array.
9062
9063 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9066
9067 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9068
9069 Several AFFS fixes.
9070
9071 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9072 (GRUB_AFFS_FLAG_FFS): Removed.
9073 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9074 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9075 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9076 (grub_fshelp_node): Make block 32-bit.
9077 Add block_cache and last_block_cache.
9078 (grub_affs_read_block): Fill and use block cache.
9079 (grub_affs_read_file): Removed.
9080 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9081 boot block.
9082 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9083 safety.
9084 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9085 space.
9086 (grub_affs_close): Free block cache.
9087 (grub_affs_read): Use grub_fshelp_read_file directly.
9088
9089 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9090
9091 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9092 with no error set.
9093
9094 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9095
9096 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9097 used variable.
9098 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9099 Likewise.
9100
9101 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9102
9103 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9104
9105 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9106 byteswap when needed.
9107
9108 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9109
9110 Fix FreeBSD compilation.
9111
9112 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9113 to avoid circular dependency.
9114 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9115 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9116 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9117
9118 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 Fix ZFS crypto error types.
9121
9122 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9123 (grub_gcm_decrypt): Likewise.
9124 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9125 from PBKDF2.
9126
9127 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 Illumos support.
9130
9131 * Makefile.util.def (10_illumos): New script.
9132 * configure.ac: Set COND_HOST_ILLUMOS.
9133 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9134 Support Illumos calls.
9135 (find_partition_start) [__sun__]: Likewise.
9136 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9137 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9138 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9139 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9140 device.
9141 * util/grub-probe.c (probe) [__sun__]: Do character check.
9142 * util/grub.d/10_illumos.in: New file.
9143
9144 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9145
9146 Support escaped commas in hostdisk.
9147
9148 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9149 (find_grub_drive): Use unescape_cmp.
9150 (make_device_name): Escape commas.
9151
9152 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9153
9154 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9155
9156 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9157
9158 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9159 variable.
9160
9161 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9162
9163 Support trampoline jumps on powerpc.
9164
9165 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9166 __ia64__ path.
9167 (grub_dl_load_segments): Set mod->sz.
9168 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9169 segments.
9170 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9171 (jump): Likewise.
9172 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9173 function.
9174 (trampoline): New struct.
9175 (trampoline_template): New const.
9176 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9177 * include/grub/dl.h (grub_dl): Add sz element.
9178 [__powerpc__]: Follow __ia64__.
9179 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9180 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9181 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9182 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9183
9184 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9185
9186 ZFS crypto support.
9187
9188 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9189 * grub-core/Makefile.core.def (zfscrypt): New module.
9190 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9191 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9192 it. All users updated.
9193 (grub_zfs_decrypt): New var.
9194 (grub_zfs_load_key): Likewise.
9195 (zio_checksum_functions): Add SHA256+MAC.
9196 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9197 (zio_read): Handle encrypted blocks.
9198 (zap_verify): Remove incorrect check.
9199 (fzap_iterate): Handle non-standard fzap.
9200 (zap_iterate): Likewise.
9201 (zap_iterate_u64): New function.
9202 (dnode_get_fullpath): Load keys.
9203 * grub-core/fs/zfs/zfscrypt.c: New file.
9204 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9205 (grub_crypto_ecb_encrypt): Make input const.
9206 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9207 (grub_crypto_ecb_encrypt): Make input const.
9208 (GRUB_CIPHER_AES): New macro.
9209 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9210 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9211 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9212 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9213 prefix. All users updated.
9214 (grub_zfs_add_key): New proto.
9215 (grub_zfs_decrypt): Likewise.
9216 (grub_zfs_load_key): Likewise.
9217 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9218 * util/grub-fstest.c (options): Add -K option.
9219 (argp_parser): Likewise.
9220
9221 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9222
9223 Support zle compression on ZFS.
9224
9225 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9226 (decomp_table): Add zle.
9227 * include/grub/zfs/zio.h (zio_compress): Add zle.
9228
9229 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 Support BtrFS embedding.
9232
9233 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9234 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9235 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9236 * util/grub-setup.c (setup): Use fs embedding if available.
9237 Add additional sanity check.
9238
9239 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9240
9241 * util/grub-install.in: Fix condition for config_opt.
9242
9243 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9244
9245 Support third redundancy strip on raidz3.
9246
9247 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9248 Return error on singularity. All users updated.
9249 (read_device): Don't stop on 3rd failure on raidz3.
9250
9251 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9252
9253 Support case-insensitive ZFS subvolumes.
9254
9255 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9256 All users updated.
9257 (zap_hash): Likewise.
9258 (name_cmp): New function.
9259 (zap_leaf_array_equal): New parameter case_insensitive.
9260 All users updated.
9261 (zap_leaf_lookup): Likewise.
9262 (fzap_lookup): Likewise.
9263 (zap_lookup): Likewise.
9264 (dnode_get_path): New parameter case_insensitive. Retrieve case
9265 sensitiviness of a volume. All users updated.
9266 (dnode_get_fullpath): New parameter case_insensitive.
9267 All users updated.
9268 (grub_zfs_dir): Set info.case_insensitiveness.
9269
9270 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9271
9272 Support second redundancy strip on raidz(2,3).
9273
9274 * grub-core/fs/zfs/zfs.c (powx): New array.
9275 (powx_inv): Likewise.
9276 (poly): New const.
9277 (xor_out): New function.
9278 (gf_mul): Likewise.
9279 (recovery): Likewise.
9280 (read_device): Use second redundancy strip.
9281
9282 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9283
9284 Use a power of generator representation of GF(256) multiplication group
9285 to save space time and complexity.
9286
9287 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9288 (raid6_table2): Likewise.
9289 (powx): New array.
9290 (powx_inv): Likewise.
9291 (poly): New const.
9292 (grub_raid_block_mul): Replace with ...
9293 (grub_raid_block_mulx): ...this.
9294 (grub_raid6_init_table): Rewritten.
9295 (grub_raid6_recover): Use power of generator representation.
9296
9297 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9298
9299 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9300 for the right device.
9301
9302 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9305 expected by grub-mkimage and it's more clear since there is no implicit
9306 padding.
9307
9308 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9309
9310 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9311 disk.
9312 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9313
9314 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9315
9316 * util/grub-mkrescue.in: Fix handling xorriso option.
9317
9318 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9319
9320 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9321 NULL.
9322
9323 2011-11-03 crocket <crockabiscuit@gmail.com>
9324
9325 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9326
9327 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9328
9329 XZ CRC64 and SHA256 support.
9330
9331 * Makefile.util.def (libgrubmods): Add crc64.c.
9332 * grub-core/Makefile.core.def (crc64): New module.
9333 * grub-core/lib/crc64.c: New file.
9334 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9335 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9336 Fix the type.
9337 (MAX_HASH_SIZE): New define.
9338 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9339 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9340 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9341 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9342 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9343 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9344 Handle non-crc32 hashes.
9345 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9346 (dec_stream_header): Handle non-crc32 hashes.
9347 (dec_stream_footer): Likewise.
9348 (dec_block_header): Likewise.
9349 (dec_main): Likewise.
9350 (xz_dec_init): Likewise.
9351 (xz_dec_reset): Likewise.
9352 (xz_dec_end): Likewise.
9353 * util/import_gcry.py: Add CRC64 line.
9354
9355 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9358 as well.
9359
9360 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9361
9362 Make reiserfs label retrieval similar to other *_label functions.
9363
9364 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9365 (REISERFS_MAX_LABEL_LENGTH): Removed.
9366 (REISERFS_LABEL_OFFSET): Likewise.
9367 (grub_reiserfs_label): Rewritten.
9368
9369 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9372 field.
9373
9374 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9375
9376 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9377
9378 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9379
9380 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9381 drive failure on both raidz and raidz2.
9382
9383 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9384
9385 Fix RAIDZ(2) for >= 5 devices.
9386
9387 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9388 asize argument. All users updated.
9389
9390 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9391
9392 Fix RAIDZ(2).
9393
9394 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9395 (fill_vdev_info_real): Set ashift.
9396 (read_device): Rewrite RAIDZ part based on reverse engineering.
9397
9398 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9399
9400 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9401 don't report potentially unavialiable fields in debug output.
9402 (find_path): Fix double-free and memory leak.
9403
9404 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9405
9406 Read label on UFS1.
9407
9408 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9409 (grub_ufs_fs): Always set .label.
9410
9411 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9412
9413 Use shifts in UFS.
9414
9415 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9416 (grub_ufs_data): New field log2_blksz.
9417 (grub_ufs_read_file): Use shifts.
9418 (grub_ufs_mount): Check block size and logarithm it.
9419
9420 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9421
9422 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9423 long symlinks.
9424
9425 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9426
9427 Handle symlinks and long names on tar and cpio.
9428
9429 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9430 (ATTR_FILE): Likewise.
9431 (ATTR_DIR): Likewise.
9432 (ATTR_LNK): Likewise.
9433 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9434 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9435 L and K entries.
9436 (grub_cpio_mount): Zero-fill data.
9437 (handle_symlink): New function.
9438 (grub_cpio_dir): Handle symlinks.
9439 (grub_cpio_open): Likewise.
9440 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9441
9442 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 Fix iso9660 filename limitations and fix memory leaks.
9445
9446 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9447 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9448
9449 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 Fix JFS file name length limitations.
9452
9453 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9454 (grub_jfs_diropen): Fix maximum filename length.
9455 (grub_jfs_getent): Fix filename length.
9456 (grub_jfs_lookup_symlink): Fix size checks.
9457
9458 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9461 string.
9462
9463 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9464
9465 Leverage BFS implementation to read AFS.
9466
9467 * Makefile.util.def (libgrubmods): Add afs.c.
9468 * grub-core/Makefile.core.def (afs): New module
9469 * grub-core/fs/afs.c: New file.
9470 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9471
9472 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9473
9474 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9475
9476 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9477
9478 * grub-core/fs/bfs.c: Run indent.
9479
9480 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 BFS implementation based on the specification.
9483
9484 * grub-core/fs/bfs.c: New file.
9485 * Makefile.util.def (libgrubmods): Add bfs.c.
9486 * grub-core/Makefile.core.def (bfs): New module.
9487
9488 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9489
9490 * util/grub-fstest.c (cmd_cp): Clarify error message.
9491 (cmd_cmp): Likewise.
9492
9493 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9494
9495 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9496 and befs_be.
9497
9498 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9499
9500 Remove afs and befs because of copyright problem.
9501
9502 * grub-core/fs/afs.c: Removed.
9503 * grub-core/fs/afs_be.c: Removed.
9504 * grub-core/fs/befs.c: Removed.
9505 * grub-core/fs/befs_be.c: Removed.
9506 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9507 * grub-core/Makefile.core.def (afs): Removed.
9508 (afs_be): Likewise.
9509 (befs): Likewise.
9510 (befs_be): Likewise.
9511
9512 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 Prefer rockridge over Joliet.
9515
9516 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9517 to ...
9518 (set_rockridge): ... here.
9519 (grub_iso9660_mount): Check rockridge on the primary label when
9520 discovering. Ignore Joliet if Rockridge is present.
9521
9522 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 Use shifts in nilfs2.
9525
9526 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9527 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9528 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9529 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9530 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9531 (grub_nilfs2_entries_per_block): Replaced with ...
9532 (grub_nilfs2_log_entries_per_block_log): ... this.
9533 (grub_nilfs2_blocks_per_group): Replaced with ...
9534 (grub_nilfs2_blocks_per_group_log): ... this.
9535 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9536 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9537 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9538 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9539 (grub_nilfs2_palloc_entry_offset): Replaced ...
9540 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9541 (grub_nilfs2_dat_translate): Use shifts.
9542 (grub_nilfs2_read_inode): Likewise.
9543 (GRUB_MOD_INIT): Ensure that logs are correct.
9544
9545 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9546
9547 Use shifts in minix filesystem.
9548
9549 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9550 (GRUB_MINIX_ZONE2SECT): Likewise.
9551 (grub_minix_data): Replace block_size with log_block_size.
9552 (grub_minix_read_file): Use shifts.
9553 (grub_minix_mount): Check block size and take a logarithm.
9554
9555 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9556
9557 Use shifts in squash4.
9558
9559 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9560 (squash_mount): Check block size and take logarithm.
9561 (direct_read): Use shifts.
9562
9563 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9564
9565 Correct befs block counting logic.
9566
9567 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9568 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9569 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9570 (grub_afs_read_inode): Use block_shift.
9571 (RANGE_SHIFT): New definition.
9572 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9573 unexpected conditions, use shifts and appropriate types.
9574 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9575
9576 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9577
9578 * grub-core/disk/raid.c (scan_devices): Check partition.
9579 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9580
9581 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9582
9583 Support BFS (befs) UUID.
9584
9585 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9586 (grub_afs_small_data_element_header): New struct.
9587 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9588 (grub_afs_read_attribute) [MODE_BFS]: New function.
9589 (grub_afs_iterate_dir): Allocate for complete inode.
9590 (grub_afs_mount): Likewise.
9591 (grub_afs_uuid) [MODE_BFS]: New function.
9592 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9593
9594 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9597 (zfs_unmount): Fix memory leak.
9598
9599 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 Support NTFS reparse points.
9602
9603 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9604 (symlink_descriptor): New struct.
9605 (grub_ntfs_read_symlink): New function.
9606 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9607 (grub_ntfs_open): Likewise.
9608
9609 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9612
9613 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 fstest xnu_uuid subcommand.
9616
9617 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9618 grub-core/commands/xnu_uuid.c.
9619 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9620 (fstest): Handle xnu_uuid.
9621 (options): Document xnu_uuid.
9622 (argp_parser): Parse xnu_uuid.
9623
9624 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9627 -l argument. Add newline at the end if printing.
9628 (GRUB_MOD_INIT): Document -l.
9629
9630 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9633
9634 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 ZFS multi-device and version 33 support.
9637
9638 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9639 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9640 (grub_zfs_data): Add multidev-ice-related fields.
9641 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9642 (dva_get_offset): Make dva const.
9643 (zfs_fetch_nvlist): New function.
9644 (fill_vdev_info_real): Likewise.
9645 (fill_vdev_info): Likewise.
9646 (check_pool_label): Likewise.
9647 (scan_disk): Likewise.
9648 (scan_devices): Likewise.
9649 (read_device): Likewise.
9650 (read_dva): Likewise.
9651 (zio_read_gang): Use read_dva.
9652 (zio_read_data): Likewise.
9653 (zap_leaf_lookup): Add missing endian conversion.
9654 (zap_verify): Add missing endian conversion. All users updated.
9655 (fzap_lookup): Likewise.
9656 (fzap_iterate): Likewise.
9657 (dnode_get_path): Handle SA bonus.
9658 (nvlist_find_value): Make input const. All users updated.
9659 (unmount_device): New function.
9660 (zfs_unmount): Use unmount_device.
9661 (zfs_mount): Use scan_disk.
9662 (zfs_mtime): New function.
9663 (grub_zfs_open): Handle system attributes.
9664 (fill_fs_info): Likewise.
9665 (grub_zfs_dir): Likewise.
9666 (grub_zfs_fs): Add mtime.
9667 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9668 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9669 (SA_MTIME_OFFSET): Likewise.
9670 (SA_SYMLINK_OFFSET): Likewise.
9671 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9672 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9673 (fstest): Support zfsinfo.
9674 (argp_parser): Likewise.
9675
9676 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9677
9678 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9679 error.
9680
9681 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9682
9683 ZFS fixes.
9684
9685 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9686 sharing the same block. Iterate over correct number of indices.
9687 (dnode_get_path): Handle symlinks correctly.
9688
9689 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9690
9691 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9692
9693 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 Read label on HFS+.
9696
9697 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9698 (grub_hfsplus_btree_search): Fix types.
9699 (grub_hfsplus_label): Implement.
9700
9701 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9702
9703 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9704
9705 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9708
9709 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 Fix symlink handling on iso9660.
9712
9713 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9714 All users updated.
9715 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9716 (grub_iso9660_read_symlink): Moved most of code ...
9717 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9718
9719 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9720
9721 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9722 Use union to avoid breaking strict-aliasing rules.
9723
9724 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9725
9726 Support multi-extent iso files.
9727
9728 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9729 Add node.
9730 (grub_fshelp_node): Revamp. All users updated.
9731 (FLAG_*): New enum.
9732 (read_node): New function.
9733 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9734 All users updated.
9735 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9736 (get_node_size): New function.
9737 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9738 entries.
9739 Fix memory leak on . and ..
9740 (grub_iso9660_read): Use read_node.
9741 (grub_iso9660_close): Free node.
9742
9743 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9744
9745 Fix tar 4G limit and handle paths containing dot.
9746
9747 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9748 (canonicalize): New function.
9749 (grub_cpio_find_file): Use canonicalize. Store offs in
9750 grub_disk_addr_t.
9751 (grub_cpio_dir): Use grub_disk_addr_t.
9752 (grub_cpio_open): Likewise.
9753
9754 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9755
9756 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9757
9758 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9759 unused flags.
9760 (grub_squash_inode): Add long_file and block_size.
9761 (grub_squash_cache_inode): New struct.
9762 (grub_squash_dirent): Make types into enum.
9763 (SQUASH_TYPE_LONG_REGULAR): New type.
9764 (grub_squash_frag_desc): Add field size.
9765 (SQUASH_BLOCK_FLAGS): New enum.
9766 (grub_squash_data): Use grub_squash_cache_inode.
9767 (grub_fshelp_node): Make ino_chunk 64-bit.
9768 (read_chunk): Minor argument change. All users updated.
9769 (squash_mount): Use correct le_to_cpu.
9770 (grub_squash_open): Handle LONG_REGULAR.
9771 (direct_read): New function.
9772 (grub_squash_read_data): Handle blocks correctly.
9773
9774 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9775
9776 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
9777
9778 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9779
9780 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
9781
9782 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9783
9784 Fix 2G limit on ZFS.
9785
9786 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
9787 types.
9788 (uberblock_verify): Likewise.
9789 (dmu_read): Likewise.
9790 (grub_zfs_read): Likewise. Remove invalid cast.
9791
9792 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9793
9794 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
9795 (grub_jfs_blkno): Fix incorrect shift.
9796 (grub_jfs_read_file): Use more appropriate types.
9797
9798 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 Support triple indirect on minix2 and minix3.
9801
9802 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
9803 Declare triple_indir_zone.
9804 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
9805 indirect.
9806
9807 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 Minix FS fixes.
9810
9811 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
9812 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
9813 Rename ctime to mtime. All users updated.
9814 (grub_minix_get_file_block): Fix types and double indirect computations.
9815
9816 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9817
9818 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
9819 if no label is found.
9820 (grub_fat_iterate_dir): Fix file size type.
9821 (grub_fat_iterate_dir): Likewise.
9822
9823 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9824
9825 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
9826 save some space.
9827 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9828 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9829
9830 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
9833
9834 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 * util/import_gcry.py: Accept space between # and include.
9837
9838 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9839
9840 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
9841
9842 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 Fine grainely disable warnings on lexer. Remove Wno-error on it.
9845
9846 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
9847 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
9848 yylex_strncpy.
9849 * grub-core/script/yylex.l: Add fine-grained #pragma.
9850
9851 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9852
9853 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
9854 New inline function.
9855 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
9856 Likewise.
9857 (memset) [GRUB_UTIL]: Likewise.
9858 (memcmp) [GRUB_UTIL]: Likewise.
9859
9860 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9861
9862 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
9863 inline function rather than a define.
9864
9865 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9866
9867 * util/grub-setup.c: Add missing include.
9868
9869 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * util/ieee1275/grub-ofpathname.c: Add missing include.
9872
9873 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9874
9875 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
9876 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
9877 Likewise.
9878
9879 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
9882 grub_memcmp usage.
9883
9884 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * util/grub-install.in: Add datarootdir as per automake manual
9887 suggestion.
9888 * util/grub-mknetdir.in: Likewise.
9889
9890 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
9893 suggestion.
9894 * util/grub.d/10_kfreebsd.in: Likewise.
9895 * util/grub.d/10_linux.in: Likewise.
9896 * util/grub.d/10_netbsd.in: Likewise.
9897 * util/grub.d/10_windows.in: Likewise.
9898 * util/grub.d/20_linux_xen.in: Likewise.
9899
9900 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 Remove redundant grub_kernel_image_size.
9903
9904 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
9905 _edata and _start.
9906 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
9907 the small code. It moves it only by few bytes but simplifies the code.
9908 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
9909 _start.
9910 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
9911 (grub_kernel_image_size): Removed.
9912 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
9913 (grub_kernel_image_size): Removed.
9914 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
9915 compiled with Apple toolchain.
9916 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
9917 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
9918 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
9919 (grub_total_module_size): Likewise.
9920 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
9921 Removed.
9922 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
9923 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
9924 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9925 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
9926 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
9927 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
9928 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
9929 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
9930 Removed.
9931 (grub_total_module_size): Removed.
9932 * util/grub-mkimage.c (image_target_desc): Remove image_size.
9933 (image_targets): Likewise.
9934 Set .compressed_size to no field on sparc.
9935 (generate_image): Remove kernel_image_size handling.
9936
9937 2011-10-19 Szymon Janc <szymon@janc.net.pl>
9938
9939 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
9940 NULL pointer dereference.
9941
9942 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9943
9944 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
9945 done with a dedicated section.
9946
9947 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
9948 Ensure the correct position of boot_path.
9949 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
9950 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
9951 other fields.
9952 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
9953 * include/grub/boot.h: Removed. All references removed.
9954 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9955 Removed.
9956 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
9957
9958 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
9961 name.
9962
9963 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9964
9965 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
9966
9967 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9968
9969 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9970 Don't add the bogus brackets.
9971
9972 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9973
9974 ExFAT support.
9975
9976 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
9977 * grub-core/Makefile.core.def (exfat): New module.
9978 * grub-core/fs/exfat.c: New file.
9979 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
9980 (GRUB_FAT_ATTR_*): Make into an enum.
9981 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
9982 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
9983 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
9984 (GRUB_FAT_MAXFILE): Removed.
9985 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
9986 (grub_current_fat_bpb_t): New type.
9987 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
9988 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
9989 (grub_fat_dir_node_t): New type.
9990 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
9991 (fat_log2) [MODE_EXFAT]: Removed.
9992 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
9993 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
9994 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
9995 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
9996 (grub_fat_label) [MODE_EXFAT]: New function.
9997 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
9998 reserved_first_sector to 0.
9999
10000 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10001
10002 Move grub_reboot out of the kernel.
10003
10004 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10005 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10006 * grub-core/lib/efi/reboot.c: ... here.
10007 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10008 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10009 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10010 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10011 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10012 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10013 * grub-core/lib/ieee1275/reboot.c: ... here.
10014 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10015 * grub-core/lib/mips/arc/reboot.c: ... here.
10016 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10017 * grub-core/lib/mips/loongson/reboot.c: ...here.
10018 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10019 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10020 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10021 * include/grub/i386/reboot.h: New file.
10022 * include/grub/mips/loongson/ec.h: Fix includes.
10023 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10024 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10025 * grub-core/lib/i386/reboot.c: New file.
10026
10027 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 Make grub_prefix into module to fix the arbitrary limit and save
10030 some space.
10031
10032 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10033 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10034 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10035 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10036 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10037 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10038 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10039 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10040 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10041 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10042 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10043 * include/grub/ia64/efi/kernel.h: Removed.
10044 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10045 (grub_prefix): Removed.
10046 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10047 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10048 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10049 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10050 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10051 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10052 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10053 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10054 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10055 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10056 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10057 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10058 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10059 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10060 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10061 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10062 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10063 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10064 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10065 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10066 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10067 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10068 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10069 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10070 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10071 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10072 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10073 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10074 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10075 from module.
10076 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10077 prefix_end.
10078 (image_targets): Likewise.
10079 (generate_image): Put prefix as a module.
10080
10081 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 Replace grub_module_iterate with FOR_MODULES.
10084
10085 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10086 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10087 (grub_efi_modules_addr): ...this.
10088 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10089 (grub_efi_init): Set grub_modbase.
10090 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10091 (grub_modbase): New variable.
10092 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10093 (grub_modbase): New variable.
10094 (grub_machine_init): Set grub_modbase.
10095 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10096 (grub_modbase): New variable.
10097 (grub_machine_init): Set grub_modbase.
10098 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10099 (grub_modbase): New variable.
10100 (grub_machine_init): Set grub_modbase.
10101 * grub-core/kern/main.c (grub_module_iterate): Remove.
10102 (grub_modules_get_end): Use grub_modbase.
10103 (grub_load_modules): Use FOR_MODULES.
10104 (grub_load_config): Likewise.
10105 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10106 (grub_modbase): New variable.
10107 (grub_machine_init): Set grub_modbase.
10108 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10109 (grub_modbase): New variable.
10110 (grub_machine_init): Set grub_modbase.
10111 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10112 Removed.
10113 (grub_modbase): New variable.
10114 (grub_machine_init): Set grub_modbase.
10115 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10116 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10117 (grub_module_iterate): Likewise.
10118 (grub_modbase): New variable declaration.
10119 (FOR_MODULES): New macro.
10120
10121 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10124 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10125
10126 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10127
10128 Fix few obvious type discrepancies.
10129
10130 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10131 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10132 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10133 variable.
10134 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10135 and connected types.
10136 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10137 offset.
10138 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10139 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10140 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10141 and connected types.
10142
10143 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10144
10145 Fix python 3.x incompatibilities.
10146
10147 * gentpl.py: Put brackets around print strings.
10148 * util/import_gcry.py: Open explicitly as utf-8.
10149 Use in instead of has_key.
10150
10151 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10152
10153 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10154 (GRUB_XFS_INO_AGBITS): Make into inline function.
10155 (GRUB_XFS_INO_INOINAG): Likewise.
10156 (GRUB_XFS_INO_AG): Likewise.
10157 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10158 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10159 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10160 (GRUB_XFS_EXTENT_SIZE): Likewise.
10161 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10162 (GRUB_XFS_NEXT_DIRENT): Likewise.
10163 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10164 (grub_xfs_read_file): Fix offset type.
10165
10166 2011-10-15 Robert Millan <rmh@gnu.org>
10167
10168 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10169
10170 2011-10-15 Robert Millan <rmh@gnu.org>
10171
10172 Fix build problem on FreeBSD and GNU/kFreeBSD.
10173
10174 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10175
10176 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10179
10180 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10181 types.
10182 (grub_hfsplus_btree_recoffset): Likewise.
10183 (grub_hfsplus_btree_recptr): Likewise.
10184 (grub_hfsplus_find_block): Likewise.
10185 (grub_hfsplus_btree_search): Likewise.
10186 (grub_hfsplus_read_block): Likewise.
10187 (grub_hfsplus_read_file): Likewise.
10188 (grub_hfsplus_mount): Likewise.
10189 (grub_hfsplus_btree_iterate_node): Likewise.
10190 (grub_hfsplus_btree_search): Likewise.
10191 (grub_hfsplus_iterate_dir): Likewise.
10192 (grub_hfsplus_read): A small code simplification.
10193
10194 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * grub-core/kern/emu/hostdisk.c
10197 (convert_system_partition_to_system_disk): Don't assume that children
10198 of mapper nodes are mapper nodes.
10199
10200 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10201
10202 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10203 * include/grub/misc.h (grub_isxdigit): New function.
10204 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10205 switched to grub_isxdigit.
10206 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10207 number starting with a letter.
10208
10209 2011-10-09 Robert Millan <rmh@gnu.org>
10210
10211 LVM support for FreeBSD and GNU/kFreeBSD.
10212
10213 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10214 GNU/kFreeBSD.
10215 (LVM_DEV_MAPPER_STRING): Move from here ...
10216 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10217 * util/getroot.c: Include `<grub/util/lvm.h>'.
10218 (grub_util_get_dev_abstraction): Enable
10219 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10220 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10221 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10222 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10223 support it.
10224 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10225 GNU/kFreeBSD.
10226 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10227 when LVM abstraction is required for ${GRUB_DEVICE}.
10228
10229 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10230
10231 Add support for LZO compression in GRUB:
10232 - import of minilzo library,
10233 - LZO decompression for btrfs,
10234 - lzop files decompression.
10235
10236 * grub-core/io/lzopio.c: New file.
10237 * grub-core/lib/adler32.c: Likewise.
10238 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10239 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10240 * grub-core/lib/minilzo/minilzo.c: Likewise.
10241 * grub-core/lib/minilzo/minilzo.h: Likewise.
10242 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10243 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10244 grub-core/lib/minilzo/minilzo.c to common.
10245 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10246 cflags in cppflags.
10247 * grub-core/Makefile.core.def (btrfs): Likewise.
10248 * grub-core/Makefile.core.def (lzopio): New module.
10249 (adler32): Likewise.
10250 * grub-core/fs/btrfs.c: Include minilzo.h.
10251 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10252 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10253 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10254 (grub_btrfs_lzo_decompress): New function.
10255 (grub_btrfs_extent_read): Add support for LZO compression type.
10256 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10257 (GRUB_USHRT_MAX): Likewise.
10258 (GRUB_UINT_MAX): Likewise.
10259 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10260 (UINT_MAX): Likewise.
10261 (CHAR_BIT): Likewise.
10262 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10263 grub-core/lib/posix_wrap/limits.h
10264 (UCHAR_MAX): Likewise.
10265 * include/grub/file.h (grub_file_filter_id): New compression filter
10266 GRUB_FILE_FILTER_LZOPIO.
10267 * include/grub/file.h (grub_file_filter_id): Set
10268 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10269 * include/grub/types.h (grub_get_unaligned16): New function.
10270 (grub_get_unaligned32): Likewise.
10271 (grub_get_unaligned64): Likewise.
10272 * util/import_gcry.py (cryptolist): Add adler32.
10273
10274 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10277 in perspective decreases the complexity of build system and fixes
10278 compilation right now.
10279
10280 2011-10-01 Ales Nesrsta <starous@volny.cz>
10281
10282 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10283 (fixed problem related to using UHCI with coreboot).
10284
10285 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10286
10287 * gentpl.py: Use Autogen macros so that the output template file
10288 (Makefile.tpl) size is reduced.
10289
10290 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10291
10292 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10293 extra_dist.
10294
10295 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10296
10297 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10298 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10299
10300 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10301
10302 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10303 _fullpath.
10304
10305 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10306
10307 Remove extra declaration of sleep for mingw32.
10308
10309 * util/misc.c (sleep) [__MINGW32__]: Removed.
10310 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10311
10312 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10313
10314 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10315 type and packname.
10316 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10317 Resurrected.
10318 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10319 (grub_netbsd_btinfo_bootwedge): New struct.
10320 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10321 New function.
10322 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10323
10324 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10325
10326 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10327 loader.
10328
10329 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10330
10331 Fix incorrect identifiers in bash-completion.
10332
10333 * util/bash-completion.d/grub-completion.bash.in
10334 (_grub_mkpasswd-pbkdf2): Rename to ...
10335 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10336 (_grub_script-check): Rename to ...
10337 (_grub_script_check): ... this. All users updated.
10338
10339 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10342 Return 0 if disk isn't biosdisk.
10343
10344 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10345
10346 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10347 on NetBSD.
10348 * Makefile.util.def (grub-fstest): Likewise.
10349
10350 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10351
10352 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10353 Get sector size from disk label.
10354
10355 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10356
10357 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10358 */README* as well as README*.
10359 Reported by: Axel Beckert.
10360
10361 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10362
10363 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10364 case of less than 256 MiB of RAM.
10365
10366 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 * grub-core/commands/wildcard.c (make_regex): Handle @.
10369
10370 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10371
10372 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10373
10374 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10375
10376 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10377 AC_LANG_CONFTEST macros.
10378
10379 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10380
10381 Add grub-fstest option to uncompress data for commands.
10382
10383 * util/grub-fstest.c (uncompress): New var.
10384 (options): New option -u.
10385
10386 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10387
10388 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10389 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10390
10391 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10392
10393 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10394 file type was not recognized correctly (not gzip or corrupted).
10395
10396 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10399 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10400
10401 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10402
10403 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10404 loongson.
10405 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10406 video_radeon_fuloong2e.
10407 * grub-core/video/radeon_fuloong2e.c: New file.
10408 * include/grub/video.h (grub_video_id_t): Add new ID
10409 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10410
10411 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10412
10413 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10414 define.
10415 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10416 that PRID matches the detected subplatform and reset the subplatform
10417 if it doesn't.
10418
10419 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10420
10421 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10422
10423 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10424
10425 Fix PCI iterating on functions >= 4.
10426
10427 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10428 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10429 Removed.
10430 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10431 (grub_pci_read): Fix bitmask.
10432 (grub_pci_read_word): Likewise.
10433 (grub_pci_read_byte): Likewise.
10434 (grub_pci_write): Likewise.
10435 (grub_pci_write_word): Likewise.
10436 (grub_pci_write_byte): Likewise.
10437
10438 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10439
10440 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10441 can still be specified in TARGET_CFLAGS)
10442
10443 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10444
10445 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10446
10447 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10448 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10449 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10450 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10451 (FULOONG): Rename to ...
10452 (FULOONG2F): ... this. All users updated.
10453 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10454 (machtype_fuloong2f_str): ... this.
10455 (machtype_fuloong2e_str): New string.
10456 Check for machtype_fuloong2e_str.
10457 * grub-core/loader/mips/linux.c (loongson_machtypes)
10458 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10459 * grub-core/term/serial.c (loongson_defserial)
10460 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10461 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10462 loongson_defserial.
10463 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10464 Rename to ...
10465 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10466 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10467 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10468 to IMAGE_FULOONG2F_FLASH. All users updated.
10469 (image_targets): Rename images.
10470 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10471
10472 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10473
10474 Make enable of disk cache statistics code configurable.
10475
10476 * configure.ac: --enable-cache-stats added.
10477 * config.h.in (DISK_CACHE_STATS): New define.
10478 * grub-core/Makefile.core.def (cacheinfo): New command.
10479 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10480 * grub-core/commands/cacheinfo.c: New file.
10481 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10482 moved to cacheinfo.c.
10483 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10484 debug code.
10485 * include/grub/disk.h: Likewise.
10486
10487 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10488
10489 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10490 * grub-core/Makefile.am: Likewise.
10491
10492 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10495 non-zero pull.
10496
10497 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10498
10499 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10500 All users updated.
10501 (grub_jfs_lookup_symlink): Use correct starting inode.
10502
10503 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10504
10505 * util/grub-setup.c (main): Add missing gcry initialisation.
10506
10507 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10508
10509 Don't accept text modes on EFI when booting Linux.
10510
10511 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10512 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10513
10514 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10515 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10516
10517 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10518 use of "/path/.." as in grub-install for EFI as well as handling
10519 symlinks correctly.
10520 Fixes Debian bug #637768.
10521
10522 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10523
10524 * util/grub-probe.c: Remove duplicate #include.
10525
10526 2011-08-10 Robert Millan <rmh@gnu.org>
10527
10528 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10529
10530 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10531 function.
10532 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10533 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10534
10535 2011-08-03 Robert Millan <rmh@gnu.org>
10536
10537 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10538 la_array as packed.
10539 Reported by: Zachary Bedell
10540
10541 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10542
10543 * configure.ac: The Loongson port requires grub-mkfont due to its
10544 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10545 be built.
10546
10547 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10548
10549 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10550 processing arguments (otherwise help2man fails when GRUB has not yet
10551 been installed).
10552
10553 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10554
10555 New script grub-mkstandalone.
10556
10557 * Makefile.util.def (grub-mkstandalone): New script.
10558 * docs/man/grub-mkstandalone.h2m: New file.
10559 * util/grub-mkstandalone.in: Likewise.
10560
10561 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10562
10563 Support ATA disks with 4K sectors.
10564
10565 * include/grub/ata.h (grub_ata): New member log_sector_size.
10566 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10567 (grub_ata_identify): Read sector size.
10568 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10569
10570 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10571
10572 * util/grub-install.in: Don't use uhci outside of x86.
10573
10574 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * util/grub-mkrescue.in: Add missing quotes.
10577
10578 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10579
10580 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10581 dereference.
10582
10583 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10584
10585 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10586
10587 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10588
10589 * include/grub/video.h: add missing EXPORT_FUND on
10590 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10591
10592 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10593
10594 * include/grub/mips/kernel.h: Fix define conflict.
10595
10596 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10597
10598 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10599 all four ways.
10600
10601 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10602
10603 Preferred resolution detection for VBE.
10604
10605 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10606 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10607 the Flat Panel extension, in line with the X.org VESA driver.
10608 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10609 New function.
10610 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10611 (grub_vbe_bios_read_edid): Likewise.
10612 (grub_vbe_get_preferred_mode): Likewise.
10613 (grub_video_vbe_setup): When the mode is "auto", try to get the
10614 preferred mode from VBE, and use the largest mode that is no larger
10615 than the preferred mode (some BIOSes expose a preferred mode that is
10616 not in their mode list!). If this fails, fall back to 640x480 as a
10617 safe conservative choice.
10618 (grub_video_vbe_get_edid): New function.
10619 (grub_video_vbe_adapter): Add get_edid.
10620 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10621 (struct grub_video_adapter): Add get_edid.
10622 (grub_video_edid_checksum): Add prototype.
10623 (grub_video_edid_preferred_mode): Likewise.
10624 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10625 structure.
10626
10627 * grub-core/commands/videoinfo.c (print_edid): New function.
10628 (grub_cmd_videoinfo): Print EDID if available.
10629
10630 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10631 is more appropriate on a wider range of platforms than 640x480.
10632 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10633 documentation.
10634
10635 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10636
10637 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10638
10639 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 * po/POTFILES.in: Regenerate.
10642
10643 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10644
10645 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10646 incorrect memory usage.
10647
10648 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10649
10650 * util/grub-install.in: Source grub-mkconfig_lib.
10651
10652 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10653
10654 Remove getroot.c from core on emu platform.
10655
10656 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10657 kern/emu/raid.c.
10658 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10659 useless.
10660 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10661 * util/getroot.c (get_win32_path): ... here.
10662 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10663 * util/getroot.c (fini_libzfs): ... here.
10664 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10665 * util/getroot.c (grub_get_libzfs_handle): ... here.
10666 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10667 Moved from here...
10668 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10669 * grub-core/kern/emu/misc.c
10670 (grub_make_system_path_relative_to_its_root): Moved from here...
10671 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10672 * grub-core/kern/emu/getroot.c: Moved from here ...
10673 * util/getroot.c: ... here. All users updated.
10674 * grub-core/kern/emu/raid.c: Moved from here ...
10675 * util/raid.c: ... here. All users updated.
10676
10677 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10678
10679 * po/POTFILES.in: Regenerate.
10680
10681 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10682
10683 Fix compilation on GNU/Linux.
10684
10685 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10686 Disable geli.
10687 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10688 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10689 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10690
10691 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10692 2011-07-07 Michael Gorven <michael@gorven.za.net>
10693 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10694
10695 LUKS and GELI support.
10696
10697 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10698 grub-core/disk/luks.c, grub-core/disk/geli.c,
10699 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10700 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10701 grub-core/lib/arg.c.
10702 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10703 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10704 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10705 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10706 (grub-bin2h): Add libgcry.a.
10707 (grub-mkimage): Likewise.
10708 (grub-mkrelpath): Likewise.
10709 (grub-script-check): Likewise.
10710 (grub-editenv): Likewise.
10711 (grub-mkpasswd-pbkdf2): Likewise.
10712 (grub-pe2elf): Likewise.
10713 (grub-fstest): Likewise.
10714 (grub-mkfont): Likewise.
10715 (grub-mkdevicemap): Likewise.
10716 (grub-probe): Likewise.
10717 (grub-ofpath): Likewise.
10718 (grub-mklayout): Likewise.
10719 (example_unit_test): Likewise.
10720 (grub-menulst2cfg): Likewise.
10721 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10722 * grub-core/Makefile.core.def (cryptodisk): New module.
10723 (luks): Likewise.
10724 (geli): Likewise.
10725 * grub-core/disk/AFSplitter.c: New file.
10726 * grub-core/disk/cryptodisk.c: Likewise.
10727 * grub-core/disk/geli.c: Likewise.
10728 * grub-core/disk/luks.c: Likewise.
10729 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10730 grub_util_is_lvm.
10731 (grub_util_get_dm_abstraction): New function.
10732 (grub_util_follow_gpart_up): Likewise.
10733 (grub_util_get_geom_abstraction): Likewise.
10734 (grub_util_get_dev_abstraction): Use new functions.
10735 (grub_util_pull_device): Pull GELI and LUKS.
10736 (grub_util_get_grub_dev): Handle LUKS and GELI.
10737 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10738 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10739 (follow_geom_up): Removed.
10740 (grub_util_fd_seek): New function.
10741 (open_device): Use grub_util_fd_seek.
10742 (nread): Rename to ..
10743 (grub_util_fd_read): ... this. All users updated.
10744 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10745 (grub_crypto_cbc_decrypt): Likewise.
10746 (grub_crypto_hmac_write): Likewise.
10747 (grub_crypto_hmac_buffer): Likewise.
10748 (grub_password_get): Extend to util.
10749 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10750 New member modname.
10751 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10752 * include/grub/cryptodisk.h: New file.
10753 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10754 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10755 LUKS and GELI.
10756 (grub_util_follow_gpart_up): New proto.
10757 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10758 (grub_util_fd_read): Likewise.
10759 (grub_cryptodisk_cheat_mount): Likewise.
10760 (grub_util_cryptodisk_print_uuid): Likewise.
10761 (grub_util_get_fd_sectors): Likewise.
10762 * util/grub-fstest.c (mount_crypt): New var.
10763 (fstest): Mount crypto if requested.
10764 (options): New option -C.
10765 (argp_parser): Parse -C.
10766 (main): Init and fini gcry.
10767 * util/grub-install.in: Support cryptodisk install.
10768 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
10769 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
10770 cryptodisk.
10771 (prepare_grub_to_access_device): Likewise.
10772 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
10773 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
10774 (probe_cryptodisk_uuid): New function.
10775 (probe_abstraction): Likewise.
10776 (probe): Use new functions.
10777 * util/import_gcry.py: Create Makefile.utilgcry.def.
10778 Add modname member.
10779
10780 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10781
10782 Lazy device scanning.
10783
10784 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
10785 (grub-setup): Remove util/raid.c.
10786 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
10787 * grub-core/disk/lvm.c (scan_depth): New variable.
10788 (grub_lvm_iterate): Rescan if necessary.
10789 (find_lv): New function based on grub_lvm_open.
10790 (grub_lvm_open): Use find_lv. Rescan on error.
10791 (is_node_readable): New function.
10792 (is_lv_readable): Likewise.
10793 (grub_lvm_scan_device): Skip already found disks.
10794 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
10795 Stop if searched device is found and readable.
10796 * grub-core/disk/raid.c (inscnt): New variable.
10797 (scan_depth): Likewise.
10798 (scan_devices): New function based on grub_raid_register. Abort if
10799 looked for device is found.
10800 (grub_raid_iterate): Rescan if needed.
10801 (find_array): NEw function based on -grub_raid_open.
10802 (grub_raid_open): Use find_array and rescan.
10803 (insert_array): Set became_readable_at.
10804 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
10805 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
10806 New function.
10807 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
10808 (grub_util_pull_device): New function.
10809 (grub_util_get_grub_dev): Call grub_util_pull_device.
10810 * util/raid.c: Moved to ..
10811 * grub-core/kern/emu/raid.c: ... here.
10812 (grub_util_raid_getmembers): New parameter "bootable".
10813 All users updated. Support 1.x.
10814 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
10815 All users updated.
10816 * include/grub/disk.h (grub_disk_pull_t): New enum.
10817 (grub_disk_dev): Change iterate prototype.
10818 All users updated.
10819 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
10820 New proto.
10821 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
10822 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
10823 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
10824 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
10825 All users updated.
10826 * include/grub/util/raid.h: Removed.
10827
10828 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10829
10830 * po/POTFILES.in: Regenerate.
10831
10832 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10833
10834 Unify sparc init with other ieee1275.
10835
10836 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10837 instead of kern/sparc64/ieee1275/init.c.
10838 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
10839 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
10840 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
10841 grub/machine/kernel.h.
10842 (grub_ieee1275_original_stack) [__sparc__]: New variable.
10843 (grub_claim_heap) [__sparc__]: Use sparc version.
10844 (grub_machine_init): Moved args parsing to
10845 (grub_parse_cmdline): ...this.
10846 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
10847 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
10848 New definition.
10849 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
10850
10851 Move BOOTP to separate file.
10852
10853 * grub-core/Makefile.core.def (net): Add net/bootp.c.
10854 * grub-core/net/net.c: Move all BOOTP functions to
10855 * grub-core/net/bootp.c: ... here.
10856
10857 Use frame interface on PXE.
10858
10859 * grub-core/Makefile.core.def (pxecmd): Removed.
10860 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
10861 * grub-core/commands/i386/pc/pxecmd.c: Removed.
10862 * grub-core/i386/pc/pxe.c: Moved from here ...
10863 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
10864 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
10865 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
10866
10867 EFI network support.
10868
10869 * grub-core/Makefile.core.def (efinet): New module.
10870 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
10871 here...
10872 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
10873 All users updated.
10874 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
10875 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
10876 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
10877 * grub-core/net/drivers/efi/efinet.c: New file.
10878 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
10879 (grub_efi_net_config): New extern var.
10880
10881 Various cleanups and bugfixes.
10882
10883 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
10884 error.
10885 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
10886 disk declared as partition.
10887 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
10888 leak on failure.
10889 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
10890 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
10891 (grub_debug_zalloc): Likewise.
10892 (grub_debug_realloc): Likewise.
10893 (grub_debug_memalign): Likewise.
10894 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
10895 Check that target is IPv4.
10896 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
10897 local-mac-address as fallback.
10898 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
10899 memory leak.
10900 * grub-core/net/ip.c (ipchksum): Rename to ...
10901 (grub_net_ip_chksum): ... this. All users updated.
10902 (grub_net_recv_ip_packets): Special handling for DHCP.
10903 * util/grub-mkimage.c (generate_image): Zero-out aout header.
10904
10905 Unify prefix handling
10906
10907 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
10908 (grub_machine_get_bootlocation): ... this.
10909 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
10910 (grub_machine_get_bootlocation): ... this.
10911 (grub_prefix): New variable.
10912 (prefix): Removed.
10913 (root_dev): New variable.
10914 (dir): Likewise.
10915 (main): Use new variables.
10916 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
10917 Revamped into ...
10918 (grub_machine_get_bootlocation): ... this.
10919 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
10920 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
10921 (grub_machine_get_bootlocation): ... this.
10922 (grub_machine_set_prefix): Removed.
10923 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
10924 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
10925 Revamped into ...
10926 (grub_machine_get_bootlocation): ... this.
10927 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
10928 (grub_set_prefix_and_root): ... this. All users updated.
10929 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
10930 Revamped into ...
10931 (grub_machine_get_bootlocation): ... this.
10932 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
10933 (grub_machine_get_bootlocation): New proto.
10934 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
10935
10936 Less intrusive and more reliable seek on network implementation.
10937
10938 * grub-core/kern/file.c (grub_file_net_seek): Removed.
10939 (grub_file_seek): Don't call grub_file_net_seek.
10940 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
10941 (grub_net_fs_read_real): .. this.
10942 (grub_net_seek_real): Use net->offset.
10943 (grub_net_fs_read): Seek if necessary.
10944
10945 Unify IEEE1275 netwotk config with the other platforms.
10946
10947 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
10948 New variable.
10949 (grub_machine_get_bootlocation): Support network.
10950 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10951 Support type and device parsing.
10952 (grub_ieee1275_get_device_type): New function.
10953 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
10954 into ...
10955 (grub_ieee1275_net_config_real): ... this.
10956 (grub_ofnet_probecards): Removed.
10957 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
10958 * include/grub/ieee1275/ofnet.h: Removed.
10959 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
10960 extern var.
10961 (grub_ieee1275_get_device_type): New function.
10962
10963 Unify network device closing across platforms and make more robust.
10964
10965 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
10966 grub_grubnet_fini.
10967 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
10968 already.
10969 * grub-core/net/net.c (grub_net_network_level_interface_register):
10970 Update num_ifaces.
10971 (grub_net_card_unregister): Close all interfaces.
10972 (receive_packets): Don't poll if no iterfaces are registered.
10973 Open if necessary.
10974 (grub_net_fini_hw): New function.
10975 (grub_net_restore_hw): Likewise.
10976 (fini_hnd): New variable.
10977 (GRUB_MOD_INIT): Register preboot hook.
10978 (GRUB_MOD_FINI): Run and unregister preboot hook.
10979
10980 Poll network cards when idle.
10981
10982 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
10983 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
10984 * grub-core/net/net.c (receive_packets): Save last poll time.
10985 (grub_net_poll_cards_idle_real): New function.
10986 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
10987 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
10988 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
10989
10990 Rename ofnet interfaces.
10991
10992 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
10993 (grub_ofnet_findcards): Use ofnet_%s names.
10994
10995 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
10996
10997 Cleanup socket opening.
10998
10999 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11000 (grub_net_fs_close): Likewise.
11001 (grub_net_fs_read_real): Use eof member.
11002 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11003 (+grub_net_udp_close): New inline function.
11004
11005 * include/grub/net/tftp.h: Moved to the top of ...
11006 * grub-core/net/tftp.c: ... here.
11007 * include/grub/net/ip.h: Moved mostly to the top of ...
11008 * grub-core/net/ip.c: ... here.
11009 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11010 * grub-core/net/ethernet.c: ... here.
11011
11012 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11013
11014 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11015 FS name.
11016
11017 * include/grub/net/ip.h (ipv4_ini): Removed.
11018 (ipv4_fini): Likewise.
11019
11020 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11021 (grub_net_send_ip_packets): Likewise.
11022
11023 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11024
11025 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11026 grub_read_cmos prototype.
11027
11028 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11029
11030 VGA text support in qemu-mips
11031
11032 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11033 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11034 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11035 text.
11036 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11037 * grub-core/kern/vga_init.c: ... this.
11038 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11039 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11040 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11041 Adjust.
11042 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11043 GRUB_MACHINE_PCI_IO_BASE.
11044
11045 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11046
11047 MIPS qemu flash support.
11048
11049 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11050 magic.
11051 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11052 (grub_machine_init): Probe memory if its size isn't known.
11053 * util/grub-mkimage.c (image_targets): Add flash targets.
11054 (generate_image): Handle flash targets.
11055
11056 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11057
11058 MIPS qemu at_keyboard support.
11059
11060 * gentpl.py (videoinkernel): Add qemu-mips.
11061 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11062 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11063 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11064 modules.
11065 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11066 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11067 * grub-core/term/serial.c (grub_serial_register)
11068 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11069
11070 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11071
11072 CMOS support on sparc.
11073
11074 * gentpl.py (cmos): Add powerpc and sparc.
11075 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11076 powerpc and sparc.
11077 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11078 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11079 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11080 grub_set_datetime_cmos.
11081 * grub-core/lib/ieee1275/cmos.c: New file.
11082 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11083 (find_rtc): Set no_ieee1275_rtc on error.
11084 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11085 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11086 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11087 fail. Move value to argument. All users updated
11088 (grub_cmos_write): Likewise.
11089 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11090 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11091 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11092 grub_get_datetime_cmos and grub_set_datetime_cmos.
11093
11094 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11095
11096 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11097 sourcing grub-mkconfig_lib.
11098 * util/update-grub_lib.in: Likewise.
11099 * util/grub.d/00_header.in: Likewise.
11100 * util/grub.d/10_hurd.in: Likewise.
11101 * util/grub.d/10_kfreebsd.in: Likewise.
11102 * util/grub.d/10_linux.in: Likewise.
11103 * util/grub.d/10_netbsd.in: Likewise.
11104 * util/grub.d/10_windows.in: Likewise.
11105 * util/grub.d/20_linux_xen.in: Likewise.
11106 * util/grub.d/30_os-prober.in: Likewise.
11107
11108 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11109
11110 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11111 default_bg_color rather than black.
11112 (grub_gfxterm_fullscreen): Likewise.
11113 (grub_gfxterm_background_color_cmd): Save new background color in
11114 default_bg_color.
11115
11116 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11117
11118 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11119
11120 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11121
11122 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11123 mismerge.
11124
11125 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11126
11127 Chainloading on coreboot support.
11128
11129 * grub-core/Makefile.core.def (chain): Add coreboot.
11130 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11131
11132 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11133
11134 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11135 if it happens.
11136
11137 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11138
11139 Implement time command.
11140
11141 * grub-core/Makefile.core.def (time): New module.
11142 * grub-core/commands/time.c: New file.
11143 * grub-core/script/parser.y: Remove "time" keyword.
11144 * grub-core/script/yylex.l: Likewise.
11145
11146 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11147
11148 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11149
11150 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11151
11152 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11153 when handling leftovers.
11154
11155 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11156
11157 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11158 so that help2man doesn't fail.
11159
11160 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11161
11162 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11163 type in pointers on sparc64.
11164 (get_card_packet): Likewise.
11165
11166 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11167
11168 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11169 with `*'.
11170 (grub_cmd_videoinfo): Fetch current video mode.
11171
11172 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11173
11174 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11175 because of underlying system restrictions.
11176
11177 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11178
11179 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11180 necessary.
11181
11182 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11183
11184 Coreboot video support.
11185
11186 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11187 (vbe): Likewise.
11188 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11189 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11190 here ...
11191 * grub-core/kern/i386/int.S: ... here.
11192 * grub-core/video/i386/pc/vbe.c: Updated includes.
11193 * grub-core/video/i386/pc/vga.c: Likewise.
11194 * include/grub/i386/coreboot/memory.h
11195 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11196 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11197 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11198 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11199 Disable interrupts.
11200 * include/grub/i386/pc/vga.h: Removed. All users updated.
11201
11202 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11205 definitions for dprintf.
11206 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11207
11208 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11209
11210 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11211 prototype.
11212 (get_card_packet): Likewise.
11213
11214 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11215
11216 Display the path of the file when file is not found
11217
11218 * grub-core/fs/fat.c: Display the filename when file is not found.
11219 * grub-core/fs/fshelp.c: Likewise.
11220 * grub-core/fs/hfs.c: Likewise.
11221 * grub-core/fs/jfs.c: Likewise.
11222 * grub-core/fs/minix.c: Likewise.
11223 * grub-core/fs/ufs.c: Likewise.
11224 * grub-core/fs/btrfs.c: Likewise.
11225 * grub-core/commands/i386/pc/play.c: Likewise.
11226
11227 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11228
11229 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11230 pointer checks before calling grub_free().
11231 * grub-core/commands/wildcard.c (match_devices): Likewise.
11232 * grub-core/commands/wildcard.c (match_files): Likewise.
11233 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11234 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11235 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11236 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11237 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11238 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11239 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11240 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11241 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11242
11243 2011-06-25 Patrick <p55@mailinator.com>
11244
11245 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11246
11247 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11250 (grub_pxe_send): Likewise.
11251 (GRUB_MOD_INIT): Fix types.
11252
11253 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11254
11255 * grub-core/io/xzio.c: Fix code style issues
11256
11257 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11258 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11259
11260 Network infrastructure.
11261 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11262
11263 * include/grub/net/arp.h: New file.
11264 * include/grub/net/device.h: Likewise.
11265 * include/grub/net/ethernet.h: Likewise.
11266 * include/grub/net/ip.h: Likewise.
11267 * include/grub/net/netbuff.h: Likewise.
11268 * include/grub/net/tftp.h: Likewise.
11269 * include/grub/net/udp.h: Likewise.
11270 * include/grub/ieee1275/ofnet.h: Likewise.
11271 * include/grub/emu/export.h: Likewise.
11272 * include/grub/net.h: Likewise.
11273 * grub-core/net/arp.c: Likewise.
11274 * grub-core/net/ethernet.c: Likewise.
11275 * grub-core/net/ip.c: Likewise.
11276 * grub-core/net/udp.c: Likewise.
11277 * grub-core/net/tftp.c: Likewise.
11278 * grub-core/net/netbuff.c: Likewise.
11279 * grub-core/net/net.c: Likewise.
11280 * grub-core/net/drivers/emu/emunet.c: Likewise.
11281 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11282 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11283 export.h.
11284 * grub-core/Makefile.core.def (net): New module.
11285 (tftp): Likewise.
11286 (ofnet): Likewise.
11287 (emunet): Likewise.
11288 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11289 network protocols.
11290 * grub-core/kern/device.c (grub_net_open) : New variable.
11291 (grub_device_open): Handle network device.
11292 (grub_device_close): Likewise.
11293 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11294 (grub_grubnet_fini): Likewise.
11295 (grub_file_seek): Seek in network device.
11296 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11297 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11298 network root.
11299 (grub_machine_fini): Call grub_grubnet_fini.
11300 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11301 network.
11302 (grub_ieee1275_get_aliasdevname): New function.
11303 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11304 Add unofficial Solaris network info.
11305 (grub_multiboot_make_mbi): Likewise.
11306 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11307 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11308 * include/grub/device.h (grub_fs): Removed.
11309 * include/grub/err.h (grub_err_t): Add network-related values.
11310 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11311 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11312 (grub_ieee1275_get_aliasdevname): New proto.
11313 * include/grub/net.h: Rewritten.
11314
11315 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11316
11317 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11318 names.
11319
11320 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11321
11322 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11323 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11324 it truncates the output.
11325 Reported by: Ximin Luo.
11326
11327 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11328
11329 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11330
11331 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11332
11333 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11334 partmap before abstraction.
11335
11336 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11337
11338 * util/grub-mkconfig_lib.in: Add missing quotes.
11339
11340 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11341
11342 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11343 old method if mountinfo would return /dev/root and /dev/root doesn't
11344 exist.
11345
11346 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11347
11348 ZFS zlib support
11349
11350 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11351 (decomp_table): Add zlib entries.
11352 (zio_read): USe 8 bits for compression function rather than 3.
11353 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11354
11355 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11356
11357 * grub-core/disk/ahci.c: Add missing license statements.
11358 * grub-core/fs/romfs.c: Likewise.
11359 * grub-core/lib/ia64/setjmp.S: Likewise.
11360 * grub-core/loader/i386/pc/freedos.c: Likewise.
11361 * grub-core/loader/ia64/efi/linux.c: Likewise.
11362 * grub-core/video/colors.c: Likewise.
11363 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11364
11365 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11366
11367 AHCI support.
11368
11369 * grub-core/Makefile.core.def (ata_pthru): Removed.
11370 (ahci): New module.
11371 (pata): Likewise.
11372 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11373 on unload.
11374 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11375 readwrite.
11376 (grub_hdparm_do_check_powermode_cmd): Likewise.
11377 (grub_hdparm_do_smart_cmd): Likewise.
11378 (grub_hdparm_set_val_cmd): Likewise.
11379 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11380 * grub-core/disk/ahci.c: New file.
11381 * grub-core/disk/ata.c: Factor out the low-level part into ...
11382 * grub-core/disk/pata.c: ... here.
11383 * grub-core/disk/ata_pthru.c: Contents moved to ...
11384 * grub-core/disk/pata.c: ... here.
11385 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11386 (grub_scsi_iterate): Use grub_scsi_names.
11387 (grub_scsi_open): Likewise.
11388 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11389 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11390 (grub_ata_regs_t): New struct.
11391 (grub_disk_ata_pass_through_parms): Likewise.
11392 (grub_ata_device): Renamed to ...
11393 (grub_ata): ... this.
11394 (grub_ata_dev): New struct.
11395 Removed all low-level inline functions.
11396 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11397 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11398 iterate hooks and open. All users updated.
11399 * util/grub-install.in: Handle AHCI disk module.
11400
11401 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11402
11403 Add support for DRI and RSTn markers in JPEG files.
11404
11405 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11406 (JPEG_MARKER_RST0): Likewise.
11407 (JPEG_MARKER_RST1): Likewise.
11408 (JPEG_MARKER_RST2): Likewise.
11409 (JPEG_MARKER_RST3): Likewise.
11410 (JPEG_MARKER_RST4): Likewise.
11411 (JPEG_MARKER_RST5): Likewise.
11412 (JPEG_MARKER_RST6): Likewise.
11413 (JPEG_MARKER_RST7): Likewise.
11414 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11415 (grub_jpeg_decode_dri): New function.
11416 (grub_jpeg_decode_sos): Move image data related part into
11417 grub_jpeg_decode_data function.
11418 (grub_jpeg_decode_data): New function.
11419 (grub_jpeg_reset): New function.
11420 (grub_jpeg_decode_jpeg): Handle new markers.
11421
11422 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11423
11424 * util/ieee1275/ofpath.c (check_sas): Close fd.
11425 (main): Free of_path.
11426 Reported by: David Volgyes <dvolgyes>.
11427
11428 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11429
11430 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11431 Reported by: David Volgyes <dvolgyes>.
11432
11433 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11436 file after stat.
11437 Reported by: David Volgyes <dvolgyes>.
11438
11439 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11440
11441 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11442
11443 Reported by: David Volgyes <dvolgyes>.
11444
11445 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11448 Prevent memory leak.
11449
11450 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11451
11452 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11453 (main): Close file.
11454 Reported by: David Volgyes <dvolgyes>.
11455
11456 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11457
11458 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11459 to continue if allocation is failed.
11460
11461 Reported by: David Volgyes <dvolgyes>.
11462
11463 2011-06-23 David Volgyes <dvolgyes>
11464
11465 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11466 dereference.
11467
11468 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 Fix spurious warning.
11471
11472 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11473 (acorn_partition_map_find): Use .bin member.
11474
11475 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11476
11477 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11478 /dev/root as a valid device.
11479
11480 2011-06-23 Jim Meyering <meyering@redhat.com>
11481
11482 Avoid NULL deref in grub_device_open.
11483
11484 * grub-core/kern/device.c (grub_device_open): Don't dereference
11485 a NULL pointer upon failed grub_env_get.
11486
11487 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11488
11489 Support non-512B sectors and agglomerate reads.
11490
11491 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11492 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11493 (disk_io_guid): Removed.
11494 (make_devices): Locate solely by BlockIO.
11495 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11496 (grub_efidisk_read): Use read_blocks.
11497 (grub_efidisk_write): Use write_blocks.
11498 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11499 log_sector_size.
11500 (get_safe_sectors): Handle non-512B sectors.
11501 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11502 sectors.
11503 (grub_biosdisk_write): Handle non-512B sectors.
11504 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11505 (grub_scsi_read): Remove special non-512B block handling (now handled
11506 one level up).
11507 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11508 and do sanity checks.
11509 (grub_disk_adjust_range): Handle non-512B sectors.
11510 (transform_sector): New function.
11511 (grub_disk_read_small): Likewise.
11512 (grub_disk_read): Rewritten.
11513 (grub_disk_write): Handle non-512B sectors.
11514 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11515 log_sector_size.
11516 (open_device): Use log_sector_size.
11517 (grub_util_biosdisk_read): Likewise.
11518 (grub_util_biosdisk_write): Likewise.
11519 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11520 non-512B sectors.
11521 (pc_partition_map_embed): Likewise.
11522 * include/grub/disk.h (grub_disk): New field log_sector_size.
11523 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11524 (GRUB_DISK_CACHE_BITS): Increased to 6.
11525 * util/grub-fstest.c (fstest): New command testload.
11526 (argp_parser): Likewise.
11527
11528 2011-06-16 Robert Millan <rmh@gnu.org>
11529
11530 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11531 `ata' driver on kernel of FreeBSD 9.
11532
11533 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11534 (get_ataraid_disk_name): New functions.
11535 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11536 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11537 get_ataraid_disk_name() and get_ada_disk_name().
11538
11539 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11540
11541 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11542 input format.
11543
11544 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11545
11546 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11547 `ftp.gnu.org' for `alpha.gnu.org'.
11548
11549 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11550
11551 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11552 partitions under /dev/disk/by-id/.
11553
11554 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11555
11556 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11557 after ten consecutive open failures. Scanning all the way up to
11558 10000 is excessive and can cause serious performance problems in
11559 some configurations.
11560 Fixes Ubuntu bug #787461.
11561
11562 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11563
11564 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11565 opening new one.
11566
11567 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11568 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11569
11570 Don't stat devices unless we have to.
11571
11572 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11573 dir == /dev/mapper.
11574 (grub_guess_root_device): Use already known os_dev if possible.
11575 * grub-core/kern/emu/hostdisk.c
11576 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11577 if device is known to be a dm one.
11578
11579 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11580
11581 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11582 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11583 Reported by: Pawel Tecza.
11584
11585 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11588 (lsefisystab): Likewise.
11589 (lssal): Likewise.
11590 (lsefimmap): Likewise.
11591 (hdparm): Enable on qemu-mips.
11592 (setjmp): Add ia64 nodist.
11593 (serial): Simplify tags.
11594
11595 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11596
11597 * Makefile.util.def (grub-ofpathname): Install manual page.
11598
11599 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11600
11601 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11602
11603 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11604
11605 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11606
11607 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11608
11609 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11610 into dprintf.
11611
11612 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11613
11614 Use full 64-bit division.
11615
11616 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11617 (grub_divmod64): ... this.
11618 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11619 version.
11620
11621 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11622
11623 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11624 `source'.
11625
11626 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11627
11628 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11629 to avoid accidents when debugging with 'sh -x'.
11630 * grub-core/gensyminfo.sh.in: Likewise.
11631 * tests/example_scripted_test.in: Likewise.
11632 * tests/grub_cmd_regexp.in: Likewise.
11633 * tests/grub_script_blanklines.in: Likewise.
11634 * tests/grub_script_dollar.in: Likewise.
11635 * tests/grub_script_expansion.in: Likewise.
11636 * tests/grub_script_final_semicolon.in: Likewise.
11637 * tests/partmap_test.in: Likewise.
11638 * tests/util/grub-shell-tester.in: Likewise.
11639 * tests/util/grub-shell.in: Likewise.
11640
11641 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11642
11643 Move gfxmenu color handling to video, so that gfxterm can use it
11644 too.
11645
11646 * grub-core/gfxmenu/named_colors.c: Move to ...
11647 * grub-core/video/colors.c: ... here. Rename
11648 grub_gui_get_named_color to grub_video_get_named_color.
11649 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11650 * grub-core/video/colors.c (my_isxdigit): ... here.
11651 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11652 Move to ...
11653 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11654 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11655 to ...
11656 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11657
11658 * include/grub/gui.h (grub_gui_color_t): Move to ...
11659 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11660 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11661 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11662 * include/grub/gui.h (grub_gui_map_color): Move to ...
11663 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11664 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11665 to ...
11666 * include/grub/video.h (grub_video_get_named_color): ... here.
11667 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11668 * include/grub/video.h (grub_video_parse_color): ... here.
11669
11670 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11671 video/colors.c.
11672 (gfxmenu): Remove gfxmenu/named_colors.c.
11673 (video) [videomodules]: Add video/colors.c.
11674
11675 Add a background_color command.
11676
11677 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11678 function.
11679 (GRUB_MOD_INIT): Register background_color command.
11680 (GRUB_MOD_FINI): Unregister background_color command.
11681 (redraw_screen_rect): Allow blend/replace of text layer to be
11682 controlled independently from whether there is a background bitmap.
11683 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11684 changing bitmap.
11685
11686 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11687
11688 Patch BPB in ntldr and chainloader --bpb.
11689
11690 * grub-core/fs/fat.c: Include grub/fat.h.
11691 (grub_fat_bpb): Moved to ...
11692 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11693 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11694 grub/ntfs.h.
11695 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11696 Moved from here...
11697 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11698 here.
11699 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11700 New function.
11701 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11702 (GRUB_MOD_INIT): Show --bpb.
11703 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11704 * grub-core/normal/main.c (features): New variable.
11705 (GRUB_MOD_INIT): Set feature_* variables.
11706 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11707 proto.
11708 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11709
11710 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11713 for cleanness.
11714
11715 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11716
11717 FreeDOS direct loading support.
11718
11719 * docs/grub.texi (Supported OS): Add FreeDOS.
11720 * grub-core/Makefile.core.def (freedos): New module.
11721 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11722 variable.
11723 (grub_relocator16_boot): Handle %ebx.
11724 * grub-core/lib/i386/relocator16.S: Likewise.
11725 * grub-core/loader/i386/pc/freedos.c: New file.
11726
11727 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11728
11729 Long Linux command line support.
11730
11731 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11732 (maximal_cmdline_size): New variable.
11733 (allocate_pages): Use maximal_cmdline_size.
11734 (grub_cmd_linux): Set and use maximal_cmdline_size.
11735 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11736 (allocate_pages): Use maximal_cmdline_size.
11737 (grub_cmd_linux): Set and use maximal_cmdline_size.
11738 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11739 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11740 and cmdline_size.
11741
11742 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11743 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11744
11745 Improve devmapper support
11746
11747 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11748 (grub_util_is_lvm): New function.
11749 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11750 than lvm if not dmraid.
11751 Handle mapped md nodes.
11752 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11753 (grub_util_device_is_mapped): ... this. Make always available. All users
11754 updated.
11755 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11756 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11757 dmraid nodes.
11758 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11759
11760 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11761
11762 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11763
11764 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
11765 * grub-core/modinfo.sh.in: New file.
11766 * grub-core/Makefile.core.def (modinfo.sh): New script.
11767 * util/grub-mknetdir.in: Use modinfo.sh.
11768 * util/grub-mkrescue.in: Likewise.
11769
11770 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11771
11772 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11773 Fix potential usage of Elf32 instead of Elf64 when compiling on
11774 32-bit architecture. Add endianness macros while on it.
11775
11776 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11777
11778 Use mipsel- rather than mips- in directories involving mipsel ports to
11779 allow both endiannesses coexist.
11780
11781 * configure.ac: proparate target_cpu=mipsel rather than resetting to
11782 mips. All conditions adjusted.
11783 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
11784 variable.
11785 * util/grub-install.in: Adjust conditions to take renaming into account.
11786 * util/grub-mkimage.c (image_targets): Likewise. New target
11787 mips-qemu_mips-elf for bigendian mips.
11788
11789 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11790
11791 Avoid unnecessary copying on MIPS.
11792
11793 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
11794 early if src == dest.
11795 * util/grub-mkimage.c (generate_image): Arange for src == dest if
11796 compression is none.
11797
11798 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11799
11800 Reduce memory footprint on SGI by putting modules before the kernel
11801 as opposed to after.
11802
11803 * grub-core/Makefile.core.def (kernel): Increase linking address.
11804 (none_decompress): Likewise.
11805 (xz_decompress): Likewise.
11806 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
11807 address.
11808 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
11809 layout change.
11810 (grub_arch_modules_addr): New function.
11811 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
11812 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
11813 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
11814 here.
11815 * grub-core/kern/mips/startup.S (total_size): Rename to ...
11816 (grub_total_modules_size): ... this. Make global.
11817 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
11818 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
11819 New definition.
11820 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
11821 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
11822 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
11823 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
11824 * util/grub-mkimage.c (image_target_desc): New flag
11825 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
11826 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
11827 (generate_image): Handle images with modules before kernel.
11828
11829 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11830
11831 Prevent potential loss of memory map by overwrite on qemu-mips.
11832
11833 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11834 Save ram size in $s4.
11835 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
11836 All users changed to grub_arch_memsize.
11837 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
11838 Loongson.
11839 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
11840 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
11841 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
11842 external variable.
11843
11844 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11845
11846 * .bzrignore: Remove grub-dumpbios.
11847
11848 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11849
11850 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
11851 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
11852 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
11853 existing options which append).
11854 * docs/grub.texi (Simple configuration): Document new options.
11855 Reported by: Ian Jackson. Fixes Debian bug #617538.
11856
11857 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11858
11859 * util/grub-fstest.c (cmd_cat): New function.
11860 (fstest): Handle CMD_CAT.
11861 (options): Add cat.
11862 (argp_parser): Handle cat.
11863
11864 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11865
11866 * Makefile.util.def (grub-bin2h): Don't install.
11867 * docs/man/grub-bin2h.h2m: Remove.
11868
11869 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11870
11871 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
11872 place.
11873
11874 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11875
11876 Reenable qemu-mips port.
11877
11878 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
11879 Fix small arc bug while on it.
11880 * gentpl.py: Handle qemu_mips.
11881 * grub-core/Makefile.am: Likewise.
11882 * grub-core/Makefile.core.def: Likewise.
11883 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
11884 inappropriate includes.
11885 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
11886 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
11887 * grub-core/kern/main.c (grub_modules_get_end)
11888 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
11889 * grub-core/kern/mips/qemu-mips: Moved to ..
11890 * grub-core/kern/mips/qemu_mips: ... this.
11891 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
11892 (grub_machine_init): Call terminfo_init and serial_init.
11893 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
11894 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11895 New variable.
11896 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
11897 parameter passing.
11898 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
11899 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
11900 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
11901 * include/grub/mips/qemu_mips/cmos.h: New file.
11902 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
11903 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
11904 Removed.
11905 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
11906 Use correct mips-style address.
11907 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
11908 (GRUB_TICKS_PER_SECOND): Removed.
11909 (grub_get_rtc): Likewise.
11910 (grub_cpu_idle): Likewise.
11911 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
11912 New definition.
11913 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
11914 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
11915 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
11916 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
11917 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11918 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11919 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
11920 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
11921
11922 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11923
11924 SGI ARCS port.
11925
11926 * Makefile.util.def (libgrubmods.a): Add dvh.c.
11927 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
11928 platforms.
11929 * configure.ac: New target mips-arc.
11930 * gentpl.py: Likewise.
11931 * grub-core/Makefile.am: Likewise.
11932 * grub-core/Makefile.core.def: Likewise.
11933 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
11934 (none_decompress): Likewise.
11935 (lsdev): New module.
11936 (datetime): Use lib/arc/datetime.c on ARC.
11937 (part_dvh): New module.
11938 * grub-core/commands/arc/lsdev.c: New file.
11939 * grub-core/disk/arc/arcdisk.c: Likewise.
11940 * grub-core/kern/mips/arc/init.c: Likewise.
11941 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
11942 aligned addresses.
11943 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
11944 support.
11945 (grub_arch_dl_relocate_symbols): Likewise.
11946 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
11947 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
11948 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
11949 platforms.
11950 * grub-core/lib/arc/datetime.c: New file.
11951 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
11952 pci.h on non-loongson.
11953 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
11954 (grub_linux_boot): Set unused registers to 0.
11955 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
11956 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
11957 * grub-core/mmap/mips/uppermem.c: ...here.
11958 * grub-core/partmap/dvh.c: New file.
11959 * grub-core/term/arc/console.c: Likewise.
11960 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
11961 (grub_terminfo_set_current): Add terminal "arc".
11962 (grub_terminfo_readkey): Support ARC sequences.
11963 * include/grub/arc/arc.h: New file.
11964 * include/grub/arc/console.h: Likewise.
11965 * include/grub/disk.h (grub_disk_dev_id): Add
11966 GRUB_DISK_DEVICE_ARCDISK_ID.
11967 * include/grub/mips/arc/kernel.h: New file.
11968 * include/grub/mips/arc/memory.h: Likewise.
11969 * include/grub/mips/arc/time.h: Likewise.
11970 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
11971 * include/grub/mips/kernel.h (grub_halt): ... here.
11972 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
11973 here...
11974 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
11975 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
11976 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
11977 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
11978 proto.
11979 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
11980 from here ...
11981 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
11982 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
11983 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
11984 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
11985 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
11986 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
11987 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
11988 (grub_phys_addr_t): Moved from here ...
11989 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
11990 (grub_vtop): Moved from here ...
11991 * include/grub/mips/memory.h (grub_vtop): ... here.
11992 (grub_map_memory): Moved from here ...
11993 * include/grub/mips/memory.h (grub_map_memory): ... here.
11994 (grub_unmap_memory): Moved from here ...
11995 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
11996 (grub_machine_mmap_iterate): Moved from here ...
11997 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
11998 (grub_mmap_get_lower): Moved from here ...
11999 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12000 (grub_mmap_get_upper): Moved from here ...
12001 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12002 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12003 here ...
12004 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12005 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12006 here ...
12007 * include/grub/mips/time.h (grub_get_rtc): ... here.
12008 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12009 here ...
12010 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12011 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12012 here ...
12013 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12014 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12015 definition.
12016 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12017 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12018 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12019 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12020 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12021 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12022 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12023 (GRUB_MACHINE_LINK_ADDR): Likewise.
12024 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12025 to 6.
12026 * util/grub-install.in: Run dvhtool on ARC.
12027 * util/grub-mkimage.c (image_targets): Add mips-arc.
12028 (generate_image): Handle ECOFF output for mips-arc.
12029
12030 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12033 blocks.
12034
12035 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12038 after enabling port.
12039
12040 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12041
12042 Skip incorrect USB devices.
12043
12044 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12045 configcnt == 0.
12046 * include/grub/usb.h (grub_usb_err_t): New enum value
12047 GRUB_USB_ERR_BADDEVICE.
12048
12049 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12050
12051 Fuloong video init support.
12052
12053 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12054 well.
12055 (grub_vga_read_arx): New function.
12056 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12057 definition.
12058 (framebuffer): New members io, mmioptr and mmiobase.
12059 (read_sis_cmd): New function.
12060 (write_sis_cmd): Likewise.
12061 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12062 rather than 640x400.
12063 * grub-core/video/sis315_init.c: New file.
12064
12065 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12066
12067 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12068 non-loongson.
12069 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12070 to grub_dl_register_symbol.
12071
12072 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12073
12074 Fix compilation errors.
12075
12076 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12077 potentially unused.
12078 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12079 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12080 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12081 to loongson machines.
12082
12083 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12084
12085 Several FS mtime support.
12086
12087 * grub-core/fs/affs.c (grub_affs_time): New struct.
12088 (grub_affs_file): New field mtime.
12089 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12090 type. Removed 'size'. New field 'di'. All users updated.
12091 (grub_affs_mount): Simplify checsum checking.
12092 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12093 (grub_affs_dir): Handle mtime.
12094 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12095 (grub_cpio_dir): Likewise.
12096 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12097 (grub_hfs_filerec): New field mtime.
12098 (grub_hfs_dir): Handle mtime.
12099 (grub_hfs_mtime): New function.
12100 (grub_hfs_fs): Register grub_hfs_mtime.
12101 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12102 (grub_iso9660_dir): New field mtime.
12103 (grub_fshelp_node): New field dirent.
12104 (iso9660_to_unixtime): New function.
12105 (iso9660_to_unixtime2): Likewise.
12106 (grub_iso9660_read_symlink): Use node->dirent.
12107 (grub_iso9660_iterate_dir): Likewise.
12108 (grub_iso9660_dir): Set mtime.
12109 (grub_iso9660_mtime): New function.
12110 (grub_iso9660_fs): Register grub_iso9660_mtime.
12111 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12112 (grub_jfs_inode): New fields atime, ctime and mtime.
12113 (grub_jfs_dir): Set mtime.
12114 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12115 * grub-core/fs/ntfs.c (list_file): Set mtime.
12116 (grub_ntfs_dir): Likewise.
12117 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12118 (grub_reiserfs_iterate_dir): Set mtime.
12119 (grub_reiserfs_dir): Likewise.
12120 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12121 (grub_fshelp_node): Likewise.
12122 (grub_sfs_iterate_dir): Set mtime.
12123 (grub_sfs_dir): Likewise.
12124 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12125 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12126 (grub_xfs_inode): New fields atime, mtime, ctime.
12127 (grub_xfs_dir): Set mtime.
12128 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12129 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12130 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12131
12132 Support UDF symlinks.
12133
12134 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12135 (grub_ufs_read_symlink): New function. All users updated.
12136
12137 Check amiga partmap checksum.
12138
12139 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12140 (grub_amiga_partition): Likewise.
12141 (amiga_partition_map_checksum): New function.
12142 (amiga_partition_map_iterate): Check checksum.
12143
12144 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 ROMFS support.
12147
12148 * Makefile.util.def (libgrubmods.a): Add romfs.
12149 * grub-core/Makefile.core.def (romfs): New module.
12150 * grub-core/fs/romfs.c: New file.
12151
12152 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12153
12154 Squashfs v4 support.
12155
12156 * Makefile.util.def (libgrubmods.a): Add squash4.
12157 * grub-core/Makefile.core.def (squash4): New module.
12158 * grub-core/fs/squash4.c: New file.
12159 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12160 disk_input_start, disk_input.
12161 (get_byte): Handle disk_input.
12162 (grub_zlib_disk_read): New function.
12163 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12164
12165 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12166 2011-05-15 Feiran Zheng <famcool@gmail.com>
12167
12168 * Makefile.util.def (libgrubmods.a): Add minix3.
12169 * grub-core/Makefile.core.def (minix3): New module.
12170 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12171 (GRUB_MINIX_BSIZE): Removed.
12172 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12173 (grub_minix_ino_t): New type.
12174 (grub_minix_le_to_cpu_ino): New macro.
12175 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12176 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12177 (grub_minix_data): New field block_size.
12178 (grub_minix_read_file): Handle 64-bit correctly.
12179 * grub-core/fs/minix3.c: New file.
12180
12181 2011-05-15 Tristan Gingold <gingold@free.fr>
12182 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12183 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12184
12185 IA64 support.
12186
12187 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12188 * configure.ac: Add ia64-efi target.
12189 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12190 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12191 * gentpl.py: Add ia64_efi platform.
12192 Rename x86_efi to efi and Add ia64-efi. All users updated.
12193 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12194 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12195 Remove kern/generic/rtc_get_time_ms.c on EFI.
12196 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12197 kern/ia64/dl_helper.c on ia64-efi.
12198 Add kern/emu/cache.c on emu.
12199 (linux): Use on loader/ia64/efi/linux.c on ia64.
12200 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12201 whether symbol is a function.
12202 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12203 (grub_symbol): New field 'isfunc'.
12204 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12205 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12206 (grub_dl_load_segments): Place all sections into the same region.
12207 [__ia64__]: Create trampolines and got.
12208 [GRUB_MACHINE_EMU]: Call mprotect.
12209 (grub_dl_resolve_symbols): Resolve symbol type as well.
12210 [__ia64__]: Create function descriptors.
12211 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12212 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12213 (grub_get_rtc): New function.
12214 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12215 * grub-core/kern/emu/cache.S: Renamed to ...
12216 * grub-core/kern/emu/cache_s.S: ... this.
12217 [__ia64__]: Add a nop.
12218 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12219 [__ia64__]: New function.
12220 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12221 * grub-core/kern/ia64/dl.c: New file.
12222 * grub-core/kern/ia64/dl_helper.c: Likewise.
12223 * grub-core/kern/ia64/efi/init.c: New file.
12224 * grub-core/kern/ia64/efi/startup.S: Likewise.
12225 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12226 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12227 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12228 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12229 * grub-core/loader/ia64/efi/linux.c: New file.
12230 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12231 (GRUB_MOD_DEP): Likewise.
12232 (grub_dl) [__ia64__]: New fields got and tramp.
12233 (grub_dl): New field 'base'.
12234 (grub_dl_register_symbol): New argument isfunc. All users updated.
12235 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12236 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12237 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12238 (grub_ia64_dl_get_tramp_got_size): New proto.
12239 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12240 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12241 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12242 * include/grub/efi/api.h: Skip call wrappers on ia64.
12243 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12244 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12245 * include/grub/elf.h (ELF_ST_INFO): New definition.
12246 * include/grub/ia64/efi/kernel.h: New file.
12247 * include/grub/ia64/efi/memory.h: Likewise.
12248 * include/grub/ia64/efi/time.h: Likewise.
12249 * include/grub/ia64/kernel.h: Likewise.
12250 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12251 * include/grub/ia64/time.h: New file.
12252 * include/grub/ia64/types.h: Likewise.
12253 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12254 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12255 New protos.
12256 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12257 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12258 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12259 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12260 All users updated.
12261 (EFI64_HEADER_SIZE): New definition. All users updated.
12262 (image_targets): Add ia64-efi.
12263 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12264 jumpers_addr. All users updated.
12265 Create function descriptors.
12266 (count_funcs): New function.
12267 (unaligned_uint32): New struct.
12268 (MASK20): New definition.
12269 (MASK19): Likewise.
12270 (MASKF21): Likewise.
12271 (add_value_to_slot_20b): New function.
12272 (add_value_to_slot_21_real): Likewise.
12273 (add_value_to_slot_21): Likewise.
12274 (ia64_kernel_trampoline): New struct.
12275 (nopm): New variable.
12276 (jump): Likewise.
12277 (make_trampoline): New function.
12278 (relocate_addresses): Handle ia64.
12279 (make_reloc_section): Likewise.
12280 (load_image): Likewise.
12281
12282 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12283
12284 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12285 warning. Move variables before code while on it.
12286
12287 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12288
12289 Fuloong support.
12290
12291 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12292 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12293 * grub-core/boot/mips/loongson/fuloong.S: New file.
12294 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12295 Explicitly init CS5536.
12296 [FULOONG]: Don't use serial until CS5536 is available.
12297 Set GPIO based on dumps.
12298 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12299 [FULOONG]: Handle GPIO and memory controller differences.
12300 Parse machine type in $a2.
12301 * grub-core/boot/mips/startup_raw.S: Determine and save the
12302 architecture.
12303 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12304 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12305 init on architecture type.
12306 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12307 SIS315E. Don't init at_keyboard on fuloong.
12308 (grub_halt): Support Fuloong.
12309 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12310 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12311 (loongson_machtypes): New array.
12312 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12313 type.
12314 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12315 config. All users updated. Handle CS5536 serial.
12316 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12317 default port on machine type. Register serial as inactive.
12318 * grub-core/video/sis315pro.c: New file.
12319 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12320 definition.
12321 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12322 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12323 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12324 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12325 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12326 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12327 to ...
12328 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12329 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12330 definition.
12331 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12332 (grub_arch_machine): New extern var.
12333 * include/grub/mips/loongson/serial.h
12334 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12335 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12336 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12337 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12338 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12339 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12340 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12341 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12342 * include/grub/term.h (grub_term_register_input_inactive): New inline
12343 function.
12344 (grub_term_register_output_inactive): Likewise.
12345 * include/grub/video.h (grub_video_driver_id): New value
12346 GRUB_VIDEO_DRIVER_SIS315PRO.
12347 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12348 New field "names". All users updated.
12349 New field value IMAGE_FULOONG_FLASH.
12350 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12351
12352 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12353
12354 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12355 and add some clarification.
12356
12357 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12358
12359 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12360 platforms if kernel is compressed.
12361
12362 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12363
12364 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12365 unused modules since currently referrence counter isn't reliable and
12366 there isn't much memory to recover there anyway.
12367
12368 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12369
12370 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12371 rather than resetting it to allow modules to reference themselves
12372 in init.
12373
12374 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12375
12376 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12377 counter on dependencies since grub_dl_unref already handles this.
12378
12379 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12380
12381 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12382 on error if not already done.
12383
12384 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12385
12386 Fix few potential memory misusage.
12387
12388 * grub-core/font/font.c (load_font_index): Don't free char_index to
12389 avoid double free.
12390 (grub_font_load): Zero-fill font at alloc for safety.
12391 Close file on error.
12392 (free_font): Free bmp_idx.
12393
12394 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12395
12396 * docs/grub.texi (Installation): Fix several outdated claims.
12397
12398 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12399
12400 Handle module_license on windows.
12401
12402 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12403 sections shifted.
12404 (insert_string): Make argument const char * instead of char *.
12405 (write_section_data): Handle long section names.
12406 Handle module_license.
12407
12408 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12409
12410 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12411 handle class-free menuentries.
12412 (grub_normal_add_menu_entry): Add a check to be sure.
12413
12414 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12415
12416 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12417 PgUp and PgDown.
12418
12419 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12420
12421 * configure.ac: Bump version to 1.99.
12422
12423 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12424
12425 Give ATA device a bit more time on first try in order to allow disks
12426 to spin up.
12427
12428 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12429 if dev->present is 1. Reset dev->present on failure.
12430 (grub_ata_device_initialize): Set dev->present to 1.
12431 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12432 (grub_ata_device): New member 'present'.
12433
12434 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12435
12436 * util/grub-mkimage.c (generate_image): Update hash.
12437
12438 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12439
12440 Flush caches on DMA memory.
12441
12442 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12443 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12444 (grub_dma_free): Likewise.
12445 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12446
12447 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12448
12449 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12450 to avoid asm treating ld and sd as macros.
12451
12452 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12453
12454 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12455 decompressor.
12456
12457 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12458
12459 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12460 grub_decompress_core since later would fail if grub_decompress_core
12461 is too far.
12462
12463 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12464
12465 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12466 R_MIPS_JALR since it's used by newer compiler.
12467
12468 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12469
12470 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12471
12472 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12473
12474 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12475 file_path to 0 for surety.
12476 (grub_chainloader_boot): Set exit_data to NULL.
12477 Unset the loader once done.
12478 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12479
12480 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12481
12482 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12483 unknown key into a dprintf.
12484
12485 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12486
12487 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12488 on first non-existant partition.
12489
12490 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12491
12492 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12493 openning fails.
12494 Reported by: Mark Korenberg.
12495
12496 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12497
12498 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12499 overflow.
12500
12501 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12502
12503 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12504 before closing to ensure that it will be readable by grub-setup.
12505
12506 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12507
12508 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12509 (devpath_1): Use MAKE_PIWG_PATH.
12510 (devpath_2): Likewise.
12511 (devpath_3): Likewise.
12512 (devpath_4): Likewise.
12513 (devpath_5): Likewise.
12514 (devpath_6): Likewise.
12515
12516 The appleldr.mod was checked that to be binary identical to previous
12517 version.
12518
12519 2011-05-05 Zach <mikezackles>
12520
12521 Support 2010 Macbooks.
12522
12523 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12524 (devs): Add devpath_6.
12525
12526 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12527
12528 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12529 /dev/random. /dev/urandom is good enough for our purposes (salting).
12530
12531 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12532
12533 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12534
12535 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12536
12537 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12538 hexadecimal.
12539
12540 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12541
12542 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12543 and not 0 on failure.
12544
12545 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12546
12547 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12548 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12549 disk; otherwise grub_fs_probe will not fall back to the next
12550 filesystem.
12551 (grub_pxefs_open): Likewise, for consistency.
12552 Reported and tested by: Ezekiel Grave.
12553
12554 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12555
12556 * tests/partmap_test.in: Don't hardcode path to parted.
12557 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12558
12559 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12560
12561 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12562 of `ls' to find out which devices are available.
12563
12564 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12565
12566 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12567 than source address for efi mmap buffer.
12568
12569 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12572 wrong action on non-detecting the magic.
12573
12574 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12575
12576 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12577 already supplied by another part of the module (fixes compilation on
12578 FreeBSD).
12579
12580 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12581
12582 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12583 match the one used by mdadm.
12584
12585 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12586
12587 * po/README: Add instructions for creating po/LINGUAS.
12588
12589 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12590
12591 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12592 #551428.
12593
12594 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12595 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12596 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12597 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12598 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12599 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12600 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12601 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12602 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12603 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12604 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12605 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12606 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12607 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12608 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12609 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12610 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12611 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12612 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12613 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12614 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12615 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12616
12617 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12618
12619 * grub-core/kern/emu/getroot.c
12620 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12621 test that was incorrectly reintroduced in r3214.
12622 Reported by: Ian Dall. Fixes Savannah bug #33133.
12623
12624 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12625
12626 Fix stack pointer handling in 16-bit relocator.
12627
12628 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12629 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12630 Fixes Ubuntu bug #683904.
12631
12632 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12633
12634 * configure.ac: Bump version to 1.99~rc2.
12635
12636 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12637
12638 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12639 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12640 * grub-core/lib/x86_64/setjmp.S: Likewise.
12641 * grub-core/lib/mips/setjmp.S: Likewise.
12642 * grub-core/lib/powerpc/setjmp.S: Likewise.
12643 * grub-core/lib/sparc64/setjmp.S: Likewise.
12644
12645 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12648 * grub-core/lib/efi/datetime.c: Likewise.
12649
12650 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12651
12652 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12653 New function.
12654 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12655 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12656 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12657
12658 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12661 bitmap.
12662 (grub_gfxterm_term_init): Likewise.
12663
12664 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12665
12666 Take into account the decorations the computing menu entry width.
12667
12668 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12669 (grub_gfxmenu_create_box): Register get_border_width.
12670 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12671 if available.
12672 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12673 get_border_width.
12674
12675 2011-04-18 Endres Puschner <code@e7p.de>
12676
12677 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12678 Don't skip first class.
12679
12680 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12681
12682 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12683 chunks.
12684 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12685
12686 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12687
12688 Complete 64-bit division support.
12689
12690 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12691 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12692 * include/grub/misc.h (grub_divmod64): Rename to ...
12693 (grub_divmod64_full): ... this.
12694 (grub_divmod64): New inline function.
12695
12696 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12699
12700 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12701
12702 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12703 performing the necessary test.
12704
12705 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12706
12707 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12708 (kfreebsd.elf): Likewise.
12709 (pc-chainloader.elf): Likewise.
12710 (ntldr.elf): Likewise.
12711
12712 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12713
12714 Identify RAID by its UUID rather than (guessed) name.
12715
12716 * grub-core/disk/raid.c (ascii2hex): New function.
12717 (grub_raid_open): Accept mduuid/%s specification.
12718 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12719 (get_mdadm_uuid): ... this.
12720 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12721
12722 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12723
12724 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12725 to negative size.
12726
12727 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12728
12729 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12730 btrfs subvolume.
12731 * util/grub.d/20_linux_xen.in: Likewise.
12732
12733 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12734
12735 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12736 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12737
12738 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12739 Build a list of relevant visible mounts using the mnt_id and
12740 parent_mnt_id fields, and then scan that list at the end.
12741
12742 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12743
12744 * docs/grub.texi (normal): New section.
12745 (normal_exit): New section.
12746 (Embedded configuration): Add reference to normal.
12747 (GRUB only offers a rescue shell): Likewise.
12748 * docs/grub-dev.texi (Error Handling): Fix typo.
12749
12750 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12751
12752 * NEWS: Drop obsolete entry about probe-only btrfs support.
12753
12754 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12755
12756 * util/import_gcry.py: Fix typo.
12757
12758 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12759
12760 * NEWS: Add btrfs support.
12761
12762 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12763 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12764
12765 BtrFS support. Written by me (Vladimir) with important bugfixes and
12766 even more important testing by Colin.
12767
12768 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
12769 * grub-core/Makefile.core.def (btrfs): Add crc.c.
12770 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
12771 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
12772 mem_input_off and mem_input. All users updated to accept in-RAM input.
12773 (gzio_seek): New function.
12774 (test_zlib_header): Likewise.
12775 (grub_gzio_read): Likewise.
12776 (grub_zlib_decompress): Likewise.
12777 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
12778 Accept partial and non-virtual mounts.
12779 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
12780 avoid receiving /dev/dm-X as device.
12781 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
12782 Handle bind and partial mounts.
12783 * grub-core/lib/crc.c: New file.
12784 * include/grub/deflate.h: Likewise.
12785 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
12786 proto.
12787 * include/grub/lib/crc.h: New file.
12788
12789 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12790
12791 Implement automatic module license checking according to new GNU
12792 guidelines.
12793
12794 * grub-core/kern/dl.c (grub_dl_check_license): New function.
12795 (grub_dl_load_core): Use grub_dl_check_license.
12796 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
12797 (GRUB_MOD_LICENSE): Likewise.
12798 (GRUB_MOD_DUAL_LICENSE): Likewise.
12799 All modules updated.
12800
12801 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12802
12803 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
12804 reserved_first_sector to 1. btrfs reserves plenty of space for boot
12805 loaders.
12806 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
12807
12808 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
12811
12812 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12813
12814 * util/grub-fstest.c (read_file): Report GRUB error if file opening
12815 failed.
12816
12817 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12818
12819 * grub-core/kern/file.c (grub_file_open): Don't take into account the
12820 parenthesis in the middle of the filename.
12821
12822 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12823
12824 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
12825 rather than trying to put initrd way too high.
12826 Reported by: Ryan Lortie <desrt@desrt.ca>
12827
12828 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12829
12830 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
12831 improperly removed string.
12832
12833 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12834
12835 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
12836 is_disk.
12837 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
12838 (open_device) Likewise.
12839 (grub_util_biosdisk_close): Likewise.
12840 Reported by: Mark Korenberg.
12841
12842 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
12843
12844 * util/grub-mkconfig_lib.in: Add missing quotes.
12845
12846 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
12847
12848 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
12849 is NULL.
12850
12851 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12852
12853 Dynamically count the number of lines for the lower banner.
12854
12855 * grub-core/normal/menu_entry.c (per_term_screen): New member
12856 num_entries.
12857 (print_down): Use num_entries.
12858 (update_screen): Likewise.
12859 (grub_menu_entry_run): Set num_entries.
12860 * grub-core/normal/menu_text.c (menu_viewer_data): New member
12861 num_entries.
12862 (grub_print_message_indented): Move real part to ...
12863 (grub_print_message_indented_real): ... here. Additional argument
12864 dry_run.
12865 (draw_border): Additional argument num_entries.
12866 (print_message): Additional argument dry_run.
12867 (print_entries): Receive menu viewer data.
12868 (grub_menu_init_page): New argment num_entries.
12869 (menu_text_set_chosen_entry): Use num_entries.
12870 (grub_menu_try_text): Likewise.
12871 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
12872 All users updated.
12873 (grub_ucs4_count_lines): New function.
12874 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
12875 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
12876 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
12877 (grub_term_border_height): Likewise.
12878 (grub_term_num_entries): Likewise.
12879
12880 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
12883 Remove now unused string.
12884
12885 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12886
12887 * docs/grub-dev.texi (Finding your way around): Update for 1.99
12888 build system.
12889 (Getting started): GRUB is developed in Bazaar now, not Subversion.
12890
12891 (Comment): Fix typo.
12892 (Getting started): General copy-editing.
12893 (Typical Development Experience): Likewise.
12894 (Error Handling): Likewise.
12895 (Video API): Likewise.
12896
12897 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12898
12899 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
12900 throughout.
12901
12902 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12903
12904 * util/grub-mkimage.c (main): Handle special naming of yeeloong
12905 directory.
12906
12907 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12908
12909 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
12910 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
12911 "development".
12912
12913 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
12916 grub_strcpy since the lines aren't necessarily 0-terminated.
12917
12918 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12919
12920 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
12921 root on legacy.
12922
12923 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12924
12925 * grub-core/commands/probe.c (options): Argument to set isn't optional.
12926 (GRUB_MOD_INIT): DEVICE isn't optional.
12927
12928 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12929
12930 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
12931 word on new line if it's too long anyway. Fixes a hang.
12932
12933 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12934
12935 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
12936 const.
12937 * util/grub-setup.c (main): Reuse md device name if available.
12938 * util/raid.c (grub_util_raid_getmembers): Receive device name and
12939 not GRUB name as argument.
12940 Based on patch by: Florian Wagner <fwagner>.
12941
12942 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12943
12944 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
12945 Place mbi on low memory for better compatibility.
12946
12947 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
12950
12951 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12952 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12953
12954 * autogen.sh: Ensure that collate and ctype locale is C.
12955 * conf/Makefile.common: Likewise.
12956
12957 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12958
12959 * grub-core/normal/menu.c: Add missing include.
12960
12961 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12962
12963 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
12964
12965 2011-04-08 Martin Zuther <mzuther@mzuther.de>
12966
12967 * util/grub-mkconfig.in: Ignore emacsen backup.
12968
12969 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
12972 on open.
12973 (grub_util_biosdisk_close): Likewise.
12974
12975 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12976
12977 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
12978 const attribute and use grub_isdigit.
12979
12980 2011-04-06 Andrey <dev_null@ukr.net>
12981
12982 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
12983 gcc warning.
12984
12985 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12986
12987 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
12988 useful grub_dprintf's.
12989
12990 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12991
12992 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
12993
12994 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12995
12996 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
12997
12998 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12999
13000 Output errors if theme loading failed.
13001
13002 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13003 grub_gfxterm_fullscreen on error paths to ...
13004 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13005 theme loading error.
13006
13007 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13010 space for older compilers.
13011 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13012
13013 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13014
13015 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13016 and report them as not RAID members since they are useless for GRUB.
13017 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13018
13019 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13020
13021 Increase LVM implementation robustness in order not to crash on
13022 configurations like pvmove. Previously code assumed that in some places
13023 only lvs or only pvs are used whereas it seems that they are used
13024 interchangeably.
13025
13026 * grub-core/disk/lvm.c (read_node): New function.
13027 (read_lv): Use read_node.
13028 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13029 Match volumes only at the end when all lvs are found. Take both
13030 pvs (first) and lvs (second) into account.
13031 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13032 mirror_* into node_*. All users updated.
13033 (grub_lvm_stripe): Merge this ...
13034 (grub_lvm_mirror): ... and this ...
13035 (grub_lvm_node): ... into this. All users updated.
13036
13037 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13038
13039 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13040 of function to allow further scanning for LVMs.
13041
13042 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13043
13044 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13045 on failed seek as it breaks open fd reusage.
13046
13047 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13048
13049 * util/grub-install.in: Add a recommendation to use --recheck before
13050 reporting bugs.
13051
13052 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13053
13054 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13055 are obtained.
13056
13057 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13058
13059 GRUB developper manual based on existing Internals section and
13060 contributions by the various authors with active copyright assignment.
13061
13062 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13063 * docs/font_char_metrics.png: New file.
13064 * docs/font_char_metrics.txt: Likewise.
13065 * docs/grub-dev.texi: Likewise.
13066 * docs/grub.texi (Internals): Move from here ...
13067 * docs/grub-dev.texi: ... here.
13068
13069 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13070
13071 Store the loopback device as data on loopback grub_disk structures,
13072 rather than the file it points to. This fixes use of freed memory
13073 if an existing loopback device is replaced.
13074
13075 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13076 disk->data, not dev->file.
13077 (grub_loopback_read): Adjust file assignment to match.
13078 Fixes Ubuntu bug #742967.
13079
13080 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13081
13082 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13083 when replacing an existing device.
13084
13085 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13086
13087 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13088 memory corruptions.
13089
13090 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13091 unsigned.
13092 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13093 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13094 (grub_jfs_read_inode): Likewise.
13095 (grub_jfs_opendir): Likewise. Remove now useless casts.
13096 (grub_jfs_getent): Likewise.
13097 Make ino a grub_uint32_t rather than int.
13098 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13099 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13100 division and module with bit operations.
13101 (grub_jfs_find_file): Make ino a grub_uint32_t.
13102 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13103
13104 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13105
13106 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13107 warning. (This was in fact always initialised before use, but GCC
13108 wasn't smart enough to prove that.)
13109 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13110
13111 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13112
13113 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13114 stack alignment.
13115 (efi_wrap_1): Likewise.
13116 (efi_wrap_2): Likewise.
13117 (efi_wrap_3): Likewise.
13118 (efi_wrap_4): Likewise.
13119 (efi_wrap_5): Likewise.
13120 (efi_wrap_6): Likewise.
13121 (efi_wrap_10): Likewise.
13122 Based on information by: Red Hat/Peter Jones.
13123
13124 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13125
13126 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13127 set-but-not-used variable.
13128
13129 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13130
13131 * docs/grub.texi (Simple configuration): Be more explicit about
13132 GRUB_DEFAULT, and add an example.
13133 Reported by: Leslie Rhorer.
13134
13135 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13136
13137 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13138 shell".
13139
13140 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13141
13142 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13143 * util/grub.d/20_linux_xen.in: Likewise.
13144
13145 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 * util/grub.d/10_linux.in: Try alternative config filenames where
13148 we parse config file.
13149 * util/grub.d/20_linux_xen.in: Likewise.
13150
13151 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13152
13153 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13154 * util/grub.d/20_linux_xen.in: Likewise.
13155
13156 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13157
13158 * grub-core/disk/raid.c (insert_array): Add few potentially
13159 useful grub_util_info.
13160 (grub_raid_register): Likewise.
13161
13162 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13163
13164 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13165 Preserve partition number in mdadm code path.
13166
13167 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13168
13169 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13170 few potentially useful grub_util_info.
13171
13172 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13173
13174 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13175
13176 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13177
13178 * docs/grub.texi (default): Use @example rather than nested
13179 itemized lists to avoid breaking gendocs.
13180
13181 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13182
13183 * docs/grub.texi (Future): Update.
13184
13185 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13186
13187 * docs/grub.texi (Environment): New chapter.
13188 (Changes from GRUB Legacy): Link to "Environment block" section for
13189 details of limitations.
13190 (Simple configuration): Likewise. Link to documentation of gfxmode
13191 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13192 respectively.
13193 (Shell-like scripting): Note that normal variables are stored in the
13194 environment.
13195 (gettext): Link to documentation of lang and locale_dir.
13196 (list_env): New section.
13197 (load_env): New section.
13198 (save_env): New section.
13199
13200 (Reporting bugs): Fix typo.
13201
13202 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13203
13204 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13205 the example.
13206
13207 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 * grub-core/term/at_keyboard.c (set_scancodes)
13210 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13211
13212 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13213
13214 * docs/grub.texi (Menu-specific commands): Remove some semantics
13215 that were true in GRUB Legacy but not in GRUB 2.
13216 (submenu): New section.
13217 (false): New section.
13218 (read): New section.
13219 (true): New section.
13220
13221 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13222
13223 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13224
13225 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13226
13227 * docs/grub.texi (Simple configuration): Explain some of the
13228 current limitations of grub-mkconfig.
13229 Reported by: Leslie Rhorer.
13230
13231 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13232
13233 Old macs search for boot.efi rather than for bootia32.efi.
13234
13235 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13236 * util/grub-mkrescue.in: Likewise.
13237 Suggested by: Peter Jones.
13238
13239 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13240
13241 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13242
13243 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13244
13245 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13246 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13247 (grub_lvm_mirror): New struct.
13248 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13249 (grub_lvm_iterate): Iterate only visible volumes.
13250 (grub_lvm_read): Factor out to ..
13251 (read_lv): ... this. Support mirrors.
13252 (grub_lvm_read): New wrapper function.
13253 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13254 stripped or mirrored.
13255
13256 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13257
13258 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13259
13260 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13261
13262 * docs/grub.texi (loopback): New section.
13263
13264 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13265
13266 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13267 removed -p option.
13268
13269 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13270
13271 * docs/grub.texi (BIOS installation): New section, partly based on
13272 previous text in other sections.
13273 (Installing GRUB using grub-install): Replace BIOS discussion with a
13274 cross-reference.
13275 (Images): Likewise.
13276
13277 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13278
13279 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13280 [HAVE_DIOCGDINFO]: Add safety checks.
13281
13282 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13285 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13286
13287 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13288
13289 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13290 real_sb->size is zero (e.g. RAID-0), get the disk size from
13291 real_sb->data_size instead.
13292 Fixes Ubuntu bug #743136.
13293
13294 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13295
13296 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13297 printf clauses for printing size and start.
13298
13299 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13300
13301 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13302 Reported and tested by: Timothy Nikkel.
13303
13304 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13305
13306 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13307 (dirty_region_add_real): ... this.
13308 (dirty_region_add): Don't discard margin refresh when performing
13309 scheduled repaint.
13310
13311 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13312
13313 * grub-core/lib/relocator.c (allocate_regstart)
13314 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13315 terminals are capabple of malloc-free operation.
13316 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13317 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13318
13319 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13320
13321 * util/grub-setup.c: Copy the partition table zone if floppy support
13322 is disabled, even if no partition table is found.
13323
13324 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13325 during POST if an invalid partition table is contained in the PBR
13326 of the active partition when GRUB is installed to a partition.
13327
13328 2011-03-28 Colin Watson <cjwatson@debian.org>
13329
13330 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13331 comment.
13332
13333 2011-03-28 Colin Watson <cjwatson@debian.org>
13334
13335 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13336 to be specific about what kind of RAID device we're scanning for.
13337
13338 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13339
13340 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13341 return freed string.
13342
13343 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13344
13345 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13346
13347 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13348
13349 Use libgeom on FreeBSD to detect partitions.
13350
13351 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13352 (grub-mkrelpath): Likewise.
13353 (grub-script-check): Likewise.
13354 (grub-editenv): Likewise.
13355 (grub-mkpasswd-pbkdf2): Likewise.
13356 (grub-fstest): Likewise.
13357 (grub-mkfont): Likewise.
13358 (grub-mkdevicemap): Likewise.
13359 (grub-probe): Likewise.
13360 (grub-setup): Likewise.
13361 (grub-ofpathname): Likewise.
13362 (grub-mklayout): Likewise.
13363 (example_unit_test): Likewise.
13364 (grub-menulst2cfg): Likewise.
13365 * grub-core/Makefile.core.def (grub-emu): Likewise.
13366 (grub-emu-lite): Likewise.
13367 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13368 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13369 define HAVE_DIOCGDINFO.
13370 (follow_geom_up) [FreeBSD]: New function.
13371 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13372 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13373 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13374 unconditionally of HAVE_DIOCGDINFO.
13375
13376 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13377
13378 Fix FreeBSD compilation problem.
13379
13380 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13381 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13382
13383 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13384
13385 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13386 Switch back to page zero before loading a kernel, since some kernel
13387 drivers expect that.
13388 Thanks to: Felix Kuehling.
13389
13390 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13391
13392 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13393 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13394 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13395
13396 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13397
13398 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13399 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13400
13401 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13402
13403 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13404 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13405 malloc is disabled.
13406
13407 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13408
13409 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13410 for modules headers when counting the needed allocation size.
13411
13412 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13413
13414 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13415 if no ASCII character is found to prevent crash.
13416
13417 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13418
13419 * grub-core/video/bitmap.c (match_extension): Ignore case.
13420
13421 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13422
13423 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13424
13425 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13426
13427 * grub-core/script/parser.y: Declare "time" as valid argument.
13428
13429 2011-03-23 Peter Jones <pjones@redhat.com>
13430
13431 Fix incorrect assert failure reporting.
13432
13433 * grub-core/tests/example_functional_test.c (example_test): Add
13434 a failure comment.
13435 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13436 (failure_start): ...this. Check that malloc succeeded.
13437 Don't call xvasprintf. Return failure struct.
13438 (failure_append_vtext): New function.
13439 (failure_append_text): Likewise.
13440 (add_failure): Likewise.
13441 (grub_test_assert_helper): Likewise.
13442 * include/grub/test.h (grub_test_assert_helper): New declaration.
13443 (grub_test_assert): Macro rewritten.
13444
13445 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13446
13447 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13448
13449 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13450
13451 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13452
13453 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13454
13455 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13456 into GRUB-style one.
13457
13458 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13461 error and not grub_errno.
13462 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13463
13464 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13465
13466 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13467 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13468
13469 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13470
13471 * grub-core/efiemu/i386/pc/cfgtables.c
13472 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13473 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13474 (grub_xnu_unlock): Likewise.
13475 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13476
13477 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13480 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13481 * grub-core/commands/hashsum.c (aliases): Likewise.
13482 * grub-core/commands/setpci.c (pci_registers): Likewise.
13483 * grub-core/disk/usbms.c (attach_hook): Likewise.
13484 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13485 (zio_checksum_table): Likewise.
13486 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13487 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13488 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13489 * grub-core/lib/relocator.c (leftovers): Likewise.
13490 (extra_blocks): Likewise.
13491 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13492 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13493 (modules_last): Likewise.
13494 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13495 (devices): Likewise.
13496 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13497 (modules_last): Likewise.
13498 * grub-core/normal/auth.c (users): Likewise.
13499 * grub-core/normal/context.c (initial_menu): Likewise.
13500 (current_menu): Likewise.
13501 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13502 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13503 (grub_serial_terminfo_input_template): Likewise.
13504 (grub_serial_terminfo_output_template): Likewise.
13505 (grub_serial_terminfo_input): Likewise.
13506 (grub_serial_terminfo_output): Likewise.
13507 (registered): Likewise.
13508 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13509
13510 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13511
13512 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13513 grub_video_mode_type_t.
13514 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13515 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13516 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13517
13518 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13519
13520 * util/grub-install.in: Correct the x86-64 name as x86_64.
13521
13522 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13523
13524 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13525 initial chunk read from the kernel always includes GRUB's multiboot
13526 header, which is now outside the first sector.
13527
13528 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13529
13530 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13531 cached mmap_size, so that this works correctly when called multiple
13532 times.
13533 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13534
13535 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13536
13537 * docs/grub.texi (Simple configuration): Tidy up formatting.
13538
13539 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13540
13541 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13542 Set-but-not-used variable removed.
13543
13544 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13545
13546 Workaround yet another IEEE1275 bug.
13547
13548 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13549 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13550 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13551 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13552 is set.
13553 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13554 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13555
13556 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13557
13558 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13559 error.
13560
13561 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13562
13563 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13564 empty, since in that case we can only generate either nothing or a
13565 syntactically invalid configuration file.
13566 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13567
13568 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13569
13570 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13571 (Making a GRUB bootable CD-ROM): Likewise.
13572 (Invoking grub-mkrescue): New section.
13573 Reported by: Yann Dirson. Fixes Debian bug #612585.
13574
13575 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13576
13577 * util/grub-install.in: Remove unnecessary brackets from tr
13578 arguments.
13579 * util/grub.d/10_hurd.in: Likewise.
13580 * util/grub.d/10_kfreebsd.in: Likewise.
13581 * util/grub.d/10_linux.in: Likewise.
13582 * util/grub.d/20_linux_xen.in: Likewise.
13583 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13584
13585 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13586
13587 * include/grub/file.h (not_easly_seekable): Rename to ...
13588 (not_easily_seekable): ... this. Update all users.
13589
13590 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13591
13592 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13593 grub-mkrescue.
13594
13595 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13596
13597 * util/grub-mkimage.c (generate_image): Refuse to create the images
13598 bigger than the actual flash (512K) in Loongson machines. 512K is also
13599 the biggest chip supported by them.
13600
13601 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13602
13603 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13604
13605 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13606
13607 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13608 super_offset field.
13609
13610 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13611
13612 * util/grub-install.in: Ignore install device on platforms
13613 where it doesn't make sense. Always use UUIDs except on pc, efi and
13614 sparc64.
13615 Reported by: Daniel Kahn Gillmor.
13616
13617 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13618
13619 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13620
13621 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13622
13623 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13624 (iterate_real): Don't rely on partition being non-NULL.
13625
13626 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13627
13628 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13629 supported platforms. Put a compile time assert for this rather than
13630 generate a warning with 32-bit shift.
13631
13632 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13633
13634 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13635 logical expression more readable.
13636
13637 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13638
13639 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13640 even if some elements have a name.
13641 Reported by: Alexander GQ Gerasiov.
13642
13643 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13644
13645 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13646 path unreadable if `grub-probe -t abstraction' fails, for example if
13647 memberlist fails on an LVM volume group.
13648 Reported by: Darius Jahandarie.
13649
13650 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13651
13652 * docs/grub.texi (Simple configuration): Document
13653 GRUB_PRELOAD_MODULES.
13654
13655 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
13656
13657 * .bzrignore: Remove nonexistent grub-pbkdf2.
13658
13659 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13660
13661 * configure.ac: Bump version to 1.99~rc1.
13662
13663 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13664
13665 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13666 for safety.
13667
13668 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13669
13670 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13671 module.
13672
13673 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13674
13675 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13676
13677 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13678
13679 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13680 diskdevid.
13681
13682 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13683
13684 Fix compilation on cygwin.
13685
13686 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13687 -R .drectve on cygwin.
13688 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13689 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13690 (COND_CYGWIN): New condition.
13691 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13692 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13693 not @TARGET_OBJ2ELF@.
13694 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13695 type to determine whether aux is to be used.
13696
13697 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13700 realpath'ed device string.
13701 Handle floppy (somewhat).
13702 Issue error in unknown case rather than garbage.
13703 Reported by: Axel Beckert.
13704
13705 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13706
13707 * util/grub.d/00_header.in (load_video): Handle the case when no video
13708 drivers available.
13709 Thanks to: Axel Beckert.
13710
13711 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13712
13713 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13714 variable. Fixes problem on big endian platforms.
13715
13716 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13717
13718 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13719 It doesn't work well there.
13720
13721 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13724 warning.
13725 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13726 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13727 counter.
13728
13729 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13730
13731 Use alias->path rather than buggy "canon".
13732
13733 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13734 (ofdisk_hash_add): New argument curcan. All users updated.
13735
13736 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13737
13738 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13739
13740 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13741
13742 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13743 loadmask before doing any calculations. Use correct type for offset.
13744 (grub_linux_load64): Likewise.
13745
13746 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13747
13748 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13749 with NULL.
13750 (console_grub_equivalences_unshift): Likewise.
13751 Reported by: Daniel Dehennin.
13752
13753 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13754
13755 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13756 (set_env_limn_ro): Likewise.
13757 (GRUB_MOD_INIT): Likewise.
13758 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13759 ARRAY_SIZE while on it.
13760 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13761 * grub-core/normal/context.c (grub_env_export): Move from here ...
13762 * grub-core/kern/env.c (grub_env_export): ... here.
13763 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13764 prefix.
13765 * grub-core/kern/main.c (grub_main): Export root and prefix.
13766 * include/grub/env.h (grub_env_export): Export.
13767 Reported by: Seth Goldberg.
13768
13769 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13770
13771 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13772 Take into account space used by ELF sections and multiboot palette.
13773 Reported by: Grégoire Sutre.
13774
13775 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13776
13777 * BUGS: New file.
13778
13779 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 Pass more appropriate video id to Linux.
13782
13783 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
13784 grub_video_get_driver_id and variable gfxpayloadforcelfb to
13785 fill have_vga.
13786 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
13787 shift params->lfb_size.
13788 * include/grub/i386/linux.h: Make an enume out of have_vga values.
13789
13790 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13791
13792 * util/grub-menulst2cfg.c: Add missing include of misc.h.
13793
13794 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13795
13796 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
13797 separator and pass bootpath/devid even if only one of them is available.
13798 Reported by: Seth Goldberg.
13799
13800 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
13803 implementations bug on them.
13804
13805 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
13806 memory.
13807 (filter_memory_map): Likewise.
13808
13809 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13810
13811 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
13812 Reported by: nebuchadnezzar.
13813
13814 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13815
13816 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
13817 Reported by: nebuchadnezzar.
13818
13819 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13820
13821 Submenu default support.
13822
13823 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
13824 auto_boot. All users updated.
13825 Declared static.
13826 Handle chosen and default with submenus.
13827 (grub_menu_execute_with_fallback): Declared static.
13828 Don't notify failure if autobooted. Upper level does it.
13829 (menuentry_eq): New function.
13830 (get_entry_number): Use menuentry_eq.
13831 (show_menu): New parameter "autobooted". All users updated.
13832 (grub_show_menu): Likewise.
13833 * include/grub/normal.h (grub_show_menu): Likewise.
13834 * include/grub/menu.h (grub_menu_execute_entry): Removed.
13835 (grub_menu_execute_with_fallback): Likewise.
13836
13837 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13838
13839 * util/grub-mklayout.c (usage): Update help text.
13840
13841 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13842
13843 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
13844
13845 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 * util/grub-menulst2cfg.c (main): Trim the line.
13848
13849 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
13852 (grub_machine_init): Don't check amount of low memory as reportedly
13853 INT 12h can be broken and if low memory is too low we wouldn't have
13854 gotten into grub_machine_init anyway.
13855
13856 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13857
13858 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
13859 (grub_machine_mmap_iterate): Take low memory into account
13860
13861 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13862
13863 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
13864 badfs.
13865 Reported by: TiCPU.
13866
13867 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13868
13869 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
13870 members errors.
13871
13872 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13873
13874 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
13875 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
13876
13877 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13878
13879 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
13880 openbsd and netbsd types being in part_bsd module.
13881
13882 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13883
13884 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
13885 (_FILE_OFFSET_BITS): Likewise.
13886 Reported by: Seth Goldberg.
13887
13888 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13889
13890 * configure.ac: Check for libdevmapper header.
13891
13892 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13893
13894 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
13895 avoid aliasing.
13896 (fzap_lookup): Likewise.
13897 (dnode_get): Likewise.
13898 (make_mdn): Likewise.
13899 (zfs_mount): Likewise.
13900 (fzap_iterate): Use temporary pointer to avoid aliasing.
13901 (grub_zfs_read): Likewise.
13902 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
13903 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
13904 pointers to avoid aliasing.
13905 (grub_cmd_xnu_kernel64): Likewise.
13906 (grub_xnu_load_driver): Likewise.
13907
13908 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13909
13910 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
13911 aliasing warning.
13912 (grub_cmd_terminal_output): Likewise.
13913 Reported and tested by: Grégoire Sutre.
13914
13915 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13916
13917 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
13918 warning.
13919 Reported and tested by: Grégoire Sutre.
13920
13921 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13922
13923 * configure.ac: Do CPU substitution even if it's specified explicitly.
13924 Reported and tested by: Alain Greppin.
13925
13926 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13927
13928 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
13929 Reported and tested by: Alain Greppin.
13930
13931 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13932
13933 Satisfy some bison versions need for inttypes.h.
13934
13935 * grub-core/lib/posix_wrap/inttypes.h: New file.
13936 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
13937 (int16_t): Likewise.
13938 (int32_t): Likewise.
13939 (int64_t): Likewise.
13940 Reported and tested by: Alain Greppin.
13941
13942 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13943
13944 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
13945 Silence spurious warning.
13946 Reported and tested by: Alain Greppin.
13947
13948 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13949
13950 * docs/grub.texi (Support automatic decompression): Update with xz
13951 decompression support.
13952
13953 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13954
13955 Improve loaders' kernel command line handling.
13956
13957 * grub-core/lib/cmdline.c: New file.
13958 * include/grub/lib/cmdline.h: Likewise.
13959 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
13960 grub_create_loader_cmdline to create kernel command line.
13961 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13962 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
13963 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
13964 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
13965 (linux): Add lib/cmdline.c on common.
13966
13967 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13968
13969 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
13970 inopos might be unaligned.
13971
13972 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13973
13974 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
13975 endian transformations.
13976 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13977 Based on report by: Doug Nazar.
13978
13979 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
13980
13981 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
13982 array->members[i].start_sector.
13983 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
13984
13985 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13986
13987 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
13988 Reported and tested by: Grégoire Sutre.
13989
13990 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13991
13992 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
13993 avoid causing test failures by clearing the screen.
13994
13995 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13996
13997 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13998 Fix prefix check to handle the case where dir ends with a slash
13999 (most significantly, "/" itself).
14000 Reported by: Michael Vogt.
14001
14002 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14003
14004 Run terminfo_cls on initing terminfo output to clear the screen and
14005 move the cursor to (0,0).
14006
14007 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14008 Call grub_terminfo_output_init.
14009 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14010 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14011 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14012
14013 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14014
14015 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14016 only when needed.
14017
14018 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14019
14020 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14021 CTRL.
14022
14023 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14024
14025 The E820 type 5 is BADRAM, not EXEC_CODE.
14026
14027 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14028 (GRUB_E820_BADRAM): New define.
14029 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14030 into reserved. Propagate BADRAM.
14031 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14032 (GRUB_E820_BADRAM): New define.
14033
14034 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14035
14036 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14037 Ignore the memory post-4G.
14038 (grub_relocator_firmware_alloc_region): Additional debug statement.
14039
14040 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14041
14042 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14043 names.
14044 Reported by: David Pravec.
14045
14046 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14049 BIOSes.
14050
14051 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14052
14053 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14054 Prevent overflow.
14055 (grub_reed_solomon_recover): Likewise.
14056
14057 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14058
14059 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14060
14061 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14062
14063 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14064 variable.
14065
14066 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14067
14068 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14069 descriptions of extract_legacy_entries_source and
14070 extract_legacy_entries_configfile.
14071 Reported by: Seung Soo, Ha.
14072
14073 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14074
14075 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14076 on devices that do not implement function 0.
14077
14078 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14079
14080 * grub-core/fs/hfsplus.c: Make parent unsigned.
14081 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14082 overflows.
14083 (grub_hfsplus_cmp_extkey): Likewise
14084
14085 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 * util/grub-install.in: Correctly use bootloader_id and not
14088 GRUB_DISTRIBUTOR on efibootmgr line.
14089
14090 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14091
14092 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14093
14094 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14095
14096 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14097 Xen and reorder menu item wording to make it clearer that this entry
14098 will launch Xen. Print separate messages when loading Xen and
14099 Linux.
14100
14101 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14102
14103 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14104 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14105 loop in case of incorrect amiga partmap.
14106
14107 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14110 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14111 Reported by:EHeM.
14112
14113 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14114
14115 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14116 spurious warning.
14117 Reported by: crocket
14118
14119 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14122 Preload EFIemu.
14123 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14124
14125 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14126
14127 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14128 is loaded
14129 (grub_cmd_xnu_kextdir): Likewise.
14130 (grub_cmd_xnu_splash): Likewise.
14131
14132 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14133
14134 Avoid using Reed-Solomon with 0 redundancy.
14135
14136 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14137 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14138 or 0 redundancy.
14139 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14140 (grub_reed_solomon_recover): Likewise.
14141
14142 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14143
14144 Don't use disk subsystem in freebsd_boot.
14145
14146 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14147 (freebsd_biosdev): Likewise.
14148 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14149 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14150
14151 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14152
14153 Handling of files of unknown size is currently limited. They can't be
14154 used e.g. for initrd or modules. Moreover gzip handling of not
14155 easily seekable files is buggy. Disable unknown file size for now. May
14156 be inefficient but works.
14157
14158 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14159 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14160
14161 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14162
14163 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14164 floppy probe.
14165
14166 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14167
14168 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14169
14170 2010-12-25 Shea Levy <shlevy>
14171
14172 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14173
14174 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14175
14176 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14177 Windows Server 2008.
14178 Reported by: Devin Giddings.
14179
14180 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14181
14182 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14183 writing an error message because of async power management.
14184 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14185 (grub_reboot): Likewise.
14186
14187 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14188
14189 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14190 keep unit tests from failing when they shouldn't.
14191
14192 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14193
14194 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14195 previous patch increased the size of the RS code by 20 bytes (at
14196 least with gcc-4.4), so increase this by 20 bytes to match.
14197 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14198
14199 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14200
14201 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14202 scratch area. Make sure to initialise chosen in standalone mode as
14203 well as non-standalone.
14204 Reported by: Robert Hooker and Andy Whitcroft.
14205 Tested by: Andy Whitcroft.
14206
14207 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14208
14209 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14210 constructing a new unescaped string and passing it to grub_xputs in
14211 one go, rather than passing characters to grub_printf one at a time.
14212
14213 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14214
14215 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14216 initialising utf16.
14217
14218 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14219
14220 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14221 comment. Add an extra layer of quotation, requiring the output of
14222 this function to be used in a printf format string.
14223 (gettext_printf): New function.
14224 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14225 Extract translatable strings from here-documents and use a temporary
14226 variable instead, so that xgettext can find them.
14227 * util/grub.d/10_kfreebsd.in: Likewise.
14228 * util/grub.d/10_linux.in: Likewise.
14229 * util/grub.d/20_linux_xen.in: Likewise.
14230
14231 * po/grub.d.sed: New file.
14232 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14233 arguments. Set c-format flags on all strings extracted from
14234 util/grub.d/ (xgettext refuses to include these itself for strings
14235 it extracted from a shell file, but these really are c-format).
14236
14237 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14238
14239 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14240 Avoid next pointing to nowhere.
14241
14242 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14243
14244 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14245 rather than assuming than rootblock is exactly in the middle.
14246 (grub_affs_label): Likewise.
14247
14248 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14251 reserved_first_sector to 0.
14252 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14253 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14254 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14255
14256 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14257
14258 Fix handling of UTF-16 UDF labels.
14259
14260 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14261 (read_string): .. here.
14262 (grub_udf_label): Use read_string.
14263
14264 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14265
14266 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14267 editor under argument scope.
14268 Reported by: Jordan Uggla
14269
14270 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14273
14274 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14275
14276 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14277 line, and other keys scroll an entire page (previous handling was
14278 for \r and \n to scroll a page and other keys to scroll two lines).
14279
14280 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14281
14282 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14283 Set ptrdest to correct get_physical_target_address rather than
14284 incorrect get_virtual_current_address.
14285
14286 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14287
14288 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14289 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14290
14291 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14292
14293 * .bzrignore: Ignore grub-core/rs_decoder.S.
14294
14295 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14296
14297 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14298 .mo/.mo.gz opening sequence to ...
14299 (grub_mofile_open_lang): ... here.
14300 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14301 * util/grub.d/00_header.in (grub_lang): Include country part of
14302 locale.
14303 Reported by: Mario Limonciello.
14304
14305 2010-12-09 Robert Millan <rmh@gnu.org>
14306
14307 * NEWS: Document addition of ZFS support.
14308
14309 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14310
14311 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14312 rather than `/ 2', as the latter requires -Wa,--divide which would
14313 require bumping our minimum binutils version.
14314
14315 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14316
14317 * util/grub-script-check.c (main): Print script line number on
14318 error.
14319
14320 2010-12-01 Robert Millan <rmh@gnu.org>
14321
14322 * grub-core/fs/zfs/zfs.c: New file.
14323 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14324 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14325 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14326 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14327
14328 * include/grub/zfs/dmu.h: Likewise.
14329 * include/grub/zfs/dmu_objset.h: Likewise.
14330 * include/grub/zfs/dnode.h: Likewise.
14331 * include/grub/zfs/dsl_dataset.h: Likewise.
14332 * include/grub/zfs/dsl_dir.h: Likewise.
14333 * include/grub/zfs/sa_impl.h: Likewise.
14334 * include/grub/zfs/spa.h: Likewise.
14335 * include/grub/zfs/uberblock_impl.h: Likewise.
14336 * include/grub/zfs/vdev_impl.h: Likewise.
14337 * include/grub/zfs/zap_impl.h: Likewise.
14338 * include/grub/zfs/zap_leaf.h: Likewise.
14339 * include/grub/zfs/zfs.h: Likewise.
14340 * include/grub/zfs/zfs_acl.h: Likewise.
14341 * include/grub/zfs/zfs_znode.h: Likewise.
14342 * include/grub/zfs/zil.h: Likewise.
14343 * include/grub/zfs/zio.h: Likewise.
14344 * include/grub/zfs/zio_checksum.h: Likewise.
14345
14346 * Makefile.util.def: Build ZFS into libgrubmods.
14347 * grub-core/Makefile.core.def: Build zfs.mod.
14348
14349 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14350
14351 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14352 variable.
14353 * grub-core/commands/wildcard.c (match_files): Likewise.
14354
14355 2010-11-30 Robert Millan <rmh@gnu.org>
14356
14357 * grub-core/loader/i386/bsd.c
14358 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14359 whether kernel is loaded using grub_loader_is_loaded(), rather
14360 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14361 certain error conditions.
14362
14363 2010-11-30 Robert Millan <rmh@gnu.org>
14364
14365 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14366 (grub_cmd_echo): Call grub_refresh() after printing a message.
14367
14368 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14369
14370 Avoid using tricks for initialising endian variables.
14371
14372 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14373 Make const.
14374 (GRUB_MOD_INIT): Don't byte-swap.
14375 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14376 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14377 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14378 (grub_swap_bytes32_compile_time): Likewise.
14379 (grub_cpu_to_le32_compile_time): Likewise.
14380 (grub_cpu_to_le16_compile_time): Likewise.
14381
14382 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14383
14384 * util/grub-setup.c (setup): Stop recommending --force. People who
14385 understand the dangers of blocklists are able to find this option
14386 anyway and the ones who don't shouldn't use it anyway.
14387
14388 2010-11-26 Robert Millan <rmh@gnu.org>
14389
14390 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14391 Update all users.
14392
14393 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14394
14395 Fix LVM-on-RAID probing.
14396
14397 * util/grub-probe.c (probe): Remember which disk was detected as
14398 RAID (perhaps an LVM physical volume). Use that disk's raidname
14399 rather than that of the top-level disk.
14400
14401 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14402
14403 Fix cmdline argument quotes for setparams command of menuentry
14404 definitions.
14405
14406 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14407 quotes for arguments.
14408 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14409 grub_strchrsub function instead.
14410
14411 * include/grub/misc.h (grub_strchrsub): New function.
14412
14413 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14414
14415 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14416 effort by skipping "." and ".." entries up-front.
14417 Suggested by: Michael Lazarev.
14418
14419 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14420
14421 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14422 ldflags to ldadd, to fix link line ordering.
14423 (none_decompress): Likewise.
14424
14425 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14426
14427 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14428 platforms.
14429 (grub-emu-lite): Remove kern/emu/cache.S.
14430
14431 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14432
14433 * util/deviceiter.c (compare_devices): If the by-id link for a
14434 device couldn't be resolved, fall back to sorting by the by-id link
14435 rather than segfaulting.
14436 Reported and tested by: Daniel Mierswa.
14437
14438 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14439
14440 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14441 ldflags, to fix link line ordering.
14442
14443 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14444
14445 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14446 linkers are picky about this.
14447
14448 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14449
14450 * grub-core/Makefile.am (command.lst): Adjust sed expression
14451 ordering so that extended and priority commands aren't treated as
14452 ordinary commands.
14453
14454 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14455
14456 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14457 Remove byte-swapping function calls, which are not valid in
14458 structure initialisers.
14459 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14460 non-const.
14461 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14462 grub_gpt_partition_type_bios_boot.
14463
14464 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14465
14466 Fix test program build on GNU/kFreeBSD.
14467
14468 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14469 $(LIBNVPAIR)' library dependencies.
14470
14471 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14472
14473 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14474
14475 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14476
14477 * util/grub-install.in: Remove excessive quoting that broke
14478 installations to RAID devices.
14479
14480 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14483 bootloader version instead of 0.
14484
14485 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14486
14487 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14488 warning.
14489
14490 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14491
14492 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14493 retrieve the metadat sector if size isn't known.
14494 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14495
14496 2010-11-18 Robert Millan <rmh@gnu.org>
14497
14498 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14499 with grub_memcmp().
14500
14501 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14502
14503 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14504 arrow.
14505 Reported by: Jordan Uggla.
14506
14507 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14508
14509 Make better UTF compliant.
14510
14511 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14512 sequences as incorrect.
14513 (grub_is_valid_utf8): Likewise.
14514 (grub_utf8_to_ucs4): Likewise.
14515 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14516 (grub_ucs4_to_utf8_alloc): Likewise.
14517 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14518
14519 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14520
14521 Make legacy_source behave like source.
14522
14523 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14524 grub_show_menu.
14525 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14526
14527 2010-11-16 Colin Watson <cjwatson@debian.org>
14528
14529 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14530 (-Wunused implies -Wunused-parameter, but not vice versa).
14531
14532 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14533
14534 * configure.ac: Make error messages less confusing by testing for
14535 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14536 accepted, but produces a diagnostic if something else is wrong).
14537
14538 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14539
14540 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14541 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14542 (now unused).
14543 (grub_keyboard_controller_init)
14544 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14545 read the initial state since controller isn't inited yet.
14546
14547 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14550 allocate_regbeg may need to create new chunk header.
14551
14552 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 Fix quoting in legacy parser.
14555
14556 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14557 single quotes.
14558 (grub_legacy_parse): Likewise.
14559 Reported by: Jordan Uggla.
14560 Tested by: Jordan Uggla.
14561
14562 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14563
14564 Don't add -lgcc on i386 and x86_64.
14565
14566 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14567 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14568 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14569
14570 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14571
14572 * configure.ac: Add -Wno-trampolines when supported.
14573
14574 2010-11-14 Modestas Vainius <modax@debian.org>
14575
14576 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14577 fakeraid.
14578
14579 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14580
14581 Add generic logical block size support for UDF.
14582
14583 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14584 (GRUB_UDF_BLKSZ): Removed.
14585 (struct grub_udf_data): New field "lbshift" to hold the logical block
14586 size of the file system in log2 format. All users updated.
14587 (sblocklist): Change type to unsigned.
14588 (grub_udf_mount): Change type of "sblklist" to unsigned.
14589 Move AVDP search before VRS recognition, because the latter requires
14590 knowledge of the logical block size, which is detected during the
14591 former.
14592 Detect and validate logical block size during AVDP search, adding
14593 support for block sizes 512, 1024 and 4096.
14594 Make VRS recognition independent of block size.
14595
14596 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14597
14598 Properly handle deleted files on UDF.
14599
14600 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14601 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14602 set.
14603
14604 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14605
14606 Support reading files larger than 2 GiB.
14607
14608 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14609 "offset" to grub_off_t.
14610 (grub_udf_read_file): Likewise for parameter "pos".
14611
14612 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14613
14614 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14615 unavailable.
14616 (Simple configuration): Refer to Changes from GRUB Legacy about
14617 save_env availability.
14618
14619 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14620
14621 * util/grub-install.in: Ignore empty partition table detection
14622 instead of trying to include part_ module.
14623
14624 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14625
14626 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14627 LVM on RAID support.
14628
14629 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14630
14631 Properly define WORDS_BIGENDIAN in wrapped environments.
14632
14633 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14634 definition.
14635 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14636
14637 Reported by: Manoel Rebelo Abranches.
14638 Tested by: Manoel Rebelo Abranches.
14639
14640 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14641
14642 * util/grub-mkconfig.in: Fix quoting.
14643
14644 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14645
14646 Support big ext2 files.
14647
14648 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14649 (grub_ext2_read_block): Support triple indirect blocks.
14650 (grub_ext2_read_file): Use 64-bit types and read size_high.
14651 (grub_ext2_open): Read size_high.
14652 Reported by: Ximin Luo.
14653 Tested by: Manoel Rebelo Abranches.
14654
14655 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14656
14657 * util/grub-install.in: Handle filenames containing spaces.
14658 Reported by: Jordan Uggla.
14659 Tested by: Jordan Uggla.
14660
14661 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14662
14663 * util/grub-mkconfig.in (grub_script_check): New variable.
14664 Use grub_script_check instead of grub-script-check.
14665 Reported by: Barry Jackson.
14666
14667 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14668
14669 * docs/grub.texi (menu): Correct the order.
14670 Reported by: D. Hugh Redelmeier.
14671
14672 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14673
14674 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14675 jump.
14676
14677 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14678
14679 * include/grub/elfload.h (grub_elf32_size): New parameter.
14680 All users updated.
14681 Return maximum segments alignment.
14682 (grub_elf64_size): Likewise.
14683 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14684 Return maximum segments alignment.
14685 (grub_elf64_size): Likewise.
14686 * grub-core/loader/powerpc/ieee1275/linux.c:
14687 (grub_linux_claimmap_iterate): New function. Uses the
14688 "available" property in the "memory" node for memory allocation
14689 for kernel in the PowerPC loader.
14690 (grub_linux_load32): Correctly find linux entry point offset.
14691 (grub_linux_load64): Likewise.
14692
14693 2010-11-07 Robert Millan <rmh@gnu.org>
14694
14695 On mips-yeeloong, build with -march=loongson2f when this flag is
14696 available (GCC >= 4.4).
14697 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14698 `-march=mips3'.
14699 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14700 or otherwise add -march=mips3.
14701
14702 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14703
14704 Suppress shell expansion on echo '*' and echo "*" like cases.
14705 Reported by: Jordan Uggla.
14706
14707 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14708 string arguments before shell expansion.
14709 * tests/grub_cmd_echo.in: New testcases.
14710
14711 2010-11-07 Robert Millan <rmh@gnu.org>
14712
14713 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14714 transition.
14715
14716 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14717
14718 * grub-core/kern/emu/hostdisk.c
14719 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14720
14721 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14722
14723 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14724 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14725 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14726
14727 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14728
14729 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14730
14731 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14732
14733 * util/grub-install.in: Replace useless recomendation to pass
14734 --modules with a recomendation to report a bug.
14735
14736 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14737
14738 Properly register serial terminfo.
14739 Reported by: Jordan Uggla
14740
14741 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14742 const.
14743 (grub_serial_terminfo_output_template): Likewise.
14744 (grub_cmd_serial): Register "serial" with terminfo.
14745 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14746 grub_serial_terminfo_output.
14747
14748 2010-11-05 Robert Millan <rmh@gnu.org>
14749
14750 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14751 needed).
14752
14753 2010-11-05 Robert Millan <rmh@gnu.org>
14754
14755 On Yeeloong, pass machine type information to Linux.
14756
14757 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14758 (LOONGSON_MACHTYPE): New macro, set to
14759 "machtype=lemote-yeeloong-2f-8.9inches".
14760 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14761 additional argument to Linux.
14762
14763 2010-11-04 Robert Millan <rmh@gnu.org>
14764
14765 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
14766 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
14767 (its SATA disks are detected as slaveless IDE master drives on
14768 kFreeBSD).
14769 Reported by Carsten Aulbert.
14770
14771 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
14772
14773 * util/bin2h.c (main): Fix spelling error in generated output.
14774
14775 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
14776
14777 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
14778
14779 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14780
14781 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
14782 vga= option is supplied.
14783
14784 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14785
14786 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
14787 * util/grub.d/10_kfreebsd.in: Likewise.
14788 * util/grub.d/10_linux.in: Likewise.
14789 * util/grub.d/20_linux_xen.in: Likewise.
14790
14791 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
14794 argument as an argument to no-argument option.
14795
14796 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14797
14798 * util/grub.d/10_linux.in: Add missing load_video with explicit
14799 GRUB_GFXPAYLOAD_LINUX.
14800
14801 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14802
14803 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
14804
14805 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14806
14807 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
14808 elements with invlid index.
14809 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14810 * grub-core/disk/raid.c (insert_array): Automatically reallocate
14811 members.
14812 * include/grub/raid.h (grub_raid_member): New struct.
14813 (grub_raid_array): Transform devices and start_sector into usage of
14814 grub_raid_member. All users updated
14815 (allocated_devs): New member.
14816
14817 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14818
14819 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
14820 is modified
14821
14822 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
14823
14824 NetBSD build fix for getline function conflict from gnulib.
14825
14826 * Makefile.util.def (libgrubkern.a): New library for grub kernel
14827 components that depend on gnulib headers.
14828 (libgrubmods.a): Renamed from earlier libgrub.a.
14829 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
14830
14831 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14832
14833 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
14834 install rather than creating a broken install.
14835
14836 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14837
14838 * util/grub-setup.c (argp): Remove misleading example of installing to
14839 a partition.
14840
14841 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14842
14843 * util/grub-setup.c (setup): Clarify the error message.
14844
14845 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14846
14847 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
14848
14849 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14850
14851 * grub-core/kern/emu/misc.c
14852 (grub_make_system_path_relative_to_its_root)
14853 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
14854
14855 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14856
14857 * grub-core/kern/emu/misc.c
14858 (grub_make_system_path_relative_to_its_root): Revert r2882.
14859
14860 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
14861
14862 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
14863 useless field head. All users updated.
14864 (free_subchunk): Correct handling of IN_REGION subchunk.
14865
14866 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
14867
14868 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
14869 (Supported kernels): Likewise.
14870
14871 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14872
14873 Make mktemp invocations portable.
14874
14875 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
14876 exit if mktemp fails.
14877 * tests/grub_script_blockarg.in: Likewise.
14878 * tests/partmap_test.in: Likewise.
14879 * tests/util/grub-shell-tester.in: Likewise.
14880 * tests/util/grub-shell.in: Likewise.
14881 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14882 * Makefile.am: Likewise, and chain shell commands with `&&'
14883 instead of ';'.
14884 * util/grub-mkrescue.in: Use the same explicit template as above, and
14885 exit if mktemp fails.
14886
14887 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
14888
14889 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
14890 Linux kernel, reported by Dennis Schridde.
14891
14892 2010-10-17 Szymon Janc <szymon@janc.net.pl>
14893
14894 * grub-core/normal/auth.c (grub_auth_check_authentication):
14895 Set-but-not-used variable removed.
14896
14897 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14898
14899 * docs/grub.texi (GNU/Linux): Document APM unavailability with
14900 32-bit linux protocol.
14901
14902 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14903
14904 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
14905 cursor shape for sanity.
14906
14907 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14908
14909 * docs/grub.texi (Installation): Document buggy BIOS install.
14910
14911 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 * docs/grub.texi (Installation): Indent.
14914
14915 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14916
14917 * util/grub-setup.c (setup): New parameter allow_floppy.
14918 (arguments): New member allow_floppy.
14919 (argp_parser): Handle --allow-floppy.
14920 (main): Pass allow_floppy.
14921 * util/grub-install.in: New option --allow-floppy passed though to
14922 grub-setup.
14923
14924 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14925
14926 * util/grub-install.in: Handle partitionless disks.
14927
14928 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * util/grub-setup.c (setup): Don't clean blocklists before readability
14931 verfification.
14932
14933 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14934
14935 * docs/grub.texi (Installation): Document embedding zone. Remove
14936 obsolete grub-install example.
14937
14938 2010-10-16 Szymon Janc <szymon@janc.net.pl>
14939
14940 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
14941 Set-but-not-used variable ifdef'ed.
14942 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
14943 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
14944 variable removed.
14945 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
14946 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
14947 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14948 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
14949 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
14950 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
14951 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
14952 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
14953 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
14954 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
14955 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
14956 Likewise.
14957
14958 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
14961 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
14962 enum value.
14963
14964 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14965
14966 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
14967 synonym to _S5_. Needed for some DSDTs.
14968
14969 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14970
14971 Userspace ACPI parser debugging.
14972
14973 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
14974 headers and add relevant defines. Don't include standard headers.
14975 (main) [GRUB_DSDT_TEST]: New function.
14976 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
14977 Don't declare functions.
14978
14979 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14980
14981 Remove dead grub_efi_mm_fini.
14982
14983 * grub-core/kern/efi/mm.c (allocated_page): Removed.
14984 (ALLOCATED_PAGES_SIZE): Likewise.
14985 (MAX_ALLOCATED_PAGES): Likewise.
14986 (allocated_pages): Likewise.
14987 (grub_efi_allocate_pages): Don't record allocated pages.
14988 (grub_efi_free_pages): Likewise.
14989 (grub_efi_mm_init): Likewise.
14990 (grub_efi_mm_fini): Removed.
14991
14992 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14993
14994 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
14995 (grub_efi_mm_init): Take into account the memory map size increase.
14996
14997 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14998
14999 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15000 (serial_hw_put): Wait based on real time rather than port reads. Don't
15001 roken ports.
15002 * include/grub/serial.h (grub_serial_port): New field broken.
15003
15004 2010-10-16 Robert Millan <rmh@gnu.org>
15005
15006 * grub-core/kern/emu/misc.c
15007 (grub_make_system_path_relative_to_its_root): Fix premature return
15008 when processing non-root ZFS filesystems.
15009 Reported by Sergio Talens-Oliag.
15010
15011 2010-10-15 Robert Millan <rmh@gnu.org>
15012
15013 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15014 guarantee compressed ones are processed first.
15015
15016 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15017
15018 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15019 grub_efiemu_autocore.
15020
15021 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15022
15023 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15024 rather than 0x1b.
15025 (grub_console_getkey): Use correct jae opcode rather than ja.
15026
15027 2010-10-12 Robert Millan <rmh@gnu.org>
15028
15029 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15030 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15031 variable. All references updated.
15032
15033 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15034
15035 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15036
15037 Correctly distinguish mdraid flavours.
15038
15039 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15040 (insert_array): New argument raid.
15041 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15042 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15043 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15044
15045 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15046
15047 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15048 handling of special keys.
15049
15050 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15051
15052 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15053 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15054
15055 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15056
15057 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15058 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15059 users updated.
15060 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15061 Use right endpoint when querying descriptor.
15062
15063 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15064
15065 Clear out 0x80 color bit on EFI.
15066 Tested by: decoder
15067 Reported by: decoder and meta tech.
15068
15069 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15070 (grub_console_setcolorstate): Clear out 0x80 bit.
15071 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15072 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15073 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15074
15075 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15076
15077 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15078 Set to "auto".
15079
15080 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15081
15082 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15083 mo_file after freeing.
15084
15085 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15086
15087 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15088
15089 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15090
15091 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15092 flags.
15093
15094 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15095
15096 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15097 usage.
15098
15099 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15100
15101 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15102
15103 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15104 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15105 and terminfo.h when needed.
15106 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15107 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15108 (terminfo): Enable only on terminfokernel.
15109 (extcmd): Likewise.
15110 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15111 * include/grub/lib/arg.h: Likewise.
15112 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15113 incorrect usage of ->.
15114
15115 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15116
15117 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15118 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15119
15120 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15121
15122 Fix coreboot compilation.
15123
15124 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15125 Take VBE info into account even if only text is supported.
15126 (fill_vbe_info): Take into account the case when only VGA text
15127 is supported.
15128 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15129 on coreboot, multiboot and qemu.
15130
15131 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15132
15133 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15134 debug messages.
15135 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15136
15137 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15138
15139 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15140 parameters.
15141
15142 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15143
15144 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15145 if they were BSD-style.
15146
15147 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15148
15149 * grub-core/boot/i386/pc/lnxboot.S: Replace
15150 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15151 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15152
15153 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15154
15155 Write embedding zone using Reed-Solomon.
15156
15157 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15158 * grub-core/Makefile.am (rs_decoder.S): New target.
15159 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15160 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15161 (multiboot): Move to RS part.
15162 (post_reed_solomon): New label.
15163 (grub_boot_drive): Move to non-RS part since it's modified in memory
15164 on boot.
15165 Include rs_decoder.S.
15166 * grub-core/lib/reed_solomon.c: New file.
15167 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15168 New definition.
15169 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15170 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15171 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15172 * include/grub/partition.h (grub_partition_map): Change prototype of
15173 embed to allow returning additional sectors.
15174 * include/grub/reed_solomon.h: New file.
15175 * util/grub-setup.c (setup): Handle Reed-Solomon.
15176
15177 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15178
15179 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15180 i386 and x86-64 definedness tests.
15181
15182 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15183
15184 Fix generation of kernel_syms.lst
15185
15186 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15187 ASM_PREFIX
15188
15189 2010-09-26 Robert Millan <rmh@gnu.org>
15190
15191 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15192
15193 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15194 the pool is an array of devices, iterate through it and return the
15195 first device that passes a stat() test (instead of blindly returning
15196 the first one).
15197
15198 2010-09-26 Robert Millan <rmh@gnu.org>
15199
15200 Build fixes for GNU/kFreeBSD.
15201
15202 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15203 to programs that require ZFS conversion.
15204 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15205 kernels that don't have FLOPPY_MAJOR.
15206
15207 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15208
15209 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15210
15211 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15212
15213 Fix grub-emu build.
15214
15215 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15216 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15217 mdraid09 and mdraid1x.
15218
15219 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15220
15221 Re-enable grub-extras.
15222
15223 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15224 avoid confusing Automake. Run autogen only twice, once for the top
15225 level and once for grub-core. Add Makefile.util.def and
15226 Makefile.core.def from extra modules to the appropriate autogen
15227 invocations. If Makefile.common exists in an extra module, include
15228 it in both Makefile.util.am and grub-core/Makefile.core.am;
15229 similarly, include any Makefile.util.common file in Makefile.util.am
15230 and any Makefile.core.common file in grub-core/Makefile.core.am.
15231 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15232 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15233 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15234 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15235
15236 * gentpl.py (gvar_add): Turn GVARS into a set.
15237 (global_variable_initializers): Sort global variables on output.
15238 (vars_init): New function.
15239 (first_time): Likewise.
15240 (library): Ensure that non-global variable initialisations are
15241 emitted before the first time we emit code for a library block.
15242 Append to variables rather than setting them. Only emit
15243 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15244 each conditional path.
15245 (program): installdir() emits an Autogen macro, so must be passed to
15246 var_add rather than gvar_add.
15247 (data): Likewise.
15248 (script): Likewise.
15249 (rules): New function, centralising handling for different target
15250 types. Set up Guile association lists for first_time and vars_init,
15251 and send most output to a diversion so that variable initialisations
15252 can be emitted first.
15253 (module_rules): Use new rules function.
15254 (kernel_rules): Likewise.
15255 (image_rules): Likewise.
15256 (library_rules): Likewise.
15257 (program_rules): Likewise.
15258 (script_rules): Likewise.
15259 (data_rules): Likewise.
15260
15261 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15262
15263 * .bzrignore: Add contrib and grub-core/contrib. Remove
15264 grub-core/Makefile.gcry.am.
15265
15266 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15267
15268 * grub-core/lib/LzFind.c: Add missing include.
15269 * grub-core/lib/LzmaEnc.c: Likewise.
15270 * grub-core/script/lexer.c: Likewise.
15271 * grub-core/script/yylex.l: Likewise.
15272 * util/grub-macho2img.c: Likewise.
15273 * util/grub-menulst2cfg.c: Likewise.
15274 * util/grub-mklayout.c: Likewise.
15275 * util/grub-mkpasswd-pbkdf2.c
15276 * util/grub-mkrelpath.c: Likewise.
15277 * util/resolve.c: Likewise.
15278
15279 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15280
15281 * Makefile.util.def (example_unit_test): Add
15282 grub-core/gnulib/libgnu.a.
15283
15284 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15285
15286 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15287
15288 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15289
15290 Support xz compression on yeeloong.
15291
15292 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15293 * configure.ac: Check for LZMA.
15294 * grub-core/Makefile.core.def (xz_decompress): New target.
15295 (none_decompress): Likewise.
15296 * grub-core/boot/decompressor/minilib.c: New file.
15297 * grub-core/boot/decompressor/none.c: Likewise.
15298 * grub-core/boot/decompressor/xz.c: Likewise.
15299 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15300 * grub-core/kern/mips/cache_flush.S: Likewise.
15301 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15302 * grub-core/kern/mips/startup.S: Move first stage to ...
15303 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15304 nomacro.
15305 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15306 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15307 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15308 Allocate statically.
15309 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15310 Allocate statically or use scratch. Don't check CRC32.
15311 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15312 Allocate statically. Don't check CRC32.
15313 * include/grub/decompressor.h: New file.
15314 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15315 Removed.
15316 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15317 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15318 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15319 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15320 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15321 * util/grub-mkimage.c (grub_compression_t): New type.
15322 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15323 (image_target_desc): New field default_compression.
15324 (image_targets): Adjust yeeloong targets.
15325 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15326 (compress_kernel): New parameter comp.
15327 (generate_image): Likewise. Handle new compression case.
15328 (options): New option --compression
15329 (help): Likewise.
15330 (main): Handle new option.
15331
15332 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15333
15334 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15335
15336 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15337
15338 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15339 typo in __i386__ conditional.
15340
15341 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15342
15343 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15344 include.
15345
15346 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15347
15348 Implement EFI and ACPI multiboot2 extensions.
15349
15350 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15351 new tags as supported.
15352 (acpiv2_size): New function.
15353 (grub_multiboot_get_mbi_size): Take new tags into account.
15354 (grub_multiboot_make_mbi): Add new tags.
15355 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15356
15357 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15358
15359 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15360 Added missing configuration of USB device.
15361
15362 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15363
15364 * grub-core/normal/menu_entry.c (run): Make sure we always return
15365 a value.
15366
15367 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15368
15369 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15370 NumberOfPages is UINT64 according to the UEFI specification, not
15371 UINTN. Fix printf format.
15372
15373 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15374
15375 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15376 `err' to grub_usb_err_t.
15377 Reported and tested by: KESHAV P.R.
15378
15379 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15380
15381 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15382 tpart non-const, so that we can assign to it. (Since this is a
15383 typedef, the constness refers to the pointer rather than what it
15384 points to.)
15385
15386 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15387
15388 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15389 $(top_srcdir)/grub-core/gnulib as well as
15390 $(top_builddir)/grub-core/gnulib.
15391 Reported by: KESHAV P.R.
15392
15393 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15394
15395 * util/grub-install.in: Fix the bootloader ID option to be
15396 consistently --bootloader-id, not --bootloader_id.
15397 Reported by: KESHAV P.R.
15398
15399 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15400
15401 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15402 check hash checksum." consistently translatable.
15403
15404 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15405
15406 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15407 $(top_builddir).
15408
15409 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15410
15411 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15412 (GRUB_MOD_INIT): Register sha1sum command.
15413 (GRUB_MOD_FINI): Unregister sha1sum command.
15414
15415 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15416
15417 Keep boot and grub directory names in sync with utils scripts
15418
15419 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15420 * config.h.in: Add previous macros.
15421 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15422 * util/grub-install.in: Use $bootdir and $grubdir variables.
15423
15424 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15425
15426 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15427 convert partition names to disk names if the new `convert' parameter
15428 is set.
15429 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15430 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15431 disk in its own right. This can happen with Xen disk images.
15432
15433 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15434
15435 * util/grub-editenv.c: Update strings to avoid warnings when generating
15436 grub.pot file.
15437 * util/grub-setup.c: Likewise.
15438
15439 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15440
15441 * configure.ac: Change version to 1.99~beta0.
15442
15443 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15444
15445 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15446 Add BADRAM.
15447 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15448 Likewise.
15449 * include/multiboot.h: Resynced with specification.
15450 * include/multiboot2.h: Likewise.
15451
15452 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15453
15454 Fix po directory handling.
15455
15456 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15457 * grub-core/gnulib/Makefile.am: Import gettext module.
15458 * m4/gnulib-cache.m4: Likewise.
15459 * m4/gnulib-comp.m4: Likewise.
15460 * m4/gettext.m4: New file, from gnulib.
15461 * m4/glibc2.m4: Likewise.
15462 * m4/iconv.m4: Likewise.
15463 * m4/intdiv0.m4: Likewise.
15464 * m4/intl.m4: Likewise.
15465 * m4/intldir.m4: Likewise.
15466 * m4/intlmacosx.m4: Likewise.
15467 * m4/intmax.m4: Likewise.
15468 * m4/inttypes-pri.m4: Likewise.
15469 * m4/lcmessage.m4: Likewise.
15470 * m4/lib-ld.m4: Likewise.
15471 * m4/lib-link.m4: Likewise.
15472 * m4/lib-prefix.m4: Likewise.
15473 * m4/lock.m4: Likewise.
15474 * m4/nls.m4: Likewise.
15475 * m4/po.m4: Likewise.
15476 * m4/printf-posix.m4: Likewise.
15477 * m4/progtest.m4: Likewise.
15478 * m4/threadlib.m4: Likewise.
15479 * m4/uintmax_t.m4: Likewise.
15480 * m4/visibility.m4: Likewise.
15481 * po/Makefile.am: Remove.
15482 * po/Makefile.in.in: New file, from gettext.
15483 ($(DOMAIN).pot-update): Support POTFILES-shell.
15484 * po/Makevars: New file.
15485 * po/POTFILES-shell: Rename to ...
15486 * po/POTFILES-shell.in: ... this. Update.
15487 * po/POTFILES: Rename to ...
15488 * po/POTFILES.in: ... this. Update.
15489 * po/Rules-quot: New file, from gettext.
15490 * po/boldquot.sed: Likewise.
15491 * po/en@boldquot.header: Likewise.
15492 * po/en@quot.header: Likewise.
15493 * po/insert-header.sin: Likewise.
15494 * po/quot.sed: Likewise.
15495 * po/remove-potcdate.sin: Likewise.
15496
15497 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15498
15499 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15500
15501 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15502
15503 * util/grub.d/20_linux_xen.in: Use submenus.
15504
15505 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15506
15507 Support submenus.
15508
15509 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15510 parameter submenu. All users updated.
15511 * grub-core/normal/main.c (free_menu): Rename to ...
15512 (grub_normal_free_menu): ... this. Made global.
15513 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15514 if requested.
15515 * grub-core/normal/menu_entry.c (screen): New field submenu.
15516 (make_screen): Set submenu.
15517 (run): Open new context if requested.
15518 * include/grub/menu.h (grub_menu_entry): New field submenu.
15519 * include/grub/normal.h (grub_normal_free_menu): New proto.
15520
15521 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15522
15523 Menu entries extractor.
15524
15525 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15526 variants.
15527 (GRUB_MOD_INIT): Register new variants.
15528 (GRUB_MOD_FINI): Unregister new variants.
15529 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15530 into grub_cmd_legacy_source.
15531 (grub_cmd_legacy_source): Implement extractor variants.
15532 (GRUB_MOD_INIT): Register new variants.
15533 (GRUB_MOD_FINI): Unregister new variants.
15534 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15535 as an extractor.
15536 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15537 search as an extractor.
15538 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15539 test as an extractor.
15540 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15541 as an extractor.
15542 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15543 (grub_env_new_context): New function.
15544 (grub_env_context_open): Likewise.
15545 (grub_env_extractor_open): Likewise.
15546 (grub_env_extractor_close): Likewise.
15547 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15548 grub_extractor_level.
15549 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15550 * include/grub/env.h (grub_env_extractor_open): New proto.
15551 (grub_env_extractor_close): Likewise.
15552 * include/grub/normal.h (grub_extractor_level): New external variable.
15553
15554 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15555
15556 Make cutmem accept a region specification.
15557 Suggested by: Samuel Thibault
15558
15559 * grub-core/mmap/mmap.c (parsemem): New function.
15560 (grub_cmd_cutmem): Handle new arguments.
15561
15562 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15563
15564 New command cutmem.
15565
15566 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15567 (GRUB_MOD_INIT): Register new command.
15568 (GRUB_MOD_FINI): Unregister new command.
15569
15570 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15571
15572 Support some annoying BSD and Minix subpartitions.
15573
15574 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15575 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15576 Properly handle concatenation.
15577 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15578 * grub-core/normal/completion.c (iterate_partition): Likewise.
15579 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15580 contain partition. All users updated.
15581 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15582 struct.
15583 (grub_openbsdlabel_partition_map): Likewise.
15584 (bsdlabel_partition_map_iterate): Rename to ..
15585 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15586 (bsdlabel_partition_map_iterate): New function.
15587 (netopenbsdlabel_partition_map_iterate): Likewise.
15588 (netbsdlabel_partition_map_iterate): Likewise.
15589 (openbsdlabel_partition_map_iterate): Likewise.
15590 (GRUB_MOD_INIT): Register new partmaps.
15591 (GRUB_MOD_FINI): Unregister new partmaps.
15592 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15593 (grub_partition_msdos_iterate): ... this. All users updated.
15594 Don't support embedding other than in a minix partition.
15595 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15596 proto.
15597 * include/grub/partition.h (grub_partition): New field msdostype.
15598 * util/grub-install.in: Handle openbsd and netbsd types being in
15599 part_bsd module.
15600
15601 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15602
15603 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15604
15605 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15606 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15607 (mdraid09): ... this.
15608 (mdraid1x): New module.
15609 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15610 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15611
15612 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15613
15614 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15615 vsprintf.
15616
15617 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15618
15619 * grub-core/commands/efi/lsefimmap.c: Correct header.
15620 * NEWS: Update.
15621
15622 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15623
15624 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15625 as printf format strings; the translations might contain '%' which
15626 could cause a crash.
15627 (main): Likewise.
15628 * util/grub-fstest.c (argp_parser): Likewise.
15629 * util/grub-setup.c (argp_parser): Likewise.
15630 (main): Likewise.
15631
15632 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15633
15634 Use argp in grub-fstest.
15635
15636 * util/grub-fstest.c: Don't include getopt.h.
15637 Include argp.h.
15638 (root): New variable.
15639 (args_count): Likewise.
15640 (nparm): Likewise.
15641 (num_disks): Likewise.
15642 (images): Likewise.
15643 (cmd): Likewise.
15644 (debug_str): Likewise.
15645 (args): Likewise.
15646 (options): Transformed to argp.
15647 (usage): Removed.
15648 (main): Split argument parsing into ...
15649 (argp_parser): ... this. Changed to argp format.
15650 (argp): New variable.
15651 (main): Use argp_parse.
15652
15653 2010-09-20 Tristan Gingold <gingold@free.fr>
15654 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
15655 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15656
15657 * grub-core/commands/efi/lsefimmap.c: New file.
15658 * grub-core/Makefile.core.def (lsefimmap): New module.
15659 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15660
15661 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15662
15663 Pause the execution (10s max) if any errors are displayed so the user
15664 has a chance to see them.
15665
15666 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15667 (grub_print_error): Increment grub_err_printed_errors.
15668 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15669 execution if any errors were displayed.
15670 (show_menu): Remove old code for pause.
15671 * grub-core/normal/menu_entry.c (run): Likewise.
15672 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15673 users updated.
15674 (grub_normal_get_char_counter): Likewise.
15675 * include/grub/err.h (grub_err_printed_errors): New external variable.
15676 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15677
15678 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15679
15680 Support multiboot VBE info.
15681
15682 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15683 Take VBE info into account.
15684 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15685 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15686 Call fill_vbe_info when appropriate.
15687 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15688 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15689 as supported.
15690 (grub_multiboot_get_mbi_size): Take new tags into account.
15691 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15692 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15693 Call fill_vbe_tag when appropriate.
15694 (grub_multiboot_make_mbi): Properly align tags.
15695 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15696 function.
15697 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15698 proto.
15699 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15700
15701 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15702
15703 Suport manual terminal geometry specification.
15704
15705 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15706 Save state in grub_ofconsole_terminfo_output.
15707 (grub_ofconsole_term): Use grub_terminfo_getwh.
15708 (grub_ofconsole_getwh): Removed.
15709 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15710 (grub_serial_term): Use grub_terminfo_getwh.
15711 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15712 (options): New struct.
15713 (OPTION_*): New enum.
15714 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15715 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15716 width and height.
15717 (grub_terminfo_getwh): New proto.
15718 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15719
15720 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15721
15722 Handle legacy "terminal" command.
15723
15724 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15725 and FLAG_TERMINAL.
15726 (legacy_commands): Add terminal and title.
15727 (grub_legacy_parse): Handle terminal. Simplify title handling.
15728
15729 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15730
15731 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15732 parameters overflow.
15733
15734 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15735
15736 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15737 widthspec.h.
15738
15739 * docs/grub.texi (Shell-like scripting): Document `!'.
15740 (Network): Simplify using new i386-pc-pxe format. Mention
15741 grub-mknetdir.
15742
15743 * NEWS: Update.
15744
15745 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15746
15747 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15748 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15749 when needed.
15750
15751 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15752
15753 * grub-core/commands/efi/lsefisystab.c: Correct header.
15754 * grub-core/commands/efi/lssal.c: Likewise.
15755 * grub-core/commands/testload.c: Likewise.
15756
15757 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15758
15759 * util/grub-mkrescue.in: Add explicit root argument to --set to
15760 prevent the UUID being interpreted as an argument to --set (matches
15761 previous change to prepare_grub_to_access_device).
15762
15763 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15764
15765 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
15766 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
15767 the verbosity of later #ifs.
15768 (find_partition_start): Define this function on FreeBSD too.
15769 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
15770 function.
15771 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
15772 on FreeBSD.
15773
15774 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15775
15776 * util/grub-editenv.c: Use argp instead of getopt.
15777
15778 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15779
15780 * util/grub-setup.c: Use argp instead of getopt.
15781
15782 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15783
15784 Use gnulib-tool to create gnulib source files.
15785
15786 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
15787 grub-core/gnulib directories
15788 * .bzignore: Add **/.deps and autogenerated gnulib files
15789 * configure.ac: Assign auxiliary directory to build-aux, add invocation
15790 of gnulib macros, add grub-core/gnulib/Makefile
15791 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
15792 include m4 directory to aclocal.
15793 * Makefile.util.def: Remove direct compilation of gnulib source files
15794 and use the new grub-core/gnulib/libgnu.a.
15795 * build-aux/config.rpath: move config.rpath from top directory to
15796 build-aux
15797 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
15798 in gnulib headers
15799 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
15800 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
15801 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
15802 header.
15803 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
15804 string.
15805
15806 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15807
15808 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
15809 grub-core/genmod.sh and grub-core/gensyminfo.sh
15810
15811 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
15812
15813 Add a test for echo command options.
15814
15815 * tests/grub_cmd_echo.in: New test.
15816 * Makefile.util.def: Rules for new test.
15817
15818 2010-09-20 Szymon Janc <szymon@janc.net.pl>
15819
15820 Remove crc.mod and move crc command to hashsum.mod.
15821 Remove lib/crc.c - users updated to use gcrypt implementation.
15822
15823 * grub-core/commands/crc.c: Removed.
15824 * grub-core/Makefile.core.def (crc): Module removed.
15825 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
15826 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
15827 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
15828 * grub-core/lib/crc.c: Removed.
15829 * include/grub/lib/crc.h: Removed.
15830 * Makefile.util.def (crc): Remove lib/crc.c
15831 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
15832 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
15833 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
15834 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
15835 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
15836 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
15837
15838 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15839
15840 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
15841
15842 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15843
15844 Split config.h for util and core.
15845
15846 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
15847 (ADDR32): Likewise.
15848 (DATA32): Likewise.
15849 (BSS_START_SYMBOL): Likewise.
15850 (END_SYMBOL): Likewise.
15851 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
15852 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
15853 * config.h.in: New file.
15854 * configure.ac: Use config-util.h as config define file.
15855 Rename MACHINE into GRUB_MACHINE. All users updated.
15856 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
15857 updated.
15858 (NESTED_FUNC_ATTR): Likewise.
15859 Substitue new variables.
15860 (COND_HAVE_ASM_USCORE): New conditional.
15861 * grub-core/Makefile.am (ASM_PREFIX): New variable.
15862 (kernel_syms.lst): Use ASM_PREFIX.
15863 * grub-core/kern/emu/console.c: Include config-util.h.
15864 * grub-core/kern/emu/misc.c: Likewise.
15865 * grub-core/kern/emu/mm.c: Likewise.
15866 * include/grub/emu/misc.h: Likewise.
15867 * include/grub/libgcc.h: Likewise.
15868
15869 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15870
15871 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
15872 constants usage.
15873 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
15874 Fix GRUB_TERM_KEY_* constants usage.
15875 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
15876
15877 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15878
15879 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
15880 print pointer.
15881 * grub-core/bus/usb/uhci.c: Remove empty define.
15882 (grub_uhci_check_transfer): Add missing cast.
15883 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
15884 print pointer.
15885 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
15886 PRIuGRUB_SIZE.
15887 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
15888
15889 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15890
15891 * grub-core/Makefile.core.def (legacycfg): Add
15892 lib/i386/pc/vesa_modes_table.c on emu.
15893
15894 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15895
15896 Reduce number of temporary files generated by build system.
15897
15898 * grub-core/gencmdlist.sh: Removed.
15899 * grub-core/genfslist.sh: Removed.
15900 * grub-core/genhandlerlist.sh: Removed.
15901 * grub-core/genmodsrc.sh: Removed.
15902 * grub-core/genpartmaplist.sh: Removed.
15903 * grub-core/genparttoollist.sh: Removed.
15904 * grub-core/gentermiinallist.sh: Removed.
15905 * grub-core/genvideolist.sh: Removed.
15906
15907 * grub-core/genmod.sh.in: New file.
15908 * grub-core/gensyminfo.sh.in: New file.
15909
15910 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
15911 * conf/Makefile.extra-dist: Update with new files.
15912 * gentpl.py: Remove rules related to unnecessary temporary files.
15913 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
15914 and und-* files.
15915 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
15916 genmod.sh scripts.
15917 * grub-core/bus/usb/uhci.c: Remove empty #define.
15918 * grub-core/genmoddep.awk: Updated with new syminfo format.
15919 * util/bash-completion.d/Makefile.am: Add config.log to
15920 CLEANFILES.
15921
15922 2010-09-19 Yves Blusseau <blusseau@zetam.org>
15923
15924 * Makefile.util.def: Add forgotten $(LIBINTL) library.
15925
15926 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15927
15928 * util/grub-mkconfig.in: Check the config script for syntax errors
15929 before saving.
15930
15931 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
15932 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15933
15934 * Makefile.util.def (grub-install): Use util/grub-install.in on all
15935 platforms.
15936 * util/grub-install.in: Add EFI and IEEE1275 support.
15937 * util/i386/efi/grub-install.in: Removed.
15938 * util/ieee1275/grub-install.in: Likewise.
15939
15940 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15941
15942 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
15943 (grub_cmd_cmosclean): Likewise.
15944 (GRUB_MOD_INIT): Register command cmosclean.
15945 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
15946 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
15947
15948 2010-09-18 Carles Pina i Estany <carles@pina.cat>
15949 2010-09-18 Aleš Nesrsta <starous@volny.cz>
15950 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15951
15952 Add keyboard layouts support.
15953
15954 * Makefile.util.def (grub-mklayout): New file.
15955 (grub-kbdcomp): New script.
15956 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
15957 Add keyboard_layouts.h.
15958 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
15959 commands/boot.c on yeeloong.
15960 (keylayouts): New module.
15961 * grub-core/bus/usb/ohci.c
15962 * grub-core/bus/usb/uhci.c
15963 * grub-core/bus/usb/usbhub.c (rescan): New variable.
15964 (grub_usb_add_hub): Poll interrupt pipe for device handling.
15965 (attach_root_port): Likewise.
15966 (poll_nonroot_hub): Likewise.
15967 (grub_usb_poll_devices): Likewise.
15968 (detach_device): Close transfer.
15969 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
15970 function.
15971 (grub_usb_bulk_setup_readwrite): Likewise.
15972 (grub_usb_bulk_finish_readwrite): Likewise.
15973 * grub-core/commands/keylayouts.c: New file.
15974 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
15975 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
15976 aliases.
15977 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
15978 support scancode 2.
15979 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
15980 * include/grub/keyboard_layouts.h: New file.
15981 * util/grub-mklayout.c: New file.
15982 * util/grub-kbdcomp.in: Likewise.
15983
15984 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15985
15986 Unify memory types.
15987
15988 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
15989 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
15990 types.
15991 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
15992 (grub_upper_mem): Likewise.
15993 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
15994 * include/grub/memory.h (grub_memory_type_t): New enum.
15995 All users updated.
15996
15997 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15998
15999 * grub-core/Makefile.core.def (lsapm): New module.
16000 * grub-core/commands/i386/pc/lsapm.c: New file.
16001 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16002 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16003 Likewise.
16004 * include/grub/i386/pc/apm.h: New file.
16005 * include/multiboot.h (multiboot_apm_info): New struct.
16006
16007 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16008
16009 GRUB-legacy configuration file support.
16010
16011 * Makefile.util.def (grub-menulst2cfg): New util.
16012 * docs/man/grub-menulst2cfg.h2m: New file.
16013 * grub-core/Makefile.core.def (legacycfg): New module.
16014 * grub-core/commands/legacycfg.c: New file.
16015 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16016 (grub_normal_add_menu_entry): ... this.
16017 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16018 (grub_normal_set_password): ...this.
16019 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16020 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16021 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16022 * grub-core/lib/legacy_parse.c: New file.
16023 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16024 * include/grub/i386/pc/vesa_modes_table.h: New file.
16025 * include/grub/legacy_parse.h: Likewise.
16026 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16027 * util/grub-menulst2cfg.c: New file.
16028
16029 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16030
16031 * grub-core/kern/emu/hostdisk.c
16032 (convert_system_partition_to_system_disk): Initialise node.
16033
16034 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16035
16036 * grub-core/kern/emu/hostdisk.c
16037 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16038 leak.
16039 Reported and based on patch by: Modestas Vainius.
16040
16041 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16042
16043 Fix DM-RAID probing with recent versions of device-mapper udev
16044 rules.
16045
16046 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16047 canonicalise device paths under /dev/mapper/.
16048 (convert_system_partition_to_system_disk): Compare the
16049 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16050 path, since device nodes under /dev/mapper/ are often symlinks.
16051
16052 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16053
16054 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16055
16056 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16057
16058 * configure.ac: Avoid some annoying error messages if freetype-config
16059 program is not found.
16060
16061 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16062
16063 Support RAID on virtio devices, and others.
16064
16065 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16066 Rename to ...
16067 [__MINGW32__] (grub_find_device): ... this.
16068 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16069 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16070 reasonable default if dir is NULL.
16071 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16072 ...
16073 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16074 (grub_guess_root_device): Update callers.
16075 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16076
16077 * util/raid.c (grub_util_getdiskname): Remove.
16078 (grub_util_raid_getmembers): Use grub_find_device rather than
16079 grub_util_getdiskname.
16080
16081 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16082
16083 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16084 needing to be compiled with serial support.
16085 (ls): Indicate that multiple files are accepted.
16086 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16087 indicate that multiple files are accepted.
16088
16089 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16090
16091 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16092 libgrub_a_init.c, and util/bash-completion.d/grub.
16093
16094 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16095
16096 * util/grub-setup.c (setup): Fix incorrect container semantics.
16097
16098 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16099
16100 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16101 misusage.
16102 Reported by: J. Nick Terry
16103
16104 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16105
16106 Move embedding routines to partmap sources files.
16107
16108 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16109 [GRUB_UTIL]: New variable.
16110 (gpt_partition_map_iterate): Set part.parent.
16111 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16112 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16113 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16114 New function.
16115 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16116 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16117 (grub_partition_map) [GRUB_UTIL]: New field embed.
16118 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16119 (setup): Use ->embed.
16120
16121 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16122
16123 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16124 function.
16125 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16126 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16127
16128 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16129
16130 Add function to get completions from usage.
16131
16132 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16133 completions from usage. Use LC_ALL=C to get options properly.
16134
16135 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16136
16137 * grub-core/gnulib/basename-lgpl.c: Imported.
16138 * grub-core/gnulib/basename.c: Likewise.
16139 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16140 * grub-core/gnulib/dirname.c: Likewise.
16141 * grub-core/gnulib/dirname.h: Likewise.
16142 * grub-core/gnulib/stripslash.c: Likewise.
16143
16144 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16145
16146 * grub-core/gnulib/error.c: Resynced.
16147 * grub-core/gnulib/getopt.c: Likewise.
16148 * grub-core/gnulib/getopt_int.h: Likewise.
16149 * grub-core/gnulib/regex.h: Likewise.
16150 * grub-core/gnulib/regex_internal.c: Likewise.
16151 * grub-core/gnulib/regex_internal.h: Likewise.
16152
16153 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16154
16155 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16156 CRC calculations and validity checks.
16157 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16158 calculations.
16159
16160 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16161
16162 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16163
16164 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16165
16166 Fix incorrect echo options handling.
16167 Reported by: Yves Blusseau.
16168
16169 * include/grub/command.h (grub_command_flags_t): New flags
16170 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16171 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16172 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16173
16174 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16175
16176 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16177 users updated.
16178 (GRUB_COMMAND_FLAG_MENU): Likewise.
16179 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16180 (GRUB_COMMAND_FLAG_TITLE): Removed.
16181 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16182 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16183 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16184 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16185 (grub_command_flags_t): New enum. All users updated.
16186
16187 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16188
16189 Fix solaris compilation.
16190
16191 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16192 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16193 (grub-emu-list): Likewise.
16194
16195 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16196
16197 Remove deprecated root command.
16198
16199 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16200 updated.
16201
16202 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16203
16204 * util/i386/pc/grub-setup.c: Merge this ...
16205 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16206 * util/grub-setup.c: ... into this.
16207 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16208 New struct.
16209
16210 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16211
16212 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16213 possible.
16214
16215 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16216
16217 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16218 allocate p.
16219
16220 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16221
16222 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16223 explicit root argument to set to prevent UUID to be interpreted as
16224 argument to set.
16225
16226 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16229
16230 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16231
16232 Don't export grub_gate_a20.
16233
16234 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16235 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16236 to ...
16237 (grub_gate_a20): ... this. All users updated.
16238 * include/grub/i386/pc/init.h: Removed. All users updated.
16239
16240 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16241
16242 Create euro.pf2 which supports most European languages.
16243
16244 * Makefile.am (grubdata_DATA): Add euro.pf2.
16245 (euro.pf2): New target.
16246 (CLEANFILES): Add euro.pf2.
16247
16248 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16249
16250 * configure.ac: Disable emu-usb by default to prevent inadvertent
16251 device takeover.
16252
16253 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16254
16255 Disable usbserial on grub-emu since our libusb code isn't good enough
16256 yet.
16257
16258 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16259 (usbserial_pl2303): Likewise.
16260 (usbserial_ftdi): Likewise.
16261
16262 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16263
16264 * include/grub/disk.h (grub_disk): Remove has_partitions.
16265 All users updated.
16266 * disk/loopback.c (grub_loopback): Remove has_partitions.
16267 All users updated.
16268 (options): Remove partitions. All users updated.
16269 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16270 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16271 actual partition table is found.
16272
16273 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 Remove readability checks (too many false negatives).
16276
16277 * util/grub-install.in: Remove readability checks.
16278 * util/grub-mkconfig.in: Likewise.
16279 * util/grub.d/10_hurd.in: Likewise.
16280 * util/grub.d/10_kfreebsd.in: Likewise.
16281 * util/grub.d/10_linux.in: Likewise.
16282 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16283 way.
16284
16285 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16286
16287 Enable acpi shutdown on all ACPI platforms.
16288
16289 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16290 on coreboo, multiboot and EFI.
16291 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16292 (grub_acpi_halt): Likewise.
16293 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16294 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16295 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16296 * grub-core/lib/i386/halt.c (grub_halt)
16297 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16298
16299 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16300
16301 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16302 context.
16303
16304 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16305
16306 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16307 * grub-core/video/efi_uga.c: Likewise.
16308
16309 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16310
16311 Filter devaliases and never open same device twice.
16312
16313 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16314 (last_ihandle): Likewise.
16315 (ofdisk_hash_ent): New member shortest.
16316 (ofdisk_hash_add): Add canonical path too.
16317 (scan): New function.
16318 (grub_ofdisk_iterate): Iterate over hashed entries.
16319 (compute_dev_path): Don't add :0.
16320 (grub_ofdisk_open): Don't really open the disk.
16321 (grub_ofdisk_close): Avoid closing unrelated disk.
16322 (grub_ofdisk_read): Implement reopen logic.
16323 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16324 New function.
16325 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16326 New proto.
16327
16328 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 Fix sparc64.
16331
16332 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16333 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16334 right address. Add sparc64_ieee1275_ldflags.
16335 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16336 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16337 to grub_host_to_target_addr
16338 (load_image): Likewise.
16339
16340 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16341
16342 * grub-core/normal/completion.c (complete_file): Handle device
16343 containing slash.
16344 Fix based on patch by Doug Nazar.
16345
16346 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16347
16348 grub-mknetdir script.
16349
16350 * Makefile.util.def (grub-mknetdir): New module.
16351 * tests/util/grub-shell.in: Support boot=net
16352 * util/grub-mknetdir.in: New file.
16353
16354 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16355
16356 videoinfo on non-vbe.
16357
16358 * grub-core/Makefile.core.def (vbeinfo): Removed.
16359 (vbetest): Removed.
16360 (videoinfo): New module.
16361 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16362 * grub-core/commands/i386/pc/vbetest.c: Removed.
16363 * grub-core/commands/videoinfo.c: New file.
16364 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16365 specification.
16366 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16367 as vbetest.
16368 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16369 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16370 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16371 mode_number. New parameter mode. All users updated.
16372 (grub_video_gop_iterate): New function.
16373 (grub_video_efi_gop): New member iterate.
16374 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16375 (grub_vbe_set_video_mode): Remove setting useless fields.
16376 (vbe2videoinfo): New function.
16377 (grub_video_vbe_iterate): Likewise.
16378 (grub_video_vbe_setup): Use vbe2videoinfo.
16379 (grub_video_vbe_print_adapter_specific_info): New function.
16380 (grub_video_vbe_adapter): New fields iterate and
16381 print_adapter_specific_info.
16382 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16383 All users updated.
16384 (grub_video_mode_info): New field mode_number.
16385 (grub_video_adapter): New fields iterate and
16386 print_adapter_specific_info.
16387
16388 2010-09-13 Tristan Gingold <gingold@free.fr>
16389 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16390 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16391
16392 * grub-core/commands/efi/lsefisystab.c: New file.
16393 * grub-core/commands/efi/lssal.c: Likewise.
16394 * grub-core/Makefile.core.def (lsacpi): New module.
16395 (lsefisystab): Likewise.
16396 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16397 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16398 (grub_efi_sal_system_table): New struct.
16399 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16400 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16401 (grub_efi_sal_system_table_platform_features): Likewise.
16402 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16403 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16404 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16405 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16406
16407 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16408
16409 Support explicit user claim that a device is BIOS-visible.
16410
16411 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16412 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16413 * grub-core/kern/emu/hostdisk.c
16414 (convert_system_partition_to_system_disk): Support mdX.
16415 (find_system_device): New parameter add. All users updated.
16416 (grub_util_biosdisk_is_present): New function.
16417 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16418 proto.
16419
16420 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16421
16422 Search hints support.
16423
16424 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16425 All users updated.
16426
16427 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16428
16429 Bash completion script for util commands
16430
16431 * Makefile.am: Add util/bash-completion.d directory
16432 * configure.ac: Likewise.
16433 * util/bash-completion.d/Makefile.am: New file.
16434 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16435
16436 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16437
16438 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16439 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16440 Reported by: Yves Blusseau.
16441
16442 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16443
16444 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16445 partition size and offset.
16446
16447 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16448
16449 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16450
16451 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16452
16453 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16454
16455 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16456
16457 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16458 (grub_xvasprintf): Likewise.
16459
16460 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16461
16462 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16463
16464 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16465
16466 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16467 args ending with NULL.
16468
16469 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16470
16471 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16472 pointer.
16473
16474 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16475
16476 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16477
16478 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16479
16480 Shutdown using ACPI.
16481
16482 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16483 * grub-core/commands/acpihalt.c: New file.
16484 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16485 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16486 (grub_acpi_halt): New proto.
16487 (GRUB_ACPI_SLP_EN): New const.
16488 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16489 (GRUB_ACPI_OPCODE_*): New enum.
16490 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16491
16492 2010-09-11 Tristan Gingold <gingold@free.fr>
16493 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16494 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16495
16496 * commands/lsacpi.c: New file.
16497 * grub-core/Makefile.core.def (lsacpi): New module.
16498 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16499 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16500 (grub_acpi_madt_entry_header): New struct.
16501 (grub_acpi_madt): Likewise.
16502 (grub_acpi_madt_entry_interrupt_override): Likewise.
16503 (grub_acpi_madt_entry_sapic): Likewise.
16504 (grub_acpi_madt_entry_lsapic): Likewise.
16505 (grub_acpi_madt_entry_platform_int_source): Likewise.
16506 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16507 (PRIuGRUB_UINT32_T): Likewise.
16508 (PRIxGRUB_UINT64_T): Likewise.
16509
16510 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16511
16512 Implement loading palette on ieee1275_fb.
16513
16514 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16515 (have_setcolors): Likewise.
16516 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16517 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16518 (grub_video_ieee1275_set_palette): Implement.
16519
16520 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16521 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16522
16523 * util/grub-install.in (grub_partition): New variable.
16524 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16525 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16526 Fixes a bug reported by Yves Blusseau.
16527
16528 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16529
16530 Fix emu on mipsel.
16531
16532 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16533 =grub_cpu_flush_cache on all mips and not only yeeloong.
16534 * configure.ac (COND_mips): New conditional.
16535 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16536 platforms.
16537 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16538 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16539 [GRUB_LINKER_HAVE_INIT]: New function.
16540 (grub_emu_post_init): Likewise.
16541 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16542 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16543 * include/grub/cache.h (_mips): Include mips/cache.h.
16544 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16545 LVM and RAID prototypes.
16546 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16547 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16548 function.
16549
16550 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16551
16552 * util/grub-install.in: Don't try to verify core.img until after
16553 running grub-mkimage to create it.
16554
16555 2010-09-10 Robert Millan <rmh@gnu.org>
16556
16557 * util/grub.d/10_hurd.in: Add misc readability checks.
16558 * util/grub.d/10_kfreebsd.in: Likewise.
16559 * util/grub.d/10_linux.in: Likewise.
16560
16561 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16562
16563 * util/grub-install.in: ${imgext} won't be defined here until the
16564 install branch is merged. For the meantime, only verify core.img on
16565 i386-pc and sparc64-ieee1275 platforms.
16566
16567 2010-09-10 Robert Millan <rmh@gnu.org>
16568
16569 Solaris support in grub_find_zpool_from_dir(). Thanks
16570 Seth Goldberg for referring to getextmntent() facility.
16571
16572 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16573 `sys/mkdev.h'.
16574 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16575 `<sys/mnttab.h>'.
16576 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16577 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16578 method for finding zpool name.
16579
16580 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16581
16582 grub-fstest needs the host and hostfs modules while other utilities
16583 actively require those modules to be absent, so grub-fstest needs
16584 its own initialisation and finalisation code.
16585
16586 * Makefile.am (grub_fstest.pp): New target.
16587 (grub_fstest_init.lst): Likewise.
16588 (grub_fstest_init.c): Likewise.
16589 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16590
16591 2010-09-10 Robert Millan <rmh@gnu.org>
16592
16593 * configure.ac: Check for `struct statfs.f_fstypename' and
16594 `struct statfs.f_mntfromname'.
16595
16596 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16597 kFreeBSD-specific code.
16598
16599 2010-09-10 Robert Millan <rmh@gnu.org>
16600
16601 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16602 on ZFS. Now non-main filesystems are supported as / too.
16603
16604 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16605
16606 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16607 and grub-core/disk/host.c to ...
16608 (grub-fstest): ... here. Having the host disk implementation
16609 present confuses grub-probe and other utility programs.
16610
16611 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16612 when writing to a file, not when writing to stdout.
16613
16614 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16615
16616 * tests/partmap_test.in: New test for partitions.
16617 * Makefile.util.def: Rules for new test.
16618
16619 2010-09-09 Robert Millan <rmh@gnu.org>
16620
16621 * util/grub-probe.c (probe): Fix a pair of unhandled error
16622 conditions.
16623
16624 2010-09-09 Robert Millan <rmh@gnu.org>
16625
16626 Basic Btrfs support (detection and UUID).
16627
16628 * grub-core/fs/btrfs.c: New file.
16629 * Makefile.util.def (library): Register btrfs.c.
16630 * grub-core/Makefile.core.def: Likewise.
16631
16632 2010-09-08 Robert Millan <rmh@gnu.org>
16633
16634 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16635 with (optional) parameters to specify device and relative path.
16636 * util/grub-install.in: Use is_path_readable_by_grub() to
16637 verify readability of a few critical files.
16638 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16639 verify readability of grub.cfg.new.
16640
16641 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 Split minix.mod into minix.mod and minix2.mod.
16644
16645 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16646 * grub-core/Makefile.core.def (minix2): New module.
16647 * grub-core/fs/minix.c: Use definitions instead of runtime version
16648 checking.
16649 * grub-core/fs/minix2.c: New file.
16650
16651 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16652
16653 Add new --boot-directory option to replace --root-directory
16654
16655 * util/grub-install.in: Add new --boot-directory option
16656 * util/grub-reboot.in: Likewise.
16657 * util/grub-set-default.in: Likewise.
16658
16659 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16660
16661 * util/grub-mkconfig.in: Use new variable.
16662
16663 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16664
16665 * configure.ac: Define some useful variables.
16666
16667 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16668
16669 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16670 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16671 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16672 Use terminfo and don't use cursor-on/cursor-off unless it's known
16673 to work.
16674 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16675 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16676
16677 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
16678
16679 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16680 starts with "(,", fill the drive containing the loaded image in
16681 between those two characters, but expect that a full partition
16682 specification including partition map names will follow.
16683
16684 2010-09-08 Robert Millan <rmh@gnu.org>
16685
16686 * configure.ac: Remove `--enable-grub-fstest' option.
16687 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16688
16689 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16690 `grub-fstest' instead of `grub-probe' for readability verification.
16691 * util/grub-probe.c (probe): Remove readability verification kludge.
16692
16693 2010-09-08 Robert Millan <rmh@gnu.org>
16694
16695 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16696 initializing `GRUB_FS'.
16697
16698 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16699
16700 Not command (!) support to GRUB script.
16701
16702 * tests/grub_script_not.in: New test.
16703 * Makefile.util.def: Rules for new test.
16704
16705 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16706 ! command as a special case.
16707 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16708
16709 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16710
16711 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16712 grub_free.
16713
16714 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16715
16716 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16717
16718 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16719
16720 * docs/grub.texi (Shell-like scripting): Documentation for break,
16721 continue, shift and return commands.
16722
16723 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16724
16725 Rename CD-ROM to cd on BIOS.
16726
16727 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16728 "cd".
16729 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16730
16731 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16732
16733 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16734 * util/grub-probe.c (main): Likewise.
16735 * util/i386/pc/grub-setup.c (main): Likewise.
16736 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16737 Reported and debugged by: alexxy
16738
16739 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16740
16741 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16742 diagnostic info.
16743
16744 2010-09-05 Jo Shields <directhex@apebox.org>
16745
16746 * util/grub.d/30_os-prober.in: Add missing classes.
16747
16748 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16749
16750 * docs/grub.texi (Theme file format): Document new position format.
16751
16752 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16753
16754 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16755 a table. Use @code instead of @verbatim.
16756
16757 2010-09-05 Colin D Bennett <colin@gibibit.com>
16758
16759 Gfxmenu documentation.
16760
16761 * docs/grub.texi (Theme file format): New chapter.
16762
16763 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16764
16765 * grub-core/Makefile.core.def (xzio): New module.
16766 * grub-core/io/xzio.c: New file.
16767 * grub-core/lib/xzembed/xz.h: New file (from xembed).
16768 * grub-core/lib/xzembed/xz_config.h: Likewise.
16769 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
16770 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
16771 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
16772 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
16773 * grub-core/lib/xzembed/xz_private.h: Likewise.
16774 * grub-core/lib/xzembed/xz_stream.h: Likewise.
16775 * include/grub/file.h (grub_file_filter_id): New compression filter
16776 GRUB_FILE_FILTER_XZIO.
16777
16778 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16779
16780 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
16781 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
16782 size.
16783
16784 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16785
16786 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
16787 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
16788
16789 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16790
16791 Uncompressed checksum support.
16792
16793 * grub-core/commands/hashsum.c (options): Add option --uncompress.
16794 (check_list): New parameter uncompress.
16795 (grub_cmd_hashsum): Handle --uncompress.
16796
16797 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16798
16799 Reintroduce testload.
16800
16801 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
16802 from here ...
16803 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
16804 (GRUB_MOD_INIT): New function.
16805 (GRUB_MOD_FINI): Likewise.
16806 * grub-core/Makefile.core.def (testload): New module.
16807
16808 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16809
16810 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
16811 (uint8_t): New type.
16812 (uint16_t): Likewise.
16813 (uint32_t): Likewise.
16814 (uint64_t): Likewise.
16815
16816 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16817
16818 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
16819
16820 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16821
16822 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
16823 Made static.
16824 (grub_gzfile_open): Removed. All users updated.
16825 (GRUB_MOD_INIT): New function.
16826 (GRUB_MOD_FINI): Likewise.
16827 * grub-core/kern/file.c (grub_file_filters_all): New variable.
16828 (grub_file_filters_enabled): Likewise.
16829 (grub_file_open): Handle filters.
16830 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
16831 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
16832 * include/grub/file.h (grub_file_filter_id_t): New type.
16833 (grub_file_filter_t): Likewise.
16834 (grub_file_filters_all): New extern variable.
16835 (grub_file_filters_enabled): Likewise.
16836 (grub_file_filter_register): New inline function.
16837 (grub_file_filter_unregister): Likewise.
16838 (grub_file_filter_disable): Likewise.
16839 (grub_file_filter_disable_compression): Likewise.
16840 * include/grub/gzio.h: Removed.
16841
16842 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16843
16844 Filename expansion support for wildcards in GRUB script.
16845
16846 * tests/grub_script_expansion.in: New test.
16847 * Makefile.util.def: Rule for new test.
16848
16849 * grub-core/commands/wildcard.c: New file, implements filename
16850 expansion support for GRUB script.
16851 * grub-core/Makefile.core.def: Rule update for regexp.mod.
16852 * grub-core/script/argv.c: Cosmetic changes.
16853 * grub-core/script/execute.c (grub_script_arglist_to_argv):
16854 Refactored to perform wildcard expansion on arguments.
16855 * include/grub/script_sh.h (grub_script_wildcard_translator): New
16856 struct.
16857
16858 * tests/util/grub-shell.in: Fix quoting for read input.
16859
16860 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16861
16862 Support for updating environment variables with matched substrings
16863 of regexp.
16864
16865 * tests/grub_cmd_regexp.in: New test.
16866 * Makefile.util.def: Rule for new test.
16867
16868 * grub-core/commands/regexp.c: New option -s to update environment
16869 variables with regexp matches.
16870
16871 2010-09-04 Szymon Janc <szymon@janc.net.pl>
16872
16873 * include/grub/file.h (grub_file): New member not_easly_seekable.
16874 (grub_file_seekable): New inline function.
16875 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
16876 easily seekable.
16877 (grub_gzio_open): Set not_easly_seekable.
16878 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
16879 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
16880
16881 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16882
16883 Support for options to appear multiple times on cmdline.
16884
16885 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
16886 * grub-core/commands/extcmd.c: Support for repeatable option.
16887 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
16888 repeatable option support.
16889
16890 Refactor menuentry into a regular command.
16891
16892 * grub-core/commands/menuentry.c: New file, menuentry command
16893 implementation.
16894 * grub-core/Makefile.core.def: Rule update for normal.mod.
16895 * grub-core/normal/main.c: Moved menuentry creation to
16896 grub-core/commands/menuentry.c.
16897 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
16898 (grub_menu_execute_entry_real): Removed.
16899 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
16900 function.
16901 (grub_script_execute_menuentry): Removed.
16902 * grub-core/script/parser.y (menuentry): Removed.
16903 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
16904 * grub-core/script/yylex.l (menuentry): Removed.
16905 * include/grub/menu.h (grub_menu_init): New prototype.
16906 (grub_menu_fini): New prototype.
16907 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
16908 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
16909 (grub_script_execute_sourcecode): New prototype.
16910
16911 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16912
16913 "return" command for GRUB script functions.
16914
16915 * tests/grub_script_return.in: New test.
16916 * Makefile.util.def: Rules for new test.
16917
16918 * grub-core/script/execute.c (grub_script_return): New function.
16919 * grub-core/script/main.c: Register/unregister return commaond.
16920 * include/grub/script_sh.h (grub_script_return): New prototype.
16921
16922 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16923
16924 "setparams" command to update positional parameters.
16925
16926 * tests/grub_script_setparams.in: New test.
16927 * Makefile.util.def: Rules for new test.
16928
16929 * grub-core/script/argv.c (grub_script_argv_make): New function.
16930 * grub-core/script/execute.c (replace_scope): New function.
16931 (grub_script_setparams): New function.
16932 * grub-core/script/lexer.c: Remove unused variables.
16933 * grub-core/script/main.c: Register/unregister setparams command.
16934 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
16935 (grub_script_setparams): New prototype.
16936
16937 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16938
16939 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
16940 grub_free order.
16941
16942 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16943
16944 Support for passing block of commands as an argument to extcmds.
16945
16946 * Makefile.util.def: Rules for new test.
16947 * tests/grub_script_blockarg.in: New test.
16948 * grub-core/tests/test_blockarg.c: New file, block argument
16949 command used in the test.
16950
16951 * include/grub/extcmd.h (grub_extcmd_context): New struct.
16952 (grub_register_extcmd_prio): New function prototype.
16953 (grub_extcmd_dispatcher): New function prototype.
16954 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
16955 type.
16956 * include/grub/script_sh.h (struct grub_script): New members
16957 `children', `next_siblings' and `refcnt' for block arguments and
16958 reference counting.
16959 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
16960 (grub_script_arg): New member `script' for block argument.
16961 (grub_script_argv): New member `script' for block argument.
16962 (grub_parser_param): New member `scripts' for block argument.
16963 (grub_script_mem_free): New extern function prototype.
16964 (grub_script_ref): New function prototype.
16965 (grub_script_unref): New function prototype.
16966
16967 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
16968 extcmd form to support block arguments.
16969 * grub-core/script/argv.c: Block arguments support.
16970 * grub-core/script/execute.c: Likewise.
16971 * grub-core/script/lexer.c: Likewise.
16972 * grub-core/script/main.c: Likewise.
16973 * grub-core/script/script.c: Likewise.
16974 * grub-core/script/parser.y: Likewise. New `block' and `block0'
16975 non-terminals.
16976
16977 * grub-core/commands/acpi.c: Update extcmd implementations with
16978 grub_extcmd_context_t.
16979 * grub-core/commands/cat.c: Likewise.
16980 * grub-core/commands/echo.c: Likewise.
16981 * grub-core/commands/extcmd.c: Likewise.
16982 * grub-core/commands/hashsum.c: Likewise.
16983 * grub-core/commands/hdparm.c: Likewise.
16984 * grub-core/commands/help.c: Likewise.
16985 * grub-core/commands/hexdump.c: Likewise.
16986 * grub-core/commands/i386/cpuid.c: Likewise.
16987 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16988 * grub-core/commands/i386/pc/halt.c: Likewise.
16989 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16990 * grub-core/commands/iorw.c: Likewise.
16991 * grub-core/commands/keystatus.c: Likewise.
16992 * grub-core/commands/loadenv.c: Likewise.
16993 * grub-core/commands/ls.c: Likewise.
16994 * grub-core/commands/lspci.c: Likewise.
16995 * grub-core/commands/memrw.c: Likewise.
16996 * grub-core/commands/probe.c: Likewise.
16997 * grub-core/commands/search_wrap.c: Likewise.
16998 * grub-core/commands/setpci.c: Likewise.
16999 * grub-core/commands/sleep.c: Likewise.
17000 * grub-core/disk/loopback.c: Likewise.
17001 * grub-core/hello/hello.c: Likewise.
17002 * grub-core/loader/i386/bsd.c: Likewise.
17003 * grub-core/loader/xnu.c: Likewise.
17004 * grub-core/term/gfxterm.c: Likewise.
17005 * grub-core/term/serial.c: Likewise.
17006 * grub-core/tests/lib/functional_test.c: Likewise.
17007
17008 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17009
17010 Multi-line quoted strings support.
17011
17012 * grub-core/script/lexer.c (append_newline): Removed.
17013 (grub_script_lexer_yywrap): Refactored.
17014 (grub_script_lexer_init): Refactored.
17015 * grub-core/script/yylex.l (yywrap): New function.
17016 (grub_lexer_resplit): New function.
17017 (grub_lexer_unput): New function.
17018 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17019 and resplit.
17020 * tests/grub_script_echo1.in: Added few more testcases.
17021
17022 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17023
17024 * grub-core/kern/misc.c: Don't add abort alias in utils.
17025 Reported by: echoline.
17026
17027 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17028
17029 Add missing files into "make dist" tarball for other platforms.
17030
17031 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17032 * conf/Makefile.common (dist_noinst_DATA): New variable.
17033 * conf/Makefile.extra-dist: Added missing make dist files.
17034 * grub-core/Makefile.core.def: Likewise.
17035
17036 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17037
17038 Compress grub_prefix.
17039
17040 * grub-core/boot/i386/pc/lnxboot.S: Use
17041 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17042 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17043 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17044 GRUB_MACHINE_PREFIX_END. All users updated.
17045 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17046 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17047 + 0x40.
17048 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17049 * util/grub-mkimage.c (image_target_desc): Change data_end to
17050 prefix_end. All users updated.
17051
17052 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17053
17054 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17055 value.
17056 (grub_openbsd_boot): Likewise.
17057 (grub_netbsd_boot): Likewise.
17058 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17059 (grub_xnu_boot): Likewise.
17060
17061 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17062
17063 * configure.ac: Clean LIBS variable after tests.
17064
17065 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17066
17067 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17068
17069 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17070
17071 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17072 echo if libdevmapper will be used.
17073
17074 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17075
17076 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17077 constant for the same file.
17078
17079 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17080
17081 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17082
17083 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17084
17085 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17086 grub-core/*.pp.
17087
17088 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17089
17090 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17091 required by the boot protocol.
17092
17093 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17094 ebp and edi members.
17095 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17096 state.ebp and state.edi.
17097 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17098 %ebp and %edi according to grub_relocator32_ebp and
17099 grub_relocator32_edi respectively.
17100 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17101 and state.edi.
17102
17103 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17104
17105 Add i386-pc-pxe image target.
17106
17107 * util/grub-mkimage.c (image_target_desc): New enum value
17108 IMAGE_I386_PC_PXE.
17109 (image_targets): New target i386-pc-pxe.
17110 (generate_image): Handle i386-pc-pxe image.
17111
17112 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17113
17114 Fix grub_pxe_scan.
17115
17116 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17117 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17118 All users updated.
17119 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17120 (grub_pxe_pxenv): Correct type.
17121
17122 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17123
17124 * NEWS: Document most of the important changes since 1.98.
17125
17126 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17127
17128 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17129 generated manual page) a little.
17130
17131 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17132
17133 * docs/grub.texi: Add myself as an author.
17134
17135 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17136
17137 * Makefile.util.def (libgrub.a): Add missing sunpc.
17138 Reported by: Seth Goldberg.
17139
17140 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17141
17142 Interrupt wrapping and code simplifications.
17143
17144 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17145 x86_noieee1275 which are functionaly equivalent in this case.
17146 (grub-install): Make source on each platform explicit. Enable on
17147 all noemu.
17148 * gentpl.py (x86_efi_pc): Removed group.
17149 (x86_noefi): Likewise.
17150 (i386_noefi): Likewise.
17151 (x86_noieee1275): Likewise.
17152 (i386_noieee1275): Likewise.
17153 (i386_noefi_noieee1275): Likewise.
17154 (i386_pc_qemu_coreboot): Likewise.
17155 (i386_coreboot_multiboot): Likewise.
17156 (i386_pc_coreboot_multiboot_qemu): Likewise.
17157 (x86_noefi_mips): Likewise.
17158 (noieee1275): Likewise.
17159 (ieee1275_mips): Likewise.
17160 (noemu_noieee1275): Likewise.
17161 (cmos): New group.
17162 (usb): Likewise.
17163 (videoinkernel): Likewise.
17164 (videomodules): Likewise.
17165 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17166 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17167 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17168 include/grub/loader.h, include/grub/msdos_partition.h,
17169 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17170 include/grub/machine/console.h, include/grub/machine/vga.h,
17171 include/grub/machine/vbe.h, include/grub/machine/init.h,
17172 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17173 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17174 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17175 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17176 * grub-core/Makefile.core.def (kernel): Explicit the source for
17177 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17178 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17179 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17180 Use videoinkernel tag.
17181 (usb): Enable on all usb.
17182 (usbserial_common): Likewise.
17183 (usbserial_pl2303): Likewise.
17184 (usbserial_ftdi): Likewise.
17185 (uhci): Enable on all x86.
17186 (ohci): Enable on all pci.
17187 (cmostest): Enable on all CMOS.
17188 (acpi): Include commands/acpi.c on all platforms.
17189 (halt): Add relevant lib/*/halt.c.
17190 (hdparm): Enable on all pci.
17191 (lspci): Likewise.
17192 (usbtest): Enable on all usb.
17193 (ata): Enable on all pci.
17194 (ata_pthru): Likewise.
17195 (usbms): Enable on all usb.
17196 (usb_keyboard): Likewise.
17197 (font): Use tag videomodules.
17198 (bufio): Likewise.
17199 (datetime): Use tag cmos. Enable on all noemu.
17200 (mmap): Use tags common and x86.
17201 (gfxterm): Use tag videomodules.
17202 (bitmap): Likewise.
17203 (bitmap_scale): Likewise.
17204 (video_fb): Likewise.
17205 (video): Likewise.
17206 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17207 adjust padding accordingly. All users updated.
17208 (grub_ohci_transaction): Fix bad format specification.
17209 (GRUB_MOD_INIT): Add asserts for struct size.
17210 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17211 (grub_alloc_td): Likewise.
17212 (grub_free_queue): Likewise.
17213 (grub_uhci_transfer): Likewise.
17214 (grub_uhci_transaction): Fix bad format specification.
17215 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17216 (grub_usb_bulk_readwrite): Likewise.
17217 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17218 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17219 Made static.
17220 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17221 Made static.
17222 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17223 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17224 Transformed into C.
17225 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17226 Moved from here ...
17227 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17228 ... here. Transformed into C. Made static.
17229 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17230 Moved from here ...
17231 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17232 ... here. Transformed into C. Made static.
17233 * grub-core/kern/i386/pc/startup.S
17234 (grub_biosdisk_check_int13_extensions): Moved from here ...
17235 * grub-core/disk/i386/pc/biosdisk.c
17236 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17237 Made static.
17238 * grub-core/kern/i386/pc/startup.S
17239 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17240 * grub-core/disk/i386/pc/biosdisk.c
17241 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17242 Transformed into C. Made static.
17243 * grub-core/kern/i386/pc/startup.S
17244 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17245 * grub-core/disk/i386/pc/biosdisk.c
17246 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17247 Transformed into C. Made static.
17248 * grub-core/kern/i386/pc/startup.S
17249 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17250 * grub-core/disk/i386/pc/biosdisk.c
17251 (grub_biosdisk_get_diskinfo_standard): ... here.
17252 Transformed into C. Made static.
17253 * grub-core/kern/i386/pc/startup.S
17254 (grub_biosdisk_get_num_floppies): Moved from here ...
17255 * grub-core/disk/i386/pc/biosdisk.c
17256 (grub_biosdisk_get_num_floppies): ... here.
17257 Transformed into C. Made static.
17258 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17259 New function.
17260 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17261 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17262 Transformed into C. Made static.
17263 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17264 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17265 Transformed into C. Made static.
17266 * grub-core/kern/i386/ieee1275/init.c: Removed.
17267 * grub-core/kern/i386/misc.S: Likewise.
17268 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17269 Splitted from here ...
17270 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17271 Transformed into C. Made static. All users updated.
17272 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17273 Transformed into C. Made static. All users updated.
17274 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17275 Moved from here...
17276 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17277 Transformed into C. Made static. All users updated.
17278 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17279 Moved from here...
17280 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17281 Transformed into C. Made static. All users updated.
17282 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17283 Removed (replaced by C version).
17284 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17285 Moved from here...
17286 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17287 Transformed into C. Made static.
17288 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17289 Moved from here...
17290 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17291 ... here. Transformed into C.
17292 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17293 Moved from here...
17294 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17295 ... here. Transformed into C.
17296 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17297 Moved from here...
17298 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17299 ... here. Transformed into C. Made static.
17300 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17301 Moved from here...
17302 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17303 ... here. Transformed into C.
17304 * grub-core/kern/i386/pc/startup.S
17305 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17306 * grub-core/video/i386/pc/vbe.c
17307 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17308 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17309 Moved from here...
17310 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17311 ... here. Transformed into C.
17312 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17313 Moved from here...
17314 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17315 ... here. Transformed into C.
17316 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17317 Moved from here...
17318 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17319 ... here. Transformed into C.
17320 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17321 Moved from here...
17322 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17323 ... here. Transformed into C.
17324 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17325 Moved from here...
17326 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17327 ... here. Transformed into C. Made static.
17328 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17329 Moved from here...
17330 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17331 ... here. Transformed into C. Made static.
17332 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17333 Moved from here...
17334 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17335 ... here. Transformed into C. Made static.
17336 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17337 pxe_rm_entry as third argument.
17338 (grub_bios_interrupt): New function.
17339 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17340 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17341 of calling grub_stop.
17342 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17343 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17344 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17345 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17346 * grub-core/lib/i386/halt.c: Moved from here ...
17347 * grub-core/lib/i386/halt.c: ... here.
17348 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17349 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17350 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17351 grub_stop_floppy.
17352 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17353 * include/grub/i386/coreboot/init.h: Removed.
17354 * include/grub/i386/multiboot/init.h: Likewise.
17355 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17356 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17357 * include/grub/i386/pc/int.h: New file.
17358 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17359 (grub_pxe_scan): Removed.
17360 (grub_pxe_call): Update prototype.
17361 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17362 prototypes.
17363 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17364 * include/grub/i386/qemu/init.h: Removed.
17365 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17366 noreturn.
17367 (grub_halt): Likewise.
17368 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17369 (grub_reboot): Likewise.
17370 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17371 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17372 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17373
17374 2010-08-30 Robert Millan <rmh@gnu.org>
17375
17376 * NEWS: Document addition of ZFS support in `grub-install' and
17377 `grub-mkconfig'.
17378
17379 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17380
17381 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17382 dprintf output.
17383
17384 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17385
17386 Remove leftover embedding of font objects.
17387
17388 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17389 * util/grub-install.in (font): Removed.
17390 * util/grub-mkimage.c (generate_image): Remove font support. All users
17391 updated.
17392
17393 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17394
17395 Remove leftover embedding of font objects.
17396
17397 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17398 * util/grub-install.in (font): Removed.
17399 * util/grub-mkimage.c (generate_image): Remove font support. All users
17400 updated.
17401
17402 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17403
17404 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17405 Reported by: Ian Turner
17406
17407 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17408
17409 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17410 timeout to avoid indefinite boot stalling.
17411
17412 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17413
17414 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17415 (grub_env_write_color_highlight): Likewise.
17416
17417 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17418
17419 * grub-core/normal/term.c (print_more): Return to normal and not
17420 to standard state after printing "---MORE---".
17421
17422 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17423
17424 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17425 Mask out the bit 0x80 since it has other meaning that specifiing color.
17426
17427 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17428
17429 New relocator. Allows for more kernel support and more straightforward
17430 loader writing.
17431
17432 * Makefile.am (BOOTTARGET): New variable.
17433 (QEMU32): Likewise.
17434 (linux.init.x86_64): New target.
17435 (linux.init.i386): Likewise.
17436 (multiboot.elf): Likewise.
17437 (kfreebsd.elf): Likewise.
17438 (kfreebsd.aout): Likewise.
17439 (pc-chainloader.elf): Likewise.
17440 (pc-chainloader.bin): Likewise.
17441 (ntldr.elf): Likewise.
17442 (ntldr.bin): Likewise.
17443 (multiboot2.elf): Likewise.
17444 (kfreebsd.init.x86_64): Likewise.
17445 (kfreebsd.init.i386): Likewise.
17446 (knetbsd.init.i386): Likewise.
17447 (kopenbsd.init.i386): Likewise.
17448 (knetbsd.init.x86_64): Likewise.
17449 (kopenbsd.init.x86_64): Likewise.
17450 (linux-initramfs.i386): Likewise.
17451 (linux-initramfs.x86_64): Likewise.
17452 (kfreebsd-mfsroot.i386.img): Likewise.
17453 (knetbsd.image.i386): Likewise.
17454 (kopenbsd.image.i386): Likewise.
17455 (kopenbsd.image.x86_64): Likewise.
17456 (knetbsd.miniroot-image.i386.img): Likewise.
17457 (kfreebsd-mfsroot.x86_64.img): Likewise.
17458 (knetbsd.image.x86_64): Likewise.
17459 (knetbsd.miniroot-image.x86_64.img): Likewise.
17460 (kfreebsd-mfsroot.i386.gz): Likewise.
17461 (bootcheck-kfreebsd-i386): Likewise.
17462 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17463 (bootcheck-kfreebsd-x86_64): Likewise.
17464 (knetbsd.miniroot-image.i386.gz): Likewise.
17465 (bootcheck-knetbsd-i386): Likewise.
17466 (bootcheck-kopenbsd-i386): Likewise.
17467 (bootcheck-kopenbsd-x86_64): Likewise.
17468 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17469 (bootcheck-knetbsd-x86_64): Likewise.
17470 (bootcheck-linux-i386): Likewise.
17471 (bootcheck-linux-x86_64): Likewise.
17472 (bootcheck-linux16-i386): Likewise.
17473 (bootcheck-linux16-x86_64): Likewise.
17474 (bootcheck-multiboot): Likewise.
17475 (bootcheck-multiboot2): Likewise.
17476 (bootcheck-kfreebsd-aout): Likewise.
17477 (bootcheck-pc-chainloader): Likewise.
17478 (bootcheck-ntldr): Likewise.
17479 (CLEANFILES): Add new targets.
17480 (BOOTCHECKS): New variable.
17481 (.PHONY): Add bootchecks.
17482 (SUCCESSFUL_BOOT_STRING): New variable.
17483 (BOOTCHECK_TIMEOUT): Likewise.
17484 (bootcheck): New target
17485 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17486 * configure.ac: Correct efiemu excuse.
17487 * docs/grub.texi (Supported kernels): New chapter.
17488 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17489 include/grub/mm_private.h. Simplify inclusion of
17490 include/grub/boot.h, include/grub/loader.h
17491 and include/grub/msdos_partition.h
17492 (KERNEL_HEADER_FILES) [i386_coreboot]:
17493 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17494 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17495 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17496 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17497 include/grub/machine/loader.h.
17498 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17499 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17500 extra_dist.
17501 (pci.mod): Enable on i386-multiboot.
17502 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17503 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17504 i386-qemu.
17505 (relocator.mod): Rewritten.
17506 (aout.mod): Enable on all x86.
17507 (bsd.mod): Likewise.
17508 (ntldr.mod): New module.
17509 (linux.mod): Use loader/i386/linux.c on all x86.
17510 (xnu.mod): Enable on all x86.
17511 (vga_text.mod): disable on EFI and QEMU.
17512 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17513 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17514 * grub-core/efiemu/loadcore.c: Likewise.
17515 * grub-core/efiemu/main.c: Likewise.
17516 (grub_efiemu_exit_boot_services): Removed.
17517 (grub_efiemu_finish_boot_services): Likewise.
17518 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17519 function.
17520 * grub-core/efiemu/i386/nocfgtables.c: New file.
17521 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17522 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17523 (grub_efi_finish_boot_services): Moved from here ...
17524 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17525 Fille finish memory map and related data.
17526 (finish_mmap_buf): New variable.
17527 (grub_efi_uintn_t finish_mmap_size): Likewise.
17528 (grub_efi_uintn_t finish_key): Likewise.
17529 (grub_efi_uintn_t finish_desc_size): Likewise.
17530 (grub_efi_uint32_t finish_desc_version): Likewise.
17531 (grub_efi_is_finished): Likewise.
17532 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17533 finished.
17534 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17535 (grub_elf64_phdr_iterate): Likewise.
17536 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17537 (grub_os_area_size): Likewise.
17538 (grub_machine_init): Don't reserve os area.
17539 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17540 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17541 * grub-core/kern/i386/loader.S: Removed.
17542 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17543 (grub_os_area_size): Likewise.
17544 (grub_machine_init): Don't reserve os area.
17545 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17546 Don't call grub_dl_unload_all.
17547 Don't include loader.S.
17548 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17549 Declare the memory after _end as available.
17550 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17551 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17552 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17553 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17554 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17555 * include/grub/mm_private.h (grub_mm_header): ... here.
17556 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17557 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17558 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17559 (grub_mm_region): ..here. Removed addr. Added pre_size.
17560 All users updated.
17561 * grub-core/kern/mm.c (base): Renamed to ...
17562 (grub_mm_base): ... this. Made global.
17563 (grub_real_malloc): Alloc from end of region.
17564 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17565 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17566 * grub-core/kern/powerpc/cache_flush.S: ... here.
17567 * grub-core/lib/efi/relocator.c: New file.
17568 * grub-core/lib/i386/relocator.c: Rewritten.
17569 * grub-core/lib/i386/relocator16.S: New file.
17570 * grub-core/lib/i386/relocator32.S: Likewise.
17571 * grub-core/lib/i386/relocator64.S: Likewise.
17572 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17573 * grub-core/lib/i386/relocator_common.S: New file.
17574 * grub-core/lib/ieee1275/relocator.c: Likewise.
17575 * grub-core/lib/mips/relocator.c: Rewritten.
17576 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17577 stylistic adjustments.
17578 * grub-core/lib/powerpc/relocator.c: New file.
17579 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17580 * grub-core/lib/relocator.c: Rewritten.
17581 * grub-core/lib/x86_64/relocator_asm.S: New file.
17582 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17583 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17584 (bsd_tag): New struct.
17585 (tags): New variable.
17586 (tags_last): Likewise.
17587 (netbsd_module): New struct.
17588 (netbsd_mods): New variable.
17589 (netbsd_mods_last): Likewise.
17590 (openbsd_opts): New parameter "serial".
17591 (OPENBSD_SERIAL_ARG): New definition.
17592 (netbsd_opts): New parameter "serial".
17593 (NETBSD_SERIAL_ARG): New definition.
17594 (grub_freebsd_add_meta): Reorganised into ...
17595 (grub_bsd_add_meta): ...this. All users updated.
17596 (grub_freebsd_add_mmap): Reorganised into ...
17597 (generate_e820_mmap): ...this...
17598 (grub_bsd_add_mmap): ...and this. All users updated.
17599 (grub_freebsd_list_modules): Use tags.
17600 (grub_netbsd_add_meta_module): New function.
17601 (grub_netbsd_list_modules): Likewise.
17602 (grub_freebsd_boot): Use relocator and finish EFI.
17603 (grub_openbsd_boot): Likewise.
17604 (grub_netbsd_setup_video): New function.
17605 (grub_netbsd_add_modules): Likewise.
17606 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17607 and finish EFI.
17608 (grub_bsd_unload): Unload tags.
17609 (grub_bsd_load_aout): Use relocator.
17610 (grub_bsd_elf32_size_hook): New function.
17611 (grub_bsd_elf32_hook): Use relocator.
17612 (grub_bsd_elf64_size_hook): New function.
17613 (grub_bsd_elf64_hook): Use relocator.
17614 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17615 (grub_bsd_load): Zero-out openbsd_ramdisk.
17616 (grub_bsd_load): Use relocator.
17617 (grub_cmd_openbsd): Support serial.
17618 (grub_cmd_netbsd): Support modules.
17619 (grub_cmd_freebsd_module): Use relocator.
17620 (grub_netbsd_module_load): New function.
17621 (grub_cmd_netbsd_module): Likewise.
17622 (grub_cmd_openbsd_ramdisk): Likewise.
17623 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17624 kopenbsd_ramdisk.
17625 (GRUB_MOD_FINI): Unregister new commands.
17626 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17627 (grub_freebsd_load_elfmodule_obj): Use relocator.
17628 (grub_freebsd_load_elfmodule): Likewise.
17629 (grub_freebsd_load_elf_meta): Likewise.
17630 (grub_netbsd_load_elf_meta): New function.
17631 (grub_openbsd_find_ramdisk): Likewise.
17632 * grub-core/loader/i386/bsd_helper.S: Removed.
17633 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17634 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17635 * grub-core/loader/i386/efi/linux.c: Likewise.
17636 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17637 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17638 (DEFAULT_VIDEO_MODE): Likewise.
17639 (real_mode_target): New variable.
17640 (prot_mode_target): Likewise.
17641 (initrd_mem_target): Likewise.
17642 (relocator): Likewise.
17643 (efi_mmap_buf): Likewise.
17644 (efi_mmap_size): Likewise.
17645 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17646 (free_pages): Use relocator.
17647 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17648 (grub_linux_setup_video): Return error.
17649 (grub_linux_trampoline_start): Removed.
17650 (grub_linux_trampoline_end): Likewise.
17651 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17652 andd video parameters depending on firmware.
17653 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17654 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17655 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17656 (grub_cmd_initrd): Use relocator.
17657 * grub-core/loader/i386/linux_trampoline.S: Removed.
17658 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17659 (elf_sec_entsize): Likewise.
17660 (elf_sec_shstrndx): Likewise.
17661 (elf_sections): Likewise.
17662 (grub_multiboot_load): Use relocator.
17663 (grub_multiboot_get_mbi_size): Account for sections.
17664 (grub_multiboot_make_mbi): Use relocator and support sections.
17665 (grub_multiboot_add_elfsyms): New function.
17666 (grub_multiboot_free_mbi): Free sections.
17667 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17668 (grub_linux_real_target): Likewise.
17669 (grub_linux_real_chunk): Likewise.
17670 (grub_linux16_prot_size): Likewise.
17671 (grub_linux16_boot): Use relocator.
17672 (grub_linux_unload): Unload relocator.
17673 (grub_cmd_linux): Use relocator.
17674 (grub_cmd_initrd): Likewise.
17675 * grub-core/loader/i386/pc/ntldr.c: New file.
17676 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17677 Don't try to guess CPU frequency.
17678 (grub_xnu_set_video): Stretch bitmap.
17679 (grub_xnu_boot): Use relocator.
17680 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17681 (grub_linux_unload): Free relocator.
17682 (grub_linux_load32): Use relocator.
17683 (grub_linux_load64): Likewise.
17684 (grub_cmd_initrd): Likewise.
17685 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17686 (grub_multiboot_unload): Unload relocator.
17687 (grub_cmd_multiboot): Use relocator.
17688 (grub_cmd_module): Likewise.
17689 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17690 Use relocator and support sections.
17691 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17692 (elf_sec_entsize): Likewise.
17693 (elf_sec_shstrndx): Likewise.
17694 (elf_sections): Likewise.
17695 (grub_multiboot_load): Use relocator.
17696 (grub_multiboot_get_mbi_size): Account for sections.
17697 (grub_multiboot_make_mbi): Use relocator and support sections.
17698 (grub_multiboot_add_elfsyms): New function.
17699 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17700 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17701 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17702 Prototype changed. All users updated.
17703 (grub_xnu_align_heap): Simplified.
17704 (grub_xnu_writetree_toheap): Likewise.
17705 (grub_xnu_unload): Unload relocator.
17706 (grub_cmd_xnu_kernel): Use relocator.
17707 (grub_cmd_xnu_kernel64): Likewise.
17708 (grub_xnu_register_memory): Simplified.
17709 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17710 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17711 EFI is finished.
17712 (grub_console_checkkey): Likewise.
17713 (grub_console_getkey): Likewise.
17714 (grub_console_getwh): Likewise.
17715 (grub_console_getxy): Likewise.
17716 (grub_console_gotoxy): Likewise.
17717 (grub_console_cls): Likewise.
17718 (grub_console_setcolorstate): Likewise.
17719 (grub_console_setcursor): Likewise.
17720 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17721 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17722 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17723 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17724 * grub-core/tests/boot/kernel-8086.S: Likewise.
17725 * grub-core/tests/boot/kernel-i386.S: Likewise.
17726 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17727 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17728 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17729 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17730 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17731 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17732 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17733 * grub-core/tests/boot/linux.cfg: Likewise.
17734 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17735 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17736 * grub-core/tests/boot/linux16.cfg: Likewise.
17737 * grub-core/tests/boot/multiboot.cfg: Likewise.
17738 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17739 * grub-core/tests/boot/ntldr.cfg: Likewise.
17740 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17741 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17742 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17743 New definition.
17744 * include/grub/dl.h (grub_dl_unload_all): Removed.
17745 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17746 (grub_efi_finish_boot_services): Change prototype.
17747 (grub_efi_is_finished): New variable.
17748 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17749 Changed prototype.
17750 (grub_efiemu_finish_boot_services): Removed.
17751 (grub_machine_efiemu_init_tables): New prototype.
17752 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17753 (grub_elf64_phdr_iterate): Likewise.
17754 * include/grub/i386/bsd.h: Include relocator.h.
17755 (freebsd_tag_header): New struct.
17756 (grub_openbsd_bios_mmap): Removed.
17757 (grub_unix_real_boot): Removed.
17758 (grub_freebsd_load_elfmodule32): Changed prototype.
17759 (grub_freebsd_load_elfmodule_obj64): Likewise.
17760 (grub_freebsd_load_elf_meta32): Likewise.
17761 (grub_freebsd_load_elf_meta64): Likewise.
17762 (grub_freebsd_add_meta): Removed.
17763 (grub_netbsd_load_elf_meta32): New prototype.
17764 (grub_netbsd_load_elf_meta64): Likewise.
17765 (grub_bsd_add_meta): Likewise.
17766 (grub_openbsd_ramdisk_descriptor): New struct.
17767 (grub_openbsd_find_ramdisk32): New prototype.
17768 (grub_openbsd_find_ramdisk64): Likewise.
17769 * include/grub/i386/coreboot/loader.h: Removed.
17770 * include/grub/i386/efi/loader.h: Likewise.
17771 * include/grub/i386/ieee1275/loader.h: Likewise.
17772 * include/grub/i386/linux.h (linux_kernel_header): Change void *
17773 to grub_uint32_t.
17774 * include/grub/i386/loader.h: Removed.
17775 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
17776 value.
17777 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
17778 (grub_phys_addr_t): New type.
17779 (grub_vtop): New inline function.
17780 (grub_map_memory): Likewise.
17781 (grub_unmap_memory): Likewise.
17782 * include/grub/i386/multiboot/loader.h: Removed.
17783 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
17784 (NETBSD_BTINFO_CONSOLE): New definition.
17785 (NETBSD_BTINFO_SYMTAB): Likewise.
17786 (NETBSD_BTINFO_MODULES): Likewise.
17787 (NETBSD_BTINFO_FRAMEBUF): Likewise.
17788 (grub_netbsd_bootinfo): New struct.
17789 (grub_netbsd_btinfo_common): Use explicit bitsize.
17790 (grub_netbsd_btinfo_mmap_entry): Removed.
17791 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
17792 (grub_netbsd_btinfo_bootdisk): New struct.
17793 (grub_netbsd_btinfo_symtab): Likewise.
17794 (grub_netbsd_btinfo_serial): Likewise.
17795 (grub_netbsd_btinfo_modules): Likewise.
17796 (grub_netbsd_btinfo_framebuf): Likewise.
17797 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
17798 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
17799 Likewise.
17800 (grub_openbsd_bootargs): Use explicit bitsize.
17801 (grub_openbsd_bootarg_console): New struct.
17802 (GRUB_OPENBSD_COM_MAJOR): New definition.
17803 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
17804 * include/grub/i386/pc/efiemu.h: Removed.
17805 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
17806 * include/grub/i386/qemu/loader.h: Removed.
17807 * include/grub/i386/relocator.h: Rewritten.
17808 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
17809 * include/grub/mips/memory.h: New file.
17810 * include/grub/mips/multiboot.h: Rewritten.
17811 * include/grub/mips/relocator.h: Rewritten.
17812 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
17813 (grub_vtop): New function.
17814 (grub_map_memory): Likewise.
17815 (grub_unmap_memory): Likewise.
17816 * include/grub/misc.h (ALIGN_DOWN): New definition.
17817 * include/grub/mm.h (grub_mm_check_real): New proto.
17818 (GRUB_MM_CHECK): New definition.
17819 * include/grub/mm_private.h: New file.
17820 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
17821 (grub_multiboot_get_mbi_size): Removed.
17822 (grub_multiboot_make_mbi): Change prottype.
17823 (grub_multiboot_set_accepts_video): New proto.
17824 (grub_multiboot_add_elfsyms): Likewise.
17825 (grub_multiboot_payload_eip): New variable.
17826 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
17827 New prototype.
17828 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
17829 New definition.
17830 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
17831 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
17832 * include/grub/powerpc/ieee1275/loader.h: Removed.
17833 * include/grub/powerpc/memory.h: New file.
17834 * include/grub/powerpc/relocator.h: Likewise.
17835 * include/grub/relocator.h: Likewise.
17836 * include/grub/relocator_private.h: Likewise.
17837 * include/grub/sparc64/ieee1275/loader.h: Removed.
17838 * include/grub/x86_64/memory.h: New file.
17839 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
17840 (grub_xnu_heap_malloc): Likewise.
17841 (grub_xnu_heap_real_start): Removed.
17842 (grub_xnu_heap_start): Likewise.
17843 (grub_xnu_relocator): New variable.
17844 (grub_xnu_heap_target_start): Likewise.
17845 * tests/util/grub-shell.in: Support non-pc.
17846 * util/grub-mkimage.c (image_targets): Fix multiboot target.
17847
17848 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17849
17850 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
17851 on malloc error.
17852 (grub_bidi_logical_to_visual): Check that malloc succeded.
17853 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
17854 puts.
17855 (grub_xputs_normal): Likewise.
17856
17857 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17858
17859 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
17860 extra_dist.
17861
17862 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17863
17864 * grub-core/efiemu/runtime/efiemu.sh: Removed.
17865
17866 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17867
17868 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
17869
17870 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17871
17872 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
17873 dprintf.
17874
17875 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
17876
17877 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
17878
17879 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17880
17881 * grub-core/normal/term.c (print_more): Fix a memory leak.
17882 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
17883 (grub_xputs_normal): Likewise.
17884
17885 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17886
17887 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
17888 the begining of the string
17889
17890 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17891
17892 * grub-core/script/script.c (grub_script_parse): Free parsed on
17893 failure.
17894
17895 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17896
17897 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
17898 on failure.
17899
17900 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17901
17902 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
17903 return.
17904
17905 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17906
17907 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
17908 (scroll_up): Fix a memory leak.
17909
17910 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17911
17912 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
17913 errors.
17914
17915 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
17916
17917 Handle USB pendrives exposed as floppies.
17918
17919 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
17920 floppy.
17921 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17922 Check for partitions on all devices.
17923
17924 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17925
17926 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
17927 (readkey): Likewise.
17928
17929 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17930
17931 Multiple variable names support to "export" command.
17932
17933 * normal/context.c (grub_cmd_export): "export" command supports
17934 multiple variable names.
17935
17936 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
17937
17938 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
17939 --target=drive output to Mach device name.
17940
17941 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17942
17943 New Automake based build system for GRUB.
17944
17945 * ABOUT-NLS: New file.
17946 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
17947 in Makefile.util.def file.
17948 * Makefile.util.def: New file. Autogen build definitions file for
17949 GRUB host utils.
17950 * conf/Makefile.common: New file. Common variables for GRUB host
17951 utils and target modules.
17952 * conf/Makefile.extra-dist: New file. Extra files for make dist.
17953 * docs/Makefile.am: New file. Automake file for docs.
17954 * gentpl.py: New file. Python script to generate Autogen
17955 template.
17956 * grub-core/Makefile.am: New file. GRUB target modules' rules
17957 that doesn't fit in Makefile.core.def file.
17958 * grub-core/Makefile.core.def: New file. Autogen build
17959 definitions file for GRUB target modules.
17960 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
17961 specific setjmp.S file.
17962 * po/Makefile.am: New file.
17963
17964 * .bzrignore: New ignores.
17965 * INSTALL: New requirements, without Ruby.
17966 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
17967 * autogen.sh: Updated to invoke autogen as necessary.
17968 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
17969 and defines for Automake conditionals.
17970 * geninit.sh: Refactoring.
17971
17972 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
17973 necessary.
17974 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
17975 New prototype.
17976
17977 * include/grub/test.h: Fix functional test modules' naming.
17978 * grub-core/tests/example_functional_test.c: Fix test module name.
17979
17980 * util/misc.c: Hosted versions' of grub functions for libgrub.a
17981 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
17982 * util/grub-editenv.c: Likewise.
17983 * util/grub-fstest.c: Likewise.
17984 * util/grub-mkdevicemap.c: Likewise.
17985 * util/grub-mkfont.c: Likewise.
17986 * util/grub-mkimage.c: Likewise.
17987 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17988 * util/grub-probe.c: Likewise.
17989 * util/grub-script-check.c: Likewise.
17990 * util/i386/pc/grub-setup.c: Likewise.
17991 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17992
17993 * tests/util/grub-shell.in: Fix override directory path.
17994 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
17995 * util/import_gcry.py: Create Makefile.gcry.def file instead.
17996
17997 * util/lvm.c: Update #includes.
17998 * util/raid.c: Likewise.
17999 * util/resolve.c: Likewise.
18000 * grub-core/bus/emu/pci.c: Likewise.
18001 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18002 * grub-core/lib/posix_wrap/string.h: Likewise.
18003 * grub-core/kern/emu/main.c: Likewise.
18004
18005 * grub-core/gensymlist.sh: New file. Script for generating kernel
18006 symbols file.
18007 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18008
18009 * grub-core/gentrigtables.c: Fix unused variable warnings.
18010
18011 * Makefile.in: Removed.
18012 * conf/any-emu.rmk: Removed.
18013 * conf/common.rmk: Removed.
18014 * conf/i386-coreboot.rmk: Removed.
18015 * conf/i386-efi.rmk: Removed.
18016 * conf/i386-ieee1275.rmk: Removed.
18017 * conf/i386-multiboot.rmk: Removed.
18018 * conf/i386-pc.rmk: Removed.
18019 * conf/i386-qemu.rmk: Removed.
18020 * conf/i386.rmk: Removed.
18021 * conf/mips-yeeloong.rmk: Removed.
18022 * conf/mips.rmk: Removed.
18023 * conf/powerpc-ieee1275.rmk: Removed.
18024 * conf/sparc64-ieee1275.rmk: Removed.
18025 * conf/tests.rmk: Removed.
18026 * conf/x86-efi.rmk: Removed.
18027 * conf/x86_64-efi.rmk: Removed.
18028 * gendistlist.sh: Removed.
18029 * geninitheader.sh: Removed.
18030 * genkernsyms.sh.in: Removed.
18031 * genmk.rb: Removed.
18032 * gensymlist.sh.in: Removed.
18033 * mkinstalldirs: Removed.
18034 * boot: Moved ...
18035 * grub-core/boot: ... to here.
18036 * bus: Moved ...
18037 * grub-core/bus: ... to here.
18038 * commands: Moved ...
18039 * grub-core/commands: ... to here.
18040 * disk: Moved ...
18041 * grub-core/disk: ... to here.
18042 * efiemu: Moved ...
18043 * grub-core/efiemu: ... to here.
18044 * font: Moved ...
18045 * grub-core/font: ... to here.
18046 * fs: Moved ...
18047 * grub-core/fs: ... to here.
18048 * gencmdlist.sh: Moved ...
18049 * grub-core/gencmdlist.sh: ... to here.
18050 * genemuinit.sh: Moved ...
18051 * grub-core/genemuinit.sh: ... to here.
18052 * genemuinitheader.sh: Moved ...
18053 * grub-core/genemuinitheader.sh: ... to here.
18054 * genfslist.sh: Moved ...
18055 * grub-core/genfslist.sh: ... to here.
18056 * genhandlerlist.sh: Moved ...
18057 * grub-core/genhandlerlist.sh: ... to here.
18058 * genmoddep.awk: Moved ...
18059 * grub-core/genmoddep.awk: ... to here.
18060 * genmodsrc.sh: Moved ...
18061 * grub-core/genmodsrc.sh: ... to here.
18062 * genpartmaplist.sh: Moved ...
18063 * grub-core/genpartmaplist.sh: ... to here.
18064 * genparttoollist.sh: Moved ...
18065 * grub-core/genparttoollist.sh: ... to here.
18066 * genterminallist.sh: Moved ...
18067 * grub-core/genterminallist.sh: ... to here.
18068 * gentrigtables.c: Moved ...
18069 * grub-core/gentrigtables.c: ... to here.
18070 * genvideolist.sh: Moved ...
18071 * grub-core/genvideolist.sh: ... to here.
18072 * gettext: Moved ...
18073 * grub-core/gettext: ... to here.
18074 * gfxmenu: Moved ...
18075 * grub-core/gfxmenu: ... to here.
18076 * gnulib: Moved ...
18077 * grub-core/gnulib: ... to here.
18078 * hello: Moved ...
18079 * grub-core/hello: ... to here.
18080 * hook: Moved ...
18081 * grub-core/hook: ... to here.
18082 * io: Moved ...
18083 * grub-core/io: ... to here.
18084 * kern: Moved ...
18085 * grub-core/kern: ... to here.
18086 * lib: Moved ...
18087 * grub-core/lib: ... to here.
18088 * loader: Moved ...
18089 * grub-core/loader: ... to here.
18090 * mmap: Moved ...
18091 * grub-core/mmap: ... to here.
18092 * normal: Moved ...
18093 * grub-core/normal: ... to here.
18094 * partmap: Moved ...
18095 * grub-core/partmap: ... to here.
18096 * parttool: Moved ...
18097 * grub-core/parttool: ... to here.
18098 * script: Moved ...
18099 * grub-core/script: ... to here.
18100 * term: Moved ...
18101 * grub-core/term: ... to here
18102 * tests/example_functional_test.c: Moved ...
18103 * grub-core/tests/example_functional_test.c: ... to here.
18104 * tests/lib/functional_test.c: Moved ...
18105 * grub-core/tests/lib/functional_test.c: ... to here.
18106 * tests/lib/test.c: Moved ...
18107 * grub-core/tests/lib/test.c: ... to here.
18108 * video: Moved ...
18109 * grub-core/video: ... to here.
18110
18111 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18112
18113 Replace --enable-grub-emu-modules with grub-emu-lite.
18114
18115 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18116 cache.S.
18117
18118 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18119 * kern/emu/full.c: New file. For grub-emu specific initialization.
18120 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18121 * kern/emu/main.c: Call initialization function grub_emu_init.
18122
18123 * Makefile.in: Include grub-emu-lite in install.
18124 * commands/parttool.c: Use grub_no_autoload to differentiate
18125 between grub-emu and grub-emu-lite.
18126 * include/grub/misc.h: New variable grub_no_autoload.
18127
18128 * conf/any-emu.rmk: New rules for grub-emu-lite.
18129 * configure.ac: Remove --enable-grub-emu-modules.
18130 * genmk.rb: Cleanup unnecessary rules.
18131 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18132
18133 * normal/main.c: Don't load list files on grub-emu-lite.
18134 * util/misc.c (grub_arch_sync_caches): Removed.
18135
18136 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18137
18138 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18139 grub-mkimage rather than grub-mkelfimage.
18140 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18141
18142 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18143
18144 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18145 a key after CapsLock or NumLock. It's just a qemu bug.
18146
18147 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18148
18149 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18150 needed by libusb wrapper.
18151
18152 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18153
18154 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18155
18156 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18157
18158 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18159 --nounzip is passed.
18160
18161 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18162
18163 USB hotunplugging and USB serial support.
18164
18165 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18166 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18167 (grub_uhci_transfer): Respect timeout and set *actual.
18168 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18169 non-standard length.
18170 (grub_usb_device_attach): Autoload modules.
18171 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18172 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18173 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18174 users updated.
18175 (grub_usb_add_hub): Fill nports and children.
18176 (attach_root_port): Receive hub instead of controller.
18177 All users updated. Fill hub->devices.
18178 (grub_usb_root_hub): Allocate hub->devices.
18179 (detach_device): New function.
18180 (poll_nonroot_hub): Fill children and detach devices.
18181 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18182 actual arguments. All users updated.
18183 (grub_usb_bulk_read_extended): New function.
18184 * bus/usb/serial/common.c: New file.
18185 * bus/usb/serial/ftdi.c: Likewise.
18186 * bus/usb/serial/pl2303.c: Likewise.
18187 * commands/terminal.c (handle_command): Support wildcard.
18188 * commands/usbtest.c: Output "Unknown" instead of empty string.
18189 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18190 (usbserial_common_mod_SOURCES): New variable.
18191 (usbserial_common_mod_CFLAGS): Likewise.
18192 (usbserial_common_mod_LDFLAGS): Likewise.
18193 (pkglib_MODULES): Add usbserial_pl2303.mod.
18194 (usbserial_pl2303_mod_SOURCES): New variable.
18195 (usbserial_pl2303_mod_CFLAGS): Likewise.
18196 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18197 (pkglib_MODULES): Add usbserial_ftdi.mod.
18198 (usbserial_ftdi_mod_SOURCES): New variable.
18199 (usbserial_ftdi_mod_CFLAGS): Likewise.
18200 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18201 (pkglib_MODULES): Add serial.mod.
18202 (serial_mod_SOURCES): New variable.
18203 (serial_mod_CFLAGS): Likewise.
18204 (serial_mod_LDFLAGS): Likewise.
18205 * conf/i386-pc.rmk: Likewise.
18206 * conf/mips-yeeloong.rmk: Likewise.
18207 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18208 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18209 * disk/usbms.c (first_available_slot): New variable.
18210 (grub_usbms_attach): Don't reuse free slots due to potential cache
18211 problems.
18212 * include/grub/serial.h: Moved to ..
18213 * include/grub/ns8250.h: ...this.
18214 * include/grub/serial.h: New file.
18215 * include/grub/term.h (grub_term_poll_usb): New variable.
18216 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18217 readkey. All users updated.
18218 (grub_terminfo_output_state): Pass term to put.
18219 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18220 (grub_usb_controller_dev): Add timeout and actual arguments to
18221 transfer. All users updated.
18222 (grub_usb_interface): New field detach_data.
18223 (grub_usb_device): New fields children and nports.
18224 (grub_usb_ep_type_t): New type.
18225 (grub_usb_get_ep_type): New function.
18226 (grub_usb_bulk_read_extended): Likewise.
18227 * include/grub/usbdesc.h (grub_usb_desc): New type.
18228 * include/grub/usbserial.h: New file.
18229 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18230 * kern/term.c (grub_term_poll_usb): New variable.
18231 (grub_getkey): Call grub_term_poll_usb if set.
18232 (grub_checkkey): Likewise.
18233 (grub_getkeystatus): Likewise.
18234 * term/serial.c: Moved controller-specific parts to ...
18235 * term/ns8250.c: ... here.
18236 * term/serial.c: Mostly rewritten.
18237 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18238 according to spec.
18239
18240 2010-08-20 Robert Millan <rmh@gnu.org>
18241
18242 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18243 a separate module and maybe other interesting combinations.
18244
18245 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18246 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18247 (kfreebsd_entry): Add generic filesystem module load routine.
18248 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18249
18250 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18251
18252 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18253 "numcenter" (I misunderstood the purpose of this entry).
18254 * docs/grub.texi (sendkey): Likewise.
18255
18256 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18257
18258 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18259 status flag options; simply omitting the option is equivalent and
18260 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18261 (keysym_table): Rename "num5numlock" to "numlock".
18262 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18263 can uniformly say that only the last of multiple `sendkey'
18264 invocations has any effect.
18265 * docs/grub.texi (sendkey): New section.
18266
18267 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18268
18269 * commands/i386/pc/sendkey.c (options): Fix three typos.
18270
18271 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18272
18273 Implement sendkey support.
18274
18275 * commands/i386/pc/sendkey.c: New file.
18276 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18277 (sendkey_mod_SOURCES): New variable.
18278 (sendkey_mod_CFLAGS): Likewise.
18279 (sendkey_mod_LDFLAGS): Likewise.
18280
18281 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18282
18283 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18284 fix warnings from Autoconf.
18285
18286 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18287
18288 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18289 to avoid false positives with some assemblers that output things
18290 like "someprefix_func" as part of their output.
18291
18292 2010-08-15 Robert Millan <rmh@gnu.org>
18293
18294 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18295 errors.
18296 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18297 grub_get_libzfs_handle() errors.
18298
18299 2010-08-14 Robert Millan <rmh@gnu.org>
18300
18301 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18302 filesystem is not ZFS.
18303
18304 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18305
18306 Fix for misspelled color names defaulting to black/black (bug
18307 reported by Doug Nazar)
18308
18309 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18310 status to prototype.
18311 * normal/color.c (grub_parse_color_name_pair): Return failure
18312 status.
18313 (grub_env_write_color_normal): Ignore bad color names.
18314 (grub_env_write_color_highlight): Likewise.
18315 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18316
18317 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18318
18319 "shift" command support to GRUB script.
18320
18321 * include/grub/script_sh.h (grub_script_shift): New prototype.
18322 * script/execute.c (grub_script_shift): New function.
18323 * script/main.c (grub_script_init): Register shift command.
18324 (grub_script_fini): Unregister shift command.
18325 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18326
18327 * tests/grub_script_shift.in: New testcase.
18328 * conf/tests.rmk: Rules for new testcase.
18329
18330 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18331
18332 "continue" command support to GRUB script.
18333
18334 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18335 (grub_script_break): Continue support.
18336 * script/main.c (grub_script_init): Register continue command.
18337 (grub_script_fini): Unregister continue command.
18338
18339 * tests/grub_script_continue.in: New testcase.
18340 * conf/tests.rmk: Rules for new testcase.
18341
18342 2010-08-12 BVK Chaitanya <bvk@dbook>
18343
18344 "break" command support to GRUB script.
18345
18346 * conf/common.rmk: Rule updates to grub-script-check.
18347 * include/grub/misc.h (grub_min): New function.
18348 * include/grub/script_sh.h (grub_script_init): New prototype.
18349 (grub_script_fini): New prototype.
18350 (grub_script_break): New prototype.
18351 * script/main.c (grub_script_init): New function.
18352 (grub_script_fini): New function.
18353 * script/execute.c (grub_script_break): New function.
18354 * normal/main.c: Calls to grub_script_{init,fini}.
18355 * util/grub-script-check.c (grub_script_break): New function.
18356
18357 * tests/grub_script_break.in: New testcase.
18358 * conf/tests.rmk: Rules for new test case.
18359
18360 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18361
18362 Function parameters support to GRUB script.
18363
18364 * script/yylex.l (VARIABLE): Regular expression update.
18365 * script/function.c (grub_script_function_call): Moved ...
18366 * script/execute.c (grub_script_function_call): ... to here.
18367 (grub_script_execute_arglist_to_argv): Removed.
18368 (grub_script_arglist_to_argv): New function.
18369 * script/argv.c: New file.
18370 (grub_script_argv_free): New function.
18371 (grub_script_argv_next): Likewise.
18372 (grub_script_argv_append): Likewise.
18373 (grub_script_argv_split_append): Likewise.
18374 * include/grub/script_sh.h (grub_script_argv): New struct.
18375 (grub_script_argv_free): New function.
18376 (grub_script_argv_next): Likewise.
18377 (grub_script_argv_append): Likewise.
18378 (grub_script_argv_split_append): Likewise.
18379
18380 * conf/common.rmk (normal.mod): New source script/argv.c.
18381
18382 * tests/grub_script_echo1.in: More tests.
18383 * tests/grub_script_vars1.in: Likewise.
18384 * tests/grub_script_functions.in: New test case.
18385 * conf/tests.rmk: Rules for new testcase.
18386
18387 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18388
18389 Remove grub_script_cmdblock struct.
18390
18391 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18392 * script/parser.y: Likewise.
18393 * script/execute.c: Rename cmdblock suffix to cmdlist.
18394 * script/script.c: Likewise.
18395 * util/grub-script-check.c: Likewise.
18396
18397 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18398
18399 * .bzrignore: add grub-macho2img
18400
18401 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18402
18403 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18404
18405 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18406
18407 Remove the dump of sm712 initialisation sequence.
18408
18409 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18410 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18411 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18412 (GRUB_VGA_CR_*): Added many registers.
18413 (GRUB_VGA_SR_*): Likewise.
18414 (GRUB_VGA_GR_*): Likewise.
18415 (grub_vga_write_arx): New function.
18416 (grub_video_hw_config): New struct.
18417 (grub_vga_set_geometry): New function.
18418 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18419 GRUB_PCI_CLASS_SUBCLASS_VGA.
18420 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18421 * video/sm712.c (grub_sm712_write_reg): New function
18422 (grub_sm712_read_reg): Likewise.
18423 (grub_sm712_sr_write): Likewise.
18424 (grub_sm712_gr_write): Likewise.
18425 (grub_sm712_cr_write): Likewise.
18426 (grub_sm712_write_arx): Likewise.
18427 (grub_sm712_cr_shadow_write): Likewise.
18428 (grub_sm712_write_dda_lookup): Likewise.
18429 (grub_video_sm712_setup): Initialise the video rather then
18430 blindly replay the dump.
18431 (main) [TEST]: Add a routine to be able to compile as standalone for
18432 tests.
18433 * video/sm712_init.c (sm712_init): Removed.
18434 (sm712_sr_seq1): New array.
18435 (sm712_sr_seq2): Likewise.
18436
18437 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18438
18439 * include/grub/vga.h: Add missing grub/pci.h include.
18440
18441 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18442
18443 * util/grub-macho2img.c (main): fix typo
18444
18445 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18446
18447 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18448 (grub_vga_gr_read): Likewise.
18449 (grub_vga_cr_write): Likewise.
18450 (grub_vga_cr_read): Likewise.
18451 (grub_vga_sr_write): Likewise.
18452 (grub_vga_sr_read): Likewise.
18453 (grub_vga_palette_read): Likewise.
18454 (grub_vga_palette_write): Likewise.
18455 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18456 (grub_sm712_sr_read): New function.
18457 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18458 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18459
18460 2010-08-09 Robert Millan <rmh@gnu.org>
18461
18462 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18463 out unused variables on non-ZFS build.
18464
18465 2010-08-08 Robert Millan <rmh@gnu.org>
18466
18467 Fix path generation for sub-filesystems in ZFS.
18468
18469 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18470 missing slash.
18471
18472 2010-08-08 Robert Millan <rmh@gnu.org>
18473
18474 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18475
18476 2010-08-08 Robert Millan <rmh@gnu.org>
18477
18478 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18479 exist, issue a proper error message (rely on `ls' for translated
18480 strings).
18481
18482 2010-08-08 Robert Millan <rmh@gnu.org>
18483
18484 Fix grub-probe invocation.
18485
18486 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18487
18488 2010-08-04 Robert Millan <rmh@gnu.org>
18489
18490 * configure.ac: Remove checks for getfsstat() and getmntany().
18491 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18492 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18493 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18494 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18495 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18496 function.
18497 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18498 via find_mount_point_from_dir() and getfsstat() / getmntany().
18499
18500 2010-08-04 Robert Millan <rmh@gnu.org>
18501
18502 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18503 (grub_find_zpool_from_mount_point): Merge into ...
18504 (grub_find_zpool_from_dir): ... this.
18505 * kern/emu/misc.c: Likewise.
18506
18507 * kern/emu/misc.c
18508 (grub_make_system_path_relative_to_its_root): Replace
18509 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18510 with grub_find_zpool_from_dir().
18511 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18512
18513 2010-08-04 Robert Millan <rmh@gnu.org>
18514
18515 Support OpenSolaris in ZFS device resolution.
18516
18517 * configure.ac: Check for getmntany().
18518 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18519 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18520 support.
18521
18522 2010-08-03 Robert Millan <rmh@gnu.org>
18523
18524 Fix grub-emu build.
18525
18526 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18527 * include/grub/emu/misc.h: ... here.
18528
18529 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18530 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18531
18532 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18533 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18534 (grub_get_libzfs_handle): Move to ...
18535 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18536 (grub_get_libzfs_handle): ... here.
18537
18538 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18539
18540 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18541 as command name case.
18542
18543 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18544
18545 * disk/raid.c (insert_array): Select unique numbers for named arrays
18546 as well, for use as keys in the disk cache.
18547
18548 2010-08-01 Robert Millan <rmh@gnu.org>
18549
18550 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18551 kFreeBSD device name, except on ZFS where the filesystem label is
18552 used.
18553 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18554 `/boot/zfs/zpool.cache'.
18555 Set mountfrom kernel variable using ${kfreebsd_device}.
18556
18557 2010-08-01 Robert Millan <rmh@gnu.org>
18558
18559 Make it even harder to use uninitialized `libzfs_handle' (and
18560 make the interface a bit simpler).
18561
18562 * include/grub/util/misc.h (grub_util_init_libzfs)
18563 (libzfs_handle): Remove.
18564 (grub_get_libzfs_handle): New prototype.
18565
18566 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18567 attribute.
18568 (grub_util_init_libzfs): Remove.
18569 (grub_get_libzfs_handle): New function.
18570
18571 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18572 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18573 accessing `libzfs_handle' directly.
18574
18575 2010-08-01 Robert Millan <rmh@gnu.org>
18576
18577 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18578 (grub_find_zpool_from_mount_point): New function prototypes.
18579
18580 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18581 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18582
18583 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18584 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18585 `static' attribute.
18586
18587 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18588 finding zpool from mount point into ...
18589 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18590
18591 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18592 requested path is part of a ZFS pool, use
18593 grub_find_zpool_from_mount_point() to detect its filesystem name,
18594 and generate a path with `/fsname@path' syntax.
18595
18596 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18597
18598 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18599 (void) rather than () so that this is a proper prototype.
18600
18601 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18602
18603 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18604
18605 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18606
18607 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18608 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18609
18610 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18611
18612 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18613
18614 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18615
18616 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18617
18618 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18619
18620 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18621 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18622 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18623 disable gfxpayload.
18624 (Shell-like scripting): Add real content.
18625 (Serial terminal): Suggest `terminal_input serial; terminal_output
18626 serial' rather than putting the two commands on separate lines,
18627 since console input will be inoperative after the first command.
18628 (menuentry): Document --class, --users, and --hotkey options.
18629 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18630 Vladimir Serbinenko).
18631
18632 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18633 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18634
18635 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18636
18637 2010-08-01 Robert Millan <rmh@gnu.org>
18638
18639 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18640 (grub_find_zpool_from_mount_point): New function prototypes.
18641
18642 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18643 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18644
18645 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18646 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18647 `static' attribute.
18648
18649 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18650 finding zpool from mount point into ...
18651 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18652
18653 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18654 requested path is part of a ZFS pool, use
18655 grub_find_zpool_from_mount_point() to detect its filesystem name,
18656 and generate a path with `/fsname@path' syntax.
18657
18658 2010-08-01 Robert Millan <rmh@gnu.org>
18659
18660 Prevent accidental use of uninitialized libzfs_handle.
18661
18662 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18663 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18664 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18665
18666 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18667
18668 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18669 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18670
18671 2010-08-01 Robert Millan <rmh@gnu.org>
18672
18673 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
18674
18675 2010-07-31 Robert Millan <rmh@gnu.org>
18676
18677 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18678
18679 2010-07-31 Robert Millan <rmh@gnu.org>
18680
18681 * kern/emu/misc.c: Add missing license header.
18682
18683 2010-07-31 Robert Millan <rmh@gnu.org>
18684
18685 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18686
18687 * include/grub/util/libnvpair.h: Include `<config.h>'.
18688 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18689 declaring libnvpair prototypes ourselves.
18690 * include/grub/util/libzfs.h: Include `<config.h>'.
18691 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18692 declaring libzfs prototypes ourselves.
18693
18694 (libzfs_handle): Moved to ...
18695 * include/grub/util/misc.h (libzfs_handle): ... here.
18696 Include `<grub/util/libzfs.h>'.
18697
18698 2010-07-30 Robert Millan <rmh@gnu.org>
18699
18700 * include/grub/emu/misc.h: Add missing license header.
18701
18702 2010-07-30 Robert Millan <rmh@gnu.org>
18703
18704 Enable `grub-probe -t device' resolution on ZFS.
18705
18706 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18707 * include/grub/util/libnvpair.h: New file.
18708 * include/grub/util/libzfs.h: New file.
18709
18710 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18711 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18712 `<grub/util/libnvpair.h>'.
18713 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18714
18715 (find_mount_point_from_dir): New static function.
18716 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18717 function.
18718 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18719 find_root_device_from_libzfs() before ressorting to find_root_device().
18720
18721 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18722 prototype.
18723 * util/misc.c: Include `<grub/util/libzfs.h>'.
18724 (grub_util_init_libzfs): New function.
18725 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18726 [HAVE_LIBZFS] (fini_libzfs): New static function.
18727 (grub_util_init_libzfs): New function.
18728 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18729
18730 2010-07-30 Robert Millan <rmh@gnu.org>
18731
18732 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18733 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18734 `warn_unused_result' attribute.
18735 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18736 (grub_xasprintf, grub_xvasprintf): Likewise.
18737 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18738
18739 2010-07-29 Robert Millan <rmh@gnu.org>
18740
18741 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18742 (probe): Handle `PRINT_FS_LABEL'.
18743 (main): Handle `-t fs_label'.
18744
18745 2010-07-29 Robert Millan <rmh@gnu.org>
18746
18747 * configure.ac: Remove grub-mkisofs checks.
18748
18749 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18750
18751 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18752 Reported by: Lennart Sorensen.
18753
18754 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18755
18756 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18757 prior to terminal_input/terminal_output separation. It's been over 1.5
18758 years and those versions weren't widely deployed.
18759
18760 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18761
18762 * disk/raid.c (insert_array): Don't count named arrays when looking
18763 for unused array numbers.
18764 Reported and tested by: Michael Guntsche.
18765
18766 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18767
18768 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
18769 implementation of this so that grub-emu links again, with a note
18770 that this should support hotplugging in the future.
18771
18772 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18773
18774 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18775
18776 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18777
18778 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
18779 handle on failure.
18780 (grub_loopback_close): Remove empty function.
18781 (grub_loopback_dev): Remove close method.
18782
18783 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18784
18785 Disable EFI cursor when the EFI console becomes inactive.
18786
18787 * term/efi/console.c (grub_efi_console_init): New function.
18788 (grub_efi_console_fini): New function.
18789 (grub_console_term_output): Register init and fini methods.
18790
18791 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18792
18793 * tests/util/grub-shell-tester.in: Remove bashism and declare as
18794 sh script.
18795
18796 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18797
18798 * disk/loopback.c (grub_loopback): Replace filename with file.
18799 (delete_loopback): Handle new semantics.
18800 (grub_cmd_loopback): Likewise.
18801 (grub_loopback_iterate): Likewise.
18802 (grub_loopback_close): Likewise.
18803
18804 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18805
18806 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
18807 with -p "".
18808 Reported by: Tito Keitel.
18809
18810 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18811
18812 * docs/grub.texi (Naming convention): Document new naming convention.
18813
18814 2010-07-20 Vadim Solomin <vadic052@gmail.com>
18815 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18816
18817 Generate device.map in something closer to the old ordering.
18818
18819 * util/deviceiter.c (struct device): New declaration.
18820 (compare_file_names): Rename to ...
18821 (compare_devices): ... this. Sort by kernel name in preference to
18822 the stable by-id name, but keep the latter as a fallback comparison.
18823 Update header comment.
18824 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
18825 of `struct device' rather than of plain file names.
18826
18827 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
18828
18829 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
18830 on i386.
18831
18832 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18833
18834 * commands/acpi.c (setup_common_tables): Use sizeof instead of
18835 hardcoding size.
18836 (setv1table): Likewise.
18837
18838 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18839
18840 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
18841 removing the homehost if present.
18842 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
18843 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
18844 removing the homehost if present.
18845 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
18846 if possible.
18847 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
18848
18849 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
18850 parameter. Set its pointer target to 0.
18851 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
18852 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
18853 `data_offset' value from the superblock for 1.x metadata.
18854 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
18855 data on the device.
18856 (insert_array): Record the start sector of data on the device.
18857 (grub_raid_register): Pass start_sector parameters to
18858 grub_raid_list->detect and insert_array.
18859 * include/grub/raid.h (struct grub_raid_array): Add start_sector
18860 member.
18861 (struct grub_raid): Add start_sector parameter to `detect'.
18862
18863 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
18864 __attribute__ ((packed)), leaving a comment.
18865 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
18866 (grub_mdraid_detect_09): ... here and ...
18867 (grub_mdraid_detect_1x): ... here.
18868
18869 2010-07-20 Peter Henn <peter.henn@web.de>
18870
18871 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
18872 chunk size and disk size, which are already given as sector counts
18873 as distinct from the 0.90 units. Fetch the correct device number
18874 from the role table instead of using the table index.
18875
18876 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
18877
18878 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
18879 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
18880 (WriteMostly1): New macro.
18881 Set array->name to NULL for metadata format 0.90. Add support for
18882 metadata 1.x. Fix some comments.
18883 * disk/raid.c (): Add support for name based RAID arrays. Fix a
18884 few comments.
18885 * util/getroot.c (grub_util_get_grub_dev): Add support for
18886 /dev/md/name style devices.
18887
18888 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18889
18890 * .bzrignore: Ignore 20_linux_xen.
18891
18892 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
18893
18894 * util/import_unicode.py: Remove unnecessary imports.
18895
18896 2010-07-17 Aleš Nesrsta <starous@volny.cz>
18897
18898 Hotplugging and USB hub support.
18899
18900 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
18901 (grub_ohci): Likewise.
18902 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
18903 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
18904 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
18905 (GRUB_OHCI_CTRL_EDS): Likewise.
18906 (GRUB_OHCI_BULK_EDS): Likewise.
18907 (GRUB_OHCI_TDS): Likewise.
18908 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
18909 (grub_ohci_ed_phys2virt): New function.
18910 (grub_ohci_virt_to_phys): Likewise.
18911 (grub_ohci_td_phys2virt): Likewise.
18912 (grub_ohci_td_virt2phys): Likewise.
18913 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
18914 attachment.
18915 (grub_ohci_find_ed): New function.
18916 (grub_ohci_alloc_td): Likewise.
18917 (grub_ohci_free_td): Likewise.
18918 (grub_ohci_free_tds): Likewise.
18919 (grub_ohci_transfer): Use previously allocated memory.
18920 (grub_ohci_portstatus): Reset status changed bit.
18921 (grub_ohci_detect_dev): Supply status changed.
18922 (grub_ohci_fini_hw): Free memory.
18923 (grub_ohci_restore_hw): Reallocate memory.
18924 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
18925 Reset status change.
18926 (grub_uhci_detect_dev): Supply status_change.
18927 * bus/usb/usb.c (attach_hooks): New var.
18928 (grub_usb_device_attach): New function.
18929 (grub_usb_register_attach_hook_class): Likewise.
18930 (grub_usb_unregister_attach_hook_class): Likewise.
18931 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
18932 (grub_usb_add_hub): Reset connection changed bit.
18933 (attach_root_port): New function.
18934 (grub_usb_root_hub): Likewise.
18935 (poll_nonroot_hub): Likewise.
18936 (grub_usb_poll_devices): Likewise.
18937 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
18938 * disk/usbms.c (grub_usbms_open): Use device hooks.
18939 (grub_usbms_iterate) :Poll devices.
18940 (grub_usbms_finddevs): Split into ...
18941 (grub_usbms_attach): ... this ...
18942 (grub_usbms_attach): ... and this.
18943 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
18944 in detect_dev.
18945 (grub_usb_interface): New fields attached and detach_hook.
18946 (grub_usb_attach_hook_class): New type.
18947 (grub_usb_attach_desc): New struct.
18948 (grub_usb_register_attach_hook_class): New function.
18949 (grub_usb_unregister_attach_hook_class): Likewise.
18950 (grub_usb_poll_devices): Likewise.
18951 (grub_usb_device_attach): Likewise.
18952 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
18953 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
18954
18955 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18956
18957 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
18958 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
18959 delta determination style. Works with most NetBSD partitions too.
18960
18961 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18962
18963 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
18964 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
18965
18966 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18967
18968 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
18969
18970 2010-07-14 Anton Blanchard <anton@samba.org>
18971
18972 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
18973 ET_DYN files.
18974
18975 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18976
18977 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
18978
18979 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18980
18981 * kern/partition.c (grub_partition_check_containment): New function to
18982 check that a partition is physically contained in a parent. Since
18983 offsets are relative (and non-negative), this reduces to checking that
18984 the partition ends before its parent.
18985 (grub_partition_map_probe): Discard out-of-range sub-partitions.
18986 (grub_partition_iterate): Likewise.
18987 * include/grub/partition.h (grub_partition_map): Slightly more detailed
18988 comments.
18989 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
18990 partitions that start before their parent, and add debug printfs.
18991
18992 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18993
18994 * Makefile.in (.SUFFIX): Spell correctly, as ...
18995 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
18996 bare module name without `.mod', e.g. `test') tried to invoke a
18997 Modula-2 compiler.
18998
18999 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19000
19001 * README: Point to the Info manual.
19002
19003 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19004
19005 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19006 2nd superblock position from partition size.
19007
19008 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19009
19010 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19011 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19012 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19013 outputs.
19014
19015 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19016
19017 Restructure SCSI .id handling.
19018 Reported and tested by: Aleš Nesrsta.
19019
19020 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19021 (grub_atapi_dev): Changed .name to "ata". New field .id.
19022 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19023 (grub_usbms_dev): New field .id.
19024 * disk/scsi.c (grub_scsi_iterate): Generate name.
19025 (grub_scsi_open): Parse name.
19026 * include/grub/scsi.h (grub_make_scsi_id): New function.
19027 (grub_scsi_dev): Change iterate and open to number instead of naming
19028 busses. All users updated.
19029 (grub_scsi): Remove name. Add .bus.
19030
19031 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19032
19033 * commands/help.c (grub_cmd_help): Fix a typo.
19034
19035 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19036
19037 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19038 Reported and tested by: Colin Watson.
19039
19040 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19041
19042 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19043 in this context.
19044
19045 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19046
19047 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19048
19049 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19050
19051 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19052 indentation.
19053
19054 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19055
19056 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19057 and disk/raid6_recover.c.
19058 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19059 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19060
19061 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19062
19063 * term/gfxterm.c (repaint_schedulded): Rename to ...
19064 (repaint_scheduled): ... this. Update all callers.
19065 (repaint_was_schedulded): Rename to ...
19066 (repaint_was_scheduled): ... this. Update all callers.
19067
19068 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19069
19070 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19071 which we expect to be handled by upper layers.
19072
19073 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19074
19075 * bus/usb/usbhub.c: #include time.h header.
19076
19077 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19078
19079 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19080 entry_name also for entries without stat blocks (e.g. ".."); fixes
19081 corruption of the first entry in a directory.
19082
19083 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19084
19085 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19086 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19087 doesn't work otherwise.
19088
19089 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19090
19091 * docs/grub.texi (Features): Update list of supported file systems.
19092 (GNU/Linux): Update for GRUB 2.
19093 (Serial terminal): Remove mention of --disable-serial, which was a
19094 GRUB Legacy configure option. Update instructions to use
19095 `terminal_input' and `terminal_output' rather than `terminal'.
19096 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19097 configuration' and `Installing GRUB using grub-install'.
19098 (Menu entry editor): Update for GRUB 2.
19099 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19100 Document new -a, -u, and -v options.
19101 (initrd): New section.
19102 (initrd16): New section.
19103 (linux): New section.
19104 (linux16): New section.
19105 (search): The `var' argument to `--set' is optional.
19106 (GRUB only offers a rescue shell): Go into a little more detail on
19107 drive ordering.
19108
19109 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19110
19111 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19112
19113 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19114
19115 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19116 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19117
19118 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19119
19120 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19121 install_prefix, in line with install_dos_part and install_bsd_part.
19122 Add new prefix variable, which is copied to install_prefix after
19123 comparing core.img in memory with the one read from disk in the
19124 no-embedding case, and use that rather than overwriting
19125 install_prefix immediately when installing to a partition.
19126 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19127 Bicakci.
19128
19129 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19130
19131 * configure.ac: Avoid == in test command, it's not portable.
19132 * util/grub.d/30_os-prober.in: Likewise.
19133
19134 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19135
19136 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19137
19138 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19139
19140 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19141 multiple (top-level) partmaps.
19142
19143 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19144
19145 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19146 Reported by: Tino Keitel.
19147
19148 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19149
19150 Bidi and diacritics support.
19151
19152 * Makefile.in (widthspec.bin): New target.
19153 (widthspec.h): Likewise.
19154 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19155 * autogen.sh: Generate unidata.c.
19156 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19157 * commands/ls.c (grub_ls_list_devices): Likewise.
19158 (grub_ls_list_files): Likewise.
19159 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19160 (grub_mini_cmd_lsmod): Likewise.
19161 * commands/read.c: Likewise.
19162 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19163 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19164 * lib/arg.c (grub_arg_show_help): Likewise.
19165 * lib/crypto.c (grub_password_get): Likewise.
19166 * normal/auth.c (grub_username_get): Likewise.
19167 * normal/misc.c (grub_normal_print_device_info): Likewise.
19168 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19169 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19170 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19171 (normal/charset.c_DEPENDENCIES): New variable.
19172 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19173 (pkglib_MODULES): Remove charset.mod.
19174 (charset_mod_SOURCES): Removed.
19175 (charset_mod_CFLAGS): Likewise.
19176 (charset_mod_LDFLAGS): Likewise.
19177 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19178 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19179 and term/tparm.c.
19180 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19181 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19182 (kernel_img_HEADERS): Add terminfo.h.
19183 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19184 Fill ->font. Reverse ascii bitmaps.
19185 (grub_font_get_xheight): New function.
19186 * font/font.c (grub_font_get_string_width): Moved from here ...
19187 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19188 * font/font.c (grub_font_draw_string): Moved from here ...
19189 * gfxmenu/font.c (grub_font_draw_string): ... here.
19190 * font/font.c (grub_font_dup_glyph): New function.
19191 (grub_font_blit_glyph): Likewise.
19192 (grub_font_blit_glyph_mirror): Likewise.
19193 (blit_comb): Likewise.
19194 (grub_font_construct_dry_run): Likewise.
19195 (grub_font_get_constructed_device_width): Likewise.
19196 (grub_font_construct_glyph): Likewise.
19197 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19198 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19199 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19200 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19201 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19202 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19203 (grub_font_get_xheight): New proto.
19204 (grub_font_get_constructed_device_width): Likewise.
19205 (grub_font_construct_glyph): Likewise.
19206 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19207 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19208 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19209 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19210 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19211 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19212 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19213 (grub_console_getcharwidth): Likewise.
19214 * include/grub/misc.h (grub_xputs): New proto.
19215 (grub_puts): Inlined.
19216 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19217 (grub_normal_get_line_counter): Removed.
19218 (grub_install_newline_hook): Likewise.
19219 (grub_normal_get_char_counter): New proto.
19220 (grub_normal_reset_more): Likewise.
19221 (grub_xputs_normal): Likewise.
19222 * include/grub/powerpc/ieee1275/console.h: Removed.
19223 * include/grub/sparc64/ieee1275/console.h: Likewise.
19224 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19225 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19226 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19227 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19228 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19229 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19230 (grub_term_input): Pass reference to self. All users updated.
19231 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19232 Pass reference to self. New fields normal_color, highlight_color and
19233 data. All users updated.
19234 (grub_putchar): Removed.
19235 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19236 (grub_unicode_estimate_width): New function.
19237 (grub_term_getcharwidth): Add defaults.
19238 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19239 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19240 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19241 (grub_cls): Remove EXPORT_FUNC.
19242 (grub_setcolorstate): Inline.
19243 (grub_newline_hook): Removed.
19244 * include/grub/terminfo.h: Rewritten. All users updated.
19245 * include/grub/unicode.h: New file.
19246 * include/grub/video.h (grub_video_signed_rect): New type.
19247 * kern/emu/console.c (grub_console_highlight_color): Removed.
19248 (grub_console_normal_color): Likewise.
19249 (grub_console_standard_color): Made static.
19250 (grub_ncurses_putchar): Remove mapping.
19251 (grub_ncurses_getcharwidth): Removed.
19252 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19253 (grub_ncurses_setcolor): Removed.
19254 (grub_ncurses_getcolor): Likewise.
19255 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19256 (grub_console_putchar): ... this.
19257 (grub_console_putchar): Handle argument difference.
19258 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19259 console_init_early and console_init_lately.
19260 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19261 * kern/misc.c (grub_puts): Removed.
19262 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19263 (grub_vsnprintf_real): Remove str = NULL support.
19264 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19265 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19266 * kern/term.c (grub_putcode): Renamed to ...
19267 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19268 (grub_putchar): Removed.
19269 (grub_xputs_dumb): New function.
19270 (grub_xputs): New variable.
19271 * lib/charset.c: Move from here ...
19272 * normal/charset.c: ... to here.
19273 (grub_ucs4_to_utf8): New function.
19274 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19275 (join_types): New variable.
19276 (unpack_join): New function.
19277 (bidi_types): New variable.
19278 (unpack_bidi): New function.
19279 (get_bidi_type): Likewise.
19280 (get_join_type): Likewise.
19281 (is_mirrored): Likewise.
19282 (grub_unicode_get_comb_type): Likewise.
19283 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19284 (is_type_after): Likewise.
19285 (grub_unicode_aglomerate_comb): Likewise.
19286 (bidi_line_wrap): Likewise.
19287 (grub_bidi_line_logical_to_visual): Likewise.
19288 (grub_bidi_logical_to_visual): Likewise.
19289 (grub_unicode_mirror_code): Likewise.
19290 (grub_unicode_shape_code): Likewise.
19291 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19292 Don't use grub_putchar.
19293 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19294 (grub_normal_reader_init): Likewise.
19295 (grub_xputs_saved): New variable.
19296 (GRUB_MOD_INIT): Set grub_xputs.
19297 (GRUB_MOD_FINI): Restore grub_xputs.
19298 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19299 (menu_init): Avoid printing gfxmenu error.
19300 (show_menu): Use grub_normal_get_char_counter.
19301 * normal/menu_entry.c (update_screen): Fix out-of-array.
19302 (complete): Avoid NULL dereferencing.
19303 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19304 * normal/menu_text.c (print_spaces): Removed.
19305 (grub_print_ucs4): Likewise.
19306 (grub_print_message_indented): Use grub_print_ucs4.
19307 (print_message): Use grub_putcode.
19308 (print_entry): Hanlde diacritics.
19309 * normal/term.c (term_state): New type.
19310 (grub_more_lines): Removed.
19311 (term_states): New variable.
19312 (grub_normal_line_counter): Renamed to ..
19313 (grub_normal_char_counter): ...this. All users updated.
19314 (grub_normal_get_line_counter): Renamed to ...
19315 (grub_normal_get_char_counter): ... this.
19316 (grub_normal_reset_more): New function.
19317 (process_newline): Removed.
19318 (print_more): New function.
19319 (grub_install_newline_hook): Removed.
19320 (map_code): New function.
19321 (grub_puts_terminal): Use grub_print_ucs4.
19322 (putglyph): New function.
19323 (putcode_real): Likewise.
19324 (grub_putcode): Use putcode_real.
19325 (get_maxwidth): New function.
19326 (get_startwidth): Likewise.
19327 (print_ucs4_terminal): Likewise.
19328 (find_term_state): Likewise.
19329 (put_glyphs_terminal): Likewise.
19330 (print_backlog): Likewise.
19331 (print_ucs4_real): Likewise.
19332 (grub_print_ucs4): Likewise.
19333 (grub_xputs_normal): Likewise.
19334 * term/efi/console.c (grub_console_putchar): Output diacritics.
19335 (grub_console_getcharwidth): Removed.
19336 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19337 * term/gfxterm.c (clear_char): Free chars.
19338 (scroll_up): Avoid leaking memory.
19339 (grub_gfxterm_putchar): Support diacritics.
19340 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19341 * term/i386/pc/console.c (grub_console_term_output): Declare as
19342 GRUB_TERM_CODE_TYPE_VGA.
19343 * term/i386/pc/vga.c (grub_vga_term): Declare as
19344 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19345 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19346 GRUB_TERM_CODE_TYPE_VGA.
19347 * term/i386/vga_common.c (map_char): Removed.
19348 (grub_console_putchar): Likewise.
19349 (grub_console_getcharwidth): Likewise.
19350 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19351 (colors): Reordered to match terminfo.
19352 (grub_ofconsole_normal_color): Removed.
19353 (grub_ofconsole_writeesc): Likewise.
19354 (grub_ofconsole_highlight_color): Likewise.
19355 (grub_ofconsole_getcharwidth): Likewise.
19356 (grub_ofconsole_setcolorstate): Likewise.
19357 (grub_ofconsole_setcolor): Likewise.
19358 (grub_ofconsole_getcolor): Likewise.
19359 (grub_ofconsole_readkey): Renamed to ...
19360 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19361 key.
19362 (grub_ofconsole_checkkey): Removed.
19363 (grub_ofconsole_getkey): Likewise.
19364 (grub_ofconsole_getxy): Likewise.
19365 (grub_ofconsole_gotoxy): Likewise.
19366 (grub_ofconsole_cls): Likewise.
19367 (grub_ofconsole_refresh): Likewise.
19368 (grub_ofconsole_terminfo_input): New struct.
19369 (grub_ofconsole_terminfo_output): Likewise.
19370 (grub_ofconsole_term_input): Use terminfo.
19371 (grub_ofconsole_term_output): Likewise.
19372 (grub_console_init): Split into ...
19373 (grub_console_init_early): ...this and ...
19374 (grub_console_init_lately): ...this. Use terminfo.
19375 (grub_ofconsole_putchar): Renamed to ...
19376 (put): ... this. Remove mapping.
19377 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19378 * term/serial.c: Simplify using terminfo.
19379 (xpos): Removed.
19380 (ypos): Likewise.
19381 (keep_track): Likewise.
19382 (registered): Likewise.
19383 (input_buf): Likewise.
19384 (npending): Likewise.
19385 (serial_translate_key_sequence): Likewise.
19386 (fill_input_buf): Likewise.
19387 (grub_serial_checkkey): Likewise.
19388 (grub_serial_getkey): Likewise.
19389 (grub_serial_getxy): Likewise.
19390 (grub_serial_gotoxy): Likewise.
19391 (grub_serial_putchar): Likewise.
19392 (grub_serial_cls): Likewise.
19393 (grub_serial_setcolorstate): Likewise.
19394 (grub_serial_setcursor): Likewise.
19395 (serial_hw_init): Use serial_hw_fetch.
19396 (grub_serial_terminfo_input): New variable.
19397 (grub_serial_terminfo_output): Likewise.
19398 (grub_serial_term_input): Use terminfo.
19399 (grub_serial_term_output): Likewise.
19400 * term/terminfo.c (putstr): Use put.
19401 (grub_terminfo_all_free): New function
19402 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19403 (grub_terminfo_output_register): New function.
19404 (grub_terminfo_output_unregister): Likewise.
19405 (grub_terminfo_getxy): Likewise.
19406 (grub_terminfo_readkey): Likewise.
19407 (grub_terminfo_checkkey): Likewise.
19408 (grub_terminfo_getkey): Likewise.
19409 (grub_terminfo_input_init): Likewise.
19410 (print_terminfo): Likewise.
19411 (grub_cmd_terminfo): Handle encoding.
19412 (grub_terminfo_gotoxy): Track position.
19413 (grub_terminfo_cls): Likewise.
19414 (grub_terminfo_putchar): Likewise.
19415 (grub_terminfo_setcolorstate): Handle colors
19416 (grub_terminfo_cursor_on): This ...
19417 (grub_terminfo_cursor_off): ... and this merged into ...
19418 (grub_terminfo_setcursor): ... this.
19419 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19420 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19421 * unicode/BidiMirroring.txt: Likewise.
19422 * unicode/UnicodeData.txt: Likewise.
19423 * unicode/COPYING: Likewise.
19424 * util/grub-editenv.c (grub_putchar): Removed.
19425 (grub_xputs_real): New function.
19426 (grub_xputs): New variable.
19427 * util/grub-fstest.c (grub_putchar): Removed.
19428 (grub_xputs_real): New function.
19429 (grub_xputs): New variable.
19430 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19431 (grub_xputs_real): New function.
19432 (grub_xputs): New variable.
19433 * util/grub-probe.c (grub_putchar): Removed.
19434 (grub_xputs_real): New function.
19435 (grub_xputs): New variable.
19436 * util/grub-script-check.c (grub_putchar): Removed.
19437 (grub_xputs_real): New function.
19438 (grub_xputs): New variable.
19439 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19440 (grub_xputs_real): New function.
19441 (grub_xputs): New variable.
19442 * util/import_unicode.py: New file.
19443 * util/grub-mkfont.c (ft_errmsgs): New array.
19444 (grub_glyph_info): Make bitmap a pointer.
19445 (file_formats): New type WIDTH_SPEC.
19446 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19447 (options): Add width-spec.
19448 (help): Likewise.
19449 (add_char): Renamed to ...
19450 (add_glyph): ... this.
19451 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19452 (glyph_replace): New type.
19453 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19454 (add_char): New function.
19455 (add_subst): Likewise.
19456 (process_cursive): Likewise.
19457 (add_font): Handle GSUB.
19458 (write_font_width_spec): New function.
19459 (main): Sort glyphs.
19460 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19461 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19462 * kern/term.c (grub_cls): Moved from here...
19463 * normal/term.c (grub_cls): ... here.
19464
19465 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19466
19467 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19468 suitable for using within the format argument of printf when
19469 converting grub_size_t.
19470 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19471 "x" to convert grub_size_t arguments.
19472
19473 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19474
19475 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19476 too long captions.
19477 (list_get_minimal_size): Take selection box into account.
19478
19479 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19480
19481 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19482 NULL font.
19483
19484 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19485
19486 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19487 devices when iterating over /dev/disk/by-id; they will be handled
19488 later if appropriate, which they aren't always (e.g. LVM).
19489
19490 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19491
19492 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19493 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19494 fails.
19495 (grub_halt): Likewise.
19496 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19497 reset-all fails.
19498 (grub_halt): Don't return, even if all of shut-down, power-off, and
19499 poweroff fail.
19500
19501 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19502
19503 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19504 arguments, not three.
19505
19506 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19507
19508 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19509 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19510 LVM-on-RAID is handled correctly.
19511
19512 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19513
19514 * docs/grub.texi (Changes from GRUB Legacy): New section.
19515 (Future): Fix typo.
19516
19517 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19518
19519 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19520 grub.d/README accidentally ends up executable for one reason or
19521 another. Ignore it.
19522
19523 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19524
19525 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19526 (gpt_partition_map_iterate): Support non-512B sectors.
19527
19528 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19529
19530 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19531 Tested by: Seth Goldberg.
19532
19533 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19534
19535 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19536 Properly align mbi.
19537 Reported by: Seth Goldberg.
19538
19539 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19540
19541 * util/grub-mkrescue.in: Avoid module duplication.
19542
19543 2010-07-01 Sean Finney <seanius@seanius.net>
19544
19545 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19546
19547 2010-07-01 Sean Finney <seanius@seanius.net>
19548
19549 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19550
19551 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19552
19553 * disk/lvm.c (grub_lvm_checkvalue): New function.
19554 (grub_lvm_check_flag): Likewise.
19555
19556 2010-07-01 Robert Millan <rmh@gnu.org>
19557
19558 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19559 Support 'p' as partition separator on kernel of FreeBSD (used
19560 with GPT labels).
19561 (grub_util_biosdisk_get_grub_dev): Likewise.
19562
19563 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19564
19565 Yeeloong firmware port.
19566
19567 * boot/mips/yeeloong/fwstart.S: New file.
19568 * bus/cs5536.c (gpiodump): New const.
19569 (set_io_space): New function.
19570 (set_iod): Likewise.
19571 (set_p2d): Likewise.
19572 (grub_cs5536_init_geode): Likewise.
19573 * commands/mips/yeeloong/lsspd.c: New file.
19574 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19575 (serial_mod_SOURCES): New variable.
19576 (serial_mod_CFLAGS): Likewise.
19577 (serial_mod_LDFLAGS): Likewise.
19578 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19579 term/terminfo.c and term/tparm.c.
19580 (pkglib_IMAGES): Add fwstart.img.
19581 (fwstart_img_SOURCES): New variable.
19582 (fwstart_img_CFLAGS): Likewise.
19583 (fwstart_img_ASFLAGS): Likewise.
19584 (fwstart_img_LDFLAGS): Likewise.
19585 (fwstart_img_FORMAT): Likewise.
19586 (pkglib_MODULES): Add lsspd.mod.
19587 (lsspd_mod_SOURCES): New variable.
19588 (lsspd_mod_CFLAGS): Likewise.
19589 (lsspd_mod_LDFLAGS): Likewise.
19590 (pkglib_MODULES): Add halt.mod.
19591 (halt_mod_SOURCES): New variable.
19592 (halt_mod_CFLAGS): Likewise.
19593 (halt_mod_LDFLAGS): Likewise.
19594 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19595 (serial_mod_SOURCES): Removed.
19596 (serial_mod_CFLAGS): Likewise.
19597 (serial_mod_LDFLAGS): Likewise.
19598 * disk/ata.c (check_device): New function.
19599 (grub_ata_device_initialize): Use check_device.
19600 (grub_ata_iterate): Recheck devices.
19601 (grub_ata_open): Likewise.
19602 (grub_atapi_iterate): Likewise.
19603 (grub_atapi_open): Likewise.
19604 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19605 (GRUB_ATA_CH1_PORT1): Likewise.
19606 (GRUB_ATA_CH0_PORT2): Likewise.
19607 (GRUB_ATA_CH1_PORT2): Likewise.
19608 * include/grub/mips/loongson.h: New file.
19609 * include/grub/mips/yeeloong/ec.h: Likewise.
19610 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19611 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19612 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19613 * include/grub/misc.h (grub_halt): Declare as noreturn.
19614 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19615 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19616 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19617 (UART_ENABLE_DTRRTS): Likewise.
19618 (UART_ENABLE_MODEM): Removed.
19619 (UART_ENABLE_OUT2): New const.
19620 * include/grub/term.h (grub_term_register_input_active): New function.
19621 (grub_term_register_output_active): Likewise.
19622 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19623 argument.
19624 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19625 (init_pci): New function.
19626 (grub_machine_init): Execute platform init when firmware. Init serial.
19627 (grub_halt): Implement.
19628 (grub_exit): Likewise.
19629 (grub_reboot): Likewise.
19630 * term/serial.c (serial_hw_init): Update macros.
19631 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19632 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19633 (image_targets): New target mipsel-yeeloong-flash.
19634 (generate_image): Support IMAGE_YEELOONG_FLASH.
19635 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19636 (grub_video_sm712_setup): Init card.
19637 (grub_video_sm712_set_palette): Removed.
19638 * video/sm712_init.c: New file.
19639
19640 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
19641
19642 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19643 PATH when running help2man and then run it on the unadorned
19644 executable names, rather than passing $(builddir)/* paths to
19645 help2man. This avoids the build directory ending up in generated
19646 manual pages.
19647
19648 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19649
19650 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19651 to avoid accidents when debugging with 'sh -x'.
19652 * util/grub-mkrescue.in: Likewise.
19653 * util/grub.d/00_header.in: Likewise.
19654 * util/grub.d/10_hurd.in: Likewise.
19655 * util/grub.d/10_kfreebsd.in: Likewise.
19656 * util/grub.d/10_linux.in: Likewise.
19657 * util/grub.d/10_netbsd.in: Likewise.
19658 * util/grub.d/10_windows.in: Likewise.
19659 * util/grub.d/20_linux_xen.in: Likewise.
19660 * util/grub.d/30_os-prober.in: Likewise.
19661 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19662
19663 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19664
19665 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19666 last character in the buffer.
19667 Reported by: Vladimir Serbinenko.
19668
19669 2010-06-29 Robert Millan <rmh@gnu.org>
19670
19671 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19672 (Command-line and menu entry commands): Document `badram' command.
19673
19674 2010-06-28 Robert Millan <rmh@gnu.org>
19675
19676 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19677 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19678 command using ${GRUB_BADRAM} as parameter.
19679
19680 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19681
19682 * docs/grub.texi (Device map): New section.
19683 (Themes): New section (stub).
19684 * Makefile.in (docs/grub.info): The info documentation now builds
19685 without errors. Make sure it stays that way.
19686
19687 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19688
19689 Use normal parser for menu entries.
19690 Reported by: Thomas Frauendorfer
19691
19692 * include/grub/parser.h (grub_parser_execute): Don't export.
19693 * normal/menu.c (grub_menu_execute_entry_real): New function.
19694 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19695
19696 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19697
19698 * docs/grub.texi (Embedded configuration): New section (replacing
19699 old "Preset Menu" stub).
19700 (Images): New section.
19701 (configfile): Note that any menu entries defined in `file' are shown
19702 immediately.
19703
19704 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19705
19706 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19707
19708 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19709
19710 * util/grub-install.in: Add --debug-image= option.
19711
19712 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19713
19714 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19715 possible on Linux.
19716
19717 * util/deviceiter.c (check_device): Rename to ...
19718 (check_device_readable_unique): ... this. Update all callers.
19719 Maintain and check a list of which devices (by canonicalized name)
19720 have already been seen.
19721 (clear_seen_devices): New function.
19722 (compare_file_names) [__linux__]: New function.
19723 (grub_util_iterate_devices): Clear the list of seen devices on exit
19724 and (just in case) on entry.
19725 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19726 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19727 seen-devices list, superseded by general code in check_device.
19728
19729 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19730
19731 * commands/cat.c (options): New variable.
19732 (grub_cmd_cat): Parse options. If the --dos option is given, print
19733 DOS-style "\r\n" line endings as simple newlines (Debian bug
19734 #586358).
19735 (GRUB_MOD_INIT): Use extcmd.
19736 (GRUB_MOD_FINI): Likewise.
19737 * docs/grub.texi (cat): Document --dos.
19738
19739 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19740
19741 XEN with Linux grub-mkconfig support.
19742
19743 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19744 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19745 GRUB_CMDLINE_XEN_DEFAULT.
19746 * util/grub.d/20_linux_xen.in: New file.
19747
19748 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19749
19750 Initialise VGA video on qemu ourselves.
19751
19752 * boot/i386/qemu/boot.S: Don't call 0xc000.
19753 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19754 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19755 (kernel_img_HEADERS): Add pci.h.
19756 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19757 * configure.ac: Force unifont on qemu and yeeloong.
19758 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19759 (grub_vga_palette_write): Use correct register.
19760 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19761 Call grub_qemu_init_cirrus.
19762 * kern/i386/qemu/init.c: New file.
19763 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19764
19765 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
19766
19767 2010-06-26 Pavel Roskin <proski@gnu.org>
19768
19769 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
19770 13.
19771
19772 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19773
19774 * docs/grub.texi (Simple configuration): Explain that
19775 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
19776 set to `true' to disable their respective recovery entries, not
19777 merely set.
19778
19779 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19780
19781 Make the `source' command slightly faster.
19782
19783 * normal/main.c (grub_normal_execute): Don't re-read list files when
19784 nested.
19785
19786 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19787
19788 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
19789 field position and mask size to red fields from mode_info, not
19790 green.
19791 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
19792 Remove redundant tag->common.framebuffer_type assignment.
19793 Reported by: Seth Goldberg.
19794
19795 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19796
19797 Sync up other versions of the Linux loader with Robert Millan's
19798 change of 2010-01-09, "Make loader output a bit more user-friendly".
19799
19800 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
19801 grub_dprintf().
19802 (grub_cmd_linux): Likewise.
19803 (grub_cmd_initrd): Likewise.
19804 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
19805 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19806
19807 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
19808
19809 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
19810 larger than MEMORY_MAP_SIZE.
19811
19812 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
19813
19814 Fix parallel build.
19815
19816 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
19817 dependency.
19818 * script/parser.y: #include grub_script.tab.h header.
19819
19820 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19821
19822 Support >3GiB and <16MiB RAM in i386-qemu.
19823
19824 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
19825 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
19826 (grub_lower_mem): Removed.
19827 (grub_upper_mem): Likewise.
19828 (mem_size): Made static.
19829 (above_4g): New variable.
19830 (grub_machine_mmap_init): Detect small mem_size and above_4g.
19831 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
19832 support.
19833
19834 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19835
19836 Cirrus 5446 and Bochs video cards support.
19837
19838 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
19839 video_bochs.mod
19840 (video_cirrus_mod_SOURCES): New variable.
19841 (video_cirrus_mod_CFLAGS): Likewise.
19842 (video_cirrus_mod_LDFLAGS): Likewise.
19843 (video_bochs_mod_SOURCES): Likewise.
19844 (video_bochs_mod_CFLAGS): Likewise.
19845 (video_bochs_mod_LDFLAGS): Likewise.
19846 * include/grub/vga.h: New file.
19847 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
19848 (grub_video_fb_set_page_t): New type.
19849 (grub_video_fb_setup): New prototype.
19850 (grub_video_fb_swap_buffers): Likewise.
19851 (grub_video_fb_get_info_and_fini): Likewise.
19852 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
19853 (CRTC_DATA_PORT): Likewise.
19854 (CRTC_CURSOR): Likewise.
19855 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19856 (CRTC_CURSOR_ADDR_LOW): Likewise.
19857 (CRTC_CURSOR_DISABLE): Likewise.
19858 (update_cursor): Use grub_vga_cr_write.
19859 (grub_vga_text_setcursor): Likewise.
19860 * video/bochs.c: New file.
19861 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
19862 (palette): Likewise.
19863 (palette_size): Likewise.
19864 (framebuffer): New variable.
19865 (grub_video_fb_init): Use 'framebuffer'.
19866 (grub_video_fb_fini): Likewise.
19867 (grub_video_fb_get_info): Likewise.
19868 (grub_video_fb_get_palette): Likewise.
19869 (grub_video_fb_set_palette): Likewise.
19870 (grub_video_fb_set_viewport): Likewise.
19871 (grub_video_fb_get_viewport): Likewise.
19872 (grub_video_fb_map_color): Likewise.
19873 (grub_video_fb_map_rgb): Likewise.
19874 (grub_video_fb_map_rgba): Likewise.
19875 (grub_video_fb_unmap_color): Likewise.
19876 (grub_video_fb_unmap_color_int): Likewise.
19877 (grub_video_fb_fill_rect): Likewise.
19878 (grub_video_fb_blit_bitmap): Likewise.
19879 (grub_video_fb_blit_render_target): Likewise.
19880 (grub_video_fb_scroll): Likewise.
19881 (grub_video_fb_create_render_target): Likewise.
19882 (grub_video_fb_doublebuf_blit_init): Likewise.
19883 (grub_video_fb_set_active_render_target): Handle doublebuffering.
19884 (doublebuf_pageflipping_update_screen): New function.
19885 (doublebuf_pageflipping_init): Likewise.
19886 (grub_video_fb_setup): Likewise.
19887 (grub_video_fb_swap_buffers): Likewise.
19888 (grub_video_fb_get_info_and_fini): Likewise.
19889 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
19890 All users updated.
19891 (doublebuf_pageflipping_commit): Restructured into ...
19892 (doublebuf_pageflipping_set_page): ... this.
19893 (doublebuf_pageflipping_update_screen): Removed.
19894 (doublebuf_pageflipping_init): Likewise.
19895 (double_buffering_init): Likewise.
19896 (grub_video_vbe_setup): Use grub_video_fb_setup.
19897 (grub_video_vbe_swap_buffers): Removed.
19898 (grub_video_vbe_set_active_render_target): Likewise.
19899 (grub_video_vbe_get_active_render_target): Likewise.
19900 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
19901 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
19902 grub_video_fb_set_active_render_target and
19903 grub_video_fb_get_active_render_target.
19904 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
19905 (SEQUENCER_DATA_PORT): Likewise.
19906 (MAP_MASK_REGISTER): Likewise.
19907 (CRTC_ADDR_PORT): Likewise.
19908 (CRTC_DATA_PORT): Likewise.
19909 (START_ADDR_HIGH_REGISTER): Likewise.
19910 (START_ADDR_LOW_REGISTER): Likewise.
19911 (GRAPHICS_ADDR_PORT): Likewise.
19912 (GRAPHICS_DATA_PORT): Likewise.
19913 (READ_MAP_REGISTER): Likewise.
19914 (INPUT_STATUS1_REGISTER): Likewise.
19915 (INPUT_STATUS1_VERTR_BIT): Likewise.
19916 (get_map_mask): Use grub_vga_sr_read.
19917 (set_map_mask): Use grub_vga_sr_write.
19918 (set_read_map): Use grub_vga_gr_write.
19919 (set_start_address): Use grub_vga_cr_write.
19920 * video/sm712.c (framebuffer): Remove leftover fields.
19921
19922 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
19923
19924 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
19925 setting GRUB_VIDEO_BACKEND. Make it available as a user override
19926 instead. Replace the gfxterm backend check with a check that
19927 ${GRUB_PREFIX}/video.lst is non-empty.
19928 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
19929 again.
19930 (load_video): New generated function. Call it before loading
19931 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
19932 * util/grub.d/10_linux.in (linux_entry): Call load_video.
19933 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
19934 * docs/grub.texi (Simple configuration): Document
19935 GRUB_VIDEO_BACKEND.
19936
19937 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19938
19939 Use video functions in linux and xnu loaders.
19940
19941 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
19942 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
19943 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
19944 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
19945 loader/i386/pc/linux.c.
19946 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
19947 (find_line_len): Removed.
19948 (find_framebuf): Likewise.
19949 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
19950 * loader/i386/efi/xnu.c: Removed.
19951 * loader/i386/pc/xnu.c: Moved from here...
19952 * loader/i386/xnu.c: ...here.
19953
19954 Enable priorities in video drivers.
19955
19956 * include/grub/video.h (grub_video_adapter_prio_t): New type.
19957 (grub_video_adapter): New field prio.
19958 (grub_video_register): Respect prio when inserting.
19959 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
19960 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
19961 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
19962 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
19963 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
19964 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
19965 * video/sm712.c (grub_video_sm712_adapter): Likewise.
19966
19967 Fix SDL driver ID.
19968
19969 * include/grub/video.h (grub_video_driver_id_t): New value
19970 GRUB_VIDEO_DRIVER_SDL.
19971 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
19972
19973 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19974
19975 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
19976 argument to printf.
19977 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19978
19979 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19980
19981 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
19982 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19983
19984 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19985
19986 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
19987 directly, and recommend grub-install instead.
19988 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19989
19990 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19991
19992 Fix i386-pc prefix handling with nested partitions (Debian bug
19993 #585068). Note that the case where the core image is booted using
19994 multiboot and relocated from its original location still requires
19995 more work.
19996
19997 * kern/i386/pc/init.c (make_install_device): If the prefix starts
19998 with "(,", fill the boot drive in between those two characters, but
19999 expect that a full partition specification including partition map
20000 names will follow.
20001 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20002 specified, write a prefix without the drive name but including a
20003 full partition specification.
20004
20005 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20006
20007 * util/grub-mkconfig.in: Ignore non-option arguments, for
20008 compatibility with older versions (before 2010-06-12) which did the
20009 same. In particular, this makes it easier to ship an update-grub
20010 wrapper which is compatible with that used with GRUB Legacy (Debian
20011 bug #586056).
20012
20013 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20014
20015 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20016 for manual page generation.
20017
20018 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20019
20020 * po/POTFILES: Remove leftover commands/handler.c.
20021
20022 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20023
20024 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20025 left this script non-functional.
20026
20027 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20028
20029 * docs/man/grub-emu.h2m: New file.
20030
20031 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20032
20033 * docs/grub.texi (Commands): Document reduced command set in rescue
20034 mode.
20035 (cpuid): New section.
20036
20037 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20038
20039 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20040 new partition naming style.
20041 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20042
20043 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20044
20045 Add "-o grub.iso" like cmdline options support.
20046
20047 * util/grub-install.in: Improve cmdline option parsing.
20048 * util/grub-mkconfig.in: Likewise.
20049 * util/grub-mkrescue.in: Likewise.
20050 * util/grub-reboot.in: Likewise.
20051 * util/grub-set-default.in: Likewise.
20052 * util/i386/efi/grub-install.in: Likewise.
20053 * util/ieee1275/grub-install.in: Likewise.
20054 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20055
20056 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20057
20058 * .bzrignore: Ignore 41_custom.
20059
20060 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20061
20062 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20063
20064 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20065
20066 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20067 prototype declarations.
20068
20069 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20070 generating fs, partmap, and video lists.
20071 * include/grub/fs.h (grub_fs_register): Omit prototype if
20072 GRUB_LST_GENERATOR is defined.
20073 * include/grub/partition.h (grub_partition_map_register): Likewise.
20074 * include/grub/video.h (grub_video_register): Likewise.
20075
20076 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20077
20078 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20079
20080 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20081
20082 * util/grub-mkrescue.in: Support --xorriso argument.
20083
20084 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20085
20086 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20087 Suggested by: Thomas Schmitt.
20088
20089 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20090
20091 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20092 Suggested by: Thomas Schmitt.
20093
20094 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20095
20096 custom.cfg support.
20097
20098 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20099 * util/grub.d/41_custom.in: New file.
20100
20101 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20102
20103 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20104 been merged back into normal.
20105
20106 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20107
20108 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20109 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20110
20111 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20112
20113 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20114 when generating manual pages.
20115 * docs/man/grub-bin2h.h2m: New file.
20116 * docs/man/grub-editenv.h2m: New file.
20117 * docs/man/grub-fstest.h2m: New file.
20118 * docs/man/grub-install.h2m: New file.
20119 * docs/man/grub-macho2img.h2m: New file.
20120 * docs/man/grub-mkconfig.h2m: New file.
20121 * docs/man/grub-mkdevicemap.h2m: New file.
20122 * docs/man/grub-mkfont.h2m: New file.
20123 * docs/man/grub-mkimage.h2m: New file.
20124 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20125 * docs/man/grub-mkrelpath.h2m: New file.
20126 * docs/man/grub-mkrescue.h2m: New file.
20127 * docs/man/grub-ofpathname.h2m: New file.
20128 * docs/man/grub-pe2elf.h2m: New file.
20129 * docs/man/grub-probe.h2m: New file.
20130 * docs/man/grub-reboot.h2m: New file.
20131 * docs/man/grub-script-check.h2m: New file.
20132 * docs/man/grub-set-default.h2m: New file.
20133 * docs/man/grub-setup.h2m: New file.
20134
20135 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20136
20137 Use FOR_* macros instead of *_iterate whenever possible.
20138
20139 * commands/handler.c: Removed.
20140 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20141 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20142 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20143 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20144 (grub_probe_SOURCES): Remove kern/parser.c.
20145 (util/grub-script-check.c_DEPENDENCIES): Removed.
20146 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20147 and grub_script_check_init.c.
20148 (grub_script_check_init.lst): Removed.
20149 (grub_script_check_init.h): Likewise.
20150 (grub_script_check_init.c): Likewise.
20151 (pkglib_MODULES): Remove handler.mod and sh.mod.
20152 (handler_mod_SOURCES): Removed.
20153 (handler_mod_CFLAGS): Likewise.
20154 (handler_mod_LDFLAGS): Likewise.
20155 (normal_mod_SOURCES): Remove normal/handler.c.
20156 Add script/main.c, script/script.c, script/execute.c,
20157 script/function.c, script/lexer.c, grub_script.tab.c
20158 and grub_script.yy.c.
20159 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20160 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20161 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20162 (grub_setup_SOURCES): Remove kern/parser.c.
20163 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20164 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20165 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20166 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20167 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20168 (grub_setup_SOURCES): Remove kern/parser.c.
20169 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20170 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20171 * include/grub/command.h (grub_command_iterate): Removed.
20172 (FOR_COMMANDS): New macro.
20173 * include/grub/dl.h (grub_dl): New member next.
20174 (grub_dl_iterate): Removed.
20175 (grub_dl_head): New variable declaration.
20176 (FOR_DL_MODULES): New macro.
20177 * include/grub/fs.h: Include list.h.
20178 (grub_fs): Make next first element.
20179 (grub_fs_list): New variable declaration.
20180 (grub_fs_register): Make inline.
20181 (grub_fs_unregister): Likewise.
20182 (grub_fs_iterate): Removed.
20183 (FOR_FILESYSTEMS): New macro.
20184 * include/grub/handler.h: Removed.
20185 * include/grub/list.h (grub_list_hook_t): Removed.
20186 (grub_list_test_t): Likewise.
20187 (grub_list_pop): Likewise.
20188 (grub_list_iterate): Likewise.
20189 (grub_list_insert): Likewise.
20190 (FOR_LIST_ELEMENTS): New macro.
20191 * include/grub/parser.h (grub_parser_class): Removed.
20192 (grub_parser_register): Likewise.
20193 (grub_parser_unregister): Likewise.
20194 (grub_parser_get_current): Likewise.
20195 (grub_parser_set_current): Likewise.
20196 (grub_register_rescue_parser): Likewise.
20197 (grub_rescue_parse_line): New function.
20198 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20199 * include/grub/script_sh.h (grub_script_function_list): New variable
20200 declaration.
20201 (FOR_SCRIPT_FUNCTIONS): New macro.
20202 (grub_script_function_iterate): Removed.
20203 (grub_normal_parse_line): New prototype.
20204 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20205 (FOR_DISABLED_TERM_INPUTS): Likewise.
20206 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20207 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20208 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20209 element.
20210 (grub_video_register): Inline.
20211 (grub_video_unregister): Likewise.
20212 (grub_video_adapter_list): New variable declaration.
20213 (grub_video_iterate): Removed.
20214 (FOR_VIDEO_ADAPTERS): New macro.
20215 * kern/dl.c (grub_dl_list): Removed. All users updated.
20216 (grub_dl_iterate): Removed.
20217 * kern/fs.c (grub_fs_list): Make global.
20218 (grub_fs_register): Removed.
20219 (grub_fs_unregister): Likewise.
20220 (grub_fs_iterate): Likewise.
20221 * kern/handler.c: Removed.
20222 * kern/list.c (grub_list_pop): Removed.
20223 (grub_list_iterate): Likewise.
20224 (grub_list_insert): Likewise.
20225 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20226 (grub_prio_list_insert): Don't use grub_list_insert.
20227 * kern/main.c (grub_register_rescue_parser): Don't call
20228 grub_register_rescue_parser.
20229 * kern/parser.c (grub_parser_class): Removed.
20230 (grub_parser_execute): Use grub_rescue_parse_line.
20231 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20232 (grub_rescue_parser): Removed.
20233 (grub_register_rescue_parser): Likewise.
20234 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20235 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20236 (grub_auth_check_authentication): Likewise.
20237 * normal/completion.c (iterate_command): Removed.
20238 (grub_normal_do_completion): Use FOR_COMMANDS.
20239 * normal/handler.c: Removed.
20240 * normal/main.c (read_config_file): Remove parser changing.
20241 (grub_normal_execute): Don't call read_handler_list.
20242 (grub_normal_read_line_real): Statically allocate prompt.
20243 (grub_cmdline_run): Use grub_normal_parse_line.
20244 (GRUB_MOD_FINI): Don't call free_handler_list.
20245 * normal/menu_entry.c (run): Likewise.
20246 * script/function.c (grub_script_function_list): Make global.
20247 (grub_script_function_iterate): Removed.
20248 * script/main.c (grub_normal_parse_line): Make global.
20249 (grub_sh_parser): Removed.
20250 (GRUB_MOD_INIT): Likewise.
20251 (GRUB_MOD_FINI): Likewise.
20252 * tests/lib/functional_test.c (grub_functional_test): Use
20253 FOR_LIST_ELEMENTS.
20254 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20255 (grub_test_run): Use FOR_LIST_ELEMENTS.
20256 * tests/lib/unit_test.c (main): Likewise.
20257 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20258 grub_list_pop.
20259 * util/grub-fstest.c (grub_term_input_class): Removed.
20260 (grub_term_output_class): Likewise.
20261 * util/grub-probe.c: Likewise.
20262 * util/i386/pc/grub-setup.c: Likewise.
20263 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20264 * util/grub-script-check.c (main): Don't call grub_init_all and
20265 grub_fini_all.
20266 * video/video.c (grub_video_adapter_list): Make global.
20267 (grub_video_register): Removed.
20268 (grub_video_unregister): Likewise.
20269 (grub_video_iterate): Likewise.
20270
20271 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20272
20273 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20274 reported by Henrique Ferreiro.
20275
20276 2010-06-09 Robert Millan <rmh@gnu.org>
20277
20278 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20279 ones, when both are available.
20280
20281 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20282
20283 Make --version uniform and avoid hard-coded program name.
20284
20285 * util/grub-mkimage.c (main): Use `program_name' instead of
20286 hard-coded string.
20287 * util/i386/pc/grub-setup.c (main): Likewise.
20288 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20289 * util/grub-install.in: Save the basename of $0 in $self, and use the
20290 latter in informational messages. Use the same format for --version
20291 as the binary programs.
20292 * util/grub-mkconfig.in: Likewise.
20293 * util/grub-mkrescue.in: Likewise.
20294 * util/grub-reboot.in: Likewise.
20295 * util/grub-set-default.in: Likewise.
20296 * util/i386/efi/grub-install.in: Likewise.
20297 * util/ieee1275/grub-install.in: Likewise.
20298 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20299
20300 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20301
20302 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20303 embedding area. Use <= instead of == when checking for non-emptiness.
20304
20305 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20306
20307 * configure.ac: Add `.' to the directories searched for unifont.
20308
20309 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20310
20311 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20312 grub_script.yy.h.
20313
20314 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20315
20316 * docs/grub.texi (History): Expand to cover GRUB 2.
20317 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20318 commands, not `terminal'.
20319 (serial): Likewise.
20320 (terminal_input): New section.
20321 (terminal_output): New section.
20322 (uppermem): New section (stub).
20323 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20324
20325 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20326
20327 * docs/grub.texi (Security): Menu entries are unrestricted by
20328 default, not restricted to superusers as I had previously thought.
20329 Reword to account for this.
20330
20331 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20332
20333 * kern/emu/misc.c (device_mapper_null_log): New function.
20334 (grub_device_mapper_supported): New function.
20335 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20336 prototype.
20337 * kern/emu/hostdisk.c (find_partition_start): Check whether
20338 device-mapper is supported before trying to use it.
20339 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20340
20341 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20342
20343 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20344 (File name syntax): Likewise.
20345 (help): --all is no longer supported in GRUB 2. Be more precise
20346 about pattern matching.
20347
20348 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20349
20350 * normal/completion.c (grub_normal_do_completion): When completing
20351 arguments to "set" and the current word contains an equals sign,
20352 skip to after the equals sign before starting completion.
20353
20354 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20355
20356 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20357
20358 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20359
20360 * docs/grub.texi (Network): New section.
20361 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20362 `(nd)' as in GRUB Legacy.
20363 (pxe_unload): New section.
20364
20365 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20366
20367 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20368 in the rescue shell, so recommend using `set' instead. Thanks,
20369 Jordan Uggla.
20370
20371 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20372
20373 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20374 (password): New section.
20375 (password_pbkdf2): New section.
20376 (search): New section.
20377 (Security): New section.
20378 (Troubleshooting): New section, currently very incomplete.
20379 (Invoking grub-mkpasswd-pbkdf2): New section.
20380 (Internals): New section, currently very incomplete.
20381
20382 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20383
20384 * util/grub.d/00_header.in: Add some more quoting (of
20385 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20386 work again.
20387 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20388
20389 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20390
20391 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20392 to `count', fixing variable shadowing that broke the -c option.
20393
20394 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20395
20396 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20397 in case they contain spaces.
20398
20399 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20400
20401 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20402 "part_" to partmap module names, in line with grub-install.
20403 Reported by: Jindřich Makovička (Debian bug #584426).
20404
20405 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20406
20407 * util/grub-mkimage.c: Make target-related error messages slightly
20408 more helpful; -O talks about "format". Explicitly point to the use
20409 of -O if no target is specified.
20410 Reported by: Didier Raboud (Debian bug #584415).
20411
20412 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20413
20414 * INSTALL: Document several build requirements for optional features
20415 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20416
20417 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20418
20419 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20420 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20421 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20422
20423 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20424
20425 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20426 Thanks to Jordan Uggla for spotting this.
20427
20428 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20429
20430 Finally make USB usable.
20431
20432 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20433 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20434 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20435 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20436 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20437 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20438 (GRUB_OHCI_FSMPS): Likewise.
20439 (GRUB_OHCI_PERIODIC_START): Likewise.
20440 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20441 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20442 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20443 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20444 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20445 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20446 (grub_ohci_transaction): Likewise.
20447 (grub_ohci_transfer): Improve condition detection algorithms.
20448 Handle toggle property. Program the transactions correctly.
20449 Improve error handling. Various important fixups.
20450 (grub_ohci_portstatus): Put register writes in right order.
20451 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20452 (grub_uhci_transfer): Don't show "failed" message on success.
20453 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20454 array.
20455 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20456 determine its size.
20457 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20458 before initialization is completed. Use IN direction for empty
20459 transfers. Use last_trans and compute toggle.
20460 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20461 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20462 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20463 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20464 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20465 (grub_usb_device): Increase toggle to 256.
20466 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20467 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20468 GRUB_USBMS_SUBCLASS_SFF8070.
20469 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20470 (grub_scsi_inquiry): New member page and alloc_length.
20471 (grub_scsi_request_sense): New structure.
20472 (grub_scsi_request_sense_data): Likewise.
20473 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20474 control.
20475 * disk/scsi.c (grub_scsi_request_sense): New function.
20476 (grub_scsi_test_unit_ready): Likewise.
20477 (grub_scsi_inquiry): Fill new fields.
20478 (grub_scsi_read_capacity): Likewise.
20479 (grub_scsi_read10): Add request sense at the end.
20480 (grub_scsi_read12): Likewise.
20481 (grub_scsi_write10): Likewise.
20482 (grub_scsi_write12): Likewise.
20483 (grub_scsi_open): Add Test Unit Ready.
20484 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20485 Support additional subclasses. Con't clear halt yet. Activate the
20486 proper config. Calculate LUNs correctly.
20487 (grub_usbms_transfer): Various important fixups.
20488
20489 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20490
20491 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20492 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20493 (grub_ohci_fini_hw): New function.
20494 (grub_ohci_restore_hw): Likewise.
20495 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20496 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20497 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20498
20499 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20500
20501 Dedicated DMA allocations.
20502
20503 * bus/pci.c (grub_memalign_dma32): New function
20504 (grub_dma_free): Likewise.
20505 (grub_dma_get_virt): Likewise.
20506 (grub_dma_get_phys): Likewise.
20507 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20508 (grub_ohci_pci_iter): Use dma32_alloc.
20509 (grub_ohci_transfer): Likewise.
20510 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20511 (grub_usb_bulk_readwrite): Likewise.
20512 * include/grub/pci.h: Add declarations.
20513
20514 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20515
20516 CS5536 support.
20517
20518 * bus/cs5536.c: New file.
20519 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20520 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20521 (cs5536_mod_SOURCES): New variable.
20522 (cs5536_mod_CFLAGS): Likewise.
20523 (cs5536_mod_LDFLAGS): Likewise.
20524 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20525 machine/pci.h.
20526 (kernel_img_SOURCES): Add bus/cs5536.c.
20527 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20528 usb_keyboard.mod.
20529 (usb_mod_SOURCES): New variable.
20530 (usb_mod_CFLAGS): New variable.
20531 (usb_mod_LDFLAGS): New variable.
20532 (usbtest_mod_SOURCES): New variable.
20533 (usbtest_mod_CFLAGS): New variable.
20534 (usbtest_mod_LDFLAGS): New variable.
20535 (ohci_mod_SOURCES): New variable.
20536 (ohci_mod_CFLAGS): New variable.
20537 (ohci_mod_LDFLAGS): New variable.
20538 (usbms_mod_SOURCES): New variable.
20539 (usbms_mod_CFLAGS): New variable.
20540 (usbms_mod_LDFLAGS): New variable.
20541 (usb_keyboard_mod_SOURCES): New variable.
20542 (usb_keyboard_mod_CFLAGS): New variable.
20543 (usb_keyboard_mod_LDFLAGS): New variable.
20544 * include/grub/smbus.h: New file.
20545 * include/grub/cs5536.h: New file.
20546
20547 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20548
20549 * util/grub.d/00_header.in: Add safety check to make sure that
20550 ${locale_dir} exists before trying to probe it.
20551
20552 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20553
20554 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20555 per the GNU Coding Standards; this is now too obscure to be worth
20556 documenting.
20557 (QNX): Likewise.
20558 (chainloader): Remove cross-reference to `SCO UnixWare'.
20559
20560 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20561
20562 * docs/grub.texi (Chain-loading): New section.
20563 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20564 adjusted for GRUB 2.
20565 (SCO UnixWare): Likewise.
20566 (QNX): Likewise.
20567 (chainloader): Add reference to `Block list syntax'.
20568 (drivemap): New section.
20569 (parttool): New section.
20570
20571 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20572
20573 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20574 the grub shell'.
20575 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20576 (Installing GRUB using grub-install): Remove reference to the grub
20577 shell; mention `grub-mkimage' and `grub-setup' instead.
20578 (Invoking grub-install): Likewise.
20579 (Interface): Add reference to `Menu entry editor'.
20580 (serial): Remove `--device' option.
20581
20582 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20583
20584 * docs/grub.texi (Configuration): New section, documenting
20585 configuration file generation using grub-mkconfig. I've left a slot
20586 for documenting the full shell scripting format but have not yet
20587 started on writing that up.
20588 (Invoking grub-mkconfig): New section.
20589
20590 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20591
20592 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20593 (GNU GRUB manual): Likewise.
20594 (General commands): Update description of `terminfo' for GRUB 2.
20595
20596 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20597
20598 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20599 (GRUB_MOD_INIT): Fix capitalisation.
20600 * docs/grub.texi (Command-line and menu entry commands): Document
20601 gettext and gptsync commands.
20602
20603 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20604
20605 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20606 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20607
20608 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
20609
20610 Add btrfs probing support, currently only in the single-device case.
20611
20612 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20613 function.
20614 (grub_guess_root_device): Call find_root_device_from_mountinfo
20615 before looking in /dev.
20616
20617 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20618
20619 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20620 GRUB_DISK_SIZE_UNKNOWN.
20621 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20622
20623 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
20624
20625 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20626 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20627 corrupted or not synced properly.
20628
20629 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20630
20631 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20632 Reported by: Seth Goldberg.
20633
20634 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20635
20636 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20637 addition of dest.
20638 Reported by: Seth Goldberg.
20639
20640 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20641
20642 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20643 Reported by: Seth Goldberg.
20644
20645 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20646
20647 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20648 64-bit address as signed on MIPS.
20649
20650 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20651
20652 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20653 to the empty string.
20654
20655 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20656
20657 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20658
20659 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20660 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20661 * kern/misc.c (__enable_execute_stack): Disable on
20662 GRUB_MACHINE_EMU.
20663
20664 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20665
20666 Make grub-probe work with symbolic links under /dev/mapper as well
20667 as with real block devices. The Linux world seems to be (at best)
20668 in transition here, and GRUB shouldn't get caught in the middle.
20669
20670 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20671 /dev/mapper.
20672
20673 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20674
20675 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20676 input files (in which case exit zero).
20677
20678 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20679
20680 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20681 return NULL for various reasons even if it has a maximum-length
20682 buffer: for example, there might be a symlink loop, or the path
20683 might exceed PATH_MAX. If this happens, return NULL.
20684
20685 2010-05-27 Robert Millan <rmh@gnu.org>
20686
20687 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20688 partmap module to handle cross-partmap setups.
20689 Reported by Orestes Mas. Gràcies!
20690
20691 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20692
20693 * util/grub-mkrescue.in: Initialise override_dir rather than
20694 assuming that it's unset or empty in the environment.
20695
20696 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20697
20698 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20699 variable index into p_index to suppress a warning with -Wshadow.
20700
20701 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20702
20703 * INSTALL: Added flex >= 2.5.35 requirement.
20704
20705 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20706
20707 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20708
20709 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20710
20711 cmostest support.
20712
20713 * commands/i386/cmostest.c: New file.
20714 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20715 (cmostest_mod_SOURCES): New variable.
20716 (cmostest_mod_CFLAGS): Likewise.
20717 (cmostest_mod_LDFLAGS): Likewise.
20718 * conf/i386-pc.rmk: Likewise.
20719 * docs/grub.texi (Vendor power-on keys): New section.
20720 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20721 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20722 and GRUB_BUTTON_CMOS_ADDRESS.
20723 * util/grub.d/00_header.in: Handle powering-on by separate button.
20724
20725 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20726
20727 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20728 Removed drawing_scrollbar argument. All users updated
20729 Fixes #29792.
20730 Reported by Jo Shields
20731
20732 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20733
20734 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20735 buffer since gfxterm handles double repaint.
20736
20737 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20738
20739 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20740 * term/gfxterm.c (real_scroll): Likewise.
20741
20742 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20743
20744 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20745 before calling BIOS.
20746
20747 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20748
20749 * include/grub/i18n.h: Always enable grub_gettext.
20750
20751 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20752
20753 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20754 partition naming style.
20755
20756 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20757
20758 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20759 not the first option.
20760
20761 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20762
20763 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20764
20765 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20766
20767 * util/misc.c: Move inclusion of <limits.h> to ...
20768 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
20769
20770 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
20771
20772 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
20773 Fix merge error in NetBSD code.
20774 (find_partition_start) [__NetBSD__]: Likewise.
20775
20776 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
20777
20778 Fix grub-mkrescue usage unit testing.
20779
20780 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
20781
20782 2010-05-18 Christian Franke <franke@computer.org>
20783
20784 * util/grub.d/10_windows.in: Use path names instead of
20785 drive letters to prevent warning from Cygwin 1.7.
20786 Add drivemap command to menuentry if needed.
20787
20788 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
20789
20790 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
20791 gnumach and gnumach.gz.
20792
20793 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20794
20795 * include/grub/i18n.h (gettext): Inline instead of using #define.
20796 (grub_gettext): Likewise.
20797 (_): Likewise.
20798
20799 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20800
20801 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
20802 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
20803 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
20804 (main): Add a slash after pkglibdirroot.
20805
20806 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20807
20808 * util/grub-install.in: Add missing "in" keyword.
20809
20810 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20811
20812 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
20813 Reported by: Seth Goldberg.
20814
20815 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20816
20817 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
20818
20819 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20820
20821 * configure.ac: Check for Linux device-mapper support.
20822
20823 * util/hostdisk.c (device_is_mapped): New function.
20824 (find_partition_start): New function, partly broken out from
20825 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
20826 device-mapper support added.
20827 (linux_find_partition): Use find_partition_start.
20828 (convert_system_partition_to_system_disk): Add `st' argument.
20829 Support Linux /dev/mapper/* devices if device-mapper support is
20830 available; only DM-RAID devices are understood at present.
20831 (find_system_device): Add `st' argument. Pass it to
20832 convert_system_partition_to_system_disk.
20833 (grub_util_biosdisk_get_grub_dev): Pass stat result to
20834 find_system_device and convert_system_partition_to_system_disk. Use
20835 find_partition_start.
20836
20837 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
20838 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
20839 * util/deviceiter.c [__linux__]: Define MINOR.
20840 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
20841 * util/mkdevicemap.c (grub_putchar): New function.
20842 (grub_getkey): New function.
20843 (grub_refresh): New function.
20844 (main): Set debug=all if -v -v is used.
20845
20846 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20847
20848 Fix build with non-GNU libcs.
20849
20850 * util/misc.c (canonicalize_file_name): Move to ...
20851 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
20852 grub_make_system_path_relative_to_its_root.
20853
20854 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20855
20856 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
20857 we handle finding grub-mkimage. Default to finding grub-mkimage in
20858 ${bindir} with program_transform_name applied, and provide a
20859 --grub-mkimage option to override this.
20860
20861 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20862
20863 Remove grub-mkisofs.
20864
20865 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
20866 (grub_mkisofs_SOURCES): Removed.
20867 (grub_mkisofs_CFLAGS): Removed.
20868 * util/mkisofs/defaults.h: Removed.
20869 * util/mkisofs/eltorito.c: Likewise.
20870 * util/mkisofs/exclude.h: Likewise.
20871 * util/mkisofs/hash.c: Likewise.
20872 * util/mkisofs/include/: Likewise.
20873 * util/mkisofs/include/fctldefs.h: Likewise.
20874 * util/mkisofs/include/mconfig.h: Likewise.
20875 * util/mkisofs/include/prototyp.h: Likewise.
20876 * util/mkisofs/include/statdefs.h: Likewise.
20877 * util/mkisofs/iso9660.h: Likewise.
20878 * util/mkisofs/joliet.c: Likewise.
20879 * util/mkisofs/match.c: Likewise.
20880 * util/mkisofs/match.h: Likewise.
20881 * util/mkisofs/mkisofs.c: Likewise.
20882 * util/mkisofs/mkisofs.h: Likewise.
20883 * util/mkisofs/msdos_partition.h: Likewise.
20884 * util/mkisofs/multi.c: Likewise.
20885 * util/mkisofs/name.c: Likewise.
20886 * util/mkisofs/rock.c: Likewise.
20887 * util/mkisofs/tree.c: Likewise.
20888 * util/mkisofs/write.c: Likewise.
20889
20890 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20891
20892 Unify grub-mkimage accross platforms.
20893
20894 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
20895 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
20896 (grub_mkelfimage_SOURCES): Removed.
20897 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
20898 (util/grub-mkimage.c_DEPENDENCIES): .. this.
20899 (bin_UTILITIES): Add grub-mkimage.
20900 (grub_mkimage_SOURCES): New variable.
20901 (kernel_img_HEADERS): Remove machine/kernel.h.
20902 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
20903 (pkglib_PROGRAMS): Add kernel.img.
20904 (kernel_img_HEADERS): Add machine/kernel.h.
20905 (kernel_img_FORMAT): Removed.
20906 (bin_UTILITIES): Remove grub-mkimage.
20907 (grub_mkimage_SOURCES): Removed.
20908 (grub_mkimage_CFLAGS): Likewise.
20909 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20910 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
20911 (pkglib_PROGRAMS): Add kernel.img.
20912 (bin_UTILITIES): Remove grub-mkimage.
20913 (grub_mkimage_SOURCES): Removed.
20914 (grub_mkimage_CFLAGS): Likewise.
20915 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20916 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
20917 (pkglib_PROGRAMS): Add kernel.img.
20918 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
20919 (pkglib_PROGRAMS): Add kernel.img.
20920 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
20921 (grub_mkimage_SOURCES): Removed.
20922 (grub_mkimage_CFLAGS): Likewise.
20923 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20924 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
20925 (pkglib_PROGRAMS): Add kernel.img.
20926 (bin_UTILITIES): Remove grub-mkimage.
20927 (grub_mkimage_SOURCES): Removed.
20928 (grub_mkimage_CFLAGS): Likewise.
20929 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20930 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
20931 (grub_mkimage_SOURCES): Removed.
20932 (grub_mkimage_CFLAGS): Likewise.
20933 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20934 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
20935 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
20936 (grub_pe32_optional_header): ... this.
20937 (grub_pe64_optional_header): ... and this. All users updated.
20938 (GRUB_PE32_PE32_MAGIC): Split into ..
20939 (GRUB_PE32_PE32_MAGIC): .. this.
20940 (GRUB_PE32_PE64_MAGIC): .. and this.
20941 (GRUB_PE32_SIGNATURE_SIZE): New definition.
20942 * include/grub/elf.h (PT_GNU_STACK): New definition.
20943 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
20944 * include/grub/i386/efi/kernel.h: Likewise.
20945 * include/grub/i386/kernel.h: Likewise.
20946 * include/grub/i386/pc/kernel.h: Likewise.
20947 * include/grub/i386/qemu/boot.h: Likewise.
20948 * include/grub/mips/kernel.h: Likewise.
20949 * include/grub/mips/qemu-mips/kernel.h: Likewise.
20950 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20951 * include/grub/powerpc/kernel.h: Likewise.
20952 * include/grub/sparc64/ieee1275/boot.h: Likewise.
20953 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20954 * include/grub/sparc64/kernel.h: Likewise.
20955 * include/grub/x86_64/efi/kernel.h: Likewise.
20956 * include/grub/x86_64/kernel.h: Likewise.
20957 * include/grub/offsets.h: New file.
20958 * include/grub/kernel.h (grub_module_info): Split into ...
20959 (grub_module_info32): ... this.
20960 (grub_module_info64): ... and this.
20961 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
20962 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
20963 (grub_boot_blocklist): Moved from here ...
20964 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
20965 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
20966 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
20967 * include/grub/types.h (grub_target_to_host16): Removed.
20968 (grub_target_to_host32): Likewise.
20969 (grub_target_to_host64): Likewise.
20970 (grub_host_to_target16): Likewise.
20971 (grub_host_to_target32): Likewise.
20972 (grub_host_to_target64): Likewise.
20973 (grub_host_to_target_addr): Likewise.
20974
20975 Support grub-mkrescue for efi, coreboot and qemu.
20976
20977 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
20978 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
20979 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
20980 * util/grub-mkrawimage.c: Moved from here ...
20981 * util/grub-mkimage.c: ... here. All users updated.
20982 (ALIGN_ADDR): Use image_target.
20983 (TARGET_NO_FIELD): New const.
20984 (image_target_desc): New type.
20985 (image_targets): New array.
20986 (grub_target_to_host64): Use image_target.
20987 (grub_target_to_host32): Likewise.
20988 (grub_target_to_host16): Likewise.
20989 (grub_host_to_target64): Likewise.
20990 (grub_host_to_target32): Likewise.
20991 (grub_host_to_target16): Likewise.
20992 (grub_host_to_target_addr): Likewise.
20993 (generate_image): Handle multiimage.
20994 (main): Require -O parameter. All users updated.
20995 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
20996 util/efi/grub-mkimage.c
20997 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
20998 New option --rom-directory.
20999 Use xorriso.
21000 * util/i386/efi/grub-mkimage.c: Removed.
21001 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21002 (grub_target_to_host32): Likewise.
21003 (grub_target_to_host64): Likewise.
21004 (grub_host_to_target16): Likewise.
21005 (grub_host_to_target32): Likewise.
21006 (grub_host_to_target64): Likewise.
21007 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21008 (grub_target_to_host32): Likewise.
21009 (grub_target_to_host64): Likewise.
21010 (grub_host_to_target16): Likewise.
21011 (grub_host_to_target32): Likewise.
21012 (grub_host_to_target64): Likewise.
21013
21014 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21015
21016 Source tree is reorganized for emu build.
21017
21018 * include/grub/util/console.h: Move from here...
21019 * include/grub/emu/console.h: ...to here.
21020 * include/grub/util/getroot.h: Move from here...
21021 * include/grub/emu/getroot.h: ...to here.
21022 * include/grub/util/hostdisk.h: Move from here...
21023 * include/grub/emu/hostdisk.h: ...to here.
21024 * util/console.c: Move from here...
21025 * kern/emu/console.c: ...to here.
21026 * util/getroot.c: Move from here...
21027 * kern/emu/getroot.c: ...to here.
21028 * util/grub-emu.c: Move from here...
21029 * kern/emu/main.c: ...to here.
21030 * util/hostdisk.c: Move from here...
21031 * kern/emu/hostdisk.c: ...to here.
21032 * util/hostfs.c: Move from here...
21033 * kern/emu/hostfs.c: ...to here.
21034 * util/mm.c: Move from here...
21035 * kern/emu/mm.c: ...to here.
21036 * util/pci.c: Move from here...
21037 * bus/emu/pci.c: ...to here.
21038 * util/sdl.c: Move from here...
21039 * video/emu/sdl.c: ...to here.
21040 * util/time.c: Move from here...
21041 * kern/emu/time.c: ...to here.
21042 * util/usb.c: Move from here...
21043 * bus/usb/emu/usb.c: ...to here.
21044
21045 * include/grub/emu/misc.h: New header for grub-emu functions.
21046 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21047
21048 * conf/any-emu.rmk: Rule updates for above renames.
21049 * conf/common.rmk: Likewise.
21050 * conf/i386-pc.rmk: Likewise.
21051 * conf/i386-qemu.rmk: Likewise.
21052 * conf/mips.rmk: Likewise.
21053 * conf/sparc64-ieee1275.rmk: Likewise.
21054 * conf/x86-efi.rmk: Likewise.
21055
21056 * disk/lvm.h: #include updates for above renames.
21057 * util/grub-mkrelpath.c: Likewise.
21058 * util/grub-probe.c: Likewise.
21059 * util/i386/pc/grub-setup.c: Likewise.
21060 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21061 * kern/emu/console.c: Likewise.
21062 * kern/emu/getroot.c: Likewise.
21063 * kern/emu/hostdisk.c: Likewise.
21064 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21065
21066 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21067 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21068 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21069 * util/misc.c: Remove grub-emu functions.
21070
21071 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21072
21073 Fix gfxmenu crash.
21074 Reported by: Thorsten Grützmacher.
21075
21076 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21077 timeout hook.
21078 (circprog_set_property): Register and unregister timeout hook.
21079 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21080 (label_destroy): Free template. and unregister hook.
21081 (label_set_state): New function.
21082 (label_set_property): Handle templates and hooks.
21083 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21084 timeout hook.
21085 (progress_bar_set_property): Register and unregister timeout hook.
21086 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21087 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21088 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21089 (update_timeout_visit): Removed.
21090 (update_timeouts): New function.
21091 (redraw_timeouts): Likewise.
21092 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21093 (grub_gfxmenu_clear_timeout): Likewise.
21094 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21095 (grub_gfxmenu_timeout_notify): Likewise.
21096 (grub_gfxmenu_timeout_notifications): New external variable.
21097 (grub_gfxmenu_timeout_register): New function.
21098 (grub_gfxmenu_timeout_unregister): Likewise.
21099
21100 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21101
21102 Transform (broken) vga terminal into (working) vga video driver.
21103
21104 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21105 video/i386/pc/vga.c.
21106 * include/grub/video.h (grub_video_driver_id):
21107 Add GRUB_VIDEO_DRIVER_VGA.
21108 * term/i386/pc/vga.c: Renamed to ...
21109 * video/i386/pc/vga.c: ...this
21110 (DEBUG_VGA): Removed.
21111 (CHAR_WIDTH): Likewise.
21112 (CHAR_HEIGHT): Likewise.
21113 (TEXT_WIDTH): Likewise.
21114 (TEXT_HEIGHT): Likewise.
21115 (DEFAULT_FG_COLOR): Likewise.
21116 (DEFAULT_BG_COLOR): Likewise.
21117 (colored_char): Likewise.
21118 (xpos): Likewise.
21119 (ypos): Likewise.
21120 (cursor_state): Likewise.
21121 (fg_color): Likewise.
21122 (bg_color): Likewise.
21123 (text_buf): Likewise.
21124 (page): Likewise.
21125 (font): Likewise.
21126 (framebuffer): New variable.
21127 (set_read_map): Disabled.
21128 (setup): New variable.
21129 (is_target): Likewise.
21130 (grub_vga_mod_init): Likewise.
21131 (grub_vga_mod_fini): Likewise.
21132 (check_vga_mem): Likewise.
21133 (write_char): Likewise.
21134 (write_cursor): Likewise.
21135 (scroll_up): Likewise.
21136 (grub_vga_putchar): Likewise.
21137 (grub_vga_getcharwidth): Likewise.
21138 (grub_vga_getwh): Likewise.
21139 (grub_vga_getxy): Likewise.
21140 (grub_vga_gotoxy): Likewise.
21141 (grub_vga_cls): Likewise.
21142 (grub_vga_setcolorstate): Likewise.
21143 (grub_vga_setcursor): Likewise.
21144 (grub_video_vga_init): New function.
21145 (grub_video_vga_setup): Likewise.
21146 (grub_video_vga_fini): Likewise.
21147 (update_target): Likewise.
21148 (grub_video_vga_blit_bitmap): Likewise.
21149 (grub_video_vga_blit_render_target): Likewise.
21150 (grub_video_vga_set_active_render_target): Likewise.
21151 (grub_video_vga_get_active_render_target): Likewise.
21152 (grub_video_vga_swap_buffers): Likewise.
21153 (grub_video_vga_set_palette): Likewise.
21154 (grub_video_vga_get_info_and_fini): Likewise.
21155 (grub_vga_term): Removed.
21156 (grub_video_vga_adapter): New variable.
21157 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21158 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21159
21160 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21161
21162 * video/readers/jpeg.c: Indented.
21163
21164 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21165
21166 Various jpeg cleanups.
21167
21168 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21169 (grub_jpeg_decode_quan_table): Use sizeof.
21170 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21171
21172 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21173
21174 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21175 tables. Ignore non-last ac bit.
21176 (grub_jpeg_decode_quan_table): Likewise.
21177
21178 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21179
21180 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21181 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21182 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21183 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21184 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21185 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21186
21187 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21188
21189 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21190 error.
21191
21192 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21193
21194 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21195
21196 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21197
21198 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21199 condition.
21200
21201 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21202
21203 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21204 part.
21205
21206 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21207
21208 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21209 pointers.
21210
21211 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21212
21213 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21214
21215 2010-05-01 Christian Franke <franke@computer.org>
21216
21217 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21218 Remove broken Cygwin path conversion.
21219 * util/misc.c: [__CYGWIN__] Add include and define.
21220 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21221 for Cygwin 1.7.
21222 (make_system_path_relative_to_its_root): Simplify loop, replace early
21223 return by break.
21224 [__CYGWIN__] Add conversion to win32 path.
21225 Include "/" case in trailing slash removal.
21226
21227 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21228
21229 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21230 Reported by: Seth Goldberg
21231
21232 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21233
21234 * commands/help.c (grub_cmd_help): Fix a typo.
21235 Reported by: Seth Goldberg
21236
21237 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21238
21239 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21240 name and add N_.
21241 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21242 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21243 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21244 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21245 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21246 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21247 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21248 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21249 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21250 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21251 * normal/context.c (GRUB_MOD_INIT): Likewise.
21252 * normal/main.c (GRUB_MOD_INIT): Likewise.
21253 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21254 * term/serial.c (GRUB_MOD_INIT): Likewise.
21255 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21256
21257 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21258
21259 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21260 extra == 0.
21261
21262 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21263
21264 * commands/iorw.c: New file.
21265 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21266 (iorw_mod_SOURCES): New variable.
21267 (iorw_mod_CFLAGS): Likewise.
21268 (iorw_mod_LDFLAGS): Likewise.
21269
21270 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21271
21272 Hotkey support
21273
21274 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21275 * normal/main.c (hotkey_aliases): New variable.
21276 (grub_normal_add_menu_entry): Parse "--hotkey".
21277 * normal/menu_text.c (run_menu): Handle hotkeys.
21278
21279 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21280
21281 * kern/i386/coreboot/init.c (grub_machine_init): Call
21282 grub_machine_mmap_init on qemu.
21283
21284 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21285
21286 * boot/i386/qemu/boot.S: Add a missing .code16.
21287
21288 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21289
21290 Use LBIO on coreboot.
21291
21292 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21293 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21294 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21295 New declaration.
21296 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21297 grub_machine_mmap_init on coreboot.
21298 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21299 GRUB_LINUXBIOS_MEMBER_LINK.
21300 (grub_machine_mmap_iterate): Fix declaration.
21301 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21302
21303 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21304
21305 Split coreboot and multiboot ports.
21306
21307 * conf/i386-multiboot.rmk: New file.
21308 * configure.ac: Add multiboot port.
21309 * include/grub/i386/multiboot/boot.h: New file.
21310 * include/grub/i386/multiboot/console.h: Likewise.
21311 * include/grub/i386/multiboot/init.h: Likewise.
21312 * include/grub/i386/multiboot/kernel.h: Likewise.
21313 * include/grub/i386/multiboot/loader.h: Likewise.
21314 * include/grub/i386/multiboot/memory.h: Likewise.
21315 * include/grub/i386/multiboot/serial.h: Likewise.
21316 * include/grub/i386/multiboot/time.h: Likewise.
21317 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21318 * loader/multiboot.c: Likewise.
21319 * loader/multiboot_mbi2.c: Likewise.
21320 * util/grub-mkrescue.in: Generate multiboot rescue.
21321
21322 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21323
21324 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21325
21326 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21327
21328 Merge handling of input and output terminals. Fix a hang.
21329
21330 * commands/terminal.c (abstract_terminal): New struct.
21331 (handle_command): New function. Based on grub_cmd_terminal_input.
21332 (grub_cmd_terminal_input): Use handle_command.
21333 (grub_cmd_terminal_output): Use handle_command.
21334
21335 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21336
21337 Fix comment handling.
21338
21339 * tests/grub_script_comments.in: New testcase.
21340 * conf/tests.rmk: Rules for new testcase.
21341 * script/yylex.l: Updated flex rules.
21342
21343 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21344
21345 * docs/grub.texi (play): Document that zero pitches produce rests.
21346 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21347 if argc is 1.
21348
21349 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21350
21351 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21352 autogen issues.
21353
21354 2010-04-26 Christian Franke <franke@computer.org>
21355
21356 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21357 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21358 (grub_get_prefix): Remove function.
21359 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21360 make_system_path_relative_to_its_root ().
21361 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21362
21363 2010-04-24 Christian Franke <franke@computer.org>
21364
21365 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21366 (kernel_img_LDFLAGS): Remove -static-libgcc.
21367
21368 2010-04-24 Christian Franke <franke@computer.org>
21369
21370 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21371 and CHECK_END_SYMBOL if grub-emu is built.
21372 Unset TARGET_OBJ2ELF if grub-emu is built
21373 without module support.
21374
21375 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21376
21377 Nilfs2 support.
21378
21379 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21380 (grub_fstest_SOURCES): Likewise.
21381 (pkglib_MODULES): Add nilfs2.mod.
21382 (nilfs2_mod_SOURCES): New variable.
21383 (nilfs2_mod_CFLAGS): Likewise.
21384 (nilfs2_mod_LDFLAGS): Likewise.
21385 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21386 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21387 * fs/nilfs2.c: New file.
21388
21389 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21390
21391 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21392 is not supported.
21393
21394 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21395
21396 Add grub-mkconfig support for NetBSD.
21397
21398 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21399 * util/grub-mkconfig.in: export new NetBSD specific variables.
21400 * po/POTFILES-shell: added 10_netbsd.in.
21401 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21402
21403 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21404
21405 Fix emu build with grub-emu-pci and grub-emu-modules.
21406
21407 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21408 functions.
21409 * include/grub/libpciaccess.h: New file.
21410 * conf/any-emu.rmk: Update kernel headers for emu build.
21411
21412 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21413
21414 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21415
21416 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21417
21418 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21419
21420 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21421
21422 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21423 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21424 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21425 util/ieee1275/ofpath.c.
21426 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21427 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21428 * include/grub/sparc64/ieee1275/boot.h
21429 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21430 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21431 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21432 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21433 const char *.
21434 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21435 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21436 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21437 install.
21438
21439 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21440
21441 * util/grub-mkconfig.in: Corrected two == equality tests.
21442 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21443 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21444 expect a number appended to it.
21445 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21446 expects a number appended to it.
21447
21448 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21449
21450 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21451
21452 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21453
21454 * util/hostdisk.c (make_device_name): Change to new partition naming.
21455
21456 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21459
21460 2010-04-17 Christian Franke <franke@computer.org>
21461
21462 * Makefile.in: Add missing localedir setting.
21463
21464 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21465
21466 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21467 mistake in r2156. Noticed by Anthony Fok.
21468
21469 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21470 @localedir@.
21471 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21472
21473 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21474
21475 Fix a spurious, uninitialized variable warning.
21476
21477 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21478 Initialize variable, shdr.
21479 (grub_freebsd_load_elfmodule): Likewise.
21480 (grub_freebsd_load_elf_meta): Likewise.
21481
21482 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21483
21484 Fix for escaped dollar in double quoted strings.
21485
21486 * script/yylex.l: Updated flex rules.
21487 * conf/tests.rmk: Rule for new testcase.
21488 * tests/grub_script_dollar.in: New testcase.
21489
21490 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21491 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21492
21493 Enclose all translated strings in grub.cfg in single quotes, and
21494 escape them appropriately (Ubuntu bug #552921).
21495
21496 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21497 * util/grub.d/10_hurd.in: Use it.
21498 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21499 * util/grub.d/10_linux.in (linux_entry): Likewise.
21500
21501 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21502
21503 Fix cygwin compilation.
21504
21505 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21506 * include/grub/misc.h (__register_frame_info)
21507 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21508 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21509 * kern/misc.c (__register_frame_info)
21510 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21511 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21512
21513 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21514
21515 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21516
21517 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21518
21519 Unify libgcc processing.
21520
21521 * Makefile.in (kernel_img_LDFLAGS): New variable.
21522 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21523 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21524 overwriting.
21525 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21526 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21527 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21528 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21529 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21530 overwriting. Remove -lgcc and -static-libgcc
21531 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21532 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21533 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21534 (kernel_img_LDFLAGS): Append instead of overwriting.
21535 Remove -lgcc and -static-libgcc
21536 * conf/sparc64-ieee1275.rmk: Likewise.
21537 * include/grub/powerpc/libgcc.h: Move to ...
21538 * include/grub/libgcc.h: .. this.
21539 * include/grub/libgcc.h: Don't export most of the function on x86.
21540 (__bswapsi2): New export.
21541 (__bswapdi2): Likewise.
21542 * include/grub/mips/libgcc.h: Removed.
21543 * include/grub/sparc64/libgcc.h: Likewise.
21544
21545 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21546
21547 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21548 disk_info_msg (conflicts with gettexting into languages with cases).
21549
21550 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21551
21552 Add grub-probe support for NetBSD.
21553
21554 * util/getroot.c (find_root_device): Convert block device to
21555 character device on NetBSD.
21556 * util/probe.c (probe): Require character device on NetBSD.
21557 * util/hostdisk.c: NetBSD specific headers.
21558 (configure_device_driver): new function to tune device driver
21559 parameters (currently only for NetBSD floppy driver).
21560 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21561 via disklabel ioctl).
21562 (open_device): call configure_device_driver on NetBSD.
21563 (convert_system_partition_to_system_disk): NetBSD specific code.
21564 (device_is_wholedisk): Likewise.
21565 (grub_util_biosdisk_get_grub_dev): Likewise.
21566 (make_device_name): Fixed a typo in bsd_part_str.
21567 * configure.ac: check for opendisk() and getrawpartition() on
21568 NetBSD and set LIBUTIL.
21569 * Makefile.in: add LIBUTIL to LIBS.
21570
21571 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21572
21573 Documentation fix.
21574
21575 * util/grub-script-check.c: Better help message.
21576
21577 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21578
21579 Fix FreeBSD build.
21580
21581 * configure.ac: Flex version check.
21582 * conf/common.rmk: Add -Wno-error to sh.mod.
21583 * script/yylex.l: Remove all #pragma.
21584
21585 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21586
21587 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21588 prototype.
21589 Reported by: Seth Goldberg.
21590
21591 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21592
21593 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21594 Rename "module" to "module2".
21595 Reported by: Seth Goldberg.
21596
21597 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21598
21599 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21600 EXPORT_FUNC.
21601 Reported by: Seth Goldberg.
21602
21603 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21604
21605 * lib/posix_wrap/locale.h: Add missing file.
21606 Reported by: Seth Goldberg.
21607
21608 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21609
21610 grub-emu module load support.
21611
21612 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21613 NO_DYNAMIC_MODULES switched to this.
21614 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21615 (CFLAGS): Likewise.
21616 * conf/any-emu.rmk: Generate symlist.
21617 (kernel_img_HEADERS): Add util/datetime.h.
21618 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21619 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21620 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21621 kern/$(target_cpu)/cache.S.
21622 * configure.ac (grub-emu-modules): New option.
21623 * genmk.rb: Handle multiple source lists.
21624 * include/grub/sdl.h: New file.
21625 * include/grub/libusb.h: Likewise.
21626 * util/grub-emu.c (main): Hanle (host) root.
21627 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21628 GRUB_ERR_UNKNOWN_DEVICE.
21629 * util/misc.c: Move mm functions to ...
21630 * util/mm.c: ... here. All users updated.
21631
21632 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21633
21634 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21635 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21636 missing files.
21637 (maintainer-clean): Remove libgcrypt-grub.
21638
21639 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21640
21641 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21642
21643 2010-04-09 EFI Coder <eficoder@hotmail.com>
21644
21645 * normal/menu_text.c (print_message): Clean up the message and show
21646 the Fn information when on EFI
21647 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21648
21649 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21650
21651 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21652 All users updated.
21653 * normal/crypto.c (read_crypto_list): Likewise.
21654 * normal/dyncmd.c (read_command_list): Likewise.
21655 * normal/term.c (read_terminal_list): Likewise.
21656 * normal/main.c (read_lists): Use explicit prefix.
21657 (read_lists_hook): Use read_lists.
21658 (grub_normal_execute): Likewise.
21659
21660 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21661
21662 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21663 Reported by: Thomas Schmitt.
21664 Add -no-emul-boot to grub-mkisofs parameters.
21665
21666 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21667
21668 * font/font.c: Indented.
21669
21670 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21671
21672 Elif support to GRUB script (by Deepak Vankadaru).
21673
21674 * tests/grub_script_if.in: New testcase.
21675 * conf/tests.rmk: Rule for new testcase.
21676 * script/parser.y: Grammar rules for elif.
21677
21678 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21679
21680 While and until loops support to GRUB script.
21681
21682 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21683 (grub_script_create_cmdwhile): New function prototype.
21684 (grub_script_execute_cmdwhile): New function prototype.
21685 * script/execute.c (grub_script_execute_cmdwhile): New function.
21686 * script/parser.y (command): New commands.
21687 (whilecmd): New grammar rule.
21688 (untilcmd): New grammar rule.
21689 * script/script.c (grub_script_create_cmdwhile): New function.
21690 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21691 function.
21692
21693 * tests/grub_script_while1.in: New testcase.
21694 * conf/tests.rmk: Rule for new testcase.
21695
21696 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21697
21698 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21699 as *.jpg.
21700
21701 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21702
21703 GRUB_BACKGROUND support.
21704
21705 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21706 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21707
21708 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21709
21710 Load fonts and modules for gfxmenu in grub-mkconfig.
21711 Idea by: Mario Vazquez
21712
21713 * util/grub.d/00_header.in: Load pf2 and image modules.
21714
21715 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21716
21717 grub-mkconfig multiple terminal support.
21718
21719 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21720 * util/grub.d/00_header.in: Likewise.
21721
21722 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21723
21724 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21725 we use cd $(srcdir).
21726
21727 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21728
21729 * util/grub.d/10_linux.in: Only use the first word of
21730 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21731 spaces in GRUB_DISTRIBUTOR.
21732 * util/grub.d/10_kfreebsd.in: Likewise.
21733 * util/grub.d/10_hurd.in: Likewise.
21734
21735 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21736
21737 Fix unit testing framework for Qemu 0.12.
21738
21739 * tests/util/grub-shell.in: Remove -serial stdio option.
21740
21741 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21742
21743 POSIX header file wrappers.
21744
21745 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21746 equivalents.
21747 * lib/posix_wrap/ctype.h: Likewise.
21748 * lib/posix_wrap/errno.h: Likewise.
21749 * lib/posix_wrap/langinfo.h: Likewise.
21750 * lib/posix_wrap/limits.h: Likewise.
21751 * lib/posix_wrap/localcharset.h: Likewise.
21752 * lib/posix_wrap/stdint.h: Likewise.
21753 * lib/posix_wrap/stdio.h: Likewise.
21754 * lib/posix_wrap/stdlib.h: Likewise.
21755 * lib/posix_wrap/string.h: Likewise.
21756 * lib/posix_wrap/sys/types.h: Likewise.
21757 * lib/posix_wrap/unistd.h: Likewise.
21758 * lib/posix_wrap/wchar.h: Likewise.
21759 * lib/posix_wrap/wctype.h: Likewise.
21760 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21761 (grub_script.yy.h): Likewise.
21762 * script/yylex.l: Remove POSIX emulation #defines.
21763 * Makefile.in (POSIX_CFLAGS): New variable.
21764 (GNULIB_UTIL_CFLAGS): Likewise.
21765
21766 Regexp support.
21767
21768 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
21769 (regexp_mod_SOURCES): New variable.
21770 (regexp_mod_CFLAGS): Likewise.
21771 (regexp_mod_LDFLAGS): Likewise.
21772 * commands/regexp.c: New file.
21773 * gnulib/regcomp.c: New file. Imported from gnulib.
21774 * gnulib/regex.c: Likewise.
21775 * gnulib/regex_internal.c: Likewise.
21776 * gnulib/regex_internal.h: Likewise.
21777 * gnulib/regexec.c: Likewise.
21778 * gnulib/regex.h: Likewise.
21779
21780 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21781
21782 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
21783 unsupported video mode types.
21784
21785 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21786
21787 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
21788
21789 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21790
21791 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
21792 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
21793
21794 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21795
21796 Remove unused grub_vga_get_font.
21797
21798 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
21799 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
21800
21801 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21802
21803 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
21804 * include/grub/misc.h: Likewise.
21805
21806 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21807
21808 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
21809 for which failure is fatal.
21810
21811 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21812
21813 * util/grub-install.in: Use mkdir -p to create grub directory.
21814 * util/i386/efi/grub-install.in: Likewise.
21815 * util/ieee1275/grub-install.in: Likewise.
21816
21817 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21818
21819 * Makefile.in (LEX): new variable.
21820
21821 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21822
21823 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
21824 `=' and added double quotes on operands of this equality test.
21825
21826 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21827
21828 * Makefile.in (uninstall): Remove a leftover debug echo.
21829 Reported by: Grégoire Sutre
21830
21831 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21832
21833 MIPS multiboot2 support.
21834
21835 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
21836 (multiboot2_mod_SOURCES): New variable.
21837 (multiboot2_mod_CFLAGS): Likewise.
21838 (multiboot2_mod_LDFLAGS): Likewise.
21839 (multiboot2_mod_ASFLAGS): Likewise.
21840 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
21841 definition.
21842 (MULTIBOOT_ENTRY_REGISTER): Likewise.
21843 (MULTIBOOT_MBI_REGISTER): Likewise.
21844 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
21845 (MULTIBOOT_ELF32_MACHINE): Likewise.
21846 (MULTIBOOT_ELF64_MACHINE): Likewise.
21847 * include/grub/mips/multiboot.h: New file.
21848 * include/grub/video.h (grub_video_driver_id): New type
21849 GRUB_VIDEO_DRIVER_SM712.
21850 (grub_video_get_info_and_fini): Export.
21851 (grub_video_get_palette): Likewise.
21852 (grub_video_get_driver_id): Likewise.
21853 * include/multiboot2.h: Resynced with spec.
21854 * loader/i386/multiboot.c: Moved from here ...
21855 * loader/multiboot.c: ... here. All users updated.
21856 (grub_multiboot_boot): Use platform-specific macros.
21857 * loader/i386/multiboot_elfxx.c: Moved from here ...
21858 * loader/multiboot_elfxx.c: ... here. All users updated.
21859 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
21860 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
21861 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
21862
21863 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
21864
21865 Import gnulib argp module.
21866
21867 * gnulib/argp-ba.c: New file.
21868 * gnulib/argp-eexst.c: Likewise.
21869 * gnulib/argp-fmtstream.c: Likewise.
21870 * gnulib/argp-fmtstream.h: Likewise.
21871 * gnulib/argp-fs-xinl.c: Likewise.
21872 * gnulib/argp-help.c: Likewise.
21873 * gnulib/argp-namefrob.h: Likewise.
21874 * gnulib/argp-parse.c: Likewise.
21875 * gnulib/argp-pin.c: Likewise.
21876 * gnulib/argp-pv.c: Likewise.
21877 * gnulib/argp-pvh.c: Likewise.
21878 * gnulib/argp-version-etc.c: Likewise.
21879 * gnulib/argp-version-etc.h: Likewise.
21880 * gnulib/argp-xinl.c: Likewise.
21881 * gnulib/argp.h: Likewise.
21882
21883 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21884
21885 * kern/device.c (grub_device_iterate): Clear errors after failed
21886 opening device.
21887
21888 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21889
21890 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
21891 returned by firmware.
21892
21893 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
21894
21895 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
21896 compilation on coreboot and qemu
21897
21898 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21899
21900 * include/multiboot2.h: Resync with spec.
21901
21902 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21903
21904 Multiboot2 tag support
21905
21906 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
21907 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
21908 Remove loader/multiboot_loader.c.
21909 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
21910 (grub_multiboot2_real_boot): Likewise.
21911 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
21912 (grub_get_multiboot_mmap_count): New proto.
21913 (grub_fill_multiboot_mmap): Likewise.
21914 (grub_multiboot_set_video_mode): Likewise.
21915 (grub_multiboot_set_console): Likewise.
21916 (grub_multiboot_load): Likewise.
21917 (grub_multiboot_load_elf): Likewise.
21918 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
21919 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
21920 * include/multiboot.h: Resynced with specification.
21921 * include/multiboot2.h: Resynced with specification.
21922 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
21923 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
21924 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
21925 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
21926 users updated.
21927 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
21928 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
21929 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
21930 Removed.
21931 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
21932 Moved from here...
21933 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
21934 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21935 Moved from here...
21936 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
21937 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
21938 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
21939 All users updated.
21940 * loader/i386/multiboot_mbi2.c: New file.
21941
21942 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21943
21944 Resync with gnulib.
21945
21946 * Makefile.in (GNULIB_CFLAGS): New variable.
21947 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
21948 (grub_script_check_CFLAGS): New variable.
21949 * gnulib/alloca.h: Resync with gnulib.
21950 * gnulib/error.c: Likewise.
21951 * gnulib/error.h: Likewise.
21952 * gnulib/fnmatch.c: Likewise.
21953 * gnulib/fnmatch_loop.c: Likewise.
21954 * gnulib/getdelim.c: Likewise.
21955 * gnulib/getline.c: Likewise.
21956 * gnulib/getopt.c: Likewise.
21957 * gnulib/getopt1.c: Likewise.
21958 * gnulib/getopt_int.h: Likewise.
21959 * gnulib/gettext.h: Likewise.
21960 * gnulib/progname.c: Likewise.
21961 * gnulib/progname.h: Likewise.
21962
21963 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
21964
21965 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
21966 which is the case with --disabled-nls.
21967
21968 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
21969 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
21970 * util/misc.c: Likewise.
21971 * util/mkisofs/mkisofs.c: Likewise.
21972 * util/mkisofs/mkisofs.h: Likewise.
21973
21974 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21975
21976 Simplify Apple CC support.
21977
21978 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
21979 Add 0 byte at the end not to have a symbol with empty target.
21980 * mmap/i386/pc/mmap_helper.S: Likewise.
21981 * genmk.rb: Ignore errors 2030 and 2050.
21982 * kern/i386/pc/startup.S: Use LOCAL when possible.
21983
21984 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
21985
21986 Testcase and the fix for final semicolon on cmdline.
21987
21988 * tests/grub_script_final_semicolon.in: New testcase.
21989 * conf/tests.rmk: Rules for the new testcase.
21990 * script/parser.y: Grammar fix.
21991
21992 2010-03-26 BVK Chaitanya <bvk@localhost>
21993
21994 Blank lines testcase for GRUB script.
21995
21996 * tests/grub_script_blanklines.in: New testcase.
21997 * conf/tests.rmk: Rules for the new testcase.
21998
21999 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22000
22001 Don't use __FILE__.
22002
22003 * genmk.rb: Add -DGRUB_FILE to all C targets.
22004 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22005 * include/grub/list.h: Likewise.
22006 * include/grub/misc.h: Likewise.
22007 * include/grub/mm.h: Likewise.
22008 * include/grub/test.h: Likewise.
22009 * kern/mm.c: Likewise.
22010 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22011
22012 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22013
22014 Sunpc partitions support.
22015
22016 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22017 (grub_fstest_SOURCES): Likewise.
22018 (pkglib_MODULES): Add part_sunpc.mod.
22019 (part_sunpc_mod_SOURCES): New variable.
22020 (part_sunpc_mod_CFLAGS): Likewise.
22021 (part_sunpc_mod_LDFLAGS): Likewise.
22022 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22023 * partmap/sunpc.c: New file.
22024
22025 2010-03-26 BVK Chaitanya <bvk@localhost>
22026
22027 For loop support to GRUB script.
22028
22029 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22030 (grub_script_create_cmdfor): New function prototype.
22031 (grub_script_execute_cmdfor): New function prototype.
22032 * script/execute.c (grub_script_execute_cmdfor): New function.
22033 * script/parser.y (command): New for command.
22034 (forcmd): New grammar rule.
22035 * script/script.c (grub_script_create_cmdfor): New function.
22036 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22037 function.
22038 * tests/grub_script_for1.in: New testcase.
22039 * conf/tests.rmk: Rules for new testcase.
22040
22041 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22042
22043 Nested partitions
22044
22045 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22046 'partition' is NULL, grub_partition_get_start already does that.
22047 * commands/loadenv.c (check_blocklists): Likewise.
22048 (write_blocklists): Likewise.
22049 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22050 (grub_fstest_SOURCES): Likewise.
22051 (pkglib_MODULES): Add part_bsd.mod.
22052 (part_bsd_mod_SOURCES): New variable.
22053 (part_bsd_mod_CFLAGS): Likewise.
22054 (part_bsd_mod_LDFLAGS): Likewise.
22055 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22056 (grub_emu_SOURCES): Likewise.
22057 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22058 * include/grub/bsdlabel.h: New file.
22059 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22060 'get_name'.
22061 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22062 (grub_partition_map_list): New variable.
22063 (grub_partition_map_register): Inline.
22064 (grub_partition_map_unregister): Likewise.
22065 (FOR_PARTITION_MAPS): New macro.
22066 (grub_partition_map_iterate): Removed.
22067 (grub_partition_get_start): Handle nested partitions.
22068 * include/grub/msdos_partition.h: Remove bsd-related entries.
22069 (grub_pc_partition): Remove.
22070 * kern/disk.c (grub_disk_close): Free partition data.
22071 (grub_disk_adjust_range): Handle nested partitions.
22072 * kern/partition.c (grub_partition_map_probe): New function.
22073 (grub_partition_probe): Parse name to number, handle subpartitions.
22074 (get_partmap): New function.
22075 (grub_partition_iterate): Handle subpartitions.
22076 (grub_partition_get_name): Likewise.
22077 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22078 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22079 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22080 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22081 Set 'number'.
22082 (acorn_partition_map_probe): Remove.
22083 (acorn_partition_map_get_name): Likewise.
22084 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22085 Set 'number'.
22086 Set 'index' to 0 since there can be only one partition entry per sector.
22087 (amiga_partition_map_probe): Remove.
22088 (amiga_partition_map_get_name): Likewise.
22089 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22090 Set 'number'.
22091 Set 'offset' and 'index' to real positions of partitions.
22092 (apple_partition_map_probe): Remove.
22093 (apple_partition_map_get_name): Likewise.
22094 * partmap/bsdlabel.c: New file.
22095 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22096 Set 'number'.
22097 Allocate 'data' so it can be correctly freed.
22098 Set 'index' to offset inside sector.
22099 (gpt_partition_map_probe): Remove.
22100 (gpt_partition_map_get_name): Likewise.
22101 * partmap/msdos.c (grub_partition_parse): Remove.
22102 (pc_partition_map_iterate): Don't force raw access.
22103 Set 'number'.
22104 Make 'ext_offset' a local variable.
22105 (pc_partition_map_probe): Remove.
22106 (pc_partition_map_get_name): Remove.
22107 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22108 Set 'number'.
22109 (sun_partition_map_probe): Remove.
22110 (sun_partition_map_get_name): Likewise.
22111 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22112 (grub_pcpart_type): Likewise.
22113 * util/hostdisk.c (open_device): Handle new numbering scheme.
22114 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22115 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22116 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22117 * util/grub-install.in: Insert all subpartition modules.
22118 * util/ieee1275/grub-install.in: Likewise.
22119
22120 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22121
22122 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22123 grammar.
22124
22125 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22126
22127 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22128
22129 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22130
22131 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22132 match where 'make install' puts them.
22133 * util/i386/efi/grub-install.in: Likewise.
22134
22135 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22136
22137 * .bzrignore: Add gentrigtables, grub-script-check,
22138 grub_script_check_init.c, grub_script_check_init.h, and
22139 trigtables.c.
22140
22141 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22142
22143 * kern/parser.c: Indented.
22144
22145 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22146
22147 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22148
22149 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22150
22151 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22152 alpha_mask_size == 0 case.
22153
22154 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22155
22156 GRUB shell lexer and parser improvements.
22157
22158 * conf/any-emu.rmk: Build rule updates.
22159 * conf/common.rmk: Likewise.
22160 * conf/i386-coreboot.rmk: Likewise.
22161 * conf/i386-efi.rmk: Likewise.
22162 * conf/i386-ieee1275.rmk: Likewise.
22163 * conf/i386-pc.rmk: Likewise.
22164 * conf/powerpc-ieee1275.rmk: Likewise.
22165 * conf/x86_64-efi.rmk: Likewise.
22166
22167 * configure.ac: Configure check for flex.
22168
22169 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22170 types.
22171 (grub_lexer_param): Struct member updates.
22172 (grub_parser_param): Likewise.
22173 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22174 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22175 (grub_script_lexer_init): Prototype update.
22176 (grub_script_lexer_record_start): Likewise.
22177 (grub_script_lexer_record_stop): Likewise.
22178 (grub_script_lexer_yywrap): New function prototype.
22179 (grub_script_lexer_fini): Likewise.
22180 (grub_script_execute_argument_to_string): Removed by...
22181 (grub_script_execute_argument_to_argv): ...better version.
22182
22183 * script/execute.c (ROUND_UPTO): New macro.
22184 (grub_script_execute_cmdline): Out of memory fixes.
22185 (grub_script_execute_menuentry): Likewise.
22186 (grub_script_execute_argument_to_string): Removed. Update all
22187 users by...
22188 (grub_script_execute_argument_to_argv): ...better version.
22189 * script/function.c (grub_script_function_create): Use
22190 grub_script_execute_argument_to_argv instead of
22191 grub_script_execute_argument_to_string.
22192
22193 * script/lexer.c (check_varstate): Removed.
22194 (check_textstate): Removed.
22195 (grub_script_lexer_record_start): Likewise.
22196 (grub_script_lexer_record_stop): Likewise.
22197 (recordchar): Replaced with...
22198 (grub_script_lexer_record): ...new function.
22199 (nextchar): Removed.
22200 (grub_script_lexer_init): Rewritten.
22201 (grub_script_yylex): Rewritten.
22202 (append_newline): New function.
22203 (grub_script_lexer_yywrap): New function.
22204 (grub_script_lexer_fini): New function.
22205 (grub_script_yyerror): Sets error flag.
22206
22207 * script/yylex.l: New file.
22208 (grub_lexer_yyfree): Wrapper for flex yyffre.
22209 (grub_lexer_yyalloc): Likewise.
22210 (grub_lexer_yyrealloc): Likewise.
22211 * script/parser.y: Refactored.
22212
22213 * script/script.c (grub_script_arg_add): Out of memory fixes.
22214 (grub_script_add_arglist): Likewise.
22215 (grub_script_create_cmdline): Likewise.
22216 (grub_script_create_cmdmenu): Likewise.
22217 (grub_script_add_cmd): Likewise.
22218 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22219 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22220 unnecessary code.
22221
22222 * tests/grub_script_echo1.in: New testcase.
22223 * tests/grub_script_vars1.in: New testcase.
22224 * tests/grub_script_echo_keywords.in: New testcase.
22225
22226 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22227
22228 Remove some redundancy in build system.
22229
22230 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22231 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22232 (TARGET_LDFLAGS): Add -nostdlib.
22233 (TARGET_IMG_LDFLAGS): Likewise.
22234 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22235 anything since mmap isn't available.
22236 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22237 Add util/time.c.
22238 (pkglib_MODULES): Remove reboot.mod.
22239 (reboot_mod_SOURCES): Removed.
22240 (reboot_mod_CFLAGS): Likewise.
22241 (reboot_mod_LDFLAGS): Likewise.
22242 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22243 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22244 (DEFSYMFILES): Add kernel_syms.lst.
22245 (kernel_img_HEADERS): Add common headers.
22246 (symlist.c): New target.
22247 (kernel_syms.lst): Likewise.
22248 (pkglib_MODULES): Add memdisk.mod.
22249 (memdisk_mod_SOURCES): New variable.
22250 (memdisk_mod_CFLAGS): Likewise.
22251 (memdisk_mod_LDFLAGS): Likewise.
22252 (pkglib_MODULES): Add reboot.mod.
22253 (reboot_mod_SOURCES): New variable.
22254 (reboot_mod_CFLAGS): Likewise.
22255 (reboot_mod_LDFLAGS): Likewise.
22256 (pkglib_MODULES): Add date.mod.
22257 (date_mod_SOURCES): New variable.
22258 (date_mod_CFLAGS): Likewise.
22259 (date_mod_LDFLAGS): Likewise.
22260 (pkglib_MODULES): Add datehook.mod.
22261 (datehook_mod_SOURCES): New variable.
22262 (datehook_mod_CFLAGS): Likewise.
22263 (datehook_mod_LDFLAGS): Likewise.
22264 (pkglib_MODULES): Add lsmmap.mod.
22265 (lsmmap_mod_SOURCES): New variable.
22266 (lsmmap_mod_CFLAGS): Likewise.
22267 (lsmmap_mod_LDFLAGS): Likewise.
22268 (pkglib_MODULES): Add boot.mod.
22269 (boot_mod_SOURCES): New variable.
22270 (boot_mod_CFLAGS): Likewise.
22271 (boot_mod_LDFLAGS): Likewise.
22272 * conf/i386-coreboot.rmk: Removed redundant parts.
22273 * conf/i386-ieee1275.rmk: Likewise.
22274 * conf/i386-pc.rmk: Likewise.
22275 * conf/mips-yeeloong.rmk: Likewise.
22276 * conf/mips.rmk: Likewise.
22277 * conf/powerpc-ieee1275.rmk: Likewise.
22278 * conf/sparc64-ieee1275.rmk: Likewise.
22279 * conf/x86_64-efi.rmk: Likewise.
22280 * conf/i386-coreboot.rmk: Moved qemu parts ..
22281 * conf/i386-qemu.rmk: ... here
22282 * conf/i386-efi.rmk: Moved common parts to...
22283 * conf/x86-efi.rmk: ... here.
22284 * conf/i386.rmk: Added modules common to all x86 variants.
22285 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22286 * disk/memdisk.c: Remove grub/machine/kernel.h.
22287 * gensymlist.sh.in: Include symbol.h.
22288 * hook/datehook.c: Correct module name.
22289 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22290 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22291 * include/grub/i386/efi/serial.h: New file.
22292 * include/grub/x86_64/efi/serial.h: Likewise.
22293 * util/time.c: Likewise.
22294 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22295
22296 2010-03-14 Colin King <colin.king@ubuntu.com>
22297 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22298
22299 Shrink the pre-partition-table part of boot.img by eight bytes.
22300
22301 * boot/i386/pc/boot.S (ERR): New macro.
22302 (chs_mode): Use ERR.
22303 (geometry_error): Likewise.
22304 (hd_probe_error): Remove. This is only used once, so we wrwite
22305 it inline instead.
22306 (read_error): Instead of printing read_error_string, just set up
22307 %si and fall through to ...
22308 (error_message): ... this new function, also used by ERR.
22309
22310 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22311
22312 Speed up consecutive hostdisk operations on the same device.
22313
22314 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22315 (grub_util_biosdisk_open): Initialise disk->data.
22316 (struct linux_partition_cache): New structure.
22317 (linux_find_partition): Cache partition start positions; these are
22318 expensive to compute on every read and write.
22319 (open_device): Cache open file descriptor in disk->data, so that we
22320 don't have to reopen it and flush the buffer cache for consecutive
22321 operations on the same device.
22322 (grub_util_biosdisk_close): New function.
22323 (grub_util_biosdisk_dev): Set `close' member.
22324
22325 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22326 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22327 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22328 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22329 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22330
22331 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22332
22333 Compile parts of grub-emu as modules.
22334
22335 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22336 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22337 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22338 (all-local): Add $(GRUB_EMU).
22339 (install-local): Install $(GRUB_EMU).
22340 (uninstall): Uninstall $(GRUB_EMU).
22341 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22342 * kern/dl.c: Likewise.
22343 * commands/sleep.c: Not include machine/time.h.
22344 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22345 (COMMON_CFLAGS): Likewise.
22346 (sbin_UTILITIES): Remove grub-emu.
22347 (grub_emu_SOURCES): Removed.
22348 (kernel_img_RELOCATABLE): New variable.
22349 (pkglib_PROGRAMS): Add kernel.img.
22350 (kernel_img_SOURCES): New variable
22351 (kernel_img_CFLAGS): Likewise.
22352 (kernel_img_LDFLAGS): Likewise.
22353 (TARGET_NO_STRIP): Likewise.
22354 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22355 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22356 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22357 (grub-emu): New target.
22358 (GRUB_EMU): New variable.
22359 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22360 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22361 * loader/xnu.c: Likewise.
22362 * include/grub/pci.h: Likewise.
22363 * genemuinit.sh: New file.
22364 * genemuinitheader.sh: Likewise.
22365 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22366 Support TARGET_NO_DYNAMIC_MODULES.
22367 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22368 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22369 * disk/loopback.c: Likewise.
22370 * font/font_cmd.c: Likewise.
22371 * partmap/acorn.c: Likewise.
22372 * partmap/amiga.c: Likewise.
22373 * partmap/apple.c: Likewise.
22374 * partmap/gpt.c: Likewise.
22375 * partmap/msdos.c: Likewise.
22376 * partmap/sun.c: Likewise.
22377 * parttool/msdospart.c: Likewise.
22378 * term/gfxterm.c: Likewise.
22379 * video/bitmap.c: Likewise.
22380 * video/readers/jpeg.c: Likewise.
22381 * video/readers/png.c: Likewise.
22382 * video/readers/tga.c: Likewise.
22383 * video/video.c: Likewise.
22384 * util/grub-emu.c (read_command_list): Removed.
22385 (main): Don't call util_init_nls.
22386 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22387 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22388
22389 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22390
22391 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22392 date.mod, datehook.mod.
22393 (datetime_mod_SOURCES): New variable.
22394 (datetime_mod_CFLAGS): Likewise.
22395 (datetime_mod_LDFLAGS): Likewise.
22396 (date_mod_SOURCES): Likewise.
22397 (date_mod_CFLAGS): Likewise.
22398 (date_mod_LDFLAGS): Likewise.
22399 (datehook_mod_SOURCES): Likewise.
22400 (datehook_mod_CFLAGS): Likewise.
22401 (datehook_mod_LDFLAGS): Likewise.
22402 * conf/sparc64-ieee1275.rmk: Likewise.
22403 * lib/ieee1275/datetime.c: New file.
22404
22405 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22406
22407 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22408 (ieee1275_fb_mod_SOURCES): New variable.
22409 (ieee1275_fb_mod_CFLAGS): Likewise.
22410 (ieee1275_fb_mod_LDFLAGS): Likewise.
22411 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22412 New proto.
22413 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22414 (HEAP_MAX_ADDR): Likewise.
22415 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22416 type.
22417 Correct stop condition.
22418 (grub_ieee1275_devices_iterate): New function.
22419 * video/ieee1275.c: New file.
22420
22421 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22422
22423 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22424
22425 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22426 as scratch.
22427 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22428 SCRATCH_PAD_DISKBOOT as scratch.
22429 (bootit): Pass Openfirmware pointer in %o4.
22430 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22431 of 0x200000.
22432 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22433 with util/grub-mkrawimage.c.
22434 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22435 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22436 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22437 (grub_aout_load) [GRUB_UTIL]: Likewise.
22438 * include/grub/kernel.h (grub_modules_get_end): New proto.
22439 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22440 (SCRATCH_PAD_BOOT): New definition.
22441 (SCRATCH_PAD_DISKBOOT): Likewise.
22442 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22443 * include/grub/sparc64/ieee1275/ieee1275.h
22444 (grub_ieee1275_original_stack): New variable
22445 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22446 New definition
22447 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22448 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22449 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22450 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22451 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22452 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22453 (grub_platform_image_format_t): New type.
22454 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22455 * kern/main.c (grub_modules_get_end)
22456 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22457 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22458 (codestart): Switch stacks.
22459 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22460 variable.
22461 (grub_heap_init): Use grub_modules_get_end.
22462 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22463 stack.
22464 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22465 (main): Likewise.
22466 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22467
22468 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22469
22470 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22471
22472 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22473
22474 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22475 bug #559005).
22476
22477 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22478
22479 * genmoddep.awk: Output all missing symbols and not only first.
22480
22481 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22482
22483 * NEWS: Put the date of 1.98 release.
22484
22485 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22486
22487 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22488 ft2build.h.
22489
22490 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22491
22492 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22493 completition in the middle of string.
22494
22495 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22496
22497 * util/grub-mkrescue.in: Use mktemp with explicit template.
22498
22499 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22500
22501 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22502
22503 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22504
22505 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22506 right pointer.
22507
22508 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22509
22510 Fix FreeBSD compilation.
22511
22512 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22513 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22514
22515 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22516
22517 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22518
22519 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22520
22521 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22522
22523 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22524
22525 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22526
22527 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22528
22529 Support relative image path in theme file.
22530
22531 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22532 (image_set_property): Handle theme_dir and relative path.
22533
22534 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22535
22536 * configure.ac: Alias amd64 to x86_64.
22537
22538 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22539
22540 * NEWS: mention multiboot on EFI.
22541
22542 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22543
22544 * kern/main.c (grub_load_modules): Handle errors from init functions of
22545 embeded modules.
22546
22547 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22548
22549 * normal/autofs.c (autoload_fs_module): Handle errors.
22550
22551 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22552
22553 Disable linux.mod on qemu-mips since it's not functional and leads
22554 to compilation failure.
22555
22556 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22557 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22558 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22559 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22560 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22561 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22562 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22563 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22564 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22565 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22566 Reported by: BVK Chaitanya
22567
22568 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22569
22570 * INSTALL: Add gettext as a dependency and add qemu to a new section
22571 "Prerequisites for make-check".
22572
22573 2010-03-04 Christian Franke <franke@computer.org>
22574
22575 * util/grub-pe2elf.c: Add missing include "progname.h".
22576
22577 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22578
22579 * normal/crypto.c (read_crypto_list): Fix a typo.
22580 Reported by: Seth Goldberg.
22581
22582 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22583
22584 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22585 Reported by: Seth Goldberg.
22586
22587 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22588
22589 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22590 ascii.bitmaps.
22591
22592 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22593
22594 * genmk.rb: Remove terminal*.lst in make clean.
22595 Reported by: Seth Goldberg.
22596
22597 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22598
22599 * util/i386/efi/grub-install.in: Copy gettext files.
22600
22601 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22602
22603 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22604
22605 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22606
22607 Wait for user entry basing on presence of output rather than on errors.
22608
22609 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22610 (grub_install_newline_hook): Likewise.
22611 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22612 * normal/menu.c (show_menu): Check line_counter to determine presence
22613 of output.
22614 * normal/term.c (grub_normal_line_counter): New variable.
22615 (grub_normal_get_line_counter): New function.
22616 (grub_install_newline_hook): Likewise.
22617
22618 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22619
22620 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22621
22622 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22623
22624 * configure.ac: Update version to 1.98.
22625
22626 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22627
22628 * util/grub.d/10_linux.in (linux_entry): Don't default to
22629 gfxpayload=keep if Linux doesn't support video handover.
22630
22631 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22632
22633 Don't compile video modules on yeeloong since video subsystem is part
22634 of kernel.
22635
22636 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22637 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22638 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22639 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22640 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22641 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22642 * include/grub/bitmap_scale.h: Likewise.
22643 * include/grub/bufio.h: Likewise.
22644 * include/grub/font.h: Likewise.
22645 * include/grub/gfxterm.h: Likewise.
22646 * include/grub/video.h: Likewise.
22647 * include/grub/vbe.h: Don't include video_fb.h.
22648 * video/i386/pc/vbe.c: Include video_fb.h.
22649 * commands/i386/pc/vbetest.c: Include video.h.
22650
22651 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22652
22653 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22654 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22655 default entry if GRUB_SAVEDEFAULT=true. This allows using
22656 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22657 saving a new default on every boot.
22658
22659 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22660
22661 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22662 * normal/term.c (read_terminal_list): Likewise.
22663 * normal/main.c (grub_normal_init_page): Likewise.
22664 (grub_normal_read_line_real): Likewise.
22665
22666 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22667
22668 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22669 memory leak.
22670 Reported by: Seth Goldberg.
22671
22672 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22673
22674 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22675 duplicate declaration of `start'.
22676
22677 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22678
22679 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22680 filename.
22681 Reported by: Georgy Buranov
22682
22683 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22684
22685 * util/grub-mkrawimage.c (usage): Change string formatting to
22686 improve gettext.
22687
22688 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22689
22690 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22691 backspace keys.
22692
22693 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22694
22695 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22696 Reported by: Michael Suchanek.
22697
22698 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22699
22700 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22701 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22702
22703 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22704
22705 Remove any reference to non-free fonts.
22706
22707 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22708 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22709 uses non-free components.
22710 * font/font.c (grub_font_get_name): Remove example name.
22711 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22712 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22713 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22714 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22715
22716 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22717
22718 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22719
22720 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22721
22722 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22723 Double divisor.
22724 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22725 features.
22726 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22727
22728 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22729
22730 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22731
22732 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22733
22734 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22735 * docs/grub.texi (Command-line and menu entry commands): Document play
22736 command.
22737
22738 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22739
22740 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22741 parse arguments as inline tempo and notes. Move code for playing notes
22742 to...
22743 (play): ... new function.
22744
22745 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22746
22747 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22748 grub_uint16_t instead of short.
22749 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22750 disk from little endian to cpu endianness.
22751
22752 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22753
22754 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22755 GRUB_TICKS_PER_SECOND instead of 120.
22756
22757 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22758
22759 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22760 escape sequence after \e.
22761
22762 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22763
22764 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
22765 non-ASCII characters.
22766
22767 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22768
22769 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
22770 set root in single quotes to prevent \, from being unescaped.
22771
22772 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22773
22774 Prevent unknown commands from stopping menuentry execution.
22775
22776 * script/execute.c (grub_script_execute_cmdline): Print error after
22777 unknown command.
22778
22779 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22780
22781 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
22782 Reported by: Pavel Pisa.
22783
22784 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22785
22786 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
22787
22788 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22789
22790 Merge grub_ieee1275_map_physical into grub_map and rename to
22791 grub_ieee1275_map
22792
22793 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
22794 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
22795 Remove.
22796 * kern/ieee1275/openfw.c (grub_map): Rename to ...
22797 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
22798 necessary.
22799 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
22800
22801 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22802
22803 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
22804 opening and not after.
22805
22806 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22807
22808 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
22809 constants.
22810
22811 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22812
22813 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
22814 (alloc_phys): Use ALIGN_UP instead of align_addr.
22815
22816 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22817
22818 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
22819
22820 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22821
22822 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
22823
22824 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22825
22826 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
22827 verbose dprintf.
22828
22829 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22830
22831 Fix over-4GiB seek on sparc64.
22832
22833 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
22834 Replace pos_i and pos_lo with pos. All users updated.
22835 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22836 New constant.
22837 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22838 Likewise.
22839 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
22840 and pos_lo.
22841
22842 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22843
22844 * util/grub-mkrawimage.c (main): Call set_program_name.
22845
22846 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22847
22848 Properly align 64-bit targets.
22849
22850 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
22851 (generate_image): Use ALIGN_ADDR.
22852
22853 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22854
22855 Properly create cross-endian images.
22856
22857 * include/grub/types.h (grub_host_to_target_addr): New macro
22858 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
22859
22860 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22861
22862 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
22863
22864 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22865
22866 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
22867
22868 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
22869 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
22870 (grub_linux_boot): Divide by 64K when on VESA.
22871
22872 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22873
22874 Support GRUB_GFXPAYLOAD_LINUX.
22875
22876 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
22877 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
22878
22879 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22880
22881 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
22882 to show messages instead of discarding them.
22883 Process errors after executing command and not before. Keep old method
22884 too as precaution.
22885
22886 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
22887
22888 * configure.ac: Check for ft2build.h.
22889
22890 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22891
22892 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
22893
22894 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22895
22896 * genkernsyms.sh.in: Use TARGET_CC.
22897
22898 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
22899
22900 * NEWS: Update.
22901
22902 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22903
22904 * include/grub/multiboot2.h: Remove leftover file.
22905 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
22906 * include/grub/partition.h [GRUB_UTIL]: Likewise.
22907
22908 2010-02-07 Yves Blusseau <blusseau@zetam.org>
22909
22910 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
22911
22912 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22913
22914 Fix warnings in grub-emu when compiling with maximum warning options.
22915
22916 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
22917 (grub_arch_modules_addr): Return 0 and not NULL.
22918 * util/misc.c (ENABLE_RELOCATABLE): New definition.
22919 (xstrdup): Use newstr instead of dup.
22920 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
22921 of disk to dsk to avoid shadowing.
22922 (find_free_slot): Fix prototype.
22923 * util/getroot.c (grub_util_is_dmraid): Make static.
22924 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
22925 Add missing prototype.
22926 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
22927
22928 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22929
22930 * loader/i386/linux.c (grub_linux_setup_video): Handle error
22931 appropriately.
22932
22933 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22934
22935 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
22936 code out.
22937
22938 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22939
22940 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
22941 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
22942 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
22943 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
22944 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
22945 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
22946
22947 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22948
22949 * include/grub/err.h (grub_err_printf): Don't export.
22950
22951 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22952
22953 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
22954
22955 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22956
22957 * include/grub/i18n.h (grub_gettext_dummy): Removed.
22958 * kern/misc.c (grub_gettext_dummy): Make static.
22959
22960 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22961
22962 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
22963 by non-valid ones.
22964 * kern/term.c (grub_putchar): Likewise.
22965
22966 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22967
22968 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
22969 buggy hook call and memory leak.
22970
22971 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22972
22973 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
22974
22975 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22976
22977 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
22978
22979 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22980
22981 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
22982 modevar.
22983 Return grub_errno on allocation error.
22984
22985 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22986
22987 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
22988
22989 2010-02-06 Yves Blusseau <blusseau@zetam.org>
22990
22991 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
22992 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
22993
22994 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22995
22996 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
22997 non-pxe disk.
22998 (grub_pxefs_open): Likewise.
22999
23000 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23001
23002 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23003 * util/grub.d/10_kfreebsd.in: Likewise.
23004 * util/grub.d/10_linux.in: Likewise.
23005
23006 2010-02-06 Colin D Bennett <colin@gibibit.com>
23007
23008 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23009 (gfxmenu_mod_SOURCES): New variable.
23010 (gfxmenu_mod_CFLAGS): Likewise.
23011 (gfxmenu_mod_LDFLAGS): Likewise.
23012 * include/grub/term.h (grub_term_set_current_output): Declare
23013 argument as const.
23014 * docs/gfxmenu-theme-example.txt: New file.
23015 * gfxmenu/gfxmenu.c: Likewise.
23016 * gfxmenu/gui_box.c: Likewise.
23017 * gfxmenu/gui_canvas.c: Likewise.
23018 * gfxmenu/gui_circular_progress.c: Likewise.
23019 * gfxmenu/gui_image.c: Likewise.
23020 * gfxmenu/gui_label.c: Likewise.
23021 * gfxmenu/gui_list.c: Likewise.
23022 * gfxmenu/gui_progress_bar.c: Likewise.
23023 * gfxmenu/gui_string_util.c: Likewise.
23024 * gfxmenu/gui_util.c: Likewise.
23025 * gfxmenu/icon_manager.c: Likewise.
23026 * gfxmenu/model.c: Likewise.
23027 * gfxmenu/named_colors.c: Likewise.
23028 * gfxmenu/theme_loader.c: Likewise.
23029 * gfxmenu/view.c: Likewise.
23030 * gfxmenu/widget-box.c: Likewise.
23031 * include/grub/gfxmenu_model.h: Likewise.
23032 * include/grub/gfxmenu_view.h: Likewise.
23033 * include/grub/gfxwidgets.h: Likewise.
23034 * include/grub/gui.h: Likewise.
23035 * include/grub/gui_string_util.h: Likewise.
23036 * include/grub/icon_manager.h: Likewise.
23037
23038 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23039
23040 Agglomerate scrolling in gfxterm.
23041
23042 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23043 (grub_virtual_screen_setup): Initialise 'total_screen'.
23044 (write_char): Split to ...
23045 (paint_char): ... this ...
23046 (write_char): ... and this.
23047 (paint_char): Handle delayed scrolling.
23048 (draw_cursor): Likewise.
23049 (scroll_up): Split to ...
23050 (real_scroll): ... this ...
23051 (scroll_up): ... and this.
23052 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23053 characters.
23054 (grub_gfxterm_refresh): Call real_scroll.
23055
23056 2010-02-06 Colin D Bennett <colin@gibibit.com>
23057
23058 * include/grub/misc.h (grub_iscntrl): New inline function.
23059 (grub_isalnum): Likewise.
23060 (grub_strtol): Likewise.
23061
23062 2010-02-06 Colin D Bennett <colin@gibibit.com>
23063
23064 * normal/menu_text.c (get_entry_number): Move from here ...
23065 * normal/menu.c (get_entry_number): ... moved here.
23066 * include/grub/menu.h (grub_menu_get_default_entry_index):
23067 New prototype.
23068 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23069 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23070 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23071 (grub_menu_viewer_should_return): Likewise.
23072 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23073 * normal/menu_text.c (run_menu): Enable menu switching.
23074 * normal/menu_viewer.c (should_return): New variable.
23075 (menu_viewer_changed): Likewise.
23076 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23077 (grub_menu_viewer_should_return): New function.
23078 (menuviewer_write_hook): Likewise.
23079 (grub_menu_viewer_init): Likewise.
23080
23081 2010-02-06 Colin D Bennet <colin@gibibit.com>
23082 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23083
23084 Support for gfxterm in a window.
23085
23086 * include/grub/gfxterm.h: New file.
23087 * include/grub/video.h (struct grub_video_rect): New declaration.
23088 (grub_video_rect_t): Likewise.
23089 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23090 (refcount): New variable.
23091 (render_target): Likewise.
23092 (window): Likewise.
23093 (repaint_callback): Likewise.
23094 (grub_virtual_screen_setup): Use 'render_target'.
23095 (init_window): New function.
23096 (grub_gfxterm_init_window): Likewise.
23097 (grub_gfxterm_init): Check reference counter.
23098 Use init_window.
23099 (destroy_window): New function.
23100 (grub_gfxterm_destroy_window): Likewise.
23101 (grub_gfxterm_fini): Check reference counter.
23102 Use destroy_window.
23103 (redraw_screen_rect): Restore viewport.
23104 Use 'render_target' and 'window'.
23105 Call 'repaint_callback'.
23106 (write_char): Use 'render_target'.
23107 (draw_cursor): Likewise.
23108 (scroll_up): Restore viewport.
23109 Use 'render_target' and 'window'.
23110 Call 'repaint_callback'.
23111 (grub_gfxterm_cls): Likewise.
23112 (grub_gfxterm_refresh): Use 'window'.
23113 (grub_gfxterm_set_repaint_callback): New function.
23114 (grub_gfxterm_background_image_cmd): Use 'window'.
23115 (grub_gfxterm_get_term): New function.
23116 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23117
23118 2010-02-06 Colin D Bennett <colin@gibibit.com>
23119
23120 Bitmap scaling support.
23121
23122 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23123 (bitmap_scale_mod_SOURCES): New variable.
23124 (bitmap_scale_mod_CFLAGS): Likewise.
23125 (bitmap_scale_mod_LDFLAGS): Likewise.
23126 * include/grub/bitmap_scale.h: New file.
23127 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23128 (background_image_cmd_options): New variable.
23129 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23130 (cmd): Rename and change type to ...
23131 (background_image_cmd_handle): ... this. All users updated.
23132 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23133 * video/bitmap_scale.c: New file.
23134
23135 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23136
23137 SDL support.
23138
23139 * Makefile.in (LIBSDL): New variable.
23140 (enable_grub_emu_sdl): Likewise.
23141 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23142 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23143 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23144 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23145 * util/sdl.c: New file.
23146
23147 2010-02-06 Colin D Bennett <colin@gibibit.com>
23148 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23149
23150 Double buffering support.
23151
23152 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23153 * include/grub/video.h: Update comment.
23154 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23155 New type.
23156 (grub_video_fb_doublebuf_blit_init): New prototype.
23157 * term/gfxterm.c (scroll_up): Support double buffering.
23158 (grub_gfxterm_refresh): Likewise.
23159 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23160 (grub_video_fb_doublebuf_blit_init): Likewise.
23161 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23162 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23163 'displayed_page', 'render_page' and 'update_screen'.
23164 (grub_video_vbe_fini): Free offscreen buffer.
23165 (doublebuf_pageflipping_commit): New function.
23166 (doublebuf_pageflipping_update_screen): Likewise.
23167 (doublebuf_pageflipping_init): Likewise.
23168 (double_buffering_init): Likewise.
23169 (grub_video_vbe_setup): Enable doublebuffering.
23170 (grub_video_vbe_swap_buffers): Implement.
23171 (grub_video_vbe_set_active_render_target): Handle double buffering.
23172 (grub_video_vbe_get_active_render_target): Likewise.
23173 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23174 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23175 (grub_video_vbe_enable_double_buffering): Likewise.
23176 (grub_video_vbe_swap_buffers): Use update_screen.
23177 (grub_video_set_mode): Use double buffering.
23178
23179 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23180
23181 * maintainance/gentrigtables.py: Remove.
23182 * lib/trig.c: Likewise.
23183
23184 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23185
23186 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23187 `trigtables.c'.
23188 (trigtables.c): New rule.
23189 (gentrigtables): Likewise.
23190 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23191
23192 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23193
23194 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23195 integer constants.
23196
23197 2010-02-06 Colin D Bennet <colin@gibibit.com>
23198
23199 Trigonometry support.
23200
23201 * include/grub/trig.h: New file.
23202 * lib/trig.c: Likewise.
23203 * maintainance/gentrigtables.py: Likewise.
23204 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23205 (trig_mod_SOURCES): New variable.
23206 (trig_mod_CFLAGS): Likewise.
23207 (trig_mod_LDFLAGS): Likewise.
23208
23209 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23210
23211 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23212 disk devices.
23213
23214 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23215
23216 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23217 error.
23218
23219 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23220
23221 * util/hostdisk.c (open_device): Don't use partition device when reading
23222 before the partition.
23223 (grub_util_biosdisk_read): Don't read from partition and before the
23224 partition in single operation.
23225 (grub_util_biosdisk_write): Don't write to partition and before the
23226 partition in single operation.
23227
23228 2010-02-03 Torsten Landschoff <torsten@debian.org>
23229
23230 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23231 last sectors.
23232
23233 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23234
23235 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23236 CDROM reads.
23237 (grub_biosdisk_write): Refuse to write to CDROM.
23238
23239 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23240
23241 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23242
23243 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23244
23245 * font/font.c (find_glyph): Check that bmp_idx is available before
23246 using it.
23247 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23248 with (font == NULL).
23249
23250 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23251
23252 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23253
23254 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23255
23256 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23257 * util/grub-script-check.c (getline): Fix empty lines case.
23258
23259 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23260
23261 * Makefile.in (check): Exit with fail status when one of the tests
23262 fails.
23263 * tests/example_functional_test.c (example_test): Fix reversed assert.
23264 * tests/example_unit_test.c (example_test): Likewise.
23265
23266 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23267
23268 * util/grub.d/10_linux.in: This script does not use any of the
23269 contents of gettext.sh, only the external command `gettext', so stop
23270 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23271 the same prefix as GRUB.)
23272 * util/grub.d/10_kfreebsd.in: Likewise.
23273
23274 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23275
23276 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23277 of the line.
23278
23279 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23280
23281 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23282 last sectors.
23283
23284 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23285
23286 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23287 having a 4KiB and not 32KiB buffer size.
23288
23289 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23290
23291 * util/hostfs.c: Include `<errno.h>'.
23292 (grub_hostfs_read): Handle errors from fseeko() and fread().
23293
23294 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23295
23296 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23297 loop when using read hooks on files whose size isn't sector-aligned.
23298
23299 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23300
23301 Remove unused parameter.
23302
23303 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23304 (grub_iso9660_open): Remove initialization of `data->length'.
23305
23306 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23307
23308 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23309 memleak conditions.
23310
23311 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23312
23313 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23314 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23315
23316 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23317
23318 * util/bin2h.c (usage): Fix warning (space after backslash).
23319
23320 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23321
23322 * font/font.c: Include `grub/fontformat.h.
23323 Remove font file format constants.
23324 (grub_font_load): Use the new macros.
23325 * include/grub/fontformat.h: New file.
23326 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23327 (write_font_pf2): Use the new macros.
23328
23329 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23330
23331 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23332 does.
23333
23334 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23335
23336 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23337
23338 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23339 (_start): Macroify `0x7F'.
23340
23341 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23342 (make_install_device): Use "(pxe)" as fallback prefix when booting
23343 via PXE.
23344
23345 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23346
23347 * configure.ac: Reset LIBS after check for libgcc symbols.
23348
23349 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23350
23351 * util/hostdisk.c (open_device): Add trailing newline to debug
23352 message.
23353
23354 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23355
23356 * configure.ac: Check for `limits.h'.
23357 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23358
23359 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23360
23361 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23362 capitalize error strings.
23363
23364 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23365
23366 * util/grub.d/10_hurd.in: Add a recovery mode.
23367
23368 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23369
23370 * configure.ac: Check for libgcc symbols with -nostdlib.
23371
23372 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23373
23374 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23375
23376 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23377
23378 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23379 stack since heap may be unavailable at that point.
23380 (grub_ofconsole_gotoxy): Likewise.
23381
23382 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23383
23384 * configure.ac: Check for _restgpr_14_x.
23385 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23386 and _savegpr_* prototypes.
23387
23388 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23389
23390 Use generic grub_reboot() for i386-efi.
23391
23392 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23393 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23394 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23395
23396 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23397
23398 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23399 presence of "prefix" variable as it breaks when normal.mod is
23400 embedded.
23401
23402 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23403
23404 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23405 stack since heap is unavailable at that point.
23406
23407 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23408
23409 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23410 (grub_freebsd_bootinfo): Rewritten.
23411 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23412
23413 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23414
23415 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23416
23417 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23418
23419 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23420 domain now.
23421
23422 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23423
23424 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23425 around for handling "/" to the correct fix. Fix a memory leak. Use
23426 xstrdup instead of strdup.
23427
23428 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23429
23430 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23431
23432 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23433
23434 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23435
23436 * font/font.c (struct grub_font): New member 'bmp_idx'.
23437 (font_init): Initialise 'bmp_idx'.
23438 (load_font_index): Fill 'bmp_idx'.
23439 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23440
23441 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23442
23443 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23444 unnecessary calls.
23445
23446 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23447
23448 Move context handling out of the kernel.
23449
23450 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23451 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23452 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23453 * conf/i386-efi.rmk: Likewise.
23454 * conf/i386-ieee1275.rmk: Likewise.
23455 * conf/i386-pc.rmk: Likewise.
23456 * conf/powerpc-ieee1275.rmk: Likewise.
23457 * conf/sparc64-ieee1275.rmk: Likewise.
23458 * conf/x86_64-efi.rmk: Likewise.
23459 * include/grub/env.h: Include grub/menu.h.
23460 (grub_env_var_type): Removed.
23461 (grub_env_var): Replaced field 'type' with 'global'.
23462 (grub_env_find): New prototype.
23463 (grub_env_context_open): Remove EXPORT_FUNC.
23464 (grub_env_context_close): Likewise.
23465 (grub_env_export): Likewise.
23466 (grub_env_set_data_slot): Removed.
23467 (grub_env_get_data_slot): Likewise.
23468 (grub_env_unset_data_slot): Likewise.
23469 (grub_env_unset_menu): New prototype.
23470 (grub_env_set_menu): Likewise.
23471 (grub_env_get_menu): Likewise.
23472 * include/grub/env_private.h: New file.
23473 * include/grub/normal.h (grub_context_init): New prototype.
23474 (grub_context_fini): Likewise.
23475 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23476 * normal/context.c (grub_cmd_export): ... to here.
23477 * kern/env.c: Include env_private.h.
23478 (HASHSZ): Moved to include/grub/env_private.h.
23479 (grub_env_context): Likewise.
23480 (grub_env_sorted_var): Likewise.
23481 (current_context): Renamed from this ...
23482 (grub_current_context): ...to this. 'static' removed. All users updated.
23483 (grub_env_find): Removed 'static'.
23484 (grub_env_context_open): Moved to normal/context.c.
23485 (grub_env_context_close): Likewise.
23486 (grub_env_export): Likewise.
23487 (mangle_data_slot_name): Removed.
23488 (grub_env_set_data_slot): Likewise.
23489 (grub_env_get_data_slot): Likewise.
23490 (grub_env_unset_data_slot): Likewise.
23491 * kern/main.c (grub_set_root_dev): Don't export root.
23492 It will be done later.
23493 (grub_main): Don't export prefix.
23494 It will be done later.
23495 * normal/context.c: New file.
23496 * normal/main.c (free_menu): Use grub_env_unset_menu.
23497 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23498 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23499 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23500 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23501
23502 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23503
23504 setpci support.
23505
23506 * commands/setpci.c: New file.
23507 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23508 (setpci_mod_SOURCES): New variable.
23509 (setpci_mod_CFLAGS): Likewise.
23510 (setpci_mod_LDFLAGS): Likewise.
23511
23512 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23513
23514 Byte-addressable PCI configuration space.
23515
23516 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23517 dword address.
23518 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23519 GRUB_PCI_REG_CACHELINE.
23520 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23521 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23522 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23523 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23524 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23525 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23526 grub_pci_make_address.
23527 (lock_rom_area): Likewise.
23528 * commands/lspci.c (grub_lspci_iter): Use macroses
23529 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23530 of grub_pci_make_address.
23531 * disk/ata.c (grub_ata_pciinit): Likewise.
23532 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23533 (GRUB_PCI_REG_VENDOR): Likewise.
23534 (GRUB_PCI_REG_DEVICE): Likewise.
23535 (GRUB_PCI_REG_COMMAND): Likewise.
23536 (GRUB_PCI_REG_STATUS): Likewise.
23537 (GRUB_PCI_REG_REVISION): Likewise.
23538 (GRUB_PCI_REG_CLASS): Likewise.
23539 (GRUB_PCI_REG_CACHELINE): Likewise.
23540 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23541 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23542 (GRUB_PCI_REG_BIST): Likewise.
23543 (GRUB_PCI_REG_ADDRESSES): Likewise.
23544 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23545 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23546 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23547 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23548 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23549 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23550 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23551 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23552 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23553 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23554 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23555 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23556 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23557 (GRUB_PCI_REG_MIN_GNT): Likewise.
23558 (GRUB_PCI_REG_MAX_LAT): Likewise.
23559 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23560 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23561 * video/efi_uga.c (find_framebuf): Likewise.
23562 * video/sm712.c (grub_video_sm712_setup): Likewise.
23563 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23564 space.
23565
23566 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23567
23568 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23569 can be reliably determined to be supported.
23570
23571 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23572
23573 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23574 that VESA is supported.
23575 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23576 supported.
23577
23578 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23579
23580 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23581
23582 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23583
23584 * util/misc.c (make_system_path_relative_to_its_root): Work around
23585 special-casing of "/", as previous incarnation of this routine did.
23586
23587 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23588
23589 Fix any-emu compilation.
23590
23591 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23592 * grub_bin2h_SOURCES: New variable.
23593
23594 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23595
23596 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23597
23598 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23599
23600 * util/grub.d/00_header.in: Fix handling of locale_dir.
23601
23602 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23603
23604 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23605 as possible unifont location (Gentoo).
23606 Reported by: Alexander Brüning
23607
23608 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23609
23610 Don't try to generate lists for kernel.img.
23611
23612 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23613 (pkglib_MODULES): Remove kernel.img.
23614 (kernel_img_EXPORTS): Removed.
23615 (kernel_img_RELOCATABLE): New variable.
23616 * conf/x86_64-efi.rmk: Likewise.
23617 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23618
23619 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23620
23621 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23622 grub_xasprintf or grub_snprintf.
23623 (grub_vsprintf): Likewise.
23624 (grub_snprintf): New proto.
23625 (grub_vsnprintf): Likewise.
23626 (grub_xasprintf): Likewise.
23627 (grub_xvasprintf): Likewise.
23628 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23629 (grub_sprintf): Removed.
23630 (grub_vsnprintf): New function.
23631 (grub_snprintf): Likewise.
23632 (grub_xvasprintf): Likewise.
23633 (grub_xasprintf): Likewise.
23634 (grub_vsprintf): Renamed to ...
23635 (grub_vsnprintf_real): ...this. New argument max_len.
23636
23637 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23638
23639 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23640 fix grub-script-check warning.
23641
23642 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23643
23644 * include/grub/font.h (grub_font_load): Fix prototype.
23645
23646 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23647
23648 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23649
23650 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23651
23652 * include/grub/x86_64/at_keyboard.h: New file.
23653
23654 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23655
23656 * loader/mips/linux.c: Include missing grub/i18n.h.
23657
23658 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23659
23660 * normal/menu.c (notify_execution_failure): Clarify error message.
23661
23662 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23663
23664 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23665 return value (and revert all return statements). Update users.
23666
23667 2010-01-20 Dan Merillat <debian@dan.merillat.org>
23668
23669 * kern/device.c (grub_device_iterate): Allocate new part_ent
23670 structure based on sizeof (*p) rather than sizeof (p->next), to
23671 account for structure padding.
23672
23673 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23674 disk is NULL, which might happen for LVM physical volumes with no
23675 LVM signature.
23676
23677 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23678
23679 * loader/mips/linux.c (grub_cmd_initrd)
23680 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23681
23682 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23683
23684 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23685 (grub_video_video_init, grub_video_bitmap_init)
23686 (grub_font_manager_init, grub_term_gfxterm_init)
23687 (grub_at_keyboard_init): New extern declarations.
23688 (grub_machine_init): Initialize gfxterm and at_keyboard.
23689
23690 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23691
23692 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23693 `gfxterm.mod' into core image.
23694
23695 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23696 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23697 (kernel_img_FORMAT): Copy to ...
23698
23699 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23700 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23701 (kernel_img_FORMAT): ... here, and ...
23702
23703 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23704 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23705 (kernel_img_FORMAT): ... here.
23706
23707 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23708 and input (at_keyboard) terminals in kernel.
23709 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23710
23711 (pkglib_MODULES): Remove `pci.mod'.
23712 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23713 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23714 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23715 (at_keyboard_mod_LDFLAGS): Remove variables.
23716
23717 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23718
23719 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23720
23721 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23722
23723 * include/grub/mips/libgcc.h: Only export symbols for functions
23724 that libgcc provides.
23725
23726 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23727
23728 MIPS support.
23729
23730 * bus/bonito.c: New file.
23731 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23732 GRUB_PCI_NUM_DEVICES.
23733 * term/i386/pc/serial.c: Move to ...
23734 * term/serial.c: ... here. All users updated.
23735 * util/i386/pc/grub-mkimage.c: Move to ...
23736 * util/grub-mkrawimage.c: ... here. All users updated.
23737 * term/i386/pc/at_keyboard.c: Move to ...
23738 * term/at_keyboard.c: ... here. All users updated.
23739 * conf/mips-qemu-mips.rmk: New file.
23740 * conf/mips-yeeloong.rmk: Likewise.
23741 * conf/mips.rmk: Likewise.
23742 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23743 mipsel-qemu-mips.
23744 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23745 to port addresses.
23746 (grub_ata_pciinit): Support CS5536.
23747 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23748 * font/font_cmd.c (loadfont_command): Open file before passing it to
23749 grub_font_load.
23750 (pseudo_file_read): New function.
23751 (pseudo_file_close): Likewise.
23752 (pseudo_fs): New structure.
23753 (load_font_module): New function.
23754 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23755 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23756 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23757 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23758 * include/grub/i386/at_keyboard.h: Split into ...
23759 * include/grub/at_keyboard.h: ... this ...
23760 * include/grub/i386/at_keyboard.h: ... and this.
23761 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23762 New prototype.
23763 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23764 updated.
23765 (grub_elf64_size): Likewise.
23766 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
23767 filename.
23768 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
23769 * include/grub/i386/coreboot/serial.h: Rewritten.
23770 * include/grub/i386/ieee1275/serial.h: Include
23771 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
23772 * include/grub/i386/pc/serial.h: Moved from here ...
23773 * include/grub/serial.h: ... to here. All users updated.
23774 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
23775 (GRUB_PCI_NUM_BUS): Likewise.
23776 (GRUB_PCI_NUM_DEVICES): Likewise.
23777 (grub_pci_device_map_range): Add missing volatile keyword.
23778 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
23779 * include/grub/mips/at_keyboard.h: New file.
23780 * include/grub/mips/cache.h: Likewise.
23781 * include/grub/mips/io.h: Likewise.
23782 * include/grub/mips/kernel.h: Likewise.
23783 * include/grub/mips/libgcc.h: Likewise.
23784 * include/grub/mips/pci.h: Likewise.
23785 * include/grub/mips/qemu-mips/boot.h: Likewise.
23786 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23787 * include/grub/mips/qemu-mips/loader.h: Likewise.
23788 * include/grub/mips/qemu-mips/memory.h: Likewise.
23789 * include/grub/mips/qemu-mips/serial.h: Likewise.
23790 * include/grub/mips/qemu-mips/time.h: Likewise.
23791 * include/grub/mips/relocator.h: Likewise.
23792 * include/grub/mips/time.h: Likewise.
23793 * include/grub/mips/types.h: Likewise.
23794 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
23795 * include/grub/mips/yeeloong/boot.h: Likewise.
23796 * include/grub/mips/yeeloong/kernel.h: Likewise.
23797 * include/grub/mips/yeeloong/loader.h: Likewise.
23798 * include/grub/mips/yeeloong/memory.h: Likewise.
23799 * include/grub/mips/yeeloong/pci.h: Likewise.
23800 * include/grub/mips/yeeloong/serial.h: Likewise.
23801 * include/grub/mips/yeeloong/time.h: Likewise.
23802 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
23803 * kern/elf.c (grub_elf32_size): New parameter. All users
23804 updated.
23805 (grub_elf64_size): Likewise.
23806 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
23807 Load modules before saying "Welcome to GRUB!".
23808 Call grub_refresh after saying "Welcome to GRUB!".
23809 * kern/mips/cache.S: New file.
23810 * kern/mips/cache_flush.S: Likewise.
23811 * kern/mips/dl.c: Likewise.
23812 * kern/mips/init.c: Likewise.
23813 * kern/mips/qemu-mips/init.c: Likewise.
23814 * kern/mips/startup.S: Likewise.
23815 * kern/mips/yeeloong/init.c: Likewise.
23816 * kern/term.c (grub_putcode): Handle NULL terminal.
23817 (grub_getcharwidth): Likewise.
23818 (grub_getkey): Likewise.
23819 (grub_checkkey): Likewise.
23820 (grub_getkeystatus): Likewise.
23821 (grub_getxy): Likewise.
23822 (grub_getwh): Likewise.
23823 (grub_gotoxy): Likewise.
23824 (grub_cls): Likewise.
23825 (grub_setcolorstate): Likewise.
23826 (grub_setcolor): Likewise.
23827 (grub_getcolor): Likewise.
23828 (grub_refresh): Likewise.
23829 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
23830 (write_jump): Add hatch nop.
23831 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
23832 * lib/mips/setjmp.S: New file.
23833 * loader/mips/linux.c: Likewise.
23834 * term/i386/pc/at_keyboard.c: Move from here ...
23835 * term/at_keyboard.c: ... to here.
23836 * term/i386/pc/serial.c: Moved from here ...
23837 * term/serial.c: ... to here. All users updated.
23838 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
23839 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
23840 (serial_translate_key_sequence): Avoid deadlock.
23841 (grub_serial_getkey): Handle backspace.
23842 (grub_serial_putchar): Fix newline handling.
23843 * util/i386/pc/grub-mkimage.c: Move from here ...
23844 * util/grub-mkrawimage.c: ... to here. All users updated.
23845 (generate_image): New parameters 'font_path' and 'format'.
23846 Support embedding font.
23847 Use grub_host_to_target* instead of grub_cpu_to_le*.
23848 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
23849 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
23850 (options): New option "--font".
23851 (usage): Likewise.
23852 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
23853 (main): Handle "--font".
23854 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
23855 (grub_virtual_screen_setup): Set bg_color_display.
23856 (redraw_screen_rect): Use bg_color_display instead of incorrect
23857 bg_color.
23858 (grub_gfxterm_cls): Likewise.
23859 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
23860 Support embedding config file.
23861 (add_segments): Likewise.
23862 (options): New option "--config".
23863 (main): Handle "--config".
23864 * video/sm712.c: New file.
23865
23866 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23867
23868 Fix parallel builds.
23869
23870 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
23871 font.c depend on ascii.h).
23872
23873 2010-01-12 Carles Pina i Estany <carles@pina.cat>
23874
23875 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
23876
23877 2010-01-11 Carles Pina i Estany <carles@pina.cat>
23878
23879 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
23880 By default: disabled.
23881 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
23882 parameter.
23883
23884 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23885
23886 * font/font.c: Update copyright years.
23887 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
23888
23889 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23890
23891 * font/font.c: Include `ascii.h'.
23892 (ASCII_BITMAP_SIZE): New macro.
23893 (ascii_font_glyph): Define.
23894 (ascii_glyph_lookup): New function.
23895 (grub_font_get_string_width): Change comment. If glyph not found, use
23896 ascii_glyph_lookup.
23897 (grub_font_get_glyph_with_fallback): If glyph not available returns
23898 ascii_glyph_lookup.
23899 * util/grub-mkfont.c (file_formats): New enum.
23900 (options): Add `ascii-bitmaps' new option.
23901 (usage): Add `asii-bitmaps' new option.
23902 (write_font_ascii_bitmap): New function.
23903 (write_font): Rename to ...
23904 (write_font_p2): ... this. Remove print_glyphs call.
23905 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
23906 used. Call print_glyphs.
23907 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
23908
23909 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23910
23911 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
23912 (grub_bin2h_SOURCES): New variable.
23913 * util/bin2h.c: New file.
23914
23915 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23916
23917 * include/multiboot.h: Resynced with spec.
23918 * include/multiboot2.h: Likewise.
23919 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
23920 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
23921
23922 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23923
23924 * include/grub/term.h (grub_term_register_input,
23925 grub_term_register_output): Check return of terminal init()
23926 routines, and abort if errors are raised.
23927
23928 * commands/terminal.c: Update copyright year.
23929
23930 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23931
23932 * commands/terminal.c (grub_cmd_terminal_input)
23933 (grub_cmd_terminal_output): Check return of terminal init()
23934 routines, and abort if errors are raised.
23935
23936 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23937
23938 * include/grub/i386/bsd.h: Fix include pathes.
23939
23940 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23941
23942 Add missing *BSD copyright headers.
23943
23944 * include/grub/aout.h: Add BSD licence.
23945 * include/grub/i386/bsd.h: Parts under different licences moved to ...
23946 * include/grub/i386/freebsd_linker.h: ... here,
23947 * include/grub/i386/freebsd_reboot.h: ... here,
23948 * include/grub/i386/netbsd_bootinfo.h: ... here,
23949 * include/grub/i386/netbsd_reboot.h: ... here,
23950 * include/grub/i386/openbsd_bootarg.h: ... here,
23951 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
23952 licence to each file.
23953
23954 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23955
23956 * acinclude.m4: Remove `nop' assembly instruction; it's not
23957 implemented by all architectures.
23958
23959 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23960
23961 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
23962 ELILO. This is no longer necessary.
23963
23964 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
23965
23966 Added new tool, grub-scrit-check to verify grub.cfg syntax.
23967
23968 * util/grub-script-check.c: grub-script-check tool.
23969 * conf/common.rmk: Make rules for grub-script-check.
23970
23971 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23972
23973 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
23974 spotting it back in 2008. Shame on me for forgetting he did.
23975
23976 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
23977
23978 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23979
23980 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
23981 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
23982 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
23983 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
23984 (GRUB_VIDEO_TYPE_EFI): Rename to ...
23985 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
23986
23987 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
23988
23989 * include/grub/test.h: Add license header.
23990 * tests/example_functional_test.c: Likewise.
23991 * tests/example_unit_test.c: Likewise.
23992 * tests/lib/functional_test.c: Likewise.
23993 * tests/lib/test.c: Likewise.
23994 * tests/lib/unit_test.c: Likewise.
23995
23996 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
23997
23998 Use flag-based instead of hook-based video mode selection and "auto"
23999 keyword.
24000
24001 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24002 (grub_video_set_mode): Changed prototype. All users updated.
24003 (grub_video_check_mode_flag): New inline function.
24004 * video/video.c (parse_modespec): New function.
24005 (grub_video_set_mode): Parse flags and keywords.
24006
24007 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24008
24009 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24010 fprintf call.
24011
24012 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24013
24014 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24015
24016 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24017
24018 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24019 string.
24020 * util/grub-emu.c (usage): Likewise.
24021 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24022 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24023 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24024 * util/i386/pc/grub-setup.c (usage): Likewise.
24025
24026 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24027
24028 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24029 the message.
24030 (grub_util_info): Likewise.
24031 (grub_util_error): Likewise.
24032 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24033 and/or new lines in `grub_util_warna', `grub_util_info',
24034 `grub_util_error' calls.
24035 * util/getroot.c: Likewise.
24036 * util/grub-editenv.c: Likewise.
24037 * util/grub-emu.c: Likewise.
24038 * util/grub-fstest.c: Likewise.
24039 * util/grub-mkdevicemap.c: Likewise.
24040 * util/grub-mkfont.c: Likewise.
24041 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24042 * util/grub-mkrelpath.c: Likewise.
24043 * util/grub-pe2elf.c: Likewise.
24044 * util/grub-probe.c: Likewise.
24045 * util/hostdisk.c: Likewise.
24046 * util/i386/efi/grub-mkimage.c: Likewise.
24047 * util/i386/pc/grub-mkimage.c: Likewise.
24048 * util/i386/pc/grub-setup.c: Likewise.
24049 * util/ieee1275/ofpath.c: Likewise.
24050 * util/mkisofs/eltorito.c: Likewise.
24051 * util/mkisofs/rock.c: Likewise.
24052 * util/mkisofs/write.c: Likewise.
24053 * util/raid.c: Likewise.
24054 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24055 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24056
24057 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24058
24059 Enable multiboot on non-pc.
24060
24061 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24062 multiboot.mod and multiboot2.mod to ...
24063 * conf/i386.rmk (pkglib_MODULES): ... here.
24064 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24065 Moved to ...
24066 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24067 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24068 Moved to ...
24069 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24070 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24071 Moved to ...
24072 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24073 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24074 Moved to ...
24075 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24076 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24077 relocator.mod.
24078 (ata_mod_SOURCES): Removed.
24079 (ata_mod_CFLAGS): Likewise.
24080 (ata_mod_LDFLAGS): Likewise.
24081 (relocator_mod_SOURCES): Removed.
24082 (relocator_mod_CFLAGS): Likewise.
24083 (relocator_mod_ASFLAGS): Likewise.
24084 (relocator_mod_LDFLAGS): Likewise.
24085 Include i386.mk.
24086 * include/grub/x86_64/multiboot.h: New file.
24087 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24088 Terminate EFI.
24089
24090 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24091
24092 Video multiboot support.
24093
24094 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24095 New prototype.
24096 * include/multiboot.h: Resynced with multiboot specification.
24097 * include/multiboot2.h: Likewise.
24098 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24099 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24100 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24101 (HAS_VGA_TEXT): Likewise.
24102 (accepts_video): New variable.
24103 (grub_multiboot_set_accepts_video): New function.
24104 (grub_multiboot_get_mbi_size): Account for video structures.
24105 (set_video_mode): New function.
24106 (retrieve_video_parameters): Likewise.
24107 (grub_multiboot_make_mbi): Fill video fields.
24108
24109 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24110
24111 Video driver ids.
24112
24113 * include/grub/video.h (grub_video_driver_id): New type.
24114 (grub_video_adapter): New member 'id'. All users updated.
24115 (grub_video_get_driver_id): New proto.
24116 * video/video.c (grub_video_get_driver_id): New function.
24117
24118 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24119
24120 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24121 `var=val'.
24122
24123 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24124
24125 * normal/cmdline.c (print_completion): Gettextizze.
24126
24127 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24128
24129 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24130
24131 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24132
24133 * gettext/gettext.c (grub_gettext_translate): Push and pop
24134 grub_errno.
24135 (grub_gettext_delete_list): Change comment style.
24136 * kern/err.c (grub_error): Gettextizze.
24137 (grub_fatal): Gettextizze.
24138
24139 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24140
24141 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24142 (grub_linux16_real_boot): ... this.
24143 * kern/i386/loader.S: Likewise.
24144 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24145 (grub_linux16_boot): New function. Switches to text mode and calls
24146 grub_linux16_real_boot().
24147
24148 * loader/i386/bsd.c: Include `<grub/video.h>'.
24149 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24150 text mode before calling grub_unix_real_boot().
24151
24152 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24153 (grub_multiboot_boot): Switch to text mode before calling
24154 grub_relocator32_boot().
24155
24156 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24157 (grub_chainloader_boot): Switch to text mode before calling
24158 grub_chainloader_real_boot().
24159
24160 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24161 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24162
24163 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24164 non-empty value.
24165
24166 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24167 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24168
24169 * util/grub.d/00_header.in: Define a "savedefault" function for use
24170 in menu entries.
24171 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24172
24173 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24174 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24175
24176 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24177 saved_entry if boot_once is unset.
24178 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24179 previous saved entry (i.e. grub-reboot).
24180
24181 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24182
24183 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24184
24185 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24186
24187 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24188 `var=val'.
24189 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24190
24191 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24192
24193 * util/grub-reboot.in: Fix --version output.
24194 * util/grub-set-default.in: Likewise.
24195
24196 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24197
24198 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24199 blocks.
24200
24201 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24202
24203 * util/grub.d/00_header.in: Quote the value assigned to `default',
24204 in case it contains spaces.
24205
24206 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24207
24208 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24209 `save_default_entry' call from the macosx case to the linux case.
24210
24211 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24212 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24213
24214 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24215 in `chosen' environment variable.
24216 * normal/menu_text.c (get_entry_number): Check if the variable
24217 matches the title of a menu entry.
24218 (run_menu): Pass menu to get_entry_number.
24219
24220 * util/grub-reboot.in: New file.
24221 * util/grub-set-default.in: New file.
24222 * conf/common.rmk (grub-reboot): New utility.
24223 (grub-set-default): New utility.
24224
24225 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24226 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24227 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24228 move it to `saved_entry' for the next boot. Load environment on
24229 initialisation.
24230 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24231 * util/grub.d/10_hurd.in: Likewise.
24232 * util/grub.d/10_linux.in (linux_entry): Likewise.
24233 * util/grub.d/10_windows.in: Likewise.
24234 * util/grub.d/30_os-prober.in: Likewise.
24235
24236 * util/grub-install.in: Create environment block.
24237 * util/i386/efi/grub-install.in: Likewise.
24238 * util/ieee1275/grub-install.in: Likewise.
24239 * util/sparc64/ieee1275/grub-install.in: Likewise.
24240
24241 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24242
24243 Unit testing framework for GRUB.
24244
24245 * Makefile.in: Test framework build rules for 'make check'.
24246 * conf/tests.rmk: Build rules for individual tests and framework.
24247
24248 * include/grub/test.h: Header file for whitebox tests.
24249 * tests/lib/functional_test.c: Framework support for whitebox
24250 functional tests.
24251 * tests/lib/test.c: Common whitebox testing code for unit and
24252 functional tests.
24253 * tests/lib/unit_test.c: Framework support for whitebox unit
24254 tests.
24255
24256 * tests/util/grub-shell-tester.in: Support utility for grub-script
24257 tests.
24258 * tests/util/grub-shell.in: Utility to execute grub-script
24259 commands in a Qemu instance.
24260
24261 * tests/example_functional_test.c: Example whitebox functional
24262 test.
24263 * tests/example_grub_script_test.in: Example grub-script test.
24264 * tests/example_scripted_test.in: Example scripted test.
24265 * tests/example_unit_test.c: Example whitebox unit test.
24266
24267 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24268
24269 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24270 Add loader/i386/multiboot_mbi.c.
24271 (multiboot2_mod_SOURCES): Likewise.
24272 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24273 (multiboot2_mod_SOURCES): Likewise.
24274 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24275 (grub_multiboot_make_mbi): Likewise.
24276 (grub_multiboot_free_mbi): Likewise.
24277 (grub_multiboot_init_mbi): Likewise.
24278 (grub_multiboot_add_module): Likewise.
24279 (grub_multiboot_set_bootdev): Likewise.
24280 * loader/i386/multiboot.c (mbi): Removed.
24281 (mbi_dest): Likewise.
24282 (alloc_mbi): New variable.
24283 (grub_multiboot_payload_size): Removed. All users updated.
24284 (grub_multiboot_pure_size): New variable.
24285 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24286 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24287 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24288 (grub_fill_multiboot_mmap): Likewise.
24289 (grub_multiboot_get_bootdev): Likewise.
24290 (grub_multiboot): Use multiboot_mbi functions.
24291 * loader/i386/multiboot_mbi.c: New file.
24292
24293 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24294
24295 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24296 it would result in module crash.
24297
24298 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24299
24300 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24301 (grub_ofconsole_getwh): Split to ...
24302 (grub_ofconsole_getwh): ... this.
24303 (grub_ofconsole_dimensions): ...and this.
24304 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24305
24306 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24307
24308 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24309
24310 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24311
24312 * loader/i386/pc/multiboot2.c: Removed stalled file.
24313
24314 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24315
24316 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24317 Reported by: Grégoire Sutre
24318
24319 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24320
24321 * util/misc.c (canonicalize_file_name): New function.
24322 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24323 instead of realpath().
24324
24325 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24326
24327 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24328 and make it clearer that it's optional. Based on confusion
24329 witnessed on IRC.
24330
24331 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24332
24333 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24334 in premature implicit newline.
24335
24336 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24337
24338 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24339 which resulted in garbled command line at the end of screen.
24340
24341 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24342
24343 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24344 initialization with similar approach as with other Linux loaders.
24345
24346 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24347
24348 Fix i386-ieee1275 build.
24349
24350 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24351 and grub_term_height() for video_{width,height} initialization.
24352
24353 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24354
24355 Fix grub-emu build.
24356
24357 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24358
24359 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24360 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24361
24362 Support for multiple terminals.
24363
24364 * Makefile.in (pkglib_DATA): terminal.lst.
24365 (terminal.lst): New target.
24366 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24367 (GRUB_MOD_INIT(handler)): Likewise.
24368 (GRUB_MOD_FINI(handler)): Likewise.
24369 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24370 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24371 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24372 (grub_cmd_sleep): Use grub_term_save_pos.
24373 * commands/terminal.c: New file.
24374 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24375 commands/terminal.c and lib/charset.c.
24376 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24377 (pkglib_MODULES): Add terminal.mod.
24378 (terminal_mod_SOURCES): New variable.
24379 (terminal_mod_CFLAGS): Likewise.
24380 (terminal_mod_LDFLAGS): Likewise.
24381 * genhandlerlist.sh: Don't handle terminals.
24382 * genmk.rb: Generate terminal-*.lst.
24383 * genterminallist.sh: New file.
24384 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24385 (grub_is_valid_utf8): Likewise.
24386 (grub_utf8_to_ucs4_alloc): Likewise.
24387 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24388 (grub_menu_register_viewer): Changed argument.
24389 (grub_menu_try_text): New proto.
24390 (grub_gfxmenu_try_hook): New declaration.
24391 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24392 (grub_menu_init_page): Additional argument term.
24393 (grub_normal_init_page): Likewise.
24394 (grub_cmdline_get): Arguments simplified.
24395 (grub_utf8_to_ucs4_alloc): Removed.
24396 (grub_print_ucs4): Additional argument term.
24397 (grub_getstringwidth): Likewise.
24398 (grub_print_message_indented): Likewise.
24399 (grub_menu_text_register_instances): New proto.
24400 (grub_show_menu): Likewise.
24401 (read_terminal_list): Likewise.
24402 (grub_set_more): Likewise.
24403 * include/grub/parser.h: Include handler.h.
24404 * include/grub/reader.h: Rewritten.
24405 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24406 (GRUB_TERM_WIDTH): Changed to function.
24407 (GRUB_TERM_HEIGHT): Likewise.
24408 (GRUB_TERM_BORDER_WIDTH): Likewise.
24409 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24410 (GRUB_TERM_NUM_ENTRIES): Likewise.
24411 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24412 (GRUB_TERM_CURSOR_X): Likewise.
24413 (grub_term_input_class): Likewise.
24414 (grub_term_output_class): Likewise.
24415 (grub_term_outputs_disabled): New declaration.
24416 (grub_term_inputs_disabled): Likewise.
24417 (grub_term_outputs): Likewise.
24418 (grub_term_inputs): Likewise.
24419 (grub_term_register_input): Rewritten.
24420 (grub_term_register_output): Likewise.
24421 (grub_term_unregister_input): Likewise.
24422 (grub_term_unregister_output): Likewise.
24423 (FOR_ACTIVE_TERM_INPUTS): New macro.
24424 (FOR_DISABLED_TERM_INPUTS): Likewise.
24425 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24426 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24427 * include/grub/terminfo.h: Add oterm argument to all protypes.
24428 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24429 Use grub_rescue_run.
24430 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24431 All users updated.
24432 * kern/reader.c: Removed. All users updated.
24433 * kern/rescue_reader.c (grub_rescue_init): Removed.
24434 (grub_rescue_reader): Likewise.
24435 (grub_register_rescue_reader): Likewise.
24436 (grub_rescue_run): New function based on kern/reader.c.
24437 * kern/term.c: Adapted for multiterm.
24438 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24439 (grub_is_valid_utf8): Likewise.
24440 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24441 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24442 right terminal.
24443 * loader/i386/linux.c (grub_linux_boot): Likewise.
24444 * normal/auth.c (grub_username_get): New function.
24445 (grub_auth_check_authentication): Use grub_username_get.
24446 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24447 * normal/color.c: Adapt for multiterm.
24448 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24449 (grub_normal_init_page): Additional argument term.
24450 (read_lists): Call read_terminal_lists.
24451 (grub_enter_normal_mode): Call grub_cmdline_run.
24452 Handle grub_normal_exit_level.
24453 (grub_cmd_normal): Make reentrant.
24454 (grub_cmd_normal_exit): New function.
24455 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24456 * normal/menu.c: Adapt for multiterm.
24457 * normal/menu_entry.c: Likewise.
24458 * normal/menu_text.c: Likewise.
24459 * normal/menu_viewer.c: Removed. All users updated.
24460 * normal/term.c: New file.
24461 * util/console.c: Change order of includes to workaround a bug in
24462 ncurses headers.
24463 * term/terminfo.c: New argument oterm on all exported functions.
24464 All users updated.
24465 * util/grub-editenv.c (grub_term_input_class): Removed.
24466 (grub_term_output_class): Likewise.
24467
24468 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24469
24470 Make loader output a bit more user-friendly.
24471
24472 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24473 is being loaded. Likewise for the Hurd.
24474
24475 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24476 that kernel of FreeBSD ${version} is being loaded.
24477
24478 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24479 grub_dprintf().
24480 (grub_cmd_initrd): Likewise.
24481 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24482 that Linux ${version} is being loaded. Likewise for initrd.
24483
24484 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24485
24486 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24487
24488 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24489
24490 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24491 (GRUB_MOD_INIT): Gettextizze.
24492 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24493 (GRUB_MOD_INIT): Gettextizze.
24494 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24495 (grub_cmd_linux): Capitalise Linux.
24496 (GRUB_MOD_INIT): Gettextizze.
24497 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24498 (grub_cmd_linux): Capitalise Linux.
24499 (GRUB_MOD_INIT): Gettextizze.
24500 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24501 (grub_cmd_linux): Capitalise Linux.
24502 (GRUB_MOD_INIT): Gettextizze.
24503 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24504 (GRUB_MOD_INIT): Gettextizze.
24505 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24506 (grub_cmd_linux): Capitalise Linux.
24507 (GRUB_MOD_INIT): Gettextizze.
24508 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24509 (grub_cpu_xnu_init): Gettextizze.
24510 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24511 (GRUB_MOD_INIT): Gettextizze.
24512 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24513 (GRUB_MOD_INIT): Gettextizze.
24514 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24515 (grub_linux_load64): Capitalise Linux.
24516 (GRUB_MOD_INIT): Gettextizze.
24517 * loader/xnu.c: Include `<grub/i18n.h>'.
24518 (GRUB_MOD_INIT): Gettextizze.
24519 * po/POTFILES: Add `loader/efi/appleloader.c',
24520 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24521 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24522 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24523 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24524 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24525 and `loader/xnu.c'.
24526
24527 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24528
24529 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24530
24531 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24532
24533 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24534 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24535 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24536
24537 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24538
24539 Reset Multiboot 2 support. New loader implements the draft in
24540 /branches/multiboot2 and shares as much code as possible with the
24541 production Multiboot 1 implementation.
24542
24543 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24544 * loader/multiboot2.c: Likewise.
24545 * loader/i386/multiboot_helper.S: Likewise.
24546 * include/multiboot2.h: Replace with latest version from the draft
24547 in /branches/multiboot2.
24548
24549 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24550 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24551 and `loader/multiboot2.c'.
24552 (pkglib_MODULES): Add `multiboot2.mod'.
24553 (multiboot2_mod_SOURCES): New variable.
24554 (multiboot2_mod_LDFLAGS): Likewise.
24555 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24556
24557 * conf/i386-pc.rmk: Likewise.
24558
24559 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24560 (multiboot_mod_SOURCES): Remove variable.
24561 (multiboot_mod_LDFLAGS): Likewise.
24562 (multiboot_mod_CFLAGS): Likewise.
24563
24564 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24565 `<multiboot2.h>' instead of `<multiboot.h>'.
24566 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24567 (MULTIBOOT_HEADER_MAGIC): New macros.
24568
24569 * loader/multiboot_loader.c (module_version_status): Remove variable.
24570 (find_multi_boot2_header): Remove function.
24571 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24572 logic. Always check for the Multiboot version we're compiling for.
24573 (grub_cmd_module_loader): Likewise.
24574 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24575 command instead of `multiboot'.
24576
24577 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24578
24579 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24580 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24581 all users.
24582
24583 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24584 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24585
24586 Fix breakage introduced with previous commit.
24587
24588 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24589 commands.
24590 * normal/handler.c (read_handler_list): Revert part of previous commit
24591 affecting this file.
24592 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24593 (grub_normal_execute): ... here.
24594
24595 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24596
24597 Merge prefix-redefinition-fix branch.
24598
24599 * normal/autofs.c (read_fs_list): Make function capable of being
24600 run multiple times, gracefuly replacing the previous data
24601 structures.
24602 * normal/dyncmd.c (read_command_list): Likewise.
24603 * normal/handler.c (read_handler_list): Likewise.
24604 * normal/main.c (read_lists): New function. Calls all the
24605 list reading functions.
24606 (grub_normal_execute): Use read_lists() instead of calling all
24607 list reading functions explicitly. Register read_lists() as a
24608 variable hook attached to ${prefix}.
24609
24610 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24611
24612 Merge crypto branch.
24613
24614 * Makefile.in (pkglib_DATA): Add crypto.lst.
24615 (crypto.lst): New target.
24616 * commands/hashsum.c: New file.
24617 * commands/password.c (check_password): Use grub_crypto_memcmp.
24618 * commands/password_pbkdf2.c: New file.
24619 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24620 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24621 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24622 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24623 -I$(srcdir)/lib/libgcrypt_wrap.
24624 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24625 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24626 password_pbkdf2.mod.
24627 (crypto_mod_SOURCES): New variable.
24628 (crypto_mod_CFLAGS): Likewise.
24629 (crypto_mod_LDFLAGS): Likewise.
24630 (hashsum_mod_SOURCES): New variable.
24631 (hashsum_mod_CFLAGS): Likewise.
24632 (hashsum_mod_LDFLAGS): Likewise.
24633 (pbkdf2_mod_SOURCES): New variable.
24634 (pbkdf2_mod_CFLAGS): Likewise.
24635 (pbkdf2_mod_LDFLAGS): Likewise.
24636 (password_pbkdf2_mod_SOURCES): New variable.
24637 (password_pbkdf2_mod_CFLAGS): Likewise.
24638 (password_pbkdf2_mod_LDFLAGS): Likewise.
24639 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24640 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24641 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24642 Include conf/gcry.rmk.
24643 * include/grub/auth.h: Rewritten.
24644 * include/grub/crypto.h: New file.
24645 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24646 * include/grub/normal.h (read_crypto_list): New prototype.
24647 * lib/crypto.c: New file.
24648 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24649 * lib/pbkdf2.c: Likewise.
24650 * normal/auth.c (grub_auth_strcmp): Removed.
24651 (grub_iswordseparator): Likewise.
24652 (grub_auth_strword): Likewise.
24653 (is_authenticated): Use grub_strword.
24654 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24655 and grub_strword. Pass entered password to authentication callback.
24656 * normal/crypto.c: New file.
24657 * normal/main.c: Call read_crypto_list.
24658 * util/grub-mkpasswd-pbkdf2.c: New file.
24659 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24660
24661 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24662
24663 Fix descent and ascent calculation.
24664
24665 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24666 (options): New option "asce".
24667 (usage): Likewise.
24668 (add_char): Ignore invalid glyphs for descent calculation.
24669 Calculate ascent from actual content.
24670 (print_glyphs): Use 'asce'.
24671 (write_font): Likewise. Allow ascent override.
24672 (main): Handle "asce" option.
24673
24674 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24675
24676 * kern/err.c: Include `<grub/i18n.h>'.
24677 (grub_print_error): Add full stop. Gettextizze.
24678 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24679 (grub_bsd_load_elf): Capitalise ELF.
24680 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24681 (grub_cmd_freebsd_module): Likewise.
24682 (grub_cmd_freebsd_module_elf): Likewise.
24683 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24684
24685 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24686
24687 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24688 * commands/search_file.c (HELP_MESSAGE): New macro.
24689 * commands/search_label.c (HELP_MESSAGE): Likewise.
24690 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24691 * po/POTFILES: Add `commands/search_file.c',
24692 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24693 `commands/search.c'.
24694
24695 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24696
24697 * config.rpath: Update from Gnulib.
24698
24699 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24700
24701 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24702
24703 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24704
24705 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24706
24707 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24708
24709 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24710 arguments to fread so that we get a return value in bytes, rather
24711 than something that will normally be rounded down to 0.
24712 Adjust error handling to avoid producing garbage when size_t is not
24713 the same size as long long.
24714
24715 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24716
24717 * util/mkisofs/write.c (padblock_write): Check return value of
24718 fread.
24719
24720 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24721
24722 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24723 floppy images now.
24724
24725 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24726
24727 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24728
24729 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24730 instead of manual alignment.
24731 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24732 verbose). Avoid attempts to read past end of the device
24733 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24734 but GRUB_DISK_CACHE_SIZE may exceed that).
24735
24736 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24737
24738 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24739 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24740 it to upper layer.
24741
24742 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24743
24744 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24745 New constant.
24746 (grub_efi_piwg_device_path): New structure
24747 (grub_efi_piwg_device_path_t): New type.
24748 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24749 (devpath_1): Transform to a structure. All users updated.
24750 (devpath_2): Likewise.
24751 (devpath_3): Likewise.
24752 (devpath_4): Likewise.
24753 (devpath_5): Likewise.
24754
24755 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24756
24757 * loader/efi/appleloader.c: Restored. Update all users.
24758
24759 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24760
24761 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24762
24763 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24764 (struct boot_blocklist): Move from here ...
24765 * include/grub/i386/pc/boot.h [ASM_FILE]
24766 (struct grub_boot_blocklist): ... to here. Update all users.
24767 (setup): Only initialize `start' member of `first_block'
24768 structure. Add assert() calls to verify the other members.
24769
24770 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
24771 (generate_image): Fix broken blocklist length initialization.
24772 Add assert() call to verify blocklist `segment' field.
24773
24774 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24775
24776 * loader/efi/appleloader.c: Remove. Update all users.
24777
24778 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24779
24780 * boot/i386/pc/boot.S: Update copyright year.
24781 * boot/i386/pc/cdboot.S: Likewise.
24782 * boot/i386/pc/diskboot.S: Likewise.
24783 * boot/i386/pc/lnxboot.S: Likewise.
24784 * boot/i386/pc/pxeboot.S: Likewise.
24785 * bus/pci.c: Likewise.
24786 * commands/cmp.c: Likewise.
24787 * commands/help.c: Likewise.
24788 * commands/hexdump.c: Likewise.
24789 * commands/i386/pc/halt.c: Likewise.
24790 * commands/i386/pc/play.c: Likewise.
24791 * commands/i386/pc/vbeinfo.c: Likewise.
24792 * commands/ls.c: Likewise.
24793 * commands/test.c: Likewise.
24794 * disk/dmraid_nvidia.c: Likewise.
24795 * disk/i386/pc/biosdisk.c: Likewise.
24796 * disk/ieee1275/nand.c: Likewise.
24797 * disk/ieee1275/ofdisk.c: Likewise.
24798 * disk/lvm.c: Likewise.
24799 * disk/raid.c: Likewise.
24800 * disk/raid6_recover.c: Likewise.
24801 * disk/scsi.c: Likewise.
24802 * fs/affs.c: Likewise.
24803 * fs/cpio.c: Likewise.
24804 * fs/ext2.c: Likewise.
24805 * fs/hfs.c: Likewise.
24806 * fs/iso9660.c: Likewise.
24807 * fs/ntfs.c: Likewise.
24808 * fs/sfs.c: Likewise.
24809 * fs/udf.c: Likewise.
24810 * fs/ufs.c: Likewise.
24811 * fs/xfs.c: Likewise.
24812 * gencmdlist.sh: Likewise.
24813 * genmk.rb: Likewise.
24814 * include/grub/disk.h: Likewise.
24815 * include/grub/efi/api.h: Likewise.
24816 * include/grub/efi/efi.h: Likewise.
24817 * include/grub/efi/pe32.h: Likewise.
24818 * include/grub/elf.h: Likewise.
24819 * include/grub/fs.h: Likewise.
24820 * include/grub/i386/at_keyboard.h: Likewise.
24821 * include/grub/i386/pc/memory.h: Likewise.
24822 * include/grub/i386/pc/vbe.h: Likewise.
24823 * include/grub/i386/pci.h: Likewise.
24824 * include/grub/i386/tsc.h: Likewise.
24825 * include/grub/ieee1275/ieee1275.h: Likewise.
24826 * include/grub/ntfs.h: Likewise.
24827 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24828 * include/grub/sparc64/libgcc.h: Likewise.
24829 * include/grub/symbol.h: Likewise.
24830 * include/grub/types.h: Likewise.
24831 * include/multiboot2.h: Likewise.
24832 * io/gzio.c: Likewise.
24833 * kern/device.c: Likewise.
24834 * kern/disk.c: Likewise.
24835 * kern/efi/efi.c: Likewise.
24836 * kern/efi/mm.c: Likewise.
24837 * kern/elf.c: Likewise.
24838 * kern/file.c: Likewise.
24839 * kern/i386/dl.c: Likewise.
24840 * kern/i386/pc/init.c: Likewise.
24841 * kern/i386/pc/startup.S: Likewise.
24842 * kern/ieee1275/ieee1275.c: Likewise.
24843 * kern/ieee1275/init.c: Likewise.
24844 * kern/main.c: Likewise.
24845 * kern/mm.c: Likewise.
24846 * kern/powerpc/dl.c: Likewise.
24847 * kern/sparc64/dl.c: Likewise.
24848 * kern/x86_64/dl.c: Likewise.
24849 * lib/hexdump.c: Likewise.
24850 * loader/efi/appleloader.c: Likewise.
24851 * loader/i386/ieee1275/linux.c: Likewise.
24852 * loader/i386/pc/chainloader.c: Likewise.
24853 * loader/i386/pc/linux.c: Likewise.
24854 * loader/i386/pc/multiboot2.c: Likewise.
24855 * loader/ieee1275/multiboot2.c: Likewise.
24856 * loader/multiboot2.c: Likewise.
24857 * loader/multiboot_loader.c: Likewise.
24858 * loader/powerpc/ieee1275/linux.c: Likewise.
24859 * normal/completion.c: Likewise.
24860 * normal/menu_entry.c: Likewise.
24861 * partmap/apple.c: Likewise.
24862 * util/grub.d/10_hurd.in: Likewise.
24863 * util/hostfs.c: Likewise.
24864 * video/readers/png.c: Likewise.
24865
24866 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
24867
24868 * include/grub/misc.h (GNUC_PREREQ): New macro.
24869 (ATTRIBUTE_ERROR): New macro.
24870 * include/grub/list.h (grub_bad_type_cast_real): Use
24871 ATTRIBUTE_ERROR.
24872
24873 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24874
24875 * normal/menu_text.c (print_message): Change messages.
24876
24877 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24878
24879 * normal/menu_entry.c (store_completion): Gettextizze.
24880
24881 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24882
24883 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
24884
24885 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24886
24887 * po/POTFILES: Sort correctly.
24888
24889 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24890
24891 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
24892 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
24893 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
24894 full stop.
24895 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
24896 summary. Gettextizze the strings.
24897 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
24898 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
24899 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
24900 full stop.
24901 (GRUB_MOD_INIT): Remove command name from summary.
24902 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
24903 summary.
24904 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
24905 * term/i386/pc/serial.c (options): Add full stops.
24906 (GRUB_MOD_INIT): Remove command name from the summary.
24907
24908 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24909
24910 * commands/acpi.c: Gettextizze help strings and/or options. Include
24911 `grub/i18n.h' if needed.
24912 * commands/blocklist.c: Likewise.
24913 * commands/boot.c: Likewise.
24914 * commands/cat.c: Likewise.
24915 * commands/cmp.c: Likewise.
24916 * commands/configfile.c: Likewise.
24917 * commands/crc.c: Likewise.
24918 * commands/date.c: Likewise.
24919 * commands/echo.c: Likewise.
24920 * commands/efi/fixvideo.c: Likewise.
24921 * commands/efi/loadbios.c: Likewise.
24922 * commands/gptsync.c: Likewise.
24923 * commands/halt.c: Likewise.
24924 * commands/handler.c: Likewise.
24925 * commands/hdparm.c: Likewise.
24926 * commands/hexdump.c: Likewise.
24927 * commands/i386/cpuid.c: Likewise.
24928 * commands/i386/pc/drivemap.c: Likewise.
24929 * commands/i386/pc/halt.c: Likewise.
24930 * commands/i386/pc/pxecmd.c: Likewise.
24931 * commands/i386/pc/vbeinfo.c: Likewise.
24932 * commands/i386/pc/vbetest.c: Likewise.
24933 * commands/ieee1275/suspend.c: Likewise.
24934 * commands/keystatus.c: Likewise.
24935 * commands/loadenv.c: Likewise.
24936 * commands/ls.c: Likewise.
24937 * commands/lsmmap.c: Likewise.
24938 * commands/lspci.c: Likewise.
24939 * commands/memrw.c: Likewise.
24940 * commands/minicmd.c: Likewise.
24941 * commands/parttool.c: Likewise.
24942 * commands/password.c: Likewise.
24943 * commands/probe.c: Likewise.
24944 * commands/read.c: Likewise.
24945 * commands/reboot.c: Likewise.
24946 * commands/search.c: Likewise.
24947 * commands/sleep.c: Likewise.
24948 * commands/test.c: Likewise.
24949 * commands/true.c: Likewise.
24950 * commands/usbtest.c: Likewise.
24951 * commands/videotest.c: Likewise.
24952 * commands/xnu_uuid.c: Likewise.
24953 * disk/loopback.c: Likewise.
24954 * hello/hello.c: Likewise.
24955 * loader/i386/bsd.c: Likewise.
24956 * term/i386/pc/serial.c: Likewise.
24957 * po/POTFILES: Add new files.
24958
24959 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
24960
24961 * term/i386/pc/at_keyboard.c
24962 (keyboard_controller_wait_untill_ready): Rename to ...
24963 (keyboard_controller_wait_until_ready): ... this. Update all users.
24964
24965 2010-01-01 Carles Pina i Estany <carles@pina.cat>
24966
24967 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
24968 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
24969 string using string width.
24970 * normal/menu_text.c (grub_print_message_indented): Use
24971 grub_print_spaces and not print_spaces.
24972 (print_timeout): Likewise.
24973 (print_spaces): Move to...
24974 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
24975
24976 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
24977
24978 Import from Gnulib.
24979
24980 * gnulib/getdelim.c: New file.
24981 * gnulib/getline.c: Likewise.
24982
24983 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
24984
24985 * include/grub/list.h (grub_assert_fail): Removed.
24986 (grub_bad_type_cast_real): New function.
24987 (grub_bad_type_cast): New macro.
24988 (GRUB_AS_LIST): Use grub_bad_type_cast.
24989 (GRUB_AS_LIST_P): Likewise.
24990 (GRUB_AS_NAMED_LIST): Likewise.
24991 (GRUB_AS_NAMED_LIST_P): Likewise.
24992 (GRUB_AS_PRIO_LIST): Likewise.
24993 (GRUB_AS_PRIO_LIST_P): Likewise.
24994 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
24995
24996 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
24997
24998 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
24999 Fix syntax error.
25000
25001 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25002
25003 * configure.ac: Check for TARGET_CFLAGS initialization before we
25004 initialize it ourselves (sigh).
25005 Move a few modifications to TARGET_CFLAGS to be unconditional
25006 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25007 eh_frame)
25008
25009 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25010 * term/i386/pc/at_keyboard.c
25011 (keyboard_controller_wait_untill_ready): Likewise.
25012 (keyboard_controller_led): Rename `led_status' paramter to avoid
25013 name conflict.
25014
25015 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25016
25017 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25018 quotes.
25019
25020 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25021
25022 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25023
25024 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25025
25026 * normal/menu_text.c (grub_print_message_indented): Prevent
25027 past-the-end-of-array dereference.
25028
25029 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25030
25031 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25032 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25033
25034 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25035
25036 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25037 * normal/main.c (grub_normal_read_line): Remove a space from the
25038 default prompt.
25039
25040 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25041
25042 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25043 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25044 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25045 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25046 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25047 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25048 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25049
25050 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25051
25052 * video/readers/jpeg.c (cmd): Declare.
25053 (grub_cmd_jpegtest): Use `grub_command_t' type.
25054 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25055 Assign to `cmd'.
25056 (GRUB_MOD_FINI): Use `cmd' to unregister.
25057 * video/readers/png.c (cmd): Declare.
25058 (grub_cmd_pngtest): Use `grub_command_t' type.
25059 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25060 Assign to `cmd'.
25061 (GRUB_MOD_FINI): Use `cmd' to unregister.
25062 * video/readers/tga.c (cmd): Declare.
25063 (grub_cmd_tgatest): Use `grub_command_t' type.
25064 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25065 Assign to `cmd'.
25066 (GRUB_MOD_FINI): Use `cmd' to unregister.
25067
25068 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25069
25070 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25071 stops.
25072 * kern/corecmd.c (grub_register_core_commands): Likewise.
25073 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25074 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25075 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25076 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25077 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25078 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25079 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25080 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25081 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25082 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25083 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25084 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25085 * normal/handler.c (insert_handler): Likewise.
25086 * normal/main.c (GRUB_MOD_INIT): Likewise.
25087 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25088
25089 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25090
25091 * commands/help.c (grub_cmd_help): Print the command name before the
25092 summary.
25093 (GRUB_MOD_INIT): Remove command name from the summary.
25094 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25095 string as summary.
25096 * lib/arg.c (find_long): Print the command name before the summary.
25097 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25098 summary.
25099 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25100 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25101 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25102 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25103 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25104 * commands/date.c (GRUB_MOD_INIT): Likewise.
25105 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25106 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25107 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25108 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25109 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25110 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25111 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25112 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25113 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25114 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25115 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25116 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25117 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25118 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25119 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25120 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25121 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25122 * commands/password.c (GRUB_MOD_INIT): Likewise.
25123 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25124 * commands/read.c (GRUB_MOD_INIT): Likewise.
25125 * commands/search.c (GRUB_MOD_INIT): Likewise.
25126 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25127 * commands/test.c (GRUB_MOD_INIT): Likewise.
25128 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25129 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25130 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25131 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25132 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25133 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25134 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25135 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25136 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25137 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25138 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25139 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25140 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25141 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25142
25143 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25144
25145 Use search command for preliminar UUID search.
25146
25147 * commands/search.c: Split into ...
25148 * commands/search_wrap.c: ...this
25149 * commands/search.c: ...and this.
25150 * commands/search_file.c: New file.
25151 * commands/search_label.c: New file.
25152 * commands/search_uuid.c: New file.
25153 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25154 Add commands/search_wrap.c, commands/search_file.c,
25155 commands/search_label.c and commands/search_uuid.c.
25156 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25157 (search_mod_SOURCES): Set to commands/search_wrap.c.
25158 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25159 search_label.mod.
25160 (search_fs_file_mod_SOURCES): New variable.
25161 (search_fs_file_mod_CFLAGS): Likewise.
25162 (search_fs_file_mod_LDFLAGS): Likewise.
25163 (search_label_mod_SOURCES): Likewise.
25164 (search_label_mod_CFLAGS): Likewise.
25165 (search_label_mod_LDFLAGS): Likewise.
25166 (search_fs_uuid_mod_SOURCES): New variable.
25167 (search_fs_uuid_mod_CFLAGS): Likewise.
25168 (search_fs_uuid_mod_LDFLAGS): Likewise.
25169 (fs_file_mod_SOURCES): Removed.
25170 (fs_file_mod_CFLAGS): Likewise.
25171 (fs_file_mod_LDFLAGS): Likewise.
25172 (fs_uuid_mod_SOURCES): Removed.
25173 (fs_uuid_mod_CFLAGS): Likewise.
25174 (fs_uuid_mod_LDFLAGS): Likewise.
25175 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25176 Set to util/grub-install.in.
25177 * disk/fs_file.c: Removed.
25178 * disk/fs_uuid.c: Likewise.
25179 * include/grub/search.h: New file.
25180 * util/grub-install.in: Handle sparc64.
25181 Create and use load.cfg.
25182 * util/sparc64/ieee1275/grub-install.in: Removed.
25183
25184 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25185
25186 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25187 Ignore return status if CF is cleared.
25188 (grub_biosdisk_get_diskinfo_standard): Likewise.
25189
25190 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25191
25192 * term/i386/pc/at_keyboard.c
25193 (keyboard_controller_wait_untill_ready): New function.
25194 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25195 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25196 for keyboard polling, rather than duplicate the same loop. This
25197 saves a few bytes in code size.
25198
25199 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25200
25201 Support for (pxe[:server[:gateway]]) syntax and
25202 use environment variable for PXE.
25203
25204 * commands/i386/pc/pxecmd.c (options): Removed.
25205 (print_ip): Removed.
25206 (grub_cmd_pxe): Removed
25207 (grub_cmd_pxe_unload): New function.
25208 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25209 (grub_pxe_your_ip): Made static.
25210 (grub_pxe_default_server_ip): Likewise.
25211 (grub_pxe_default_gateway_ip): Likewise.
25212 (grub_pxe_blksize): Likewise.
25213 (parse_ip): New function.
25214 (grub_pxe_open): Support server and gateway specification.
25215 (grub_pxe_close): Free disk->data.
25216 (grub_pxefs_open): Use disk->data.
25217 (grub_pxefs_read): Likewise.
25218 (grub_env_write_readonly): New function.
25219 (set_mac_env): Likewise.
25220 (set_env_limn_ro): Likewise.
25221 (parse_dhcp_vendor): Likewise.
25222 (grub_pxe_detect): Set the environment variables.
25223 (set_ip_env): New function.
25224 (write_ip_env): Likewise.
25225 (grub_env_write_pxe_default_server): Likewise.
25226 (grub_env_write_pxe_default_gateway): Likewise.
25227 (grub_env_write_pxe_blocksize): Likewise.
25228 (GRUB_MOD_INIT(pxe)): Set environment variables.
25229 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25230 (grub_pxe_mac_addr_t): ... this. All users updated.
25231 (grub_pxe_your_ip): Removed.
25232 (grub_pxe_server_ip): Likewise.
25233 (grub_pxe_gateway_ip): Likewise.
25234 (grub_pxe_blksize): Likewise.
25235
25236 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25237
25238 * commands/help.c: Include `<grub/i18n.h>'.
25239 (grub_cmd_help): Gettextizze.
25240 (GRUB_MOD_INIT): Likewise.
25241 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25242 (GRUB_MOD_INIT): Gettextizze.
25243 * commands/search.c: Include `<grub/i18n.h>'.
25244 (options): Gettextizze.
25245 (GRUB_MOD_INIT): Gettextizze.
25246 * lib/arg.c: Include `<grub/i18n.h>'.
25247 (help_options): Gettextizze.
25248 (find_long): Likewise.
25249 (grub_arg_show_help): Likewise.
25250 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25251 (read_command_list): Gettextizze.
25252 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25253 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25254
25255 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25256
25257 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25258 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25259 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25260 (led_status): New variable.
25261 (keyboard_controller_led): New function.
25262 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25263 update led status for caps lock, num lock and scroll lock.
25264
25265 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25266
25267 * util/hostdisk.c (open_device): Fix a comment.
25268
25269 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25270
25271 * util/grub-install.in (host_os): New variable.
25272 * util/i386/efi/grub-install.in (host_os): Likewise.
25273
25274 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25275
25276 * util/mkisofs/write.c (padblock_write): Abort when given an
25277 excedingly large embed image, instead of silently truncating it.
25278
25279 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25280
25281 * include/multiboot.h: Indentation fixes.
25282
25283 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25284
25285 * include/multiboot.h (struct multiboot_aout_symbol_table)
25286 (struct multiboot_elf_section_header_table): New structure
25287 declarations (stolen from GRUB Legacy).
25288 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25289 table information.
25290
25291 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25292 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25293 type aliases.
25294
25295 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25296
25297 * include/multiboot.h: Make comments src2texi-friendly.
25298
25299 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25300
25301 For consistency with [multiboot]/docs/boot.S.
25302
25303 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25304 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25305 (MULTIBOOT_MAGIC2): Rename from this ...
25306 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25307
25308 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25309
25310 * include/multiboot.h: Remove `<grub/types.h>'.
25311 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25312 types. Update all users.
25313
25314 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25315
25316 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25317 `couldn't' and `can not' by `cannot'.
25318 * commands/i386/pc/drivemap.c: Likewise.
25319 * disk/ata.c: Likewise.
25320 * disk/ieee1275/nand.c: Likewise.
25321 * fs/affs.c: Likewise.
25322 * fs/fat.c: Likewise.
25323 * fs/hfs.c: Likewise.
25324 * fs/hfsplus.c: Likewise.
25325 * fs/iso9660.c: Likewise.
25326 * fs/jfs.c: Likewise.
25327 * fs/minix.c: Likewise.
25328 * fs/reiserfs.c: Likewise.
25329 * fs/sfs.c: Likewise.
25330 * fs/udf.c: Likewise.
25331 * fs/ufs.c: Likewise.
25332 * fs/xfs.c: Likewise.
25333 * loader/powerpc/ieee1275/linux.c: Likewise.
25334 * loader/sparc64/ieee1275/linux.c: Likewise.
25335 * util/grub-probe.c: Likewise.
25336 * util/misc.c: Likewise.
25337
25338 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25339
25340 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25341 grub_errno calls.
25342 * commands/acpi.c: Likewise.
25343 * commands/blocklist.c: Likewise.
25344 * commands/efi/loadbios.c: Likewise.
25345 * commands/i386/pc/drivemap.c: Likewise.
25346 * commands/loadenv.c: Likewise.
25347 * commands/memrw.c: Likewise.
25348 * commands/password.c: Likewise.
25349 * commands/videotest.c: Likewise.
25350 * disk/ata.c: Likewise.
25351 * disk/ata_pthru.c: Likewise.
25352 * disk/dmraid_nvidia.c: Likewise.
25353 * disk/ieee1275/nand.c: Likewise.
25354 * disk/ieee1275/ofdisk.c: Likewise.
25355 * disk/loopback.c: Likewise.
25356 * disk/lvm.c: Likewise.
25357 * disk/mdraid_linux.c: Likewise.
25358 * disk/raid.c: Likewise.
25359 * disk/raid6_recover.c: Likewise.
25360 * disk/scsi.c: Likewise.
25361 * efiemu/main.c: Likewise.
25362 * efiemu/mm.c: Likewise.
25363 * efiemu/pnvram.c: Likewise.
25364 * efiemu/symbols.c: Likewise.
25365 * font/font.c: Likewise.
25366 * fs/cpio.c: Likewise.
25367 * fs/hfsplus.c: Likewise.
25368 * fs/iso9660.c: Likewise.
25369 * fs/jfs.c: Likewise.
25370 * fs/minix.c: Likewise.
25371 * fs/ntfs.c: Likewise.
25372 * fs/ntfscomp.c: Likewise.
25373 * fs/reiserfs.c: Likewise.
25374 * fs/ufs.c: Likewise.
25375 * fs/xfs.c: Likewise.
25376 * gettext/gettext.c: Likewise.
25377 * include/grub/auth.h: Likewise.
25378 * kern/elf.c: Likewise.
25379 * kern/file.c: Likewise.
25380 * kern/ieee1275/init.c: Likewise.
25381 * kern/ieee1275/mmap.c: Likewise.
25382 * kern/ieee1275/openfw.c: Likewise.
25383 * kern/powerpc/dl.c: Likewise.
25384 * kern/sparc64/dl.c: Likewise.
25385 * lib/arg.c: Likewise.
25386 * loader/i386/bsd.c: Likewise.
25387 * loader/i386/bsdXX.c: Likewise.
25388 * loader/i386/efi/linux.c: Likewise.
25389 * loader/i386/efi/xnu.c: Likewise.
25390 * loader/i386/ieee1275/linux.c: Likewise.
25391 * loader/i386/linux.c: Likewise.
25392 * loader/i386/multiboot.c: Likewise.
25393 * loader/i386/pc/linux.c: Likewise.
25394 * loader/i386/pc/multiboot2.c: Likewise.
25395 * loader/i386/xnu.c: Likewise.
25396 * loader/ieee1275/multiboot2.c: Likewise.
25397 * loader/macho.c: Likewise.
25398 * loader/machoXX.c: Likewise.
25399 * loader/multiboot2.c: Likewise.
25400 * loader/multiboot_loader.c: Likewise.
25401 * loader/powerpc/ieee1275/linux.c: Likewise.
25402 * loader/sparc64/ieee1275/linux.c: Likewise.
25403 * loader/xnu.c: Likewise.
25404 * loader/xnu_resume.c: Likewise.
25405 * mmap/i386/pc/mmap.c: Likewise.
25406 * normal/menu_viewer.c: Likewise.
25407 * partmap/acorn.c: Likewise.
25408 * partmap/amiga.c: Likewise.
25409 * partmap/apple.c: Likewise.
25410 * script/lexer.c: Likewise.
25411 * term/gfxterm.c: Likewise.
25412 * term/i386/pc/serial.c: Likewise.
25413 * term/i386/pc/vga.c: Likewise.
25414 * term/ieee1275/ofconsole.c: Likewise.
25415 * term/terminfo.c: Likewise.
25416 * video/bitmap.c: Likewise.
25417 * video/efi_gop.c: Likewise.
25418 * video/efi_uga.c: Likewise.
25419 * video/fb/video_fb.c: Likewise.
25420 * video/i386/pc/vbe.c: Likewise.
25421 * video/readers/tga.c: Likewise.
25422 * video/video.c: Likewise.
25423
25424 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25425
25426 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25427 * commands/lspci.c: Likewise.
25428 * commands/probe.c: Likewise.
25429 * commands/xnu_uuid.c: Likewise.
25430 * conf/i386-coreboot.rmk: Likewise.
25431 * conf/i386-efi.rmk: Likewise.
25432 * conf/i386-ieee1275.rmk: Likewise.
25433 * conf/i386-pc.rmk: Likewise.
25434 * conf/powerpc-ieee1275.rmk: Likewise.
25435 * conf/sparc64-ieee1275.rmk: Likewise.
25436 * conf/x86_64-efi.rmk: Likewise.
25437 * fs/i386/pc/pxe.c: Likewise.
25438 * gettext/gettext.c: Likewise.
25439 * include/grub/efi/graphics_output.h: Likewise.
25440 * include/grub/i386/pc/memory.h: Likewise.
25441 * kern/env.c: Likewise.
25442 * kern/i386/qemu/startup.S: Likewise.
25443 * lib/i386/pc/biosnum.c: Likewise.
25444 * lib/i386/relocator.c: Likewise.
25445 * lib/i386/relocator_asm.S: Likewise.
25446 * lib/relocator.c: Likewise.
25447 * loader/i386/bsd.c: Likewise.
25448 * loader/i386/multiboot.c: Likewise.
25449 * loader/i386/pc/chainloader.c: Likewise.
25450 * loader/i386/xnu.c: Likewise.
25451 * loader/xnu.c: Likewise.
25452 * normal/main.c: Likewise.
25453 * normal/menu_text.c: Likewise.
25454 * util/getroot.c: Likewise.
25455 * util/grub-mkconfig_lib.in: Likewise.
25456 * util/grub.d/00_header.in: Likewise.
25457 * util/i386/pc/grub-mkimage.c: Likewise.
25458 * util/mkisofs/eltorito.c: Likewise.
25459 * util/mkisofs/exclude.h: Likewise.
25460 * util/mkisofs/hash.c: Likewise.
25461 * util/mkisofs/iso9660.h: Likewise.
25462 * util/mkisofs/joliet.c: Likewise.
25463 * util/mkisofs/mkisofs.c: Likewise.
25464 * util/mkisofs/mkisofs.h: Likewise.
25465 * util/mkisofs/multi.c: Likewise.
25466 * util/mkisofs/name.c: Likewise.
25467 * util/mkisofs/rock.c: Likewise.
25468 * util/mkisofs/tree.c: Likewise.
25469 * util/mkisofs/write.c: Likewise.
25470 * video/efi_gop.c: Likewise.
25471
25472 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25473
25474 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25475 size counting.
25476
25477 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25478
25479 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25480 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25481
25482 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25483
25484 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25485 (GRUB_MOD_INIT(memrw)): Update help line.
25486
25487 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25488
25489 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25490 Use grub_extcmd_t. All users updated.
25491 (options): New variable.
25492 (grub_cmd_read): Restructure for readability. Support "-v" option.
25493 (grub_cmd_write): Restructure for readability.
25494
25495 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25496
25497 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25498
25499 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25500
25501 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25502 with the actual contents of the correspondending make variable.
25503 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25504 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25505 specifying `*.lst' and `efiemu??.o'
25506
25507 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25508
25509 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25510 after function name.
25511 Noticed by Rene Engelhard <rene@debian.org>.
25512
25513 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25514
25515 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25516 (options): New variable.
25517 (iospace): Likewise.
25518 (grub_lspci_iter): List IO spaces if "-i" was given.
25519 (grub_cmd_lspci): Parse options.
25520 (GRUB_MOD_INIT(lspci)): Use extcmd.
25521 (GRUB_MOD_FINI(lspci)): Likewise.
25522
25523 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25524
25525 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25526 `function' keyword.
25527 Patch by Tony Mancill <tmancill@debian.org>.
25528
25529 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25530
25531 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25532 (grub_uhci_portstatus): Likewise.
25533 (grub_uhci_portstatus): Add necessary delay.
25534 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25535
25536 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25537
25538 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25539 (GRUB_MOD_INIT): Likewise.
25540 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25541 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25542 * commands/echo.c (options): Fix capitalizations and/or full stops.
25543 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25544 (enable_rom_area): Likewise.
25545 (GRUB_MOD_INIT): Likewise.
25546 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25547 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25548 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25549 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25550 * commands/hexdump.c (options): Likewise.
25551 * commands/i386/cpuid.c (options): Likewise.
25552 (GRUB_MOD_INIT): Likewise.
25553 * commands/i386/pc/drivemap.c (options): Likewise.
25554 (GRUB_MOD_INIT): Likewise.
25555 * commands/i386/pc/halt (options): Likewise.
25556 (GRUB_MOD_INIT): Likewise.
25557 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25558 * commands/i386/pc/pxecmd.c (options): Likewise.
25559 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25560 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25561 * commands/keystatus.c (options): Likewise.
25562 (GRUB_MOD_INIT): Likewise.
25563 * commands/loadenv.c (options): Likewise.
25564 * commands/ls.c (options): Likewise.
25565 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25566 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25567 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25568 * commands/parttool.c (helpmsg): Likewise.
25569 * commands/probe.c (options): Likewise.
25570 * commands/read.c (GRUB_MOD_INIT): Likewise.
25571 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25572 * commands/search.c (options): Likewise.
25573 * commands/sleep.c (options): Likewise.
25574 * commands/test.c (GRUB_MOD_INIT): Likewise.
25575 * commands/true.c (GRUB_MOD_INIT): Likewise.
25576 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25577 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25578 * lib/arg.c (help_options): Likewise.
25579 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25580 `$(XGETTEXT)'.
25581 * po/POTFILES: Add `commands/loadenv.c'.
25582
25583 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25584
25585 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25586 instead of specifying them explicit.
25587
25588 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25589
25590 * NEWS: Add grub-probe support for GNU/Hurd.
25591
25592 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25593
25594 * NEWS: gettext was added after 1.97.
25595
25596 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25597
25598 * util/mkisofs/msdos_partition.h: New file (based on
25599 include/grub/msdos_partition.h).
25600 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25601 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25602 (ld_options, main): Recognize --protective-msdos-label.
25603 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25604 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25605 (padblock_write): If `use_protective_msdos_label' is set, patch a
25606 protective DOS-style label in the output image.
25607
25608 * util/grub-mkrescue.in: Use --protective-msdos-label.
25609
25610 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25611
25612 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25613 boot.
25614
25615 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25616
25617 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25618 variables.
25619 (ld_options, main): Recognize `--embedded-boot'.
25620 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25621 declarations.
25622 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25623 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25624 (padblock_write): Likewise. Rewrite to support embedded boot image.
25625
25626 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25627 for BIOS-based disk boot instead of only ElTorito.
25628
25629 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25630
25631 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25632 build (not needed for bootstrap).
25633
25634 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25635
25636 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25637 from i386-pc build (not needed for bootstrap).
25638 Rewrite a pair of strings.
25639
25640 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25641
25642 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25643
25644 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
25645
25646 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25647
25648 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25649
25650 * kern/env.c (grub_env_context_open): Mark exported variable for
25651 reexport.
25652
25653 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25654
25655 * kern/env.c (grub_env_export): Create nonexistent variables before
25656 exporting.
25657
25658 2009-12-20 Carles Pina i Estany <carles@pina.cat>
25659
25660 * include/grub/auth.h: Include `<grub/i18n.h>'.
25661 (GRUB_GET_PASSWORD): Gettextizze string.
25662 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25663 menu_text.c.
25664 (grub_utf8_to_ucs4_alloc): Fix indentation.
25665 (grub_print_ucs4): Likewise.
25666 (grub_getstringwidth): Likewise.
25667 (print_message_indented): New declaration.
25668 * normal/auth.c: Include `<grub/i18n.h>'.
25669 (grub_auth_check_authentication): Gettexttize string.
25670 * normal/cmdline.c: Include `<grub/i18n.h>'.
25671 (grub_cmdline_get): Gettextizze.
25672 * normal/color.c: Include `<grub/i18n.h>'.
25673 (grub_parse_color_name_pair): Gettexttize strings.
25674 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25675 string (use `print_message_indented').
25676 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25677 `include/grub/normal.h'.
25678 (print_message_indented): Renamed to ...
25679 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25680 used in normal/main.c).
25681 (print_message): Use `grub_print_message_indented' instead of
25682 `print_message_indented'.
25683 (print_timeout): Likewise.
25684 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25685 (grub_normal_print_device_info): Gettexttize strings.
25686 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25687
25688 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25689
25690 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25691 of arguments. Return number of tokens and not arguments. All users
25692 updated.
25693
25694 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25695
25696 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25697 non-MSDOS paritions.
25698
25699 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25700
25701 * include/grub/types.h (UNUSED): Removed since it conflicts with
25702 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25703 Reported by Grégoire Sutre.
25704
25705 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25706
25707 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25708 (grub_print_ucs4_alloc): Likewise.
25709 (grub_getstringwidth): Likewise.
25710 * normal/main.c (grub_normal_init_page): Gettextize version string.
25711 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25712 (getstringwidth): Renamed to ...
25713 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25714 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25715 (grub_print_ucs4): Remove `static' qualifer (now used in
25716 normal/main.c).
25717 * po/POTFILES: Add normal/main.c.
25718
25719 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25720
25721 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25722 (print_message_indented): Add `margin_left' and `margin_right'
25723 parameters.
25724 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25725 strings.
25726 (print_timeout): Use `print_message_indented' to print the message.
25727 Deletes `second_stage' parameter.
25728 (run_menu): Update `print_timeout' calls.
25729
25730 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25731
25732 Fix console palette on OpenFirmware.
25733
25734 * term/ieee1275/ofconsole.c (MAX): Removed.
25735 (colors): Redone based on VGA palette.
25736 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25737 colors are supported.
25738 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25739
25740 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25741
25742 Fix potential EfiEmu double prepare.
25743
25744 * efiemu/main.c (prepared): New variable
25745 (grub_efiemu_unload): Set prepare to '0'.
25746 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25747
25748 set_virtual_address_map support.
25749
25750 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25751 prototype.
25752 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25753 prototype.
25754 (grub_efiemu_crc32): Likewise.
25755 (grub_efiemu_crc64): Likewise.
25756 (grub_efiemu_set_virtual_address_map): Likewise.
25757 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25758 New definition.
25759 (grub_autoefi_set_virtual_address_map): Likewise.
25760 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25761 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25762 Restructure flow to accomodate it.
25763 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25764 (grub_efiemu_crc): Recompute CRC32.
25765 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
25766 (efiemu_ptv_relocated): ... this. Made global. All users updated.
25767 * efiemu/symbols.c (relocated_handle): New variable.
25768 (grub_efiemu_free_syms): Free relocated_handle.
25769 (grub_efiemu_alloc_syms): Allocate relocated_handle.
25770 (grub_efiemu_write_sym_markers): New function.
25771 (grub_efiemu_set_virtual_address_map): Likewise.
25772
25773 Newer XNU parameters.
25774
25775 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
25776 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
25777 (grub_xnu_fill_devicetree): New prototype.
25778 (grub_xnu_heap_real_start): New variable.
25779 * loader/xnu.c (get_name_ptr): New function.
25780 (grub_xnu_load_driver): Fill namelen and name.
25781
25782 64-bit xnu support.
25783
25784 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
25785 and 'loader/macho64.c'.
25786 * conf/i386-pc.rmk: Likewise.
25787 * conf/x86_64-efi.rmk: Likewise.
25788 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
25789 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
25790 * include/grub/macho.h (grub_macho_segment64): New structure.
25791 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
25792 (grub_macho_size32): ... to this.
25793 (grub_macho32_get_entry_point): Renamed from ...
25794 (grub_macho_get_entry_point32): ... to this.
25795 (grub_macho_contains_macho64): New prototype.
25796 (grub_macho_size64): Likewise.
25797 (grub_macho_get_entry_point64): Likewise.
25798 (grub_macho32_load): Renamed from ...
25799 (grub_macho_load32): ... to this.
25800 (grub_macho32_filesize): Renamed from ...
25801 (grub_macho_filesize32): ... to this.
25802 (grub_macho32_readfile): Renamed from ...
25803 (grub_macho_readfile32): ... to this.
25804 (grub_macho_filesize64): New prototype.
25805 (grub_macho_readfile64): Likewise.
25806 (grub_macho_parse32): Likewise.
25807 (grub_macho_parse64): Likewise.
25808 * loader/macho.c: Split into ...
25809 * loader/machoXX.c: ... and this. Replace 32 with XX.
25810 * loader/macho32.c: New file.
25811 * loader/macho64.c: Likewise.
25812 * loader/xnu.c (grub_xnu_is_64bit): New variable.
25813 (grub_cmd_xnu_kernel): Make 32-bit only.
25814 (grub_cmd_xnu_kernel64): New function.
25815 (grub_xnu_load_driver): Support Mach-O 64.
25816 (grub_cmd_xnu_mkext): Likewise.
25817 * util/grub.d/30_os-prober.in (osx_entry): New function.
25818 Generate entries for 64-bit boot too.
25819
25820 Eliminate ad-hoc tree format in XNU and EfiEmu.
25821
25822 * efiemu/main.c (grub_efiemu_prepare): Update comment.
25823 * efiemu/pnvram.c: Rewritten to use environment variables.
25824 All users updated.
25825
25826 Inline utf16_to_utf8.
25827
25828 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
25829 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
25830 All users updated.
25831 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
25832
25833 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
25834 * commands/usbtest.c (grub_usb_get_string): ... move here.
25835 (usb_print_str): Fix error handling.
25836 * include/grub/usb.h (grub_usb_get_string): Remove.
25837
25838 UTF-8 to UTF-16 transformation.
25839
25840 * conf/common.rmk (pkglib_MODULES): Add charset.mod
25841 (charset_mod_SOURCES): New variable.
25842 (charset_mod_CFLAGS): Likewise.
25843 (charset_mod_LDFLAGS): Likewise.
25844 * include/grub/utf.h: New file.
25845 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
25846
25847 Support for device properties.
25848
25849 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
25850 (grub_xnu_devprop_device_header): Likewise.
25851 (grub_xnu_devprop_device_descriptor): Likewise.
25852 (grub_xnu_devprop_add_device): New prototype.
25853 (grub_xnu_devprop_remove_device): Likewise.
25854 (grub_xnu_devprop_remove_property): Likewise.
25855 (grub_xnu_devprop_add_property_utf8): Likewise.
25856 (grub_xnu_devprop_add_property_utf16): Likewise.
25857 (grub_cpu_xnu_init): Likewise.
25858 (grub_cpu_xnu_fini): Likewise.
25859 (grub_cpu_xnu_unload): Likewise.
25860 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
25861 (property_descriptor): Likewise.
25862 (devices): New variable.
25863 (grub_xnu_devprop_remove_property): New function.
25864 (grub_xnu_devprop_add_device): Likewise.
25865 (grub_xnu_devprop_remove_device): Likewise.
25866 (grub_xnu_devprop_add_property): Likewise.
25867 (grub_xnu_devprop_add_property_utf8): Likewise.
25868 (grub_xnu_devprop_add_property_utf16): Likewise.
25869 (hextoval): Likewise.
25870 (grub_cpu_xnu_fill_devprop): Likewise.
25871 (grub_cmd_devprop_load): Likewise.
25872 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
25873 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
25874 (cmd_devprop_load): New variable.
25875 (grub_cpu_xnu_init): New function.
25876 (grub_cpu_xnu_fini): Likewise.
25877 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
25878 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
25879 (grub_cmd_xnu_devtree): Likewise.
25880 (hextoval): New function.
25881 (unescape): Likewise.
25882 (grub_xnu_fill_devicetree): Likewise.
25883
25884 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
25885 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
25886
25887 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25888
25889 Workaround for broken ATI VBE.
25890
25891 * video/i386/pc/vbe.c (last_set_mode): New variable.
25892 (grub_vbe_set_video_mode): Set 'last_set_mode'.
25893 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
25894 (grub_video_vbe_setup): Don't check for reserved flag.
25895
25896 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
25897
25898 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
25899 the `find' command.
25900
25901 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
25902
25903 UUID support for HFS.
25904
25905 * fs/hfs.c (grub_hfs_uuid): New function.
25906 (grub_hfs_fs): New value .uuid.
25907 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
25908
25909 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
25910
25911 Fix a segfault with parsing unknown long options.
25912
25913 * util/grub-mkrelpath.c (options): Zero terminate it.
25914
25915 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25916
25917 * include/grub/misc.h (grub_puts): New declaration.
25918 (grub_puts_): Likewise.
25919 * kern/misc.c (grub_puts): New definition.
25920 (grub_puts_): Likewise.
25921
25922 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25923
25924 * util/grub-probe.c (probe): Improve error message.
25925
25926 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25927
25928 * loader/i386/multiboot_elfxx.c
25929 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
25930 initialization.
25931
25932 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25933
25934 Relocator framework
25935
25936 * loader/i386/xnu_helper.S: Removed. All users updated.
25937 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
25938 (relocator_mod_SOURCES): New variable.
25939 (relocator_mod_CFLAGS): Likewise.
25940 (relocator_mod_LDFLAGS): Likewise.
25941 (relocator_mod_ASFLAGS): Likewise.
25942 * conf/x86_64.rmk: Likewise.
25943 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
25944 (grub_multiboot_payload_entry_offset): Likewise.
25945 (grub_multiboot_forward_relocator): Likewise.
25946 (grub_multiboot_forward_relocator_end): Likewise.
25947 (grub_multiboot_backward_relocator): Likewise.
25948 (grub_multiboot_backward_relocator_end): Likewise.
25949 (grub_multiboot_payload_eip): New variable.
25950 (grub_multiboot_payload_orig): Likewise.
25951 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
25952 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
25953 * include/grub/i386/memory.h
25954 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
25955 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
25956 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
25957 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
25958 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
25959 * include/grub/i386/relocator.h: New file.
25960 * include/grub/x86_64/relocator.h: Likewise.
25961 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
25962 (XNU_RELOCATOR): New macro.
25963 (grub_xnu_launcher_start): Remove.
25964 (grub_xnu_launcher_end): Likewise.
25965 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
25966 (grub_xnu_heap_real_start): Remove.
25967 (grub_xnu_heap_start): Change to void *. All users updated.
25968 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
25969 * lib/i386/relocator.c: New file.
25970 * lib/i386/relocator_asm.S: Likewise.
25971 * lib/i386/relocator_backward.S: Likewise.
25972 * lib/mips/relocator.c: Likewise.
25973 * lib/mips/relocator_asm.S: Likewise.
25974 * lib/relocator.c: Likewise.
25975 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
25976 (entry): Removed.
25977 (playground): Likewise.
25978 (grub_multiboot_payload_orig): New variable.
25979 (grub_multiboot_payload_dest): Likewise.
25980 (grub_multiboot_payload_size): Likewise.
25981 (grub_multiboot_payload_eip): Likewise.
25982 (grub_multiboot_payload_esp): Likewise.
25983 (grub_multiboot_boot): Use grub_relocator32_boot.
25984 (grub_multiboot_unload): Free relocators.
25985 (grub_multiboot): Setup stack. Use relocators.
25986 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
25987 (grub_multiboot_load_elfXX): Use relocators.
25988 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
25989 (grub_multiboot_payload_size): Likewise.
25990 (grub_multiboot_payload_dest): Likewise.
25991 (grub_multiboot_payload_entry_offset): Likewise.
25992 (grub_multiboot_forward_relocator): Likewise.
25993 (grub_multiboot_backward_relocator): Likewise.
25994 (grub_multiboot_real_boot): Likewise.
25995 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
25996 (grub_xnu_entry_point): Likewise.
25997 (grub_xnu_arg1): Likewise.
25998 (grub_xnu_stack): Likewise.
25999 (grub_xnu_launch): Removed.
26000 (grub_xnu_boot_resume): New function.
26001 (grub_xnu_boot): Use relocators.
26002 * loader/i386/xnu_helper.S: Removed.
26003 * loader/xnu.c (grub_xnu_heap_start): New variable.
26004 (grub_xnu_heap_size): Likewise.
26005 (grub_xnu_heap_malloc): Use relocators.
26006 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26007
26008 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26009
26010 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26011 anything.
26012
26013 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26014
26015 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26016 GRUB_ERR_NONE before calling grub_env_set.
26017
26018 2009-12-12 Robert Millan <rmh@aybabtu.com>
26019
26020 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26021 * genmk.rb (video): New variable.
26022 (CLEANFILES, VIDEOFILES): Add #{video}.
26023 (#{video}): New target rule.
26024 * genvideolist.sh: New file.
26025 * Makefile.in (pkglib_DATA): Add video.lst.
26026 (video.lst): New target rule.
26027 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26028 `video.lst'.
26029 * util/grub.d/30_os-prober.in: Replace `vbe' with
26030 ${GRUB_VIDEO_BACKEND}.
26031
26032 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26033
26034 * THANKS: Add David Miller.
26035
26036 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26037
26038 libpciaccess support.
26039
26040 * Makefile.in (LIBPCIACCESS): New variable.
26041 (enable_grub_emu_pci): Likewise.
26042 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26043 util/pci.c and commands/lspci.c.
26044 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26045 * configure.ac (grub-emu-pci): New option.
26046 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26047 (grub_pci_device_unmap_range): Likewise.
26048 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26049 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26050 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26051 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26052 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26053 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26054 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26055 * include/grub/pciutils.h: New file.
26056 * util/pci.c: Likewise.
26057
26058 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26059
26060 * util/misc.c: Don't include <errno.h> twice.
26061
26062 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26063
26064 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26065 name in an error message.
26066 (grub_biosdisk_rw): Likewise.
26067
26068 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26069
26070 Eliminate NTFS 4Gib barrier.
26071
26072 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26073 (read_run_data): Likewise.
26074 (grub_ntfs_read_run_list): Likewise.
26075 (grub_ntfs_read_block): Likewise.
26076 (grub_ntfs_iterate_dir): Likewise.
26077 (read_mft): Likewise.
26078 (read_data): Likewise.
26079 Use COM_LOG_LEN.
26080 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26081 to avoid 64-bit division
26082 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26083 (grub_ntfs_rlst): Use grub_disk_addr_t.
26084
26085 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26086
26087 Eliminate grub-fstest 4Gib barrier.
26088
26089 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26090 (read_file): Fix error reporting.
26091
26092 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26093
26094 Eliminate hexdump 4Gib barrier.
26095
26096 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26097 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26098
26099 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26100
26101 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26102 Fixes amarsh bug.
26103
26104 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26105
26106 Remove miscellaneous files in distclean target.
26107
26108 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26109
26110 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26111
26112 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26113 if they're already set. This resolves the conflict between my
26114 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26115 fixing the --grub-probe option again.
26116 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26117 change on 2009-10-06, so that we now once again source
26118 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26119
26120 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26121
26122 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26123 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26124 `util/devicemap.c'.
26125
26126 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26127
26128 * include/grub/misc.h (grub_printf_): New declaration.
26129 * kern/misc.c (grub_printf_): New definition.
26130 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26131 instead of `grub_printf' and `_'.
26132 * normal/menu_entry.c (store_completion): Likewise.
26133 (run): Likewise.
26134 (grub_menu_entry_run): Likewise.
26135 * normal/menu_text.c (grub_wait_after_message): Likewise.
26136 (notify_booting): Likewise.
26137 (notify_fallback): Likewise.
26138 (notify_execution_failure): Likewise.
26139
26140 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26141
26142 * configure.ac: Check for vasprintf.
26143 * util/misc.c (asprintf): Move allocation from here ...
26144 (vasprintf): ... to here. New function.
26145 (xasprintf): New function.
26146 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26147 prototypes.
26148 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26149 * util/grub-mkfont.c (write_font): Likewise.
26150 * util/grub-probe.c (probe): Likewise.
26151 * util/hostdisk.c (make_device_name): Likewise.
26152
26153 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26154
26155 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26156 anything even prefixed with 'cdrom' as a cdrom.
26157
26158 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26159
26160 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26161 mount points.
26162
26163 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26164
26165 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26166 grub_gettext_msg_list.
26167 (grub_gettext_gettranslation_from_position): Return const char *
26168 and not char *.
26169 (grub_gettext_translate): Add the translated strings into a list,
26170 returns from the list if existing there.
26171 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26172 (grub_gettext_delete_list): Delete the list.
26173 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26174 lang environment variable is changed.
26175 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26176
26177 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26178
26179 Rename kernel.mod to kernel.img.
26180
26181 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26182 (kernel_mod_EXPORTS): Rename to ...
26183 (kernel_img_EXPORTS): ... this.
26184 (kernel_mod_SOURCES): Rename to ...
26185 (kernel_img_SOURCES): ... this.
26186 (kernel_mod_HEADERS): Rename to ...
26187 (kernel_img_HEADERS): ... this. All users updated.
26188 (kernel_mod_CFLAGS): Rename to ...
26189 (kernel_img_CFLAGS): ... this.
26190 (kernel_mod_ASFLAGS): Rename to ...
26191 (kernel_img_ASFLAGS): ... this.
26192 (kernel_mod_LDFLAGS): Rename to ...
26193 (kernel_img_LDFLAGS): ... this.
26194 * conf/x86_64-efi.rmk: Likewise.
26195 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26196 (read_kernel_image): ... this. All users updated.
26197 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26198
26199 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26200
26201 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26202 (print_spaces): New function.
26203 (grub_print_ucs4): New function.
26204 (getstringwidth): New function.
26205 (print_message_indented): New function.
26206 (print_message): Gettexttize strings using print_message_indented.
26207 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26208 width.
26209 (get_entry_number): Gettextize and uses dynamic terminal width.
26210 (notify_booting, notify_fallback, notify_execution_failure):
26211 Gettextize.
26212 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26213 string.
26214 (run): Likewise.
26215 (grub_menu_entry_run): Likewise.
26216 * PO/POTFILES: Add normal/menu_entry.c.
26217
26218 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26219
26220 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26221
26222 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26223
26224 * util/grub-install.in: Install gettext .mo files.
26225 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26226
26227 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26228
26229 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26230 grub_dprintf.
26231
26232 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26233
26234 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26235 non-firmware-dependant one in realmode.S takes precedence.
26236
26237 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26238
26239 * commands/halt.c: Replace misc arch-specific headers with
26240 `<grub/misc.h>'.
26241 * commands/reboot.c: Likewise.
26242 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26243 `<grub/misc.h>'.
26244 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26245 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26246 (kernel_img_SOURCES): ... to here.
26247
26248 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26249 * include/grub/i386/pc/init.h: Likewise.
26250 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26251 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26252
26253 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26254
26255 * include/grub/i386/halt.h: Remove.
26256 * include/grub/i386/reboot.h: Likewise.
26257
26258 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26259
26260 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26261
26262 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26263 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26264 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26265 "progname.h"
26266 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26267 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26268 (usage): Add missing comma in printf.
26269
26270 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26271
26272 Use the same reboot approach on i386 coreboot and qemu as we do on
26273 BIOS.
26274
26275 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26276 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26277 * kern/i386/reboot.c: Remove.
26278 * include/grub/i386/reboot.h (grub_reboot): Export function.
26279 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26280 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26281 0xf000:0xfff0 instead of 0xffff:0x0000.
26282 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26283 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26284
26285 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26286
26287 Fix $srcdir != $objdir build.
26288
26289 * Makefile.in (po/%.po): Rewrite as ...
26290 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26291
26292 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26293
26294 Fix GNU/Hurd grub-install crash.
26295 * util/grub-probe.c (probe): Try to access `path' only when it is not
26296 NULL.
26297
26298 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26299
26300 Correct module naming.
26301
26302 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26303 (GRUB_MOD_INIT(efi_uga)): ... to this
26304 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26305 (GRUB_MOD_FINI(efi_uga)): ... to this
26306 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26307 (GRUB_MOD_INIT(efi_gop)): ... to this
26308 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26309 (GRUB_MOD_FINI(efi_gop)): ... to this
26310
26311 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26312
26313 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26314 translatable.
26315 (usage): Translate `arg' strings using gettext().
26316 Thanks to Jordi Mallach for the suggestion.
26317
26318 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26319
26320 GOP support. Based on patch from Bean
26321 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26322
26323 * video/efi_gop.c: New file.
26324 * include/grub/efi/graphics_output.h: Likewise.
26325 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26326 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26327 variables.
26328 * conf/x86_64-efi.rmk: Likewise.
26329
26330 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26331
26332 Rename efi_fb to efi_uga.
26333
26334 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26335 'efi_uga.mod'.
26336 (efi_fb_mod_SOURCES): Rename this ...
26337 (efi_uga_mod_SOURCES): ... to this.
26338 (efi_fb_mod_CFLAGS): Rename this ...
26339 (efi_uga_mod_CFLAGS): ... to this.
26340 (efi_fb_mod_LDFLAGS): Rename this ...
26341 (efi_uga_mod_LDFLAGS): ... to this.
26342 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26343 'efi_uga.mod'.
26344 (efi_fb_mod_SOURCES): Rename this ...
26345 (efi_uga_mod_SOURCES): ... to this.
26346 (efi_fb_mod_CFLAGS): Rename this ...
26347 (efi_uga_mod_CFLAGS): ... to this.
26348 (efi_fb_mod_LDFLAGS): Rename this ...
26349 (efi_uga_mod_LDFLAGS): ... to this.
26350 * video/efi_fb.c: Move this ...
26351 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26352
26353 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26354
26355 * po/README: New file. Explain our PO file workflow.
26356
26357 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26358
26359 * po/ChangeLog: Remove. Move relevant entries back to ...
26360 * ChangeLog: ... here.
26361 * po/ca.po: Remove (now handled by TLP).
26362 * po/id.po: Likewise.
26363 * po/zh_CN.po: Likewise.
26364 * Makefile.in (LINGUAS): Initialize in a way that supports
26365 empty set.
26366
26367 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26368
26369 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26370 reliing on po/LINGUAS.
26371 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26372 (po/%.po): ... this.
26373
26374 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26375
26376 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26377 (main): Use `program_name' instead of nonexistent `progname'.
26378
26379 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26380
26381 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26382 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26383
26384 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26385
26386 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26387 commit.
26388 * conf/i386-efi.rmk: Likewise.
26389 * conf/i386-ieee1275.rmk: Likewise.
26390 * conf/powerpc-ieee1275.rmk: Likewise.
26391 * conf/sparc64-ieee1275.rmk: Likewise.
26392 * conf/x86_64-efi.rmk: Likewise.
26393
26394 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26395
26396 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26397
26398 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26399
26400 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26401
26402 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26403
26404 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26405 (grub_mkdevicemap_SOURCES): New variable.
26406 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26407 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26408 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26409 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26410 (grub_mkdevicemap_SOURCES): Remove.
26411 * conf/i386-efi.rmk: Likewise.
26412 * conf/i386-ieee1275.rmk: Likewise.
26413 * conf/i386-pc.rmk: Likewise.
26414 * conf/powerpc-ieee1275.rmk: Likewise.
26415 * conf/sparc64-ieee1275.rmk: Likewise.
26416 * conf/x86_64-efi.rmk: Likewise.
26417 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26418 (usage): Fix strings to use `program_name'.
26419 (main): Initialize gettext.
26420 * util/grub-editenv.c: Likewise.
26421 * util/grub-emu.c: Likewise.
26422 * util/grub-fstest.c: Likewise.
26423 * util/grub-mkdevicemap.c: Likewise.
26424 * util/grub-mkfont.c: Likewise.
26425 * util/grub-mkrelpath.c: Likewise.
26426 * util/grub-pe2elf.c: Likewise.
26427 * util/grub-probe.c: Likewise.
26428 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26429 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26430 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26431
26432 * util/misc.c: Include `"progname.h"'.
26433 (progname): Remove variable.
26434 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26435
26436 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26437
26438 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26439 printf and print a newline after the menuentry header line.
26440 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26441
26442 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26443
26444 autoconf >= 2.60 support $(localedir).
26445
26446 * INSTALL: Note that autoconf 2.60 is required.
26447 * configure.ac (AC_PREREQ): Bump to 2.60.
26448 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26449 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26450
26451 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26452
26453 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26454 aclocal is run.
26455
26456 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26457
26458 * normal/main.c (grub_normal_read_line): Fix off-by-one
26459 buffer overflow.
26460
26461 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26462
26463 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26464 "parser.grub" in grub_command_execute() call.
26465
26466 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26467
26468 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26469 * conf/i386-efi.rmk: Likewise.
26470 * conf/i386-ieee1275.rmk: Likewise.
26471 * conf/i386-pc.rmk: Likewise.
26472 * conf/powerpc-ieee1275.rmk: Likewise.
26473 * conf/sparc64-ieee1275.rmk: Likewise.
26474 * conf/x86_64-efi.rmk: Likewise.
26475 * gettext/gettex.c: Include <grub/i18n.h>.
26476 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26477 here ...
26478 * include/grub/i18n.h: ... to here
26479 * include/grub/i18n.h: ... to here.
26480 * kern/misc.c: Include <grub/i18n.h>
26481 (grub_gettext_dummy): Move above user.
26482
26483 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26484
26485 * util/Makefile.in (install-local): Convert a `for' into a normal
26486 shell expansion.
26487
26488 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26489
26490 * autogen.sh: Add automake call.
26491 * config.guess: Remove.
26492 * config.sub: Likewise.
26493 * install-sh: Likewise.
26494
26495 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26496
26497 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26498
26499 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26500
26501 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26502 function to a normal shell `for'.
26503
26504 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26505
26506 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26507
26508 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26509
26510 * util/grub-mkrelpath.c: New file.
26511 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26512 (grub_mkrelpath_SOURCES): New variable.
26513 * include/grub/util/misc.h: New function prototype.
26514 * util/misc.c (make_system_path_relative_to_its_root): New function.
26515
26516 * util/grub-mkconfig_lib.in (bindir): New variable.
26517 (grub_mkrelpath): Likewise.
26518 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26519
26520 * util/probe.c (probe): Make the file path relative to its root.
26521 Change a info message to use the GRUB path. Enable again the
26522 check if we can read the file with GRUB facilities.
26523
26524 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26525 to its root.
26526
26527 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26528
26529 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26530 platform.
26531
26532 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26533
26534 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26535 strncmp().
26536
26537 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26538
26539 * util/getroot.c (grub_util_is_dmraid): New function.
26540 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26541 devices as normal ones, not as LVM.
26542
26543 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26544
26545 * conf/common.rmk: Add grub-gettext_lib target and updates
26546 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26547 LDFLAGS.
26548 * gettext/gettext.c: New file. (Reads mo files).
26549 * include/grub/file.h (grub_file_pread): New prototype.
26550 * include/grub/i18n.h (_): New prototype.
26551 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26552 prototypes.
26553 * kern/misc.c (grub_gettext_dummy): New function.
26554 * normal/menu_text.c: Include <grub/i18n.h>.
26555 * normal/menu_text.c (print_timeout): Gettexttize string.
26556 * normal/menu_text.c (print_message): Gettexttize string.
26557 * po/POTFILES: Add `normal/menu_text.c'.
26558 * po/ca.po: Add new translations.
26559 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26560 gettext module and defines locale_dir and lang in grub.cfg.
26561 * NEWS: Add gettext support.
26562
26563 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26564
26565 * util/hostdisk.c: Include `<grub/i18n.h>'.
26566 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26567 (make_device_name): Rewrite using asprintf.
26568 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26569 (find_system_device): If a device is not found, generate one just
26570 by reusing the OS path name.
26571 (read_device_map): Make it permissible for device.map not to exist.
26572
26573 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26574
26575 * script/sh/execute.c: Move from here ...
26576 * script/execute.c: ... to here. Update all users.
26577 * script/sh/function.c: Move from here ...
26578 * script/function.c: ... to here. Update all users.
26579 * script/sh/lexer.c: Move from here ...
26580 * script/lexer.c: ... to here. Update all users.
26581 * script/sh/main.c: Move from here ...
26582 * script/main.c: ... to here. Update all users.
26583 * script/sh/parser.y: Move from here ...
26584 * script/parser.y: ... to here. Update all users.
26585 * script/sh/script.c: Move from here ...
26586 * script/script.c: ... to here. Update all users.
26587
26588 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26589
26590 * configure.ac: Detect all `emu' platforms. Define
26591 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26592 --enable-grub-emu logic. Disable include/grub/machine
26593 symlink on `emu' platforms.
26594
26595 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26596 * gensymlist.sh.in: Likewise.
26597
26598 * include/grub/i386/coreboot/machine.h: Remove file.
26599 * include/grub/i386/efi/machine.h: Likewise.
26600 * include/grub/i386/ieee1275/machine.h: Likewise.
26601 * include/grub/i386/pc/machine.h: Likewise.
26602 * include/grub/i386/qemu/machine.h: Likewise.
26603 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26604 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26605 * include/grub/x86_64/efi/machine.h: Likewise.
26606
26607 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26608 * commands/halt.c: Likewise.
26609 * commands/reboot.c: Likewise.
26610 * include/grub/autoefi.h: Likewise.
26611 * include/grub/i386/at_keyboard.h: Likewise.
26612 * include/grub/i386/kernel.h: Likewise.
26613 * include/grub/i386/loader.h: Likewise.
26614 * include/grub/i386/pc/memory.h: Likewise.
26615 * kern/dl.c: Likewise.
26616 * kern/i386/coreboot/init.c: Likewise.
26617 * loader/i386/bsd.c: Likewise.
26618 * loader/i386/linux.c: Likewise.
26619 * loader/multiboot_loader.c: Likewise.
26620 * term/i386/pc/serial.c: Likewise.
26621 * term/usb_keyboard.c: Likewise.
26622
26623 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26624 `<grub/machine/machine.h>'
26625 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26626 * util/misc.c: Remove `<grub/machine/machine.h>' and
26627 `<grub/machine/time.h>'.
26628
26629 * Makefile.in (enable_grub_emu): Remove variable.
26630 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26631
26632 * conf/any-emu.rmk: New file.
26633 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26634 (grub_emu_init.c): Move from here ...
26635 * conf/any-emu.rmk: ... to here.
26636
26637 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26638 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26639 * conf/any-emu.rmk: ... to here.
26640
26641 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26642
26643 * include/grub/parser.h (grub_parser_register): Document need
26644 of `name' parameter.
26645 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26646 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26647 "sh" to "grub".
26648
26649 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26650
26651 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26652 `$(XGETTEXT)'.
26653 * include/grub/i18n.h (N_): New macro.
26654 * util/mkisofs/mkisofs.h: Likewise.
26655 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26656 around N_().
26657 (usage): Use gettext() to translate help strings when printing them.
26658
26659 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26660
26661 Based on patch from Bean
26662 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26663
26664 * video/efi_fb.c: New file.
26665 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26666 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26667 variables.
26668 * conf/x86_64-efi.rmk: Likewise.
26669
26670 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26671
26672 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26673 * util/i386/pc/grub-setup.c: Likewise.
26674
26675 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26676
26677 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26678 <hurd/fs.h>
26679 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26680 file_get_storage_info to implement grub_guess_root_device.
26681
26682 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26683
26684 * Makefile.in (target): Use make's builtin $(shell) function
26685 instead of calling directly $(SHELL) to create the locale directories,
26686 inside the $(foreach) function.
26687
26688 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26689
26690 * util/grub-mkrescue.in: Print an error and usage if output option
26691 has not been given.
26692
26693 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26694
26695 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26696 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26697 root and /boot are on different devices.
26698
26699 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26700
26701 Fix build for srcdir != objdir.
26702
26703 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26704 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26705 $(srcdir).
26706 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26707 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26708 reference for input.
26709
26710 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26711
26712 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26713 or hardlinking it). Remove -J option, Joliet is not compatible with
26714 multiple source directories.
26715
26716 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26717 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26718
26719 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26720 (process_input_dir): New function. Process an arbitrary input
26721 directory.
26722 Misc adjustments to support both "override mode" and system-wide mode.
26723
26724 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26725
26726 * configure.ac (UNIFONT_BDF): Rename to ...
26727 (FONT_SOURCE): ... this. Update all users.
26728
26729 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26730
26731 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26732 to the list of unifont files to look for.
26733
26734 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26735
26736 Patch from Joe Auricchio <jauricchio@gmail.com>
26737 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26738 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26739 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26740
26741 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26742
26743 * Makefile.in (install-local): Add a missing backslash.
26744
26745 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26746
26747 * include/grub/x86_64/io.h: New file.
26748
26749 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26750
26751 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26752 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26753 Include `"progname.h"'.
26754 (main): Initialize gettext.
26755 * util/i386/pc/grub-setup.c: Gettexttize.
26756 * util/i386/pc/grub-mkimage.c: Likewise.
26757
26758 * Makefile.in (po/*.po): Redefine as ...
26759 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26760
26761 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26762
26763 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26764
26765 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
26766 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
26767 (program_name): Remove.
26768 (main): Initialize gettext support.
26769 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
26770 Include `<libintl.h>'.
26771 (_): New macro.
26772
26773 * util/mkisofs/eltorito.c: Gettexttize.
26774 * util/mkisofs/joliet.c: Likewise.
26775 * util/mkisofs/mkisofs.c: Likewise.
26776 * util/mkisofs/multi.c: Likewise.
26777 * util/mkisofs/rock.c: Likewise.
26778 * util/mkisofs/tree.c: Likewise.
26779 * util/mkisofs/write.c: Likewise.
26780
26781 * po/POTFILES: Update with new files.
26782
26783 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26784
26785 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
26786 * util/mkisofs/iso9660.h: Likewise.
26787 * util/mkisofs/joliet.c: Likewise.
26788 * util/mkisofs/mkisofs.c: Likewise.
26789 * util/mkisofs/mkisofs.h: Likewise.
26790 * util/mkisofs/rock.c: Likewise.
26791 * util/mkisofs/tree.c: Likewise.
26792 * util/mkisofs/write.c: Likewise.
26793
26794 * util/mkisofs/eltorito.c (rcsid): Remove.
26795 * util/mkisofs/hash.c: Likewise.
26796 * util/mkisofs/joliet.c: Likewise.
26797 * util/mkisofs/name.c: Likewise.
26798 * util/mkisofs/rock.c: Likewise.
26799 * util/mkisofs/tree.c: Likewise.
26800 * util/mkisofs/write.c: Likewise.
26801
26802 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26803
26804 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
26805 instead of static allocation.
26806 * util/mkisofs/match.h: Likewise.
26807
26808 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26809
26810 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
26811 and `util/grub.d/10_linux.in'.
26812 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
26813 translatable Shell files.
26814
26815 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26816
26817 * Makefile.in ($(srcdir)/aclocal.m4): New target.
26818
26819 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26820
26821 * INSTALL: Document Automake is needed for bootstrap.
26822 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
26823 * util/grub.d/10_kfreebsd.in (bindir): New variable.
26824 Add gettext initialization.
26825 (kfreebsd_entry): Make menuentry output translatable.
26826
26827 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26828
26829 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
26830 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
26831 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
26832 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
26833 (LINGUAS): Auto-generate using `po/LINGUAS'.
26834 * po/LINGUAS: New file.
26835
26836 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26837
26838 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
26839 other things).
26840 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
26841 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
26842 bindtextdomain() calls for gettext initialization.
26843
26844 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26845
26846 * gnulib/progname.c: New file (imported from Gnulib).
26847 * gnulib/progname.h: Likewise.
26848 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26849 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
26850 (usage): Replace `progname' with `program_name'.
26851 (main): Use set_program_name() for program name initialization.
26852
26853 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26854
26855 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
26856 from here ...
26857 * Makefile.in (CPPFLAGS): ... to here.
26858
26859 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26860
26861 * aclocal.m4: Move from here ...
26862 * acinclude.m4: ... to here.
26863 * autogen.sh: Add call to `aclocal'.
26864 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
26865
26866 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26867
26868 * Makefile.in (CLEANFILES): Add `po/*.mo'.
26869 (LINGUAS): New variable.
26870 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
26871 (install-local): Install MO files.
26872 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
26873 * include/grub/i18n.h: New file.
26874 * po/POTFILES: New file.
26875 * po/ca.po: New file.
26876 * util/grub.d/10_linux.in (bindir): New variable.
26877 Add gettext initialization.
26878 (linux_entry): Make menuentry output translatable.
26879 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
26880 (usage): Make --help output translatable.
26881 (main): Initialize gettext.
26882
26883 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26884
26885 * import_gcry.py: New file (written by Vladimir with minor
26886 adjustments).
26887 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
26888 ciphers.
26889 * INSTALL: Document that Python is required for bootstrap.
26890
26891 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26892
26893 Import ciphers from libgcrypt 1.4.4.
26894
26895 * lib/libgcrypt/cipher/ChangeLog
26896 * lib/libgcrypt/cipher/ac.c
26897 * lib/libgcrypt/cipher/arcfour.c
26898 * lib/libgcrypt/cipher/bithelp.h
26899 * lib/libgcrypt/cipher/blowfish.c
26900 * lib/libgcrypt/cipher/camellia-glue.c
26901 * lib/libgcrypt/cipher/camellia.c
26902 * lib/libgcrypt/cipher/camellia.h
26903 * lib/libgcrypt/cipher/cast5.c
26904 * lib/libgcrypt/cipher/cipher.c
26905 * lib/libgcrypt/cipher/crc.c
26906 * lib/libgcrypt/cipher/des.c
26907 * lib/libgcrypt/cipher/dsa.c
26908 * lib/libgcrypt/cipher/ecc.c
26909 * lib/libgcrypt/cipher/elgamal.c
26910 * lib/libgcrypt/cipher/hash-common.c
26911 * lib/libgcrypt/cipher/hash-common.h
26912 * lib/libgcrypt/cipher/hmac-tests.c
26913 * lib/libgcrypt/cipher/md.c
26914 * lib/libgcrypt/cipher/md4.c
26915 * lib/libgcrypt/cipher/md5.c
26916 * lib/libgcrypt/cipher/primegen.c
26917 * lib/libgcrypt/cipher/pubkey.c
26918 * lib/libgcrypt/cipher/rfc2268.c
26919 * lib/libgcrypt/cipher/rijndael-tables.h
26920 * lib/libgcrypt/cipher/rijndael.c
26921 * lib/libgcrypt/cipher/rmd.h
26922 * lib/libgcrypt/cipher/rmd160.c
26923 * lib/libgcrypt/cipher/rsa.c
26924 * lib/libgcrypt/cipher/seed.c
26925 * lib/libgcrypt/cipher/serpent.c
26926 * lib/libgcrypt/cipher/sha1.c
26927 * lib/libgcrypt/cipher/sha256.c
26928 * lib/libgcrypt/cipher/sha512.c
26929 * lib/libgcrypt/cipher/tiger.c
26930 * lib/libgcrypt/cipher/twofish.c
26931 * lib/libgcrypt/cipher/whirlpool.c
26932
26933 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26934
26935 Fix build for systems without error().
26936
26937 * gnulib/error.c: New file (imported from Gnulib).
26938 * gnulib/error.h: Likewise.
26939 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
26940 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
26941 (this variable is now used by error()).
26942
26943 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26944
26945 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
26946 instead of relying that char is signed.
26947
26948 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
26949
26950 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
26951 blocksize different from specified.
26952 (grub_pxefs_read): Likewise.
26953
26954 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26955
26956 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
26957
26958 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
26959 (grub_ata_readwrite): Likewise. Update 2 format strings.
26960 (grub_atapi_read): Likewise.
26961
26962 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
26963 * conf/i386.rmk (pkglib_MODULES): ... to here ...
26964 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
26965 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
26966 (ata_mod_LDFLAGS): Move from here ...
26967 * conf/i386.rmk: ... to here ...
26968 * conf/x86_64-efi.rmk: ... and here.
26969 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
26970 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
26971
26972 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26973
26974 Relicense multiboot.h, with RMS' blessing.
26975
26976 * include/multiboot.h: Change to X11 license.
26977
26978 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
26979
26980 Support --version in grub-mkisofs.
26981
26982 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
26983 (OPTION_VERSION): New macro.
26984 (ld_options): Recognize --version.
26985 (usage): Move `program_name' from here ...
26986 (program_name): ... to here. Add `static' qualifier.
26987 (main): Recognize `OPTION_VERSION'.
26988
26989 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
26990
26991 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
26992 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
26993
26994 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26995
26996 Fix help2man generation for mkisofs.
26997
26998 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
26999 (usage): Send output to stdout (rather than stderr).
27000
27001 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27002
27003 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27004 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27005 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27006 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27007 (bin_SCRIPTS): Add `grub-mkfloppy'.
27008 (grub_mkfloppy_SOURCES): New variable.
27009
27010 * util/grub-mkrescue.in: New file.
27011 * util/i386/pc/grub-mkfloppy.in: New file.
27012
27013 * util/i386/coreboot/grub-mkrescue.in: Remove.
27014 * util/i386/pc/grub-mkrescue.in: Remove.
27015
27016 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27017
27018 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27019 from here ...
27020 * include/multiboot.h (struct multiboot_header): ... to here. Update
27021 all users.
27022 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27023 from here ...
27024 * include/multiboot.h (struct multiboot_info): ... to here. Update
27025 all users.
27026 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27027 from here ...
27028 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27029 Update all users.
27030 * include/grub/multiboot.h (struct grub_mod_list): Move
27031 from here ...
27032 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27033 Update all users.
27034
27035 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27036
27037 * include/multiboot2.h (multiboot_word): Rename from this ...
27038 (multiboot2_word): ... to this. Update all users.
27039 (multiboot_header): Rename from this ...
27040 (multiboot2_header): ... to this. Update all users.
27041 (multiboot_tag_header): Rename from this ...
27042 (multiboot2_tag_header): ... to this. Update all users.
27043 (multiboot_tag_start): Rename from this ...
27044 (multiboot2_tag_start): ... to this. Update all users.
27045 (multiboot_tag_name): Rename from this ...
27046 (multiboot2_tag_name): ... to this. Update all users.
27047 (multiboot_tag_module): Rename from this ...
27048 (multiboot2_tag_module): ... to this. Update all users.
27049 (multiboot_tag_memory): Rename from this ...
27050 (multiboot2_tag_memory): ... to this. Update all users.
27051 (multiboot_tag_unused): Rename from this ...
27052 (multiboot2_tag_unused): ... to this. Update all users.
27053 (multiboot_tag_end): Rename from this ...
27054 (multiboot2_tag_end): ... to this. Update all users.
27055
27056 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27057
27058 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27059 this platform we should support Multiboot1 first.
27060
27061 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27062 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27063 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27064
27065 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27066
27067 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27068 of write calls (converting them to fwrite() if they aren't already).
27069 (get_torito_desc): Likewise.
27070 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27071
27072 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27073
27074 * util/i386/pc/grub-install.in: Move from here ...
27075 * util/grub-install.in: ... to here. Update all users.
27076
27077 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27078
27079 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27080
27081 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27082
27083 Support for El Torito without floppy emulation.
27084
27085 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27086 (init_boot_catalog): Improve error handling.
27087 (get_torito_desc): Don't use floppy emulation unless requested by
27088 user. Patch boot information table when requested via
27089 `-boot-info-table'.
27090 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27091 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27092 (use_boot_info_table): New variables.
27093 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27094 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27095 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27096 `--eltorito-emul-floppy'.
27097 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27098 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27099 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27100 (use_boot_info_table, get_731): New prototypes.
27101 * util/mkisofs/write.c (get_731): New function.
27102
27103 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27104
27105 Fix the generation of the man page.
27106
27107 * util/pc/i386/grub-install.in: Source
27108 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27109
27110 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27111
27112 Large file support for grub-mkisofs.
27113
27114 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27115 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27116 (session_start): Upgrade type to `uint64_t'. Update all users.
27117 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27118 (struct directory_entry): Upgrade type of `starting_block' and
27119 `size' to `uint64_t'. Update all users.
27120 (struct deferred): Remove unused structure.
27121 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27122 Update all users.
27123 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27124 file is larger than `UINT32_MAX'.
27125 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27126 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27127 return value.
27128 (struct deferred_write): Upgrade type of `extent' and `size' to
27129 `uint64_t'. Update all users.
27130 (last_extent_written): Upgrade type to `uint64_t'. Update all
27131 users.
27132 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27133 Update all users. Upgrade type of `remain' to `int64_t' and
27134 `use' to `size_t'. Use error() to handle fread() errors.
27135 (write_files): Rely on write_one_file() rather than calling
27136 xfwrite() directly.
27137
27138 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27139
27140 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27141
27142 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27143
27144 * util/mkisofs/fnmatch.c: Remove.
27145 * util/mkisofs/getopt1.c: Likewise.
27146 * util/mkisofs/getopt.c: Likewise.
27147 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27148 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27149 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27150 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27151 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27152
27153 * configure.ac: Detect `mingw32msvc' host_os.
27154 Check for lstat(), getuid() and getgid().
27155
27156 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27157 instances of `u_char' with `uint8_t'.
27158
27159 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27160 [!HAVE_GETUID] (getuid): New function (stub).
27161 [!HAVE_GETGID] (getgid): Likewise.
27162 [!HAVE_LSTAT] (lstat): Likewise.
27163 [!S_IROTH] (S_IROTH): New macro (dummy).
27164 [!S_IRGRP] (S_IRGRP): Likewise.
27165
27166 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27167
27168 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27169 conditional expression).
27170
27171 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27172
27173 Import from Gnulib.
27174
27175 * gnulib/fnmatch.c: New file.
27176 * gnulib/fnmatch.h: Likewise.
27177 * gnulib/fnmatch_loop.c: Likewise.
27178 * gnulib/getopt.c: Likewise.
27179 * gnulib/getopt.h: Likewise.
27180 * gnulib/getopt1.c: Likewise.
27181 * gnulib/getopt_int.h: Likewise.
27182 * gnulib/gettext.h: Likewise.
27183
27184 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27185
27186 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27187 * normal/handler.c (read_handler_list): Likewise.
27188
27189 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27190
27191 Misc cleanup.
27192
27193 * kern/command.c (grub_register_command_prio): Use
27194 grub_zalloc() instead of explicitly zeroing data.
27195 * kern/list.c: Include `<grub/mm.h>'.
27196 (grub_named_list_find): Replace `0' with `NULL'.
27197 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27198 (fs_module_list): Change type to `grub_named_list_t'. Update all
27199 users.
27200 * normal/dyncmd.c (read_command_list): Add space between function
27201 call and parenthesis.
27202 * normal/handler.c (read_handler_list): Likewise.
27203
27204 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27205
27206 * normal/auth.c (punishment_delay): Moved from here ...
27207 (grub_auth_strcmp): ... to here (inside function).
27208
27209 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27210
27211 * include/grub/list.h (struct grub_named_list): Remove `const'
27212 qualifier from `name'.
27213 (struct grub_prio_list): Likewise.
27214
27215 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27216
27217 * normal/auth.c: Include `<grub/time.h>'.
27218 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27219
27220 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27221
27222 * normal/auth.c (punishment_delay): New variable.
27223 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27224 (grub_auth_check_authentication): Punish failed login attempts with
27225 an incremental (2^N) delay.
27226
27227 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27228
27229 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27230 path with $(srcdir).
27231
27232 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27233
27234 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27235
27236 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27237
27238 * util/i386/coreboot/grub-mkrescue.in: New file.
27239 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27240 variables.
27241
27242 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27243 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27244 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27245 requirements.
27246 * util/mkisofs/defaults.h: New file.
27247 * util/mkisofs/eltorito.c: Likewise.
27248 * util/mkisofs/exclude.h: Likewise.
27249 * util/mkisofs/fnmatch.c: Likewise.
27250 * util/mkisofs/getopt.c: Likewise.
27251 * util/mkisofs/getopt1.c: Likewise.
27252 * util/mkisofs/hash.c: Likewise.
27253 * util/mkisofs/include/fctldefs.h: Likewise.
27254 * util/mkisofs/include/mconfig.h: Likewise.
27255 * util/mkisofs/include/prototyp.h: Likewise.
27256 * util/mkisofs/include/statdefs.h: Likewise.
27257 * util/mkisofs/iso9660.h: Likewise.
27258 * util/mkisofs/joliet.c: Likewise.
27259 * util/mkisofs/match.c: Likewise.
27260 * util/mkisofs/match.h: Likewise.
27261 * util/mkisofs/mkisofs.c: Likewise.
27262 * util/mkisofs/mkisofs.h: Likewise.
27263 * util/mkisofs/multi.c: Likewise.
27264 * util/mkisofs/name.c: Likewise.
27265 * util/mkisofs/rock.c: Likewise.
27266 * util/mkisofs/tree.c: Likewise.
27267 * util/mkisofs/write.c: Likewise.
27268
27269 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27270
27271 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27272 being insecure.
27273
27274 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27275
27276 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27277 `grub-mkimage' (and use $0 when possible).
27278
27279 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27280
27281 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27282 error message for excessively large memory map.
27283
27284 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27285
27286 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27287 executable bit.
27288
27289 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27290
27291 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27292 message for coreboot users.
27293
27294 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27295
27296 Fix build with GNU gold.
27297
27298 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27299 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27300 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27301 link addresses.
27302 * aclocal.m4: Likewise.
27303
27304 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27305
27306 * configure.ac (AC_PREREQ): Bump to 2.59d.
27307 * INSTALL: Make it more clear when Autoconf and Ruby are
27308 needed and when to run `./autogen.sh'.
27309
27310 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27311
27312 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27313 OSes.
27314
27315 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27316
27317 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27318
27319 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27320
27321 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27322 giving it to GNU Mach.
27323
27324 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27325
27326 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27327 GNU partition number to get internal GRUB partition number.
27328
27329 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27330
27331 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27332 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27333
27334 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27335
27336 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27337 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27338 case.
27339
27340 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27341
27342 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27343
27344 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27345
27346 Fix build problem.
27347
27348 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27349 `-isystem=$(srcdir)/include'.
27350
27351 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27352
27353 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27354 checked (grub-install doesn't currently rely on it).
27355
27356 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27357
27358 Revert SVN r2660.
27359
27360 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27361 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27362 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27363 * conf/i386-ieee1275.rmk: Likewise.
27364 * conf/i386-pc.rmk: Likewise.
27365 * conf/powerpc-ieee1275.rmk: Likewise.
27366 * conf/sparc64-ieee1275.rmk: Likewise.
27367 * conf/x86_64-efi.rmk: Likewise.
27368
27369 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27370
27371 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27372
27373 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27374
27375 * include/grub/misc.h: Stop checking for APPLE_CC.
27376
27377 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27378
27379 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27380 doesn't cause an infinite call loop.
27381
27382 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27383
27384 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27385 strings.
27386
27387 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27388
27389 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27390 variable.
27391 * Makefile.in: Likewise.
27392
27393 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27394
27395 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27396
27397 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27398
27399 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27400
27401 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27402
27403 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27404
27405 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27406
27407 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27408 from here ...
27409 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27410
27411 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27412
27413 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27414 in $(MAKEINFO) invocation. This makes it clear in output that
27415 errors are being ignored.
27416
27417 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27418
27419 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27420 from here ...
27421 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27422 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27423 * conf/i386-ieee1275.rmk: Likewise.
27424 * conf/i386-pc.rmk: Likewise.
27425 * conf/powerpc-ieee1275.rmk: Likewise.
27426 * conf/sparc64-ieee1275.rmk: Likewise.
27427 * conf/x86_64-efi.rmk: Likewise.
27428
27429 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27430
27431 * util/grub-editenv.c (main): If only a command is given, use
27432 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27433 (usage): FILENAME is now optional and has a default.
27434
27435 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27436
27437 Improve grub-mkconfig performance when there are several menu
27438 entries on a single filesystem.
27439
27440 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27441 prepare_grub_to_access_device.
27442 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27443 * util/grub.d/30_os-prober.in: Likewise.
27444
27445 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27446
27447 * util/grub.d/10_freebsd.in: Remove.
27448 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27449 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27450
27451 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27452
27453 * docs/grub.cfg: Fix example usage of *BSD loaders.
27454
27455 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27456
27457 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27458 grub_util_error() call.
27459
27460 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27461
27462 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27463 `reserved_first_sector' member.
27464 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27465 `reserved_first_sector' to 1.
27466 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27467 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27468 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27469 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27470 filesystems which begin at first sector.
27471 (options): New option --skip-fs-probe.
27472 (main): Handle --skip-fs-probe and pass it to setup().
27473
27474 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27475
27476 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27477 (memset): Fix function prototype.
27478
27479 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27480 2009-10-25 Vasily Averin <vvs@parallels.com>
27481
27482 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27483 `dirent.direntlen == 0'.
27484
27485 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27486
27487 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27488 `cpio'.
27489 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27490
27491 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27492
27493 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27494 `__trampoline_setup' and `__ucmpdi2'.
27495 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27496 that libgcc provides.
27497
27498 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27499
27500 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27501 * include/grub/sparc64/libgcc.h (memset): Likewise.
27502 * include/grub/misc.h (memset, memcmp): New function prototypes.
27503
27504 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27505
27506 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27507 `cpio'.
27508 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27509
27510 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27511
27512 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27513 * docs/grub.cfg: Compensate for recent change in multiboot
27514 loader (since 2009-08-14 it won't pass filename to payload).
27515 * util/grub.d/10_hurd.in: Likewise.
27516
27517 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27518
27519 * config.guess: Update to latest version from config git
27520 repository.
27521 * config.sub: Likewise.
27522
27523 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27524
27525 Fix build on sparc64.
27526
27527 * configure.ac: Perform checks for libgcc symbols before
27528 adding `-nostdlib' to LDFLAGS.
27529
27530 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27531
27532 Let user specify OpenBSD root device.
27533
27534 * loader/i386/bsd.c (openbsd_root): New variable.
27535 (openbsd_opts): New option 'root'.
27536 (OPENBSD_ROOT_ARG): New macro.
27537 (grub_openbsd_boot): Use 'openbsd_root'.
27538 (grub_cmd_openbsd): Fill 'openbsd_root'.
27539
27540 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27541
27542 * NEWS: Misc adjustments.
27543
27544 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27545
27546 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27547
27548 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27549
27550 * configure.ac: Bump version to 1.97.
27551
27552 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27553
27554 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27555 -mno-3dnow on x86 architectures. Some toolchains enable these
27556 features by default, but they rely on registers that aren't enabled
27557 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27558
27559 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27560
27561 Make entry text a bit more readable.
27562
27563 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27564
27565 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27566
27567 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27568
27569 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27570
27571 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27572 operations.
27573
27574 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27575
27576 * configure.ac: Add missing dollar.
27577
27578 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27579
27580 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27581
27582 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27583 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27584 exports.
27585 * include/grub/sparc64/libgcc.h: Likewise. Use
27586 preprocessor conditionals.
27587
27588 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27589
27590 * conf/common.rmk (grub-dumpbios): Remove rule.
27591 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27592 * util/grub-dumpbios.in: Remove file.
27593
27594 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27595
27596 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27597 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27598
27599 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27600 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27601 users.
27602
27603 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27604 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27605 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27606 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27607 users.
27608
27609 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27610
27611 * term/tparm.c: Switch to GPLv3.
27612
27613 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27614
27615 * include/grub/i386/cpuid.h: Add header protection.
27616
27617 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27618
27619 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27620
27621 * include/grub/i386/cpuid.h: New file.
27622 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27623 (has_longmode): Rename to ...
27624 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27625 `static' attribute.
27626 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27627 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27628 on a CPU that doesn't implement AMD64 instruction set.
27629
27630 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27631
27632 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27633 that version.texi is rebuilt on version number changes.
27634
27635 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27636
27637 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27638 Fixes bug #27602.
27639
27640 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27641
27642 * util/i386/pc/grub-install.in: Source
27643 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27644 that the --grub-probe option will work.
27645 * util/sparc64/ieee1275/grub-install.in: Likewise.
27646
27647 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27648
27649 * configure.ac: Bump version to 1.97~beta4.
27650
27651 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27652
27653 Resync grub-mkdevicemap in x86_64-efi.
27654
27655 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27656 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27657 `util/devicemap.c'.
27658
27659 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
27660
27661 * util/grub-editenv.c (create_envblk_file): Write new block with a
27662 .new suffix and then rename it into place, to ensure atomic
27663 creation.
27664
27665 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27666
27667 Do not automatically install headers.
27668
27669 * Makefile.in (include_DATA): Remove. Update all users.
27670
27671 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27672
27673 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27674 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27675
27676 * util/osdetect.lua: Remove.
27677 * script/lua/lauxlib.c: Likewise.
27678 * script/lua/ldebug.c: Likewise.
27679 * script/lua/grub_main.c: Likewise.
27680 * script/lua/lauxlib.h: Likewise.
27681 * script/lua/ldebug.h: Likewise.
27682 * script/lua/ltablib.c: Likewise.
27683 * script/lua/liolib.c: Likewise.
27684 * script/lua/lstrlib.c: Likewise.
27685 * script/lua/lualib.h: Likewise.
27686 * script/lua/ldo.c: Likewise.
27687 * script/lua/ldump.c: Likewise.
27688 * script/lua/ldo.h: Likewise.
27689 * script/lua/loslib.c: Likewise.
27690 * script/lua/lundump.c: Likewise.
27691 * script/lua/grub_lib.c: Likewise.
27692 * script/lua/ldblib.c: Likewise.
27693 * script/lua/lundump.h: Likewise.
27694 * script/lua/lmem.c: Likewise.
27695 * script/lua/grub_lib.h: Likewise.
27696 * script/lua/lmathlib.c: Likewise.
27697 * script/lua/lstate.c: Likewise.
27698 * script/lua/ltm.c: Likewise.
27699 * script/lua/lvm.c: Likewise.
27700 * script/lua/lmem.h: Likewise.
27701 * script/lua/lstate.h: Likewise.
27702 * script/lua/ltm.h: Likewise.
27703 * script/lua/ltable.c: Likewise.
27704 * script/lua/lvm.h: Likewise.
27705 * script/lua/llex.c: Likewise.
27706 * script/lua/lgc.c: Likewise.
27707 * script/lua/grub_lua.h: Likewise.
27708 * script/lua/loadlib.c: Likewise.
27709 * script/lua/lfunc.c: Likewise.
27710 * script/lua/lopcodes.c: Likewise.
27711 * script/lua/lparser.c: Likewise.
27712 * script/lua/ltable.h: Likewise.
27713 * script/lua/llex.h: Likewise.
27714 * script/lua/lgc.h: Likewise.
27715 * script/lua/lfunc.h: Likewise.
27716 * script/lua/lbaselib.c: Likewise.
27717 * script/lua/lopcodes.h: Likewise.
27718 * script/lua/lparser.h: Likewise.
27719 * script/lua/lzio.c: Likewise.
27720 * script/lua/linit.c: Likewise.
27721 * script/lua/lobject.c: Likewise.
27722 * script/lua/llimits.h: Likewise.
27723 * script/lua/lstring.c: Likewise.
27724 * script/lua/lzio.h: Likewise.
27725 * script/lua/lapi.c: Likewise.
27726 * script/lua/lcode.c: Likewise.
27727 * script/lua/lua.h: Likewise.
27728 * script/lua/lobject.h: Likewise.
27729 * script/lua/lstring.h: Likewise.
27730 * script/lua/lapi.h: Likewise.
27731 * script/lua/lcode.h: Likewise.
27732 * script/lua/luaconf.h: Likewise.
27733
27734 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27735
27736 * docs/grub.texi (Command-line and menu entry commands): Document
27737 date and echo commands.
27738
27739 2009-09-24 Pavel Roskin <proski@gnu.org>
27740
27741 * include/grub/kernel.h (struct grub_module_header): Remove
27742 `grub_module_header_types'. Make `type' unsigned. Make `size'
27743 32-bit on all platforms.
27744 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27745 8-bit field. Use grub_host_to_target32() for `size'.
27746 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27747 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27748 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27749
27750 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27751
27752 Fix "lost keypress" bug in at_keyboard.
27753
27754 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27755 Checks for readyness of input buffer (without flushing it).
27756 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27757 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27758
27759 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27760
27761 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27762 size check within GRUB_MACHINE_PCBIOS section.
27763
27764 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27765
27766 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
27767 return value.
27768 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
27769 KEYBOARD_ISREADY check.
27770 (grub_at_keyboard_checkkey): Rename to ...
27771 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
27772 Remove gratuitous cast.
27773
27774 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
27775
27776 * configure.ac: Call AC_PROG_MKDIR_P.
27777 * Makefile.in (docs/stamp-vti): Create docs directory. Create
27778 version.texi in $(builddir) rather than $(srcdir).
27779 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
27780 to makeinfo's @include search path.
27781
27782 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27783
27784 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
27785
27786 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27787
27788 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
27789 for `*.dpkg-new'.
27790
27791 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
27792
27793 Build info documentation. Some code borrowed from Automake.
27794
27795 * configure.ac: Check for makeinfo.
27796 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
27797 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
27798 docs/version.texi.
27799 (MOSTLYCLEANFILES): Add vti.tmp.
27800 (docs/version.texi, docs/stamp-vti): Update automatically.
27801 (docs/grub.info): Build info documentation. Use --force and ignore
27802 errors for now.
27803 (all-local): Add $(INFOS).
27804 (install-local): Install info files.
27805 (uninstall): Uninstall info files.
27806 * docs/version.texi: Remove from revision control. This file is
27807 automatically generated on build now.
27808 * gendistlist.sh: Add `*.info'.
27809
27810 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27811
27812 * kern/term.c: Fix indentation.
27813
27814 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27815
27816 * util/hostdisk.c: Fix a comment.
27817
27818 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
27819
27820 Fix regression introduced in r2539.
27821
27822 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
27823 to 0xA1.
27824
27825 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
27826
27827 * util/grub.d/30_os-prober.in: Don't throw away stderr from
27828 os-prober. Under normal operation, it does not print anything to
27829 stderr; if it does, we need to debug it, and throwing away stderr
27830 makes that excessively difficult.
27831
27832 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
27833
27834 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27835
27836 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27837
27838 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
27839 AC_LANG_PROGRAM from autoconf.
27840 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
27841 prototypes (fixes warning).
27842
27843 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
27844 `--disable-werror' was used.
27845
27846 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27847
27848 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
27849 uninitialized `lastaddr'.
27850
27851 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
27852
27853 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
27854
27855 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27856
27857 * commands/test.c (get_fileinfo): Return immediately if
27858 grub_fs_probe fails.
27859
27860 2009-09-14 José Martínez <xosemp@gmail.com>
27861
27862 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
27863
27864 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27865
27866 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
27867 output.
27868
27869 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
27870
27871 * configure.ac: Remove --enable-grub-pe2elf. Only build
27872 grub-pe2elf when needed by the build system itself.
27873 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
27874
27875 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27876
27877 * configure.ac: Bump version to 1.97~beta3.
27878 * docs/version.texi: Likewise.
27879
27880 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27881
27882 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
27883 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
27884 from here ...
27885 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
27886 (grub_linux_setup_video): ... to here (with some adjustments).
27887
27888 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27889
27890 Fix memory corruption issue (spotted by Colin Watson).
27891
27892 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
27893 causing returned size to be stored in an incorrect memory location.
27894 Fix use of uninitialized value when storing the returned size.
27895
27896 2009-09-12 Yves Blusseau <blusseau@zetam.org>
27897
27898 Change clean rules to properly remove files
27899
27900 * genmk.rb: add new clean rules
27901 * Makefile.in (clean): add the new targets
27902 (mostlyclean): likewise
27903
27904 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27905
27906 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
27907 to grub_uint64_t.
27908 * fs/ntfs.c (init_file): Understand 64-bit sizes for
27909 non-resident files.
27910
27911 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27912
27913 * configure.ac: Don't look for help2man when cross-compiling. Fixes
27914 part of bug #27349.
27915
27916 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27917
27918 * util/grub-mkconfig.in: Make the created config mode 400 and
27919 print a warning if it fails.
27920
27921 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
27922
27923 * util/grub.d/40_custom.in: Ask user to type custom entries below
27924 comment, rather than below 'exec tail' line.
27925
27926 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27927
27928 * util/grub.d/40_custom.in: Make sure that the explanatory text is
27929 visible in grub.cfg.
27930
27931 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27932
27933 * util/grub.d/40_custom.in: Make it a little clearer how to use this
27934 file.
27935
27936 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27937
27938 * docs/grub.cfg: Add an example menu entry for memtest86+.
27939
27940 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
27941
27942 * config.guess: Update to latest version from config git.
27943 * config.sub: Likewise.
27944
27945 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
27946
27947 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
27948 unknown-command case. Fixes bug #27320.
27949
27950 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
27951
27952 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
27953 `help' if the command exists.
27954
27955 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
27956
27957 * INSTALL: Require GCC 4.1.3 or later.
27958
27959 2009-09-06 Yves Blusseau <blusseau@zetam.org>
27960
27961 * Makefile.in (RMKFILES): add i386-qemu.rmk
27962 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
27963 $(srcdir)/stamp-h.in
27964
27965 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
27966
27967 * util/grub-probe.c (probe): Comment out buggy codepath, which
27968 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
27969 should be re-enabled after 1.97.
27970
27971 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
27972
27973 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
27974 find searches for.
27975
27976 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
27977
27978 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
27979 unnecessary calls to grub_error.
27980
27981 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
27982
27983 * NEWS: Mention `keystatus' and Unicode fonts.
27984
27985 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
27986
27987 * configure.ac: Bump version to 1.97~beta2.
27988 * docs/version.texi: Likewise.
27989
27990 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27991
27992 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
27993 containing unwind information in some cases where it previously did
27994 not. Use -fno-dwarf2-cfi-asm if available to restore the old
27995 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
27996 discussion.
27997
27998 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
27999
28000 Embedding loadenv module into grub-emu
28001
28002 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28003 commands/loadenv.c
28004 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28005 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28006 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28007 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28008 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28009 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28010
28011 2009-09-03 Magnus Granberg <zorry@ume.nu>
28012
28013 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28014 include -fPIE in the default specs.
28015 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28016 to TARGET_CFLAGS.
28017
28018 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28019
28020 * INSTALL: Note that GNU Bison 2.3 or later is required.
28021
28022 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28023
28024 * kern/i386/pc/startup.S: Fix typo.
28025
28026 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28027
28028 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28029 according to GCS.
28030
28031 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28032
28033 * docs/grub.texi (Naming convention): Describe one-based partition
28034 numbering.
28035 (Device syntax): Likewise.
28036 (File name syntax): Likewise.
28037 (Block list syntax): Likewise.
28038 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28039 menu.lst.
28040 (File name syntax): Likewise.
28041 (Command-line and menu entry commands): Document acpi, blocklist,
28042 crc, export, insmod, keystatus, ls, set, and unset commands.
28043
28044 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28045
28046 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28047 to avoid implying that only one of --shift, --ctrl, or --alt may be
28048 used.
28049
28050 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28051
28052 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28053 rather than comparing against S_IFREG, which will almost never work.
28054
28055 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28056
28057 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28058 (write_blocklists): Likewise.
28059
28060 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28061
28062 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28063 argument to grub_printf.
28064
28065 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28066
28067 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28068 non GNU test.
28069
28070 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28071
28072 * kern/file.c (grub_file_read): Spelling fix
28073
28074 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28075
28076 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28077 loading of headers in some cases.
28078
28079 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28080
28081 * configure.ac: Bump version to 1.97~beta1.
28082 * docs/version.texi: Likewise.
28083
28084 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28085
28086 * include/grub/i386/xnu.h: Add license header.
28087 include grub/err.h explicitly.
28088
28089 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28090
28091 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28092 to `ufs' in the vfs.root.mountfrom kernel parameter.
28093
28094 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28095
28096 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28097
28098 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28099 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28100
28101 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28102 `ARRAY_SIZE' macro.
28103
28104 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28105
28106 * kern/file.c (grub_file_read): Check offset.
28107 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28108 * fs/jfs.c (grub_jfs_read_file): Likewise.
28109 * fs/ntfs.c (grub_ntfs_read): Likewise.
28110 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28111 * fs/minix.c (grub_minix_read_file): Correct offset check.
28112 * fs/ufs.c (grub_ufs_read_file): Likewise.
28113
28114 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28115
28116 * term/i386/pc/console.c (bios_data_area): Cast
28117 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28118
28119 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28120
28121 1-bit optimised blitters.
28122
28123 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28124 prototype.
28125 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28126 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28127 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28128 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28129 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28130 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28131 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28132 function.
28133 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28134 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28135 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28136 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28137 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28138 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28139 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28140 when possible.
28141 * video/video.c (grub_video_get_blit_format): Return
28142 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28143
28144 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28145
28146 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28147 the first argument to grub_printf.
28148
28149 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28150 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28151
28152 Add `getkeystatus' terminal method. Add a new `keystatus' command
28153 to query it.
28154
28155 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28156 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28157 modifier key bitmasks.
28158 (struct grub_term_input): Add `getkeystatus' member.
28159 (grub_getkeystatus): Add prototype.
28160 * kern/term.c (grub_getkeystatus): New function.
28161
28162 * include/grub/i386/pc/memory.h
28163 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28164 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28165 Data Area layout.
28166 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28167 (grub_console_term_input): Set `getkeystatus' member.
28168 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28169 constants.
28170 (grub_usb_keyboard_getreport): Likewise.
28171 (grub_usb_keyboard_checkkey): Likewise.
28172 (grub_usb_keyboard_getkeystatus): New function.
28173 (grub_usb_keyboard_term): Set `getkeystatus' member.
28174
28175 * commands/keystatus.c: New file.
28176 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28177 (keystatus_mod_SOURCES): New variable.
28178 (keystatus_mod_CFLAGS): Likewise.
28179 (keystatus_mod_LDFLAGS): Likewise.
28180 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28181 commands/keystatus.c.
28182 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28183 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28184 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28185 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28186 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28187 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28188
28189 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28190
28191 Split befs.mod and afs.mod into *_be.mod and *.mod
28192
28193 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28194 (grub_fstest_SOURCES): Likewise.
28195 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28196 (afs_be_mod_SOURCES): New variable.
28197 (afs_be_mod_CFLAGS): Likewise.
28198 (afs_be_mod_LDFLAGS): Likewise.
28199 (befs_be_mod_SOURCES): Likewise.
28200 (befs_be_mod_CFLAGS): Likewise.
28201 (befs_be_mod_LDFLAGS): Likewise.
28202 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28203 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28204 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28205 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28206 (grub_emu_SOURCES): Likewise.
28207 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28208 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28209 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28210 * fs/afs_be.c: New file.
28211 * fs/befs_be.c: New file.
28212 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28213 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28214 (U16): Replaced with ...
28215 (grub_afs_to_cpu16): ...this. All users updated.
28216 (U32): Replaced with ...
28217 (grub_afs_to_cpu32): ...this. All users updated.
28218 (U64): Replaced with ...
28219 (grub_afs_to_cpu64): ...this. All users updated.
28220 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28221 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28222 (grub_afs_validate_sblock): Check only one endianness.
28223 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28224 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28225 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28226 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28227 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28228 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28229 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28230 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28231
28232 2009-08-26 Bean <bean123ch@gmail.com>
28233
28234 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28235 64-bit number.
28236 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28237 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28238 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28239
28240 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28241
28242 NetBSD memory map support.
28243
28244 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28245 (grub_netbsd_btinfo_mmap_header): New structure.
28246 (grub_netbsd_btinfo_mmap_entry): Likewise.
28247 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28248
28249 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28250
28251 Enable bsd.mod on coreboot.
28252
28253 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28254 (bsd_mod_SOURCES): New variable.
28255 (bsd_mod_CFLAGS): Likewise.
28256 (bsd_mod_LDFLAGS): Likewise.
28257 (bsd_mod_ASFLAGS): Likewise.
28258 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28259 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28260
28261 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28262
28263 Cleanup NetBSD root support.
28264
28265 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28266 grub_bsd_get_device.
28267 Fix typo.
28268
28269 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28270
28271 * util/grub.d/00_header.in: Move check for the video backend of
28272 gfxterm from here ...
28273 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28274 a suitable video backend.
28275
28276 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28277
28278 Fix breakage in grub-setup.
28279
28280 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28281 "msdos_partition_map".
28282
28283 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28284
28285 Fix breakage in normal/auth.c.
28286
28287 * normal/auth.c (grub_iswordseparator): New function.
28288
28289 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28290
28291 Authentication support.
28292
28293 * commands/password.c: New file.
28294 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28295 (password_mod_SOURCES): New variable.
28296 (password_mod_CFLAGS): Likewise.
28297 (password_mod_LDFLAGS): Likewise.
28298 (normal_mod_SOURCES): Add normal/auth.c.
28299 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28300 normal/auth.c.
28301 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28302 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28303 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28304 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28305 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28306 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28307 * include/grub/auth.h: New file.
28308 * include/grub/err.h (grub_err_t): New enum value
28309 GRUB_ERR_ACCESS_DENIED.
28310 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28311 'users'.
28312 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28313 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28314 users updated.
28315 * normal/auth.c: New file.
28316 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28317 (grub_cmdline_run): Don't allow to go to command line without
28318 authentication.
28319 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28320 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28321 menuentry without superuser rights.
28322 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28323 user isn't a superuser.
28324
28325 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28326
28327 Save space by inlining misc.c functions.
28328
28329 * kern/misc.c (grub_iswordseparator): Made static.
28330 * kern/misc.c (grub_strcat): Moved from here ...
28331 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28332 * kern/misc.c (grub_strncat): Moved from here ...
28333 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28334 * kern/misc.c (grub_strcasecmp): Moved from here ...
28335 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28336 * kern/misc.c (grub_strncasecmp): Moved from here ...
28337 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28338 * kern/misc.c (grub_isalpha): Moved from here ...
28339 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28340 * kern/misc.c (grub_isdigit): Moved from here ...
28341 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28342 * kern/misc.c (grub_isgraph): Moved from here ...
28343 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28344 * kern/misc.c (grub_tolower): Moved from here ...
28345 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28346
28347 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28348
28349 * script/sh/function.c (grub_script_function_find): Cut error message
28350 not to flood terminal.
28351 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28352 limit.
28353 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28354
28355 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28356
28357 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28358 `report' grub_uint8_t *.
28359 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28360 Use a 50-millisecond timeout rather than just repeating
28361 grub_usb_keyboard_getreport 50 times.
28362 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28363
28364 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28365
28366 Rename *_partition_map to part_*
28367
28368 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28369 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28370 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28371 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28372 All users updated.
28373 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28374 All users updated.
28375 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28376 * util/grub-probe.c (probe_partmap): Don't transform partition name
28377 to get module name.
28378
28379 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28380
28381 Fix OpenBSD and NetBSD support.
28382
28383 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28384 memory address conflict.
28385 (OPENBSD_MMAP_ACPI): New definition.
28386 (OPENBSD_MMAP_NVS): Likewise.
28387 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28388 and OPENBSD_MMAP_NVS.
28389 Add memory map terminator
28390 Explicit cast when calling grub_unix_real_boot.
28391 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28392
28393 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28394
28395 Let user specify NetBSD root device.
28396
28397 * loader/i386/bsd.c (netbsd_root): New variable.
28398 (netbsd_opts): New option 'root'.
28399 (NETBSD_ROOT_ARG): New macro.
28400 (grub_netbsd_boot): Use 'netbsd_root'.
28401 (grub_bsd_unload): Free 'netbsd_root'.
28402 (grub_cmd_netbsd): Fill 'netbsd_root'.
28403
28404 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28405
28406 Support for 64-bit NetBSD.
28407
28408 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28409 point when booting non-FreeBSD.
28410
28411 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28412
28413 Support --no-smp and --no-acpi for NetBSD.
28414
28415 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28416 (NETBSD_AB_NOACPI): Likewise.
28417 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28418 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28419
28420 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28421
28422 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28423 errors.
28424 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28425 errors. Call grub_error when needed.
28426
28427 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28428
28429 * commands/search.c (search_fs): Try searching without autoload first.
28430 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28431 filesystem module explicitly for faster booting.
28432
28433 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28434
28435 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28436
28437 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28438
28439 * util/grub.d/30_os-prober.in: Disable os-prober if
28440 `GRUB_DISABLE_OS_PROBER' was set to true.
28441
28442 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28443
28444 * partmap/pc.c: Rename to ...
28445 * partmap/msdos.c: ... this. Update all users.
28446 (grub_pc_partition_map): Rename to ...
28447 (grub_msdos_partition_map): ... this. Update all users.
28448
28449 * parttool/pcpart.c: Rename to ...
28450 * parttool/msdospart.c: ... this. Update all users.
28451
28452 * include/grub/pc_partition.h: Rename to ...
28453 * include/grub/msdos_partition.h: ... this. Update all users.
28454 (grub_pc_partition_bsd_entry): Rename to ...
28455 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28456 (grub_pc_partition_disk_label): Rename to ...
28457 (grub_msdos_partition_disk_label): ... this. Update all users.
28458 (grub_pc_partition_entry): Rename to ...
28459 (grub_msdos_partition_entry): ... this. Update all users.
28460 (grub_pc_partition_mbr): Rename to ...
28461 (grub_msdos_partition_mbr): ... this. Update all users.
28462 (grub_pc_partition): Rename to ...
28463 (grub_msdos_partition): ... this. Update all users.
28464 (grub_pc_partition_is_empty): Rename to ...
28465 (grub_msdos_partition_is_empty): ... this. Update all users.
28466 (grub_pc_partition_is_extended): Rename to ...
28467 (grub_msdos_partition_is_extended): ... this. Update all users.
28468 (grub_pc_partition_is_bsd): Rename to ...
28469 (grub_msdos_partition_is_bsd): ... this. Update all users.
28470
28471 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28472 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28473 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28474 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28475 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28476 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28477 (gpt_mod_LDFLAGS): Rename to ...
28478 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28479 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28480 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28481 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28482 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28483 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28484 (part_gpt_mod_LDFLAGS): ... this.
28485 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28486 `pcpart.mod' to `msdospart.mod'.
28487 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28488 to ...
28489 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28490 (msdospart_mod_LDFLAGS): ... this.
28491
28492 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28493
28494 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28495 (openbsd_opts): Likewise.
28496 (netbsd_opts): Likewise.
28497 (freebsd_flags): Added 0 terminator.
28498 (openbsd_flags): Likewise.
28499 (netbsd_flags): Likewise.
28500 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28501 (grub_cmd_freebsd): Transformed into extended command.
28502 (grub_cmd_openbsd): Likewise.
28503 (grub_cmd_netbsd): Likewise.
28504 (cmd_freebsd): Changed type to grub_extcmd_t.
28505 (cmd_openbsd): Likewise.
28506 (cmd_netbsd): Likewise.
28507 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28508 grub_cmd_openbsd as extended commands.
28509 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28510 cmd_netbsd and cmd_openbsd
28511
28512 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28513
28514 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28515
28516 2009-08-21 Pavel Roskin <proski@gnu.org>
28517
28518 * Makefile.in (install-local): When checking if a file is in the
28519 build directory, use "test -e" to detect symlinks.
28520
28521 * Makefile.in (install-local): Remove all files in
28522 $(DESTDIR)$(pkglibdir) before installing new files there.
28523
28524 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28525
28526 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28527 grub-mkelfimage.
28528
28529 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28530
28531 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28532 explicitly specified by the user.
28533
28534 2009-08-18 Pavel Roskin <proski@gnu.org>
28535
28536 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28537 grub_uint8_t pointer for data.
28538 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28539 Likewise.
28540 * video/fb/fbutil.c: Remove unnecessary casts.
28541
28542 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28543
28544 VBE cleanup.
28545
28546 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28547 (grub_vbe_set_video_mode): Save active mode info
28548 only after setting the mode.
28549 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28550 second argument.
28551
28552 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28553
28554 Rename variables for clarity.
28555
28556 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28557 (active_vbe_mode_info): ... this. All users updated.
28558 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28559 All users updated.
28560 (initial_mode): Rename to ...
28561 (initial_vbe_mode): ... this. All users updated.
28562 (mode_in_use): Rename to ..
28563 (vbe_mode_in_use): ... this. All users updated.
28564 (mode_list): Rename to ..
28565 (vbe_mode_list): ... this. All users updated.
28566 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28567 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28568 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28569 'mode_list_size' to 'vbe_mode_list_size'.
28570 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28571 'best_mode_info' to 'best_vbe_mode_info' and
28572 'best_mode' to 'best_vbe_mode'
28573
28574 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28575
28576 Remove duplicate grub_video_fb_get_video_ptr.
28577
28578 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28579 (grub_video_fb_get_video_ptr): ... this.
28580 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28581 * video/fb/fbutil.c: Add comment about addressing.
28582 (get_data_ptr): Rename to ...
28583 (grub_video_fb_get_video_ptr): ... this. All users updated.
28584 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28585
28586 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28587
28588 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28589 grub_dprintf() that was just added.
28590
28591 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28592
28593 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28594 (DEFAULT_VIDEO_MODE): Remove macros.
28595 (grub_linux_boot): Remove assumption that Linux has FB support,
28596 and use "text" as default video mode.
28597
28598 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28599
28600 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28601 grub_dprintf.
28602 * fs/fat.c (grub_fat_read_data): Likewise.
28603
28604 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28605
28606 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28607 payload.
28608 (grub_module): Likewise.
28609
28610 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28611
28612 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28613 mbi->cmdline but free playground.
28614
28615 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28616
28617 Handle group offset on UFS1.
28618
28619 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28620 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28621
28622 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28623
28624 Split ufs.mod into ufs1.mod and ufs2.mod.
28625
28626 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28627 (grub_fstest_SOURCES): Likewise.
28628 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28629 (ufs_mod_SOURCES): Remove.
28630 (ufs_mod_CFLAGS): Likewise.
28631 (ufs_mod_LDFLAGS): Likewise.
28632 (ufs1_mod_SOURCES): New variable.
28633 (ufs1_mod_CFLAGS): Likewise.
28634 (ufs1_mod_LDFLAGS): Likewise.
28635 (ufs2_mod_SOURCES): New variable.
28636 (ufs2_mod_CFLAGS): Likewise.
28637 (ufs2_mod_LDFLAGS): Likewise.
28638 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28639 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28640 Likewise.
28641 (grub_emu_SOURCES): Likewise.
28642 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28643 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28644 (grub_setup_SOURCES): Likewise.
28645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28646 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28647 (grub_setup_SOURCES): Likewise.
28648 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28649 Likewise.
28650 * fs/ufs2.c: New file.
28651 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28652
28653 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28654
28655 Framebuffer split.
28656
28657 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28658 subsystem at the end.
28659 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28660 (video_fb_mod_SOURCES): New variable.
28661 (video_fb_mod_CFLAGS): Likewise.
28662 (video_fb_mod_LDFLAGS): Likewise.
28663 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28664 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28665 * video/i386/pc/vbeblit.c: Moved from here ...
28666 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28667 * video/i386/pc/vbefill.c: Moved from here ...
28668 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28669 * video/i386/pc/vbeutil.c: Moved from here ...
28670 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28671 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28672 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28673 * include/grub/i386/pc/vbefill.h: Moved from here ...
28674 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28675 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28676 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28677 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28678 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28679 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28680 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28681 (grub_video_adapter): Added 'get_info_and_fini'.
28682 (grub_video_get_info_and_fini): New prototype.
28683 (grub_video_set_mode): make modestring const char *.
28684 * loader/i386/linux.c (grub_linux_setup_video): Use
28685 grub_video_get_info_and_fini.
28686 (grub_linux_boot): Move modesetting just before booting.
28687 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28688 grub_video_get_info_and_fini.
28689 * video/i386/pc/vbe.c: Moved framebuffer part ...
28690 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28691 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28692 grub_video_fbstd_colors and grub_video_fb_set_palette.
28693 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28694 grub_video_fb_init.
28695 (grub_video_vbe_fini): Use grub_video_fb_fini.
28696 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28697 render_target and use grub_video_fb_set_active_render_target and
28698 grub_video_fb_set_palette.
28699 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28700 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28701 (grub_video_vbe_adapter): Use framebuffer.
28702 * video/video.c (grub_video_get_info_and_fini): New function.
28703 (grub_video_set_mode): Make modestring const char *.
28704 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28705 values are already initialised.
28706
28707 2009-08-14 Pavel Roskin <proski@gnu.org>
28708
28709 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28710 ABS and APPLE_CC.
28711 * boot/i386/pc/diskboot.S: Likewise.
28712 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28713 sectors allow compilation on MacOSX.
28714 * conf/i386-pc.rmk: Enable unconditional compilation of
28715 lnxboot.img.
28716
28717 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28718
28719 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28720 * util/grub.d/00_header.in: Enter interruptible sleep if
28721 GRUB_HIDDEN_TIMEOUT is set.
28722
28723 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28724
28725 * include/grub/symbol.h: Add the LOCAL macro.
28726 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28727 starting with "L_".
28728
28729 2009-08-13 Pavel Roskin <proski@gnu.org>
28730
28731 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28732 any modern compilers we support.
28733
28734 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28735 Use local labels starting with "L_" so that Apple assembler
28736 knows they are local.
28737
28738 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28739
28740 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28741 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28742 (bsd_kernel_types): ... this enum.
28743
28744 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28745 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28746 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28747
28748 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28749 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28750 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28751 messages.
28752
28753 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28754
28755 * util/grub-dumpdevtree: Moved from here ...
28756 * util/i386/efi/grub-dumpdevtree: ... to here.
28757 (hexify): New function. Converts a string to its hex version.
28758 Generate hex versions of "efi" and "device-properties" by calling
28759 hexify() on the ASCII strings rather than by hardcoding numbers.
28760
28761 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28762
28763 * fs/jfs.c: Update copyright year.
28764
28765 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28766
28767 * util/grub.d/00_header.in: Fix a comment.
28768 * util/grub.d/10_linux.in: Likewise.
28769 * util/grub.d/10_windows.in: Likewise.
28770 * util/grub.d/10_hurd.in: Likewise.
28771
28772 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28773
28774 * util/grub-mkconfig.in: Allow the user to specify the used font
28775 with GRUB_FONT.
28776
28777 2009-08-08 Pavel Roskin <proski@gnu.org>
28778
28779 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
28780 available, xfs.mod needs it now.
28781
28782 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
28783 the "g" modifier in sed when the intention is to strip something
28784 once. This fixes comparison of kernels with multiple dashes.
28785
28786 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
28787 on it. Add missing space before closing bracket. Fix
28788 misleading formatting.
28789
28790 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28791
28792 * docs/grub.texi: Major overhaul. Remove all sections that are
28793 specific to GRUB Legacy, or mostly composed of Legacy-specific
28794 information.
28795
28796 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28797
28798 * docs/version.texi: New file. Provides version information for
28799 grub.texi.
28800
28801 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28802
28803 * docs/grub.texi: Update CVS information to SVN.
28804 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
28805
28806 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28807
28808 * util/grub-mkconfig.in: Remove a wrong `fi'.
28809
28810 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28811
28812 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
28813 (grub_jfs_uuid): New function.
28814 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
28815
28816 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28817
28818 * util/grub-mkconfig_lib.in (font_path): Move the functionality
28819 of it to ...
28820 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
28821 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
28822
28823 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28824
28825 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
28826 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
28827 Update all users.
28828
28829 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
28830 not just "vmlinu[zx]".
28831 Moved from here ...
28832 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
28833 all users.
28834
28835 * util/grub.d/10_linux.in (find_latest): Moved from here ...
28836 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
28837 all users.
28838
28839 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28840
28841 * util/grub.d/10_freebsd.in: Use an absolute device path for
28842 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
28843
28844 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
28845
28846 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
28847 handling of multiple abstraction modules.
28848
28849 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
28850
28851 Fix a bug resulting in black screen when loading Linux using a
28852 packed video mode.
28853
28854 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
28855 function.
28856
28857 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
28858 (grub_vbe_bios_getset_dac_palette_width): New function.
28859 (grub_vbe_bios_get_dac_palette_width)
28860 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
28861 grub_vbe_bios_getset_dac_palette_width()).
28862
28863 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
28864 check for return status.
28865 (grub_vbe_get_video_mode_info): When getting information for a packed
28866 mode (<= 8 bpp), obtain DAC palette width using
28867 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
28868 {red,green,blue}_mark_size.
28869
28870 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
28871
28872 * commands/search.c (options): Fix help output to match actual code.
28873
28874 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
28875
28876 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
28877 of homegrown code.
28878
28879 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28880
28881 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
28882 on XFS or ReiserFS.
28883
28884 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28885
28886 Support Apple partition map with sector size different from 512 bytes.
28887
28888 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
28889 (apple_partition_map_iterate): Respect 'aheader.blocksize'
28890 and 'apart.partmap_size'.
28891
28892 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28893 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
28894
28895 Fix cpuid command.
28896
28897 * commands/i386/cpuid.c (options): New variable.
28898 (grub_cmd_cpuid): Return real error.
28899 (GRUB_MOD_INIT(cpuid)): Declare options.
28900
28901 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
28902
28903 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
28904 valid.
28905
28906 2009-07-31 Bean <bean123ch@gmail.com>
28907
28908 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
28909 log2_inode.
28910 (grub_fshelp_node): Move inode field to the end.
28911 (grub_xfs_data): Remove inode field.
28912 (grub_xfs_inode_block): Calculate inode size using sblock.
28913 (grub_xfs_inode_offset): Likewise.
28914 (grub_xfs_read_inode): Calculate inode size using sblock.
28915 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
28916 (grub_xfs_iterate_dir): Calculate inode size using sblock.
28917 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
28918 to match inode size.
28919 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
28920 not accessible when data is null.
28921 (grub_xfs_open): Likewise.
28922
28923 2009-07-31 Bean <bean123ch@gmail.com>
28924
28925 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
28926 Don't change pv->disk if it's already set.
28927
28928 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
28929 (grub_raid_register): ... here.
28930 (grub_raid_rescan): Removed.
28931
28932 * include/grub/raid.h (grub_raid_rescan): Removed.
28933
28934 * util/grub-fstest.c: Remove include file <grub/raid.h>.
28935 (fstest): Replace grub_raid_rescan with module fini function followed
28936 by init function.
28937
28938 * util/grub-probe.c: Add include file <grub/raid.h>.
28939 (probe_raid_level): New function.
28940 (probe): Detect abstraction by walking the disk device, support two
28941 level of abstraction (LVM on RAID) when detecting partition map.
28942
28943 2009-07-31 Pavel Roskin <proski@gnu.org>
28944
28945 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
28946 to grub_zalloc(), it was erroneous.
28947 Reported by Bean <bean123ch@gmail.com>
28948
28949 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
28950
28951 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
28952 embedding zone, not only the first one.
28953
28954 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
28955
28956 * term/gfxterm.c (clear_char): New function.
28957 (grub_virtual_screen_setup): Use clear_char.
28958 (scroll_up): Likewise.
28959 (grub_virtual_screen_cls): Likewise.
28960
28961 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
28962
28963 * util/deviceiter.c (get_acceleraid_disk_name): New static
28964 function.
28965 (grub_util_iterate_devices): Handle Accelraid devices.
28966 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
28967
28968 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
28969
28970 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
28971 separator for the suggested gfxpayload string (';' collides with the
28972 parser and needs escaping).
28973
28974 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
28975
28976 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
28977 Clear direction flag before jumping to OS.
28978 (grub_multiboot2_real_boot): Likewise.
28979
28980 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28981
28982 * util/i386/pc/grub-install: Fix parsing of --disk-module
28983 option.
28984
28985 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28986
28987 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
28988 when embedding.
28989
28990 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
28991
28992 * util/grub-mkconfig.in (package_version): New variable.
28993 Use it do display the version.
28994
28995 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28996
28997 * kern/file.c (grub_file_open): Revert to previous check with
28998 grub_errno.
28999
29000 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29001
29002 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29003 from help line. It's out of sync with code.
29004
29005 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29006
29007 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29008 entries on failed boot.
29009
29010 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29011
29012 * kern/file.c (grub_file_open): Fix an error check.
29013
29014 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29015
29016 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29017 partition map couldn't be identified.
29018
29019 2009-07-23 Pavel Roskin <proski@gnu.org>
29020
29021 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29022 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29023 case of little endian words becomes just an optimization.
29024 Respect const modifier.
29025 (md5_final): Use code that doesn't depend on endianness.
29026
29027 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29028 to avoid loss of upper bits if align is unsigned and shorter
29029 than addr.
29030
29031 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29032
29033 UUID support for UFS
29034
29035 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29036 (grub_ufs_uuid): New function.
29037 (grub_ufs_fs): add .uuid
29038
29039 2009-07-21 Pavel Roskin <proski@gnu.org>
29040
29041 * kern/dl.c (grub_dl_check_header): Make static.
29042
29043 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29044
29045 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29046 add drivemap for Vista. It breaks Windows 7.
29047
29048 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29049
29050 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29051 128 bytes
29052
29053 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29054
29055 Add BFS support
29056
29057 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29058 (grub_fstest_SOURCES): Likewise.
29059 (pkglib_MODULES): Add befs.mod.
29060 (befs_mod_SOURCES): New variable.
29061 (befs_mod_CFLAGS): Likewise.
29062 (befs_mod_LDFLAGS): Likewise.
29063 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29064 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29065 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29066 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29067 (grub_setup_SOURCES): Likewise.
29068 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29069 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29070 (grub_setup_SOURCES): Likewise.
29071 * fs/befs.c: New file.
29072 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29073 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29074 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29075 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29076 (B_KEY_INDEX_ALIGN): New declaration.
29077 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29078 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29079 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29080 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29081 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29082 (grub_afs_mount) [MODE_BFS]: Likewise.
29083 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29084 (grub_afs_fs): Use GRUB_AFS_FSNAME
29085 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29086 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29087 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29088 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29089
29090 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29091
29092 * util/getroot.c (find_root_device): Add support for MacOSX.
29093 * util/hostdisk.c: Likewise.
29094
29095 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29096
29097 * font/font.c (find_glyph): Check whether a font is present to avoid
29098 segmentation fault.
29099
29100 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29101
29102 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29103
29104 2009-07-20 Pavel Roskin <proski@gnu.org>
29105
29106 * configure.ac: Trim excessively wordy excuses.
29107
29108 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29109
29110 Add symlink, mtime and label support to AtheFS.
29111
29112 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29113 (grub_afs_iterate_dir): Handle symlinks.
29114 (grub_afs_open): Use grub_afs_read_symlink.
29115 (grub_afs_dir): Likewise.
29116 Pass mtime.
29117 (grub_afs_label): New function.
29118 (grub_afs_fs): Add grub_afs_label.
29119 (grub_afs_read_symlink): New function.
29120
29121 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29122
29123 Fix AtheFS support.
29124
29125 * fs/afs.c: Fix comments style.
29126 (grub_afs_blockrun): Declare as packed.
29127 (grub_afs_datastream): Likewise.
29128 (grub_afs_bnode): Likewise.
29129 (grub_afs_btree): Likewise.
29130 (grub_afs_sblock): Likewise.
29131 Declare `name' as char.
29132 (grub_afs_inode): Declare as packed.
29133 Change void *vnode to grub_uint32_t unused.
29134 (grub_afs_iterate_dir): Check that key_size is positive.
29135 (grub_afs_mount): Don't read superblock twice.
29136 (grub_afs_dir): Don't free node in case of error,
29137 grub_fshelp_find_file already handles this.
29138 (grub_afs_open): Likewise.
29139
29140 2009-07-19 Pavel Roskin <proski@gnu.org>
29141
29142 * Makefile.in: Remove LIBLZO and enable_lzo.
29143 * conf/i386-pc.rmk: Remove lzo support.
29144 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29145 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29146 support.
29147 * kern/i386/pc/lzo1x.S: Remove.
29148 * kern/i386/pc/startup.S: Remove lzo support.
29149 * util/i386/pc/grub-mkimage.c: Likewise.
29150
29151 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29152
29153 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29154 * fs/xfs.c (grub_xfs_dir): Likewise.
29155 * fs/afs.c (grub_afs_dir): Likewise.
29156 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29157 (grub_iso9660_open): Likewise.
29158 * fs/jfs.c (grub_jfs_open): Likewise.
29159 * fs/ext2.c (grub_ext2_dir): Likewise.
29160 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29161 * script/sh/lexer.c (grub_script_yylex): Likewise.
29162
29163 2009-07-16 Pavel Roskin <proski@gnu.org>
29164
29165 * configure.ac: Never add "-c" to CFLAGS.
29166
29167 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29168
29169 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29170 grub_cv_cc_efiemu should be used.
29171
29172 * configure.ac: Typo fixes.
29173
29174 * kern/mm.c (grub_zalloc): New function.
29175 (grub_debug_zalloc): Likewise.
29176 * include/grub/mm.h: Declare grub_zalloc() and
29177 grub_debug_zalloc().
29178 * util/misc.c (grub_zalloc): New function.
29179 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29180 instead of grub_malloc(), remove unneeded initializations.
29181 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29182 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29183 * commands/parttool.c (grub_cmd_parttool): Likewise.
29184 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29185 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29186 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29187 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29188 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29189 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29190 (grub_cmd_efiemu_pnvram): Likewise.
29191 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29192 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29193 (grub_iso9660_iterate_dir): Likewise.
29194 * fs/jfs.c (grub_jfs_opendir): Likewise.
29195 * fs/ntfs.c (list_file): Likewise.
29196 (grub_ntfs_mount): Likewise.
29197 * kern/disk.c (grub_disk_open): Likewise.
29198 * kern/dl.c (grub_dl_load_core): Likewise.
29199 * kern/elf.c (grub_elf_file): Likewise.
29200 * kern/env.c (grub_env_context_open): Likewise.
29201 (grub_env_set): Likewise.
29202 (grub_env_set_data_slot): Likewise.
29203 * kern/file.c (grub_file_open): Likewise.
29204 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29205 * loader/i386/multiboot.c (grub_module): Likewise.
29206 * loader/xnu.c (grub_xnu_create_key): Likewise.
29207 (grub_xnu_create_value): Likewise.
29208 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29209 (read_config_file): Likewise.
29210 * normal/menu_entry.c (make_screen): Likewise.
29211 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29212 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29213 * script/sh/script.c (grub_script_parse): Likewise.
29214 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29215 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29216 * video/readers/png.c (grub_png_output_byte): Likewise.
29217 (grub_video_reader_png): Likewise.
29218
29219 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29220
29221 Enable all targets that can be built by default
29222
29223 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29224 grub-mkfont and grub-fstest if they can be built
29225
29226 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29227
29228 Fix hang and segmentation fault in grub-emu-usb
29229
29230 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29231 * util/usb.c (grub_libusb_devices): likewise
29232 (grub_libusb_init): rename to ...
29233 (GRUB_MOD_INIT (libusb)):...this
29234 (grub_libusb_fini): rename to ..
29235 (GRUB_MOD_FINI (libusb)):...this
29236 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29237 * include/grub/disk.h (grub_raid_init): removed, it's useless
29238 (grub_raid_fini): likewise
29239 (grub_lvm_init): likewise
29240 (grub_lvm_fini): likewise
29241 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29242 by grub_init_all
29243
29244 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29245
29246 Fix libusb
29247
29248 * Makefile.in (LIBUSB): new macro
29249 * genmk.rb (Utility/print_tail): new method
29250 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29251 (top level): call util.print_tail at the end.
29252
29253 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29254
29255 Make FreeBSD accept zpool.cache
29256
29257 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29258 type is /boot/zfs/zpool.cache
29259
29260 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29261
29262 Fix 64-bit efiemu
29263
29264 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29265 correct wrong typedef
29266 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29267
29268 2009-07-15 Pavel Roskin <proski@gnu.org>
29269
29270 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29271 * kern/disk.c (struct grub_disk_cache): Likewise.
29272
29273 * commands/probe.c (options): Typo fix.
29274
29275 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29276 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29277 accordingly.
29278 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29279
29280 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29281 the end of "Error" to make the message more readable.
29282
29283 * boot/i386/pc/boot.S (kernel_segment): Remove.
29284 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29285 for destination.
29286
29287 * boot/i386/pc/boot.S (boot_version): Remove.
29288 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29289 Remove.
29290
29291 * include/grub/i386/pc/boot.h: Sort all offsets.
29292 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29293 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29294 * boot/i386/pc/boot.S: Assert location of every offset listed in
29295 include/grub/i386/pc/boot.h.
29296
29297 2009-07-13 Pavel Roskin <proski@gnu.org>
29298
29299 * include/grub/i386/coreboot/machine.h: Rename
29300 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29301 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29302 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29303
29304 * kern/dl.c: Force native word size to suppress warnings when
29305 compiling grub-emu.
29306
29307 * kern/device.c (grub_device_iterate): Change struct part_ent to
29308 hold the name, not a pointer to it. Use one grub_malloc() per
29309 partition, not two. Free partition_name if grub_malloc() fails.
29310 Set ents to NULL only before grub_partition_iterate() is called.
29311
29312 2009-07-11 Bean <bean123ch@gmail.com>
29313
29314 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29315 childname.
29316
29317 2009-07-10 Bean <bean123ch@gmail.com>
29318 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29319
29320 * kern/ieee1275/openfw.c (grub_children_iterate)
29321 (grub_devalias_iterate): Fix size evaluation for property or path
29322 strings, which was broken since r2132.
29323
29324 2009-07-07 Pavel Roskin <proski@gnu.org>
29325
29326 * commands/search.c (search_file): Merge into ...
29327 (search_fs): ... this. Accept search type as argument.
29328 (grub_cmd_search): Pass search type to search_fs().
29329
29330 * include/grub/util/console.h: New file.
29331 * util/console.c: Use it instead of grub/machine/console.h.
29332 * util/grub-emu.c: Likewise.
29333
29334 * lib/arg.c (find_long_option): Remove.
29335 (find_long): Add `len' argument, make `s' const char *.
29336 (grub_arg_parse): Parse long options in place, not in a
29337 temporary buffer.
29338
29339 2009-07-06 Pavel Roskin <proski@gnu.org>
29340
29341 * commands/search.c (search_fs): Fix potential NULL pointer
29342 dereference.
29343
29344 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29345 function pointer.
29346
29347 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29348
29349 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29350 comparison.
29351
29352 2009-07-05 Pavel Roskin <proski@gnu.org>
29353
29354 * include/grub/i386/linux.h (struct linux_kernel_params):
29355 Restore padding3, it's still needed.
29356
29357 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29358 FreeBSD.
29359 * util/osdetect.lua: Likewise.
29360
29361 2009-07-05 Bean <bean123ch@gmail.com>
29362
29363 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29364
29365 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29366 (grub_lua_getenv): Likewise.
29367 (grub_lua_setenv): Likewise.
29368 (save_errno): New function.
29369 (push_result): Likewise.
29370 (grub_lua_enum_device): Likewise.
29371 (grub_lua_enum_file): Likewise.
29372 (grub_lua_file_open): Likewise.
29373 (grub_lua_file_close): Likewise.
29374 (grub_lua_file_seek): Likewise.
29375 (grub_lua_file_read): Likewise.
29376 (grub_lua_file_getline): Likewise.
29377 (grub_lua_file_getsize): Likewise.
29378 (grub_lua_file_getpos): Likewise.
29379 (grub_lua_file_eof): Likewise.
29380 (grub_lua_file_exist): Likewise.
29381 (grub_lua_add_menu): Likewise.
29382
29383 * script/lua/grub_lua.h (isupper): New inline function.
29384 (islower): Likewise.
29385 (ispunct): Likewise.
29386 (isxdigit): Likewise.
29387 (strcspn): Change to normal function.
29388 (strpbkr): New function declaration.
29389 (memchr): Likewise.
29390
29391 * script/lua/grub_main.c (scan_str): New function.
29392 (strcspn): Likewise.
29393 (strpbrk): Likewise.
29394 (memchr): Likewise.
29395
29396 * script/lua/linit.c (lualibs): Enable the string library.
29397
29398 * util/osdetect.lua: New file.
29399
29400 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29401
29402 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29403 `capabilities' member.
29404
29405 2009-07-02 Pavel Roskin <proski@gnu.org>
29406
29407 * genparttoollist.sh: Add missing newline at the end.
29408
29409 2009-07-01 Pavel Roskin <proski@gnu.org>
29410
29411 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29412
29413 * util/hostdisk.c (open_device): Remove `const' from
29414 `sysctl_size', as sysctlbyname() can change it (in this case it
29415 doesn't actually happen).
29416
29417 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29418 using signed long int constants.
29419
29420 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29421 constant to avoid a warning on FreeBSD.
29422
29423 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29424 where it's needed.
29425
29426 * Makefile.in: Install include/grub/machine symlink.
29427
29428 * Makefile.in: When installing symlinks, use "cp -fR", which
29429 works on FreeBSD and MacOSX.
29430 From Yves Blusseau <cl7m42e02@sneakemail.com>
29431
29432 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29433 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29434
29435 * util/misc.c: Move grub_reboot() and grub_halt() ...
29436 * util/grub-emu.c: ... here. Make main_env static.
29437 * include/grub/util/misc.h: Remove main_env.
29438
29439 * kern/mm.c: Use correct format to print size_t.
29440
29441 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29442 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29443 * kern/powerpc/dl.c: Likewise.
29444 * kern/sparc64/dl.c: Likewise.
29445 * kern/x86_64/dl.c: Likewise.
29446
29447 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29448
29449 Fix grub-emu build on sparc64-ieee1275.
29450
29451 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29453
29454 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29455
29456 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29457 (grub_reboot, grub_halt): New functions.
29458
29459 * util/i386/pc/misc.c: Delete. Update all users.
29460 * util/sparc64/ieee1275/misc.c: Likewise.
29461 * util/powerpc/ieee1275/misc.c: Likewise.
29462
29463 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29464
29465 * conf/i386.rmk (setjmp_mod_SOURCES)
29466 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29467 * conf/common.rmk (setjmp_mod_SOURCES)
29468 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29469 to use $(target_cpu).
29470 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29471 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29472 * conf/powerpc-ieee1275.rmk: Likewise.
29473 * conf/sparc64-ieee1275.rmk: Likewise.
29474
29475 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29476 $(target_cpu) for kern/$(target_cpu)/dl.c.
29477 * conf/i386-efi.rmk: Likewise.
29478 * conf/i386-ieee1275.rmk: Likewise.
29479 * conf/x86_64-efi.rmk: Likewise.
29480 * conf/i386-coreboot.rmk: Likewise.
29481 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29482 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29483 kern/$(target_cpu)/cache.S.
29484 * conf/sparc64-ieee1275.rmk: Likewise.
29485
29486 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29487
29488 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29489 type to `grub_uint8_t', and adjust `padding9' accordingly.
29490
29491 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29492
29493 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29494
29495 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29496 assembly in final jump, using register constraints.
29497
29498 (grub_linux_boot): For text mode, initialize `have_vga' using
29499 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29500
29501 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29502 right before the final jump.
29503
29504 Set `video_mode' to 0x3.
29505
29506 Document initialization of `video_page', `video_mode' and
29507 `video_ega_bx'.
29508
29509 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29510
29511 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29512 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29513 and set GRUB_LINUX_FLAG_QUIET appropriately.
29514
29515 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29516
29517 Fix build on Debian / sparc.
29518
29519 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29520
29521 2009-06-28 Pavel Roskin <proski@gnu.org>
29522
29523 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29524 fix a warning.
29525
29526 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29527
29528 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29529
29530 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29531 `err'.
29532
29533 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29534
29535 Revert r2338.
29536
29537 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29538 file can't be opened. grub_file_open() is already supposed to set
29539 grub_errno / grub_errmsg appropriately.
29540 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29541
29542 2009-06-27 Pavel Roskin <proski@gnu.org>
29543 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29544
29545 * include/grub/dl.h: Include grub/elf.h.
29546 (struct grub_dl): Add symtab field.
29547 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29548 GRUB_MODULES_MACHINE_READONLY.
29549 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29550 of the header for read-only modules.
29551 (grub_dl_unload): Free mod->symtab for read-only modules.
29552 * kern/i386/dl.c: Use mod->symtab.
29553 * kern/powerpc/dl.c: Likewise.
29554 * kern/sparc64/dl.c: Likewise.
29555 * kern/x86_64/dl.c: Likewise.
29556
29557 * conf/i386-qemu.rmk: New file.
29558 * kern/i386/qemu/startup.S: Likewise.
29559 * kern/i386/qemu/mmap.c: Likewise.
29560 * boot/i386/qemu/boot.S: Likewise.
29561 * include/grub/i386/qemu/time.h: Likewise.
29562 * include/grub/i386/qemu/serial.h: Likewise.
29563 * include/grub/i386/qemu/kernel.h: Likewise.
29564 * include/grub/i386/qemu/console.h: Likewise.
29565 * include/grub/i386/qemu/boot.h: Likewise.
29566 * include/grub/i386/qemu/init.h: Likewise.
29567 * include/grub/i386/qemu/machine.h: Likewise.
29568 * include/grub/i386/qemu/loader.h: Likewise.
29569 * include/grub/i386/qemu/memory.h: Likewise.
29570
29571 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29572 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29573 [qemu] (pkglib_IMAGES): Add `boot.img'.
29574 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29575 [qemu] (boot_img_FORMAT): New variables.
29576 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29577 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29578 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29579 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29580 [qemu] (kernel_img_FORMAT): New variables.
29581
29582 * configure.ac: Recognise `i386-qemu'.
29583
29584 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29585 (for no compression).
29586 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29587 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29588 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29589 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29590 ifdefs).
29591
29592 2009-06-27 Pavel Roskin <proski@gnu.org>
29593
29594 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29595 read.
29596 * efiemu/prepare32.c: Likewise.
29597 * efiemu/prepare64.c: Likewise.
29598
29599 2009-06-26 Pavel Roskin <proski@gnu.org>
29600
29601 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29602 * include/grub/elf.h: Define symbols without "32" or "64" based
29603 on GRUB_TARGET_WORDSIZE.
29604 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29605 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29606 ELF definitions.
29607 * efiemu/loadcore64.c: Likewise.
29608 * loader/i386/bsd32.c: Likewise.
29609 * loader/i386/bsd64.c: Likewise.
29610 * kern/dl.c: Remove own ELF definitions.
29611 * util/i386/efi/grub-mkimage.c: Likewise.
29612
29613 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29614
29615 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29616 segment 0x0 unconditionally, because the reference generated by
29617 GAS is an absolute address.
29618
29619 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29620
29621 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29622 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29623
29624 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29625
29626 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29627 indexes. Check for -f explicitly.
29628 (search_file): Improve error message.
29629 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
29630
29631 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29632
29633 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29634 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29635
29636 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29637
29638 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29639 * conf/i386-ieee1275.rmk: Likewise.
29640 * conf/i386-coreboot.rmk: Likewise.
29641
29642 * kern/i386/pc/startup.S (grub_stop): Remove function.
29643 * kern/i386/ieee1275/startup.S: Likewise.
29644 * kern/i386/coreboot/startup.S: Likewise.
29645 * kern/i386/misc.S (grub_stop): New function.
29646
29647 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29648
29649 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29650 * kern/i386/realmode.S (real_to_prot): ... to here.
29651
29652 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29653
29654 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29655 with `kernel.img'.
29656 (kernel_elf_SOURCES): Rename to ...
29657 (kernel_img_SOURCES): ... this.
29658 (kernel_elf_HEADERS): Rename to ...
29659 (kernel_img_HEADERS): ... this. Update all users.
29660 (kernel_elf_ASFLAGS): Rename to ...
29661 (kernel_img_ASFLAGS): ... this.
29662 (kernel_elf_CFLAGS): Rename to ...
29663 (kernel_img_CFLAGS): ... this.
29664 (kernel_elf_LDFLAGS): Rename to ...
29665 (kernel_img_LDFLAGS): ... this.
29666 * conf/i386-coreboot.rmk: Likewise.
29667 * conf/powerpc-ieee1275.rmk: Likewise.
29668
29669 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29670 with "kernel.img".
29671
29672 2009-06-21 Pavel Roskin <proski@gnu.org>
29673
29674 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29675 to match nested functions.
29676 * loader/sparc64/ieee1275/linux.c: Likewise.
29677
29678 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29679
29680 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29681
29682 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29683 all i386 platforms.
29684
29685 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29686
29687 Fix asm file handling on ELF, and remove workarounds.
29688
29689 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29690 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29691 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29692 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29693
29694 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29695
29696 Load BSD ELF modules
29697
29698 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29699 and loader/i386/bsd64.c
29700 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29701 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29702 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29703 (grub_freebsd_load_elfmodule32): New declaration
29704 (grub_freebsd_load_elfmoduleobj64): Likewise
29705 (grub_freebsd_load_elf_meta32): Likewise
29706 (grub_freebsd_load_elf_meta64): Likewise
29707 (grub_freebsd_add_meta): Likewise
29708 (grub_freebsd_add_meta_module): Likewise
29709 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29710 (grub_freebsd_add_meta_module): Likewise and move module-specific
29711 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29712 (grub_cmd_freebsd): Add elf-kernel specific parts
29713 based on grub_freebsd_add_meta_module
29714 (grub_cmd_freebsd_module): Add type parsing moved from
29715 grub_freebsd_add_meta_module
29716 (grub_cmd_freebsd_module_elf): New function
29717 (cmd_freebsd_module_elf): New variable
29718 (GRUB_MOD_INIT): Register freebsd_module_elf
29719 * loader/i386/bsd32.c: New file
29720 * loader/i386/bsd64.c: Likewise
29721 * loader/i386/bsdXX.c: Likewise
29722 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29723 (grub_elf64_load): Likewise
29724 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29725 All users updated
29726 (grub_elf64_load_hook_t): Likewise
29727
29728 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29729
29730 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29731 variable.
29732 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29733 don't write a menu entry for recovery mode.
29734
29735 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29736
29737 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29738 after it's no longer needed.
29739
29740 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29741
29742 * include/grub/i386/loader.h (grub_linux_prot_size)
29743 (grub_linux_tmp_addr, grub_linux_real_addr)
29744 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29745 GRUB_MACHINE_PCBIOS.
29746 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29747 common grub_util_info() call to ...
29748 (generate_image): ... here.
29749 Fix use of uninitialized memory, comparison of signed with
29750 unsigned integers and memory leak.
29751 Remove bogus module address message.
29752
29753 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29754
29755 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29756 grub_raid_register
29757 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29758
29759 2009-06-19 Pavel Roskin <proski@gnu.org>
29760
29761 * configure.ac: Remove stray AC_MSG_CHECKING.
29762
29763 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29764
29765 * disk/scsi.c (grub_scsi_open): use continue instead of big if
29766
29767 2009-06-18 Pavel Roskin <proski@gnu.org>
29768
29769 * conf/common.rmk: Add fs_file.mod.
29770 * disk/fs_file.c: New file.
29771 * include/grub/disk.h (enum grub_disk_dev_id): Add
29772 GRUB_DISK_DEVICE_FILE_ID.
29773
29774 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29775
29776 Fix build with Apple's toolchain. Part 2
29777
29778 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
29779 a fake start
29780
29781 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29782
29783 Fix build with Apple's toolchain. Part 1
29784
29785 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
29786 for long calls
29787 * configure.ac: remove a leftover AC_MSG_RESULT
29788 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
29789 Apple's toolchain
29790
29791 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29792
29793 Fix warnings
29794
29795 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
29796 (decomp_block): initialize ch
29797 use grub_memcpy instead of memcpy
29798
29799 2009-06-17 Pavel Roskin <proski@gnu.org>
29800
29801 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
29802 version, use declarations needed to use vga_text as the startup
29803 console.
29804
29805 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
29806 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
29807 the kernel.
29808 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
29809 and grub_at_keyboard_fini(), it's done on module load and
29810 unload.
29811
29812 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
29813
29814 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
29815 file can't be found.
29816 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29817
29818 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29819
29820 Fix newline handling
29821
29822 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
29823 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
29824 (grub_script_yylex): don't segfault on unterminated script
29825 newline terminates command and variable
29826
29827 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29828
29829 avoid double grub_adjust_range call. Bug reported by David Simner
29830
29831 * kern/disk.c (grub_disk_write): change to raw disk access before
29832 calling disk_read
29833
29834 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
29835
29836 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
29837 spaces, for the benefit of help2man.
29838 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29839
29840 2009-06-16 Pavel Roskin <proski@gnu.org>
29841
29842 * kern/i386/halt.c: Include grub/machine/init.h.
29843 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
29844
29845 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
29846
29847 * util/grub.d/30_os-prober.in: Use ${root} in the generated
29848 drivemap menuentry.
29849
29850 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
29851
29852 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
29853 `echo' command.
29854
29855 2009-06-16 Pavel Roskin <proski@gnu.org>
29856
29857 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
29858 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
29859 save %dx, we only need %dl and we never change it.
29860 * boot/i386/pc/cdboot.S: Don't set the root drive.
29861 * boot/i386/pc/pxeboot.S: Likewise.
29862 * include/grub/i386/pc/boot.h: Remove
29863 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
29864 GRUB_BOOT_MACHINE_DRIVE_CHECK.
29865 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
29866 * kern/i386/pc/init.c (make_install_device): Remove references
29867 to grub_root_drive.
29868 * kern/i386/pc/startup.S: Likewise.
29869 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
29870
29871 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29872
29873 xnu_uuid command
29874
29875 * commands/xnu_uuid.c: new file
29876 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
29877 (xnu_uuid_mod_SOURCES): new variable
29878 (xnu_uuid_mod_CFLAGS): likewise
29879 (xnu_uuid_mod_LDFLAGS): likewise
29880 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29881 * conf/i386-ieee1275.rmk: likewise
29882 * conf/i386-pc.rmk: likewise
29883 * conf/powerpc-ieee1275.rmk: likewise
29884 * conf/sparc64-ieee1275.rmk: likewise
29885 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
29886
29887 2009-06-16 Pavel Roskin <proski@gnu.org>
29888
29889 * configure.ac: Avoid '==' in test command, it's not portable.
29890
29891 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29892
29893 Probe command
29894
29895 * commands/probe.c: new file
29896 * conf/common.rmk (pkglib_MODULES): add probe.mod
29897 (probe_mod_SOURCES): new variable
29898 (probe_mod_CFLAGS): likewise
29899 (probe_mod_LDFLAGS): likewise
29900 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29901 * conf/i386-ieee1275.rmk: likewise
29902 * conf/i386-pc.rmk: likewise
29903 * conf/powerpc-ieee1275.rmk: likewise
29904 * conf/sparc64-ieee1275.rmk: likewise
29905
29906 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
29907
29908 Fix handling of string like \"hello\" and "a
29909 b"
29910
29911 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
29912 (grub_script_yylex): fix parsing of quoting, escaping and newline
29913
29914 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
29915
29916 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
29917 handling
29918
29919 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
29920
29921 * util/grub-mkconfig.in: Fix parsing of --output option.
29922
29923 2009-06-12 Pavel Roskin <proski@gnu.org>
29924
29925 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
29926 genmk.rb don't need to be generated or installed.
29927
29928 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
29929
29930 * commands/i386/pc/drivemap_int13h.S: add more comments
29931
29932 2009-06-11 Pavel Roskin <proski@gnu.org>
29933
29934 * Makefile.in (uninstall): Uninstall manuals.
29935
29936 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
29937 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
29938 and update-grub_lib in two places.
29939 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
29940
29941 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
29942 a compiler warning.
29943
29944 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
29945 `entry_lo' to fix variable shadowing.
29946
29947 2009-06-11 Christian Franke <franke@computer.org>
29948
29949 * kern/misc.c (__enable_execute_stack): Add missing return type
29950 to prevent gcc warning.
29951
29952 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29953
29954 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
29955
29956 2009-06-11 Pavel Roskin <proski@gnu.org>
29957
29958 * Makefile.in: Don't rely on any scripts being executable.
29959 Always use $(SHELL) to run shell scripts.
29960
29961 * configure.ac: Always define ___main if using -nostdlib. This
29962 fixes tests on Cygwin.
29963
29964 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
29965
29966 UDF fix
29967
29968 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
29969 is in bytes and not in blocks
29970
29971 2009-06-11 Pavel Roskin <proski@gnu.org>
29972
29973 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
29974 warning.
29975
29976 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29977
29978 * util/grub.d/30_os-prober.in: Fix a comment. Source
29979 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
29980 to set the root device. Place drivemap command in the generated
29981 chain entry.
29982
29983 2009-06-11 Pavel Roskin <proski@gnu.org>
29984
29985 * configure.ac: Remove host_m32. Issues with 64-bit utilities
29986 have long been resolved.
29987
29988 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
29989
29990 * util/grub.d/10_linux.in: Capitalise "Linux".
29991
29992 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
29993
29994 2009-06-11 Pavel Roskin <proski@gnu.org>
29995
29996 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
29997 fix a gcc warning and ensure that the function won't ever exit.
29998
29999 * kern/i386/ieee1275/init.c: Add missing prototype for
30000 grub_stop_floppy().
30001
30002 * loader/ieee1275/multiboot2.c [__i386__]: Include
30003 grub/cpu/multiboot.h.
30004
30005 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30006 casts to short - they are not portable and cause warnings. Fix
30007 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30008
30009 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30010
30011 Drivemap fixes
30012
30013 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30014 new function
30015 (grub_get_root_biosnumber_saved): new variable
30016 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30017 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30018 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30019 %dx after the call if necessary
30020 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30021 (boot_mod_SOURCES): remove
30022 (boot_mod_CFLAGS): remove
30023 (boot_mod_LDFLAGS): remove
30024 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30025 (boot_mod_SOURCES): new variable
30026 (boot_mod_CFLAGS): likewise
30027 (boot_mod_LDFLAGS): likewise
30028 * conf/i386-efi.rmk: likewise
30029 * conf/i386-ieee1275.rmk: likewise
30030 * conf/i386-pc.rmk: likewise
30031 * conf/powerpc-ieee1275.rmk: likewise
30032 * conf/sparc64-ieee1275.rmk: likewise
30033 * conf/x86_64-efi.rmk: likewise
30034 * include/grub/i386/pc/biosnum.h: new file
30035 * lib/i386/pc/biosnum.c: likewise
30036 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30037 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30038 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30039
30040 2009-06-10 Pavel Roskin <proski@gnu.org>
30041
30042 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30043 Use separate variables. Read only the file size at the end, but
30044 not the checksum that we don't use.
30045
30046 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30047 Adjust all callers.
30048
30049 * kern/ieee1275/openfw.c: Remove libc includes.
30050 * kern/ieee1275/cmain.c: Likewise.
30051 * include/grub/ieee1275/ieee1275.h: Likewise.
30052
30053 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30054 compiler warnings.
30055
30056 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30057
30058 * Makefile.in: Remove all trailing whitespace.
30059 * conf/i386-pc.rmk: Likewise.
30060 * conf/powerpc-ieee1275.rmk: Likewise.
30061 * conf/sparc64-ieee1275.rmk: Likewise.
30062 * docs/grub.texi: Likewise.
30063 * docs/texinfo.tex: Likewise.
30064 * disk/fs_uuid.c: Likewise.
30065 * disk/lvm.c: Likewise.
30066 * disk/scsi.c: Likewise.
30067 * disk/ata.c: Likewise.
30068 * disk/ieee1275/ofdisk.c: Likewise.
30069 * disk/i386/pc/biosdisk.c: Likewise.
30070 * disk/host.c: Likewise.
30071 * disk/raid.c: Likewise.
30072 * disk/efi/efidisk.c: Likewise.
30073 * disk/usbms.c: Likewise.
30074 * disk/memdisk.c: Likewise.
30075 * disk/loopback.c: Likewise.
30076 * kern/powerpc/dl.c: Likewise.
30077 * kern/device.c: Likewise.
30078 * kern/dl.c: Likewise.
30079 * kern/sparc64/dl.c: Likewise.
30080 * kern/ieee1275/ieee1275.c: Likewise.
30081 * kern/term.c: Likewise.
30082 * kern/fs.c: Likewise.
30083 * kern/i386/dl.c: Likewise.
30084 * kern/i386/pc/startup.S: Likewise.
30085 * kern/i386/pc/init.c: Likewise.
30086 * kern/i386/pc/mmap.c: Likewise.
30087 * kern/i386/pc/lzo1x.S: Likewise.
30088 * kern/i386/ieee1275/init.c: Likewise.
30089 * kern/i386/realmode.S: Likewise.
30090 * kern/i386/tsc.c: Likewise.
30091 * kern/partition.c: Likewise.
30092 * kern/corecmd.c: Likewise.
30093 * kern/file.c: Likewise.
30094 * kern/efi/efi.c: Likewise.
30095 * kern/efi/init.c: Likewise.
30096 * kern/efi/mm.c: Likewise.
30097 * kern/main.c: Likewise.
30098 * kern/err.c: Likewise.
30099 * kern/env.c: Likewise.
30100 * kern/disk.c: Likewise.
30101 * kern/generic/millisleep.c: Likewise.
30102 * kern/generic/rtc_get_time_ms.c: Likewise.
30103 * kern/misc.c: Likewise.
30104 * kern/parser.c: Likewise.
30105 * genmk.rb: Likewise.
30106 * configure.ac: Likewise.
30107 * boot/i386/pc/diskboot.S: Likewise.
30108 * boot/i386/pc/pxeboot.S: Likewise.
30109 * boot/i386/pc/boot.S: Likewise.
30110 * boot/i386/pc/lnxboot.S: Likewise.
30111 * boot/i386/pc/cdboot.S: Likewise.
30112 * parttool/pcpart.c: Likewise.
30113 * video/readers/tga.c: Likewise.
30114 * video/video.c: Likewise.
30115 * video/bitmap.c: Likewise.
30116 * lib/envblk.c: Likewise.
30117 * lib/i386/setjmp.S: Likewise.
30118 * fs/xfs.c: Likewise.
30119 * fs/afs.c: Likewise.
30120 * fs/fat.c: Likewise.
30121 * fs/ntfs.c: Likewise.
30122 * fs/udf.c: Likewise.
30123 * fs/affs.c: Likewise.
30124 * fs/iso9660.c: Likewise.
30125 * fs/hfs.c: Likewise.
30126 * fs/fshelp.c: Likewise.
30127 * fs/ext2.c: Likewise.
30128 * fs/jfs.c: Likewise.
30129 * fs/reiserfs.c: Likewise.
30130 * fs/hfsplus.c: Likewise.
30131 * fs/minix.c: Likewise.
30132 * fs/cpio.c: Likewise.
30133 * fs/sfs.c: Likewise.
30134 * fs/ufs.c: Likewise.
30135 * efiemu/prepare.c: Likewise.
30136 * efiemu/loadcore_common.c: Likewise.
30137 * efiemu/runtime/efiemu.sh: Likewise.
30138 * efiemu/runtime/efiemu.S: Likewise.
30139 * efiemu/runtime/efiemu.c: Likewise.
30140 * efiemu/pnvram.c: Likewise.
30141 * efiemu/main.c: Likewise.
30142 * efiemu/i386/pc/cfgtables.c: Likewise.
30143 * efiemu/i386/loadcore64.c: Likewise.
30144 * efiemu/i386/loadcore32.c: Likewise.
30145 * efiemu/loadcore.c: Likewise.
30146 * efiemu/symbols.c: Likewise.
30147 * efiemu/mm.c: Likewise.
30148 * include/grub/autoefi.h: Likewise.
30149 * include/grub/datetime.h: Likewise.
30150 * include/grub/term.h: Likewise.
30151 * include/grub/hfs.h: Likewise.
30152 * include/grub/lvm.h: Likewise.
30153 * include/grub/i386/tsc.h: Likewise.
30154 * include/grub/i386/linux.h: Likewise.
30155 * include/grub/i386/xnu.h: Likewise.
30156 * include/grub/i386/efiemu.h: Likewise.
30157 * include/grub/i386/pc/biosdisk.h: Likewise.
30158 * include/grub/i386/pc/memory.h: Likewise.
30159 * include/grub/i386/pc/vbe.h: Likewise.
30160 * include/grub/parttool.h: Likewise.
30161 * include/grub/video.h: Likewise.
30162 * include/grub/memory.h: Likewise.
30163 * include/grub/fs.h: Likewise.
30164 * include/grub/partition.h: Likewise.
30165 * include/grub/xnu.h: Likewise.
30166 * include/grub/efi/api.h: Likewise.
30167 * include/grub/efi/pe32.h: Likewise.
30168 * include/grub/efi/memory.h: Likewise.
30169 * include/grub/multiboot.h: Likewise.
30170 * include/grub/usbdesc.h: Likewise.
30171 * include/grub/multiboot2.h: Likewise.
30172 * include/grub/acpi.h: Likewise.
30173 * include/grub/efiemu/efiemu.h: Likewise.
30174 * include/grub/disk.h: Likewise.
30175 * include/grub/ieee1275/ieee1275.h: Likewise.
30176 * include/grub/net.h: Likewise.
30177 * include/grub/machoload.h: Likewise.
30178 * include/grub/macho.h: Likewise.
30179 * include/multiboot.h: Likewise.
30180 * genmoddep.awk: Likewise.
30181 * normal/main.c: Likewise.
30182 * normal/menu_entry.c: Likewise.
30183 * normal/menu_viewer.c: Likewise.
30184 * normal/completion.c: Likewise.
30185 * normal/cmdline.c: Likewise.
30186 * normal/misc.c: Likewise.
30187 * normal/datetime.c: Likewise.
30188 * bus/usb/usbtrans.c: Likewise.
30189 * bus/usb/ohci.c: Likewise.
30190 * bus/usb/uhci.c: Likewise.
30191 * bus/usb/usb.c: Likewise.
30192 * mmap/efi/mmap.c: Likewise.
30193 * mmap/i386/pc/mmap_helper.S: Likewise.
30194 * mmap/i386/pc/mmap.c: Likewise.
30195 * mmap/i386/mmap.c: Likewise.
30196 * mmap/i386/uppermem.c: Likewise.
30197 * mmap/mmap.c: Likewise.
30198 * commands/acpi.c: Likewise.
30199 * commands/echo.c: Likewise.
30200 * commands/blocklist.c: Likewise.
30201 * commands/loadenv.c: Likewise.
30202 * commands/usbtest.c: Likewise.
30203 * commands/boot.c: Likewise.
30204 * commands/parttool.c: Likewise.
30205 * commands/search.c: Likewise.
30206 * commands/cat.c: Likewise.
30207 * commands/i386/pc/play.c: Likewise.
30208 * commands/i386/pc/drivemap.c: Likewise.
30209 * commands/i386/pc/vbeinfo.c: Likewise.
30210 * commands/i386/pc/acpi.c: Likewise.
30211 * commands/i386/pc/vbetest.c: Likewise.
30212 * commands/ls.c: Likewise.
30213 * commands/cmp.c: Likewise.
30214 * commands/test.c: Likewise.
30215 * commands/efi/acpi.c: Likewise.
30216 * commands/gptsync.c: Likewise.
30217 * commands/help.c: Likewise.
30218 * partmap/amiga.c: Likewise.
30219 * partmap/apple.c: Likewise.
30220 * partmap/acorn.c: Likewise.
30221 * partmap/pc.c: Likewise.
30222 * partmap/sun.c: Likewise.
30223 * partmap/gpt.c: Likewise.
30224 * script/sh/lexer.c: Likewise.
30225 * script/sh/function.c: Likewise.
30226 * font/font.c: Likewise.
30227 * font/font_cmd.c: Likewise.
30228 * loader/powerpc/ieee1275/linux.c: Likewise.
30229 * loader/efi/chainloader.c: Likewise.
30230 * loader/multiboot_loader.c: Likewise.
30231 * loader/macho.c: Likewise.
30232 * loader/i386/multiboot.c: Likewise.
30233 * loader/i386/linux.c: Likewise.
30234 * loader/i386/pc/linux.c: Likewise.
30235 * loader/i386/pc/multiboot2.c: Likewise.
30236 * loader/i386/pc/chainloader.c: Likewise.
30237 * loader/i386/pc/xnu.c: Likewise.
30238 * loader/i386/bsd_trampoline.S: Likewise.
30239 * loader/i386/efi/linux.c: Likewise.
30240 * loader/i386/multiboot_elfxx.c: Likewise.
30241 * loader/i386/bsd_helper.S: Likewise.
30242 * loader/i386/bsd.c: Likewise.
30243 * loader/i386/linux_trampoline.S: Likewise.
30244 * loader/i386/xnu_helper.S: Likewise.
30245 * loader/i386/xnu.c: Likewise.
30246 * loader/i386/bsd_pagetable.c: Likewise.
30247 * loader/i386/multiboot_helper.S: Likewise.
30248 * loader/xnu.c: Likewise.
30249 * loader/xnu_resume.c: Likewise.
30250 * io/gzio.c: Likewise.
30251 * term/efi/console.c: Likewise.
30252 * term/terminfo.c: Likewise.
30253 * term/ieee1275/ofconsole.c: Likewise.
30254 * term/i386/pc/serial.c: Likewise.
30255 * term/i386/pc/vesafb.c: Likewise.
30256 * term/i386/pc/vga.c: Likewise.
30257 * term/usb_keyboard.c: Likewise.
30258 * term/gfxterm.c: Likewise.
30259 * aclocal.m4: Likewise.
30260 * util/lvm.c: Likewise.
30261 * util/grub.d/30_os-prober.in: Likewise.
30262 * util/grub.d/10_hurd.in: Likewise.
30263 * util/console.c: Likewise.
30264 * util/grub-macho2img.c: Likewise.
30265 * util/grub-probe.c: Likewise.
30266 * util/hostfs.c: Likewise.
30267 * util/i386/pc/grub-mkimage.c: Likewise.
30268 * util/i386/pc/grub-setup.c: Likewise.
30269 * util/i386/efi/grub-mkimage.c: Likewise.
30270 * util/grub-mkconfig.in: Likewise.
30271 * util/raid.c: Likewise.
30272 * util/resolve.c: Likewise.
30273 * util/grub-mkdevicemap.c: Likewise.
30274 * util/grub-emu.c: Likewise.
30275 * util/getroot.c: Likewise.
30276 * util/hostdisk.c: Likewise.
30277 * util/usb.c: Likewise.
30278 * util/grub-editenv.c: Likewise.
30279 * util/misc.c: Likewise.
30280
30281 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30282
30283 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30284 `genparttoollist.sh'.
30285 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30286 Add `*.sh' to the list find searches for and change `mdate.sh'
30287 to `mdate-sh'.
30288
30289 2009-06-10 Pavel Roskin <proski@gnu.org>
30290
30291 * include/grub/multiboot2.h: Provide compatibility defines for
30292 multiboot2.h.
30293 * include/multiboot2.h: Include stdint.h only if needed, using
30294 angle brackets.
30295 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30296 grub/multiboot2.h.
30297 * loader/ieee1275/multiboot2.c: Likewise.
30298 * loader/multiboot2.c: Likewise.
30299 * loader/multiboot_loader.c: Likewise.
30300
30301 * configure.ac: Use -nostdlib when probing for the target. It
30302 should not be required to have libc for the target.
30303
30304 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30305 they fail without libc headers for the target.
30306 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30307 exports.
30308 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30309 preprocessor conditionals.
30310
30311 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30312 build system doesn't need to be aware of the tar.c internals.
30313
30314 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30315
30316 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30317
30318 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30319
30320 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30321 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30322
30323 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30324
30325 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30326 aren't available if ata.mod gets used.
30327
30328 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30329
30330 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30331 initialising controller.
30332 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30333
30334 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30335
30336 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30337 to choose between ata and biosdisk module on i386-pc.
30338
30339 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30340
30341 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30342 Subclass and Programming Interface fields in terms of the 3 byte
30343 Class Code register.
30344 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30345
30346 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30347 interface is OHCI. Add grub_dprintf for symmetry with
30348 bus/usb/uhci.c.
30349 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30350 interface is UHCI. Add interf variable for programming
30351 interface. Print interface with class/subclass.
30352
30353 * bus/usb/ohci.c: Set interf with correct field.
30354
30355 * bus/usb/uhci.c: Remove unneeded doubled lines.
30356 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30357 Remove whitespace inside comment.
30358
30359 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30360
30361 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30362 as fallback an equivalent option without depth.
30363
30364 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30365
30366 Not fail if unable to retrieve C/H/S on LBA disks
30367
30368 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30369 if unable to retrieve C/H/S on LBA disks
30370
30371 2009-06-08 Pavel Roskin <proski@gnu.org>
30372
30373 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30374 about aliasing.
30375
30376 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30377
30378 * Makefile.in (uninstall): Remove all $lib_DATA files.
30379
30380 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30381
30382 Bugfix: install on partitionless device
30383
30384 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30385 is a whole disk
30386
30387 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30388
30389 * Makefile.in (uninstall): Remove all $include_DATA files.
30390
30391 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30392
30393 * commands/true.c: New file. Implement the true and false commands.
30394 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30395 (true_mod_SOURCES): New variable.
30396 (true_mod_CFLAGS): Likewise.
30397 (true_mod_LDFLAGS): Likewise.
30398
30399 2009-06-05 Colin D Bennett <colin@gibibit.com>
30400
30401 Optimized font character lookup using binary search instead of linear
30402 search. Fonts now are required to have the character index ordered by
30403 code point.
30404
30405 * font/font.c (load_font_index): Verify that fonts have ordered
30406 character indices.
30407 (find_glyph): Use binary search instead of linear search to find a
30408 character in a font.
30409
30410 2009-06-05 Michael Scherer <misc@mandriva.org>
30411
30412 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30413 uses case sensitive btree.
30414 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30415 only for case insensitive filesystems.
30416
30417 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30418
30419 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30420 * conf/common.rmk (search_mod_CFLAGS): likewise
30421
30422 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30423
30424 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30425 compensate a compiler bug
30426
30427 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30428
30429 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30430 instead of '\b'
30431
30432 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30433
30434 Definitions for creating asm symbols with Apple's CC
30435
30436 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30437 [APPLE_CC] (VARIABLE): likewise
30438
30439 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30440
30441 Disable lnxboot.img when compiled
30442 with Apple's CC
30443
30444 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30445 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30446 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30447 [! APPLE_CC] (CODE_LENG): skip
30448 [! APPLE_CC] (setup_sects): likewise
30449 [! APPLE_CC]: skip filling
30450
30451 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30452
30453 Address in trampolines based on 32-bit registers when compiled
30454 with Apple's CC
30455
30456 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30457 for addresses
30458 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30459
30460 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30461
30462 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30463
30464 * kern/misc.c [APPLE_CC] (memcpy): new function
30465 [APPLE_CC] (memmove): likewise
30466 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30467 (memcpy): define alias conditionally on !APPLE_CC
30468 (memset): likewise
30469 (abort): likewise
30470 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30471 APPLE_CC are defined
30472 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30473 (grub_assert_fail): make prototype conditional
30474
30475 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30476
30477 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30478
30479 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30480 grub-macho2img
30481 (CLEANFILES): add grub-macho2img
30482 (grub_macho2img_SOURCES): new variable
30483 * kern/i386/pc/startup.S (bss_start): new variable
30484 (bss_end): likewise
30485 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30486 * util/grub-macho2img.c: new file
30487
30488 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30489
30490 Use objconv when compiling with Apple's CC
30491
30492 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30493 (efiemu64.o): likewise
30494 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30495 when compiling with Apple's CC
30496 (efiemu64_s.o): likewise
30497 * configure.ac: check for objconv when compiling with Apple's CC
30498 * genmk.rb: use objconv for modules when compiled with Apple's CC
30499
30500 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30501
30502 Define segment as well as section when compiling with
30503 Apple's CC
30504
30505 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30506 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30507 (efiemu_convert_pointer): likewise
30508 (efiemu_set_virtual_address_map): likewise
30509 (efiemu_convert_pointer): likewise
30510 (efiemu_getcrc32): likewise
30511 (init_crc32_table): likewise
30512 (reflect): likewise
30513 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30514 (GRUB_MOD_DEP): likewise
30515
30516 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30517
30518 Allow a compilation without -mcmodel=large
30519
30520 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30521 when compiled without -mcmodel=large
30522 (filter_memory_map): remove memory post 4 GiB when compiled
30523 without -mcmodel=large
30524 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30525 TARGET_CFLAGS when -mcmodel=large isn't supported
30526
30527 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30528
30529 Remove nested functions in efiemu core
30530
30531 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30532
30533 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30534
30535 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30536
30537 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30538 temporary storage
30539 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30540 using Apple's CC
30541 (grub_cpu_is_tsc_supported): likewise
30542 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30543
30544 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30545
30546 Absolute addressing through constant with Apple's cc
30547
30548 * kern/i386/pc/startup.S: Define necessary constants
30549 and address through it when using ABS with Apple's CC
30550 * boot/i386/pc/diskboot.S: likewise
30551 * boot/i386/pc/boot.S: likewise
30552 * boot/i386/pc/lnxboot.S: likewise
30553 * boot/i386/pc/cdboot.S: likewise
30554 * mmap/i386/pc/mmap_helper.S: likewise
30555 * commands/i386/pc/drivemap_int13h.S: likewise
30556
30557 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30558
30559 Check if compiler is apple cc
30560
30561 * Makefile.in (ASFLAGS): new variable
30562 (TARGET_ASFLAGS): likewise
30563 (TARGET_MODULE_FORMAT): likewise
30564 (TARGET_APPLE_CC): likewise
30565 (OBJCONV): likewise
30566 (TARGET_IMG_CFLAGS): likewise
30567 (TARGET_CPPFLAGS): add includedir
30568 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30569 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30570 Check for linker script only if compiler isn't Apple's CC
30571 (TARGET_MODULE_FORMAT): set
30572 (TARGET_APPLE_CC): likewise
30573 (TARGET_ASFLAGS): likewise
30574 (ASFLAGS): likewise
30575 Check for objcopy only if compiler isn't Apple's CC
30576 Check for BSS symbol only if compiler isn't Apple's CC
30577 * genmk.rb: adapt nm options if we use Apple's utils
30578 * aclocal.m4 (grub_apple_cc): new test
30579 (grub_apple_target_cc): likewise
30580
30581 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30582
30583 Simplify sed expressions and improve awk
30584
30585 * Makefile.in (install-local): simplify sed expression
30586 * gencmdlist.sh: likewise
30587 * genmoddep.awk: avoid adding module as a dependency of itself
30588
30589 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30590
30591 Add missing start symbols
30592
30593 * boot/i386/pc/boot.S: add start
30594 * boot/i386/pc/pxeboot.S: likewise
30595
30596 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30597
30598 Fix wrong assumptions with grub-mkimage on EFI
30599
30600 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30601 (relocate_addresses): consider both r_addend and value at offset
30602 (make_mods_section): zerofill modinfo and header
30603 (convert_elf): write prefix here
30604
30605 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30606
30607 Use .asciz instead of .string
30608
30609 * i386/pc/diskboot.S: use .asciz instead of .string
30610 * i386/pc/boot.S: likewise
30611 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30612 (GRUB_MOD_NAME): likewise
30613
30614 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30615
30616 gfxpayload support
30617
30618 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30619 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30620 (grub_video_setup): remove
30621 (grub_video_set_mode): new prototype
30622 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30623 (vid_mode): remove
30624 (linux_vesafb_res): compile only on PCBIOS
30625 (grub_linux_boot): support gfxpayload
30626 * loader/i386/pc/xnu.c (video_hook): new function
30627 (grub_xnu_set_video): support gfxpayload
30628 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30629 (DEFAULT_VIDEO_HEIGHT): likewise
30630 (DEFAULT_VIDEO_FLAGS): likewise
30631 (DEFAULT_VIDEO_MODE): new definition
30632 (video_hook): new function
30633 (grub_gfxterm_init): use grub_video_set_mode
30634 * util/grub.d/30_os-prober.in: remove explicit modesetting before
30635 loading xnu
30636 * video/video.c (grub_video_setup): removed
30637 (grub_video_set_mode): new function based on grub_gfxterm_init and
30638 grub_video_setup
30639
30640 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30641
30642 Avoid calling biosdisk in drivemap
30643
30644 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30645 (revparse_biosdisk): likewise
30646 (list_mappings): derive name from id directly
30647 (grub_cmd_drivemap): use tryparse_diskstring
30648
30649 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30650
30651 Script fixes
30652
30653 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30654 (grub_lexer_param): add tokenonhold
30655 (grub_script_create_cmdline): remove cmdline. All callers updated
30656 (grub_script_function_create): make functionname
30657 grub_script_arg. All callers updated
30658 (grub_script_execute_argument_to_string): new prototype
30659 * kern/parser.c (state_transitions): reorder
30660 (grub_parser_cmdline_state): fix a bug and make more compact
30661 * script/sh/execute.c (grub_script_execute_argument_to_string):
30662 make global
30663 (grub_script_execute_cmdline): use new format
30664 * script/sh/function.c (grub_script_function_create): make functionname
30665 grub_script_arg. All callers updated
30666 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
30667 (grub_script_yylex): remove
30668 (grub_script_yylex2): renamed to ...
30669 (grub_script_yylex): ...renamed
30670 parse the expressions like a${b}c
30671 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30672 (GRUB_PARSER_TOKEN_VAR): remove
30673 (GRUB_PARSER_TOKEN_NAME): likewise
30674 ("if"): declare as typeless
30675 ("while"): likewise
30676 ("function"): likewise
30677 ("else"): likewise
30678 ("then"): likewise
30679 ("fi"): likewise
30680 (text): remove
30681 (argument): likewise
30682 (script): accept empty scripts and make exit on error
30683 (arguments): use GRUB_PARSER_TOKEN_ARG
30684 (function): likewise
30685 (command): move error handling to script
30686 (menuentry): move grub_script_lexer_ref before
30687 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30688 argument. All callers updated
30689
30690 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30691
30692 Prevent GRUB from probing floppies during boot.
30693
30694 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30695 * commands/search.c (options): Add --no-floppy.
30696 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30697 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30698 --no-floppy when searching for UUIDs.
30699
30700 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30701
30702 Simplify the code duplication in commands/search.c.
30703
30704 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30705 (search_fs): ... this. Update all users.
30706
30707 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30708
30709 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30710
30711 2009-05-28 Pavel Roskin <proski@gnu.org>
30712
30713 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30714 Remove the original symlink explicitly.
30715
30716 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30717 just one slash. That's how grub_fshelp_find_file() does it.
30718
30719 2009-05-26 Pavel Roskin <proski@gnu.org>
30720
30721 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30722 to `str'.
30723
30724 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30725 possibly unused.
30726
30727 2009-05-25 Christian Franke <franke@computer.org>
30728
30729 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30730 register.
30731 (grub_atapi_identify): Add wait after drive select.
30732 (grub_ata_identify): Do more strict status register check before
30733 calling grub_atapi_identify (). Suppress error message if status
30734 register is 0x00 after command failure. Add status register
30735 check after PIO read to avoid bogus identify due to stuck DRQ.
30736 Thanks to Pavel Roskin for testing.
30737 (grub_device_initialize): Remove unsafe status register check.
30738 Thanks to 'phcoder' for problem report and patch.
30739 Prevent sign extension in debug message.
30740
30741 2009-05-23 Colin D Bennett <colin@gibibit.com>
30742
30743 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30744 definition file, and functions defined in `normal/menu.c' have had
30745 their prototypes moved to `include/grub/menu.h' for consistency.
30746
30747 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30748 from normal.h.
30749 (grub_menu_get_entry): Likewise.
30750 (grub_menu_get_timeout): Likewise.
30751 (grub_menu_set_timeout): Likewise.
30752 (grub_menu_execute_entry): Likewise.
30753 (grub_menu_execute_with_fallback): Likewise.
30754 (grub_menu_entry_run): Likewise.
30755
30756 * include/grub/normal.h: Re-ordered and grouped function
30757 prototypes by file that the function is defined in.
30758 (grub_menu_execute_callback): Removed; moved to menu.h.
30759 (grub_menu_get_entry): Likewise.
30760 (grub_menu_get_timeout): Likewise.
30761 (grub_menu_set_timeout): Likewise.
30762 (grub_menu_execute_entry): Likewise.
30763 (grub_menu_execute_with_fallback): Likewise.
30764 (grub_menu_entry_run): Likewise.
30765 (grub_menu_addentry): Renamed from this ...
30766 (grub_normal_add_menu_entry): ... to this.
30767
30768 * normal/main.c (grub_menu_addentry): Renamed from this ...
30769 (grub_normal_add_menu_entry): ... to this.
30770
30771 * script/sh/execute.c (grub_script_execute_menuentry): Update
30772 reference to renamed grub_menu_addentry function.
30773
30774 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
30775
30776 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
30777
30778 2009-05-22 Pavel Roskin <proski@gnu.org>
30779
30780 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
30781 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
30782 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
30783 compiling for the i386 targets, but not for the utilities.
30784
30785 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
30786 to grub_uint8_t.
30787 (grub_root_drive): Likewise.
30788 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
30789 remove alignment.
30790 (grub_root_drive): Change size to byte.
30791 (grub_start_addr): Remove.
30792 (grub_end_addr): Likewise.
30793 (grub_apm_bios_info): Likewise.
30794
30795 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
30796
30797 * normal/i386: Remove.
30798 * normal/powerpc: Likewise.
30799 * normal/sparc64: Likewise.
30800 * normal/x86_64: Likewise.
30801
30802 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
30803
30804 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
30805 * loader/i386/linux_trampoline.S: Fix indentation
30806 * loader/i386/xnu_helper.S: Likewise
30807
30808 2009-05-18 Colin D Bennett <colin@gibibit.com>
30809
30810 Display error messages when parsing a Lua statement fails.
30811 Previously, executing a syntactically invalid statement like
30812 ")foo" or "bar;" would silently fail.
30813
30814 * script/lua/grub_main.c (handle_lua_error): New function.
30815 (grub_lua_parse_line): Improved reporting of Lua parser and
30816 execution errors.
30817
30818 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30819
30820 Remove -Werror which causes build to fail on some systems
30821
30822 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
30823 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
30824 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
30825
30826 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30827
30828 trampoline for linux on 64-bit platform
30829
30830 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
30831 loader/i386/efi/linux_trampoline.S
30832 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
30833 declaration
30834 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
30835 here
30836 * loader/i386/linux_trampoline.S: moved here
30837 * loader/i386/efi/linux.c (allocate_pages): reserve space for
30838 trampoline
30839 (jumpvector): removed
30840 (grub_linux_trampoline_start): new declaration
30841 (grub_linux_trampoline_end): likewise
30842 (grub_linux_boot): use trampoline when on 64-bit platform
30843 * loader/i386/linux.c: likewise
30844
30845 2009-05-16 Pavel Roskin <proski@gnu.org>
30846
30847 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
30848 const to avoid a warning.
30849 (grub_lua_setenv): Likewise.
30850 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
30851 lmsg to fix a warning.
30852
30853 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30854
30855 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
30856 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30857 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
30858 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30859 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30860 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30861 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30862 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30863
30864 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30865
30866 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
30867
30868 2009-05-16 Bean <bean123ch@gmail.com>
30869
30870 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
30871 (lua_mod_SOURCES): New variable.
30872 (lua_mod_CFLAGS): Likewise.
30873 (lua_mod_LDFLAGS): Likewise.
30874
30875 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
30876 (setjmp_mod_SOURCES): New variable.
30877 (setjmp_mod_CFLAGS): Likewise.
30878 (setjmp_LDFLAGS): Likewise.
30879
30880 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
30881 (setjmp_mod_SOURCES): New variable.
30882 (setjmp_mod_CFLAGS): Likewise.
30883 (setjmp_LDFLAGS): Likewise.
30884
30885 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30886 (setjmp_mod_SOURCES): New variable.
30887 (setjmp_mod_CFLAGS): Likewise.
30888 (setjmp_LDFLAGS): Likewise.
30889
30890 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30891 (setjmp_mod_SOURCES): New variable.
30892 (setjmp_mod_CFLAGS): Likewise.
30893 (setjmp_LDFLAGS): Likewise.
30894
30895 * normal/i386/setjmp.S: Moved from here ...
30896 * lib/i386/setjmp.S: ... Moved here
30897 * normal/x86_64/setjmp.S: Moved from here ...
30898 * lib/x86_64/setjmp.S: ... Moved here
30899 * normal/powerpc/setjmp.S: Moved from here ...
30900 * lib/powerpc/setjmp.S: ... Moved here
30901 * normal/sparc64/setjmp.S: Moved from here ...
30902 * lib/sparc64/setjmp.S: ... Moved here
30903
30904 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
30905 returns_twice in mingw.
30906
30907 * script/lua/grub_lib.c: New file.
30908 * script/lua/grub_lib.h: Likewise.
30909 * script/lua/grub_lua.h: Likewise.
30910 * script/lua/grub_main.c: Likewise.
30911 * script/lua/lapi.c: Likewise.
30912 * script/lua/lapi.h: Likewise.
30913 * script/lua/lauxlib.c: Likewise.
30914 * script/lua/lauxlib.h: Likewise.
30915 * script/lua/lbaselib.c: Likewise.
30916 * script/lua/lcode.c: Likewise.
30917 * script/lua/lcode.h: Likewise.
30918 * script/lua/ldblib.c: Likewise.
30919 * script/lua/ldebug.c: Likewise.
30920 * script/lua/ldebug.h: Likewise.
30921 * script/lua/ldo.c: Likewise.
30922 * script/lua/ldo.h: Likewise.
30923 * script/lua/ldump.c: Likewise.
30924 * script/lua/lfunc.c: Likewise.
30925 * script/lua/lfunc.h: Likewise.
30926 * script/lua/lgc.c: Likewise.
30927 * script/lua/lgc.h: Likewise.
30928 * script/lua/linit.c: Likewise.
30929 * script/lua/liolib.c: Likewise.
30930 * script/lua/llex.c: Likewise.
30931 * script/lua/llex.h: Likewise.
30932 * script/lua/llimits.h: Likewise.
30933 * script/lua/lmathlib.c: Likewise.
30934 * script/lua/lmem.c: Likewise.
30935 * script/lua/lmem.h: Likewise.
30936 * script/lua/loadlib.c: Likewise.
30937 * script/lua/lobject.c: Likewise.
30938 * script/lua/lobject.h: Likewise.
30939 * script/lua/lopcodes.c: Likewise.
30940 * script/lua/lopcodes.h: Likewise.
30941 * script/lua/loslib.c: Likewise.
30942 * script/lua/lparser.c: Likewise.
30943 * script/lua/lparser.h: Likewise.
30944 * script/lua/lstate.c: Likewise.
30945 * script/lua/lstate.h: Likewise.
30946 * script/lua/lstring.c: Likewise.
30947 * script/lua/lstring.h: Likewise.
30948 * script/lua/lstrlib.c: Likewise.
30949 * script/lua/ltable.c: Likewise.
30950 * script/lua/ltable.h: Likewise.
30951 * script/lua/ltablib.c: Likewise.
30952 * script/lua/ltm.c: Likewise.
30953 * script/lua/ltm.h: Likewise.
30954 * script/lua/lua.h: Likewise.
30955 * script/lua/luaconf.h: Likewise.
30956 * script/lua/lualib.h: Likewise.
30957 * script/lua/lundump.c: Likewise.
30958 * script/lua/lundump.h: Likewise.
30959 * script/lua/lvm.c: Likewise.
30960 * script/lua/lvm.h: Likewise.
30961 * script/lua/lzio.c: Likewise.
30962 * script/lua/lzio.h: Likewise.
30963
30964 2009-05-16 Bean <bean123ch@gmail.com>
30965
30966 * include/grub/kernel.h (grub_module_header_types): Add type
30967 OBJ_TYPE_CONFIG.
30968
30969 * kern/main.c (grub_load_config): New function.
30970 (grub_main): Call grub_load_config to read boot config.
30971
30972 * grub-mkimage (generate_image): New parameter config_path.
30973 (options): New option --config.
30974 (main): Parse --config option, and pass it to generate_image.
30975
30976 2009-05-14 Christian Franke <franke@computer.org>
30977
30978 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
30979 This fixes build on Cygwin.
30980
30981 2009-05-14 Pavel Roskin <proski@gnu.org>
30982
30983 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
30984 jump. This saves two bytes, so the typical case of 2 swapped
30985 drives would fit 32 bytes.
30986
30987 2009-05-13 Pavel Roskin <proski@gnu.org>
30988
30989 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
30990 grub_uint32_t to avoid a warning.
30991
30992 * loader/i386/linux.c (allocate_pages): When assigning
30993 real_mode_mem, cast through grub_size_t to fix a warning. The
30994 code already makes sure that the value would fit a pointer.
30995 (grub_linux_setup_video): Cast render_target->data to
30996 grub_size_t to fix a warning.
30997
30998 2009-05-13 Javier Martín <lordhabbit@gmail.com>
30999
31000 * commands/i386/pc/drivemap.c: New file - implement drivemap
31001 command.
31002 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31003 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31004
31005 2009-05-13 Pavel Roskin <proski@gnu.org>
31006
31007 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31008 embedding_area_exists.
31009
31010 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31011
31012 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31013 it easier to understand / work with.
31014 Improve warning messages for cases where there's no embedding area,
31015 or when it is too small (or core.img too large).
31016
31017 2009-05-13 Pavel Roskin <proski@gnu.org>
31018
31019 * loader/i386/pc/multiboot2.c: Add necessary includes for
31020 grub_multiboot2_real_boot().
31021
31022 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31023 PX record is always little-endian. We only need the lower 2
31024 bytes of the mode.
31025
31026 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31027 facilitate code reuse.
31028 (grub_cpio_mount): Use "struct head", not a char buffer. This
31029 fixes a warning reported by gcc 4.4.
31030
31031 * kernel/disk.c (grub_disk_read): Use void pointer for the
31032 buffer.
31033 (grub_disk_write): Use const void pointer for the buffer.
31034 Adjust all callers. Remove unnecessary casts.
31035
31036 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31037
31038 * util/i386/pc/grub-install.in: Update copyright year.
31039
31040 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31041
31042 gptsync
31043
31044 * commands/gptsync.c: new file
31045 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31046 (gptsync_mod_SOURCES): new variable
31047 (gptsync_mod_CFLAGS): likewise
31048 (gptsync_mod_LDFLAGS): likewise
31049 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31050 new definition
31051 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31052 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31053 * conf/i386-ieee1275.rmk: likewise
31054 * conf/i386-pc.rmk: likewise
31055 * conf/powerpc-ieee1275.rmk: likewise
31056
31057 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31058
31059 Fixed grub-emu
31060
31061 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31062 (grub_dl_ref): likewise
31063
31064 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31065
31066 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31067 split in two functions (one for msdos and one for gpt).
31068
31069 2009-05-08 Pavel Roskin <proski@gnu.org>
31070
31071 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31072 not modified.
31073
31074 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31075 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31076 Initialize them with -1. Add sanity check for bad1. Eliminate
31077 nerr variable.
31078
31079 2009-05-08 David S. Miller <davem@davemloft.net>
31080
31081 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31082
31083 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31084
31085 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31086 existence.
31087
31088 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31089
31090 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31091 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31092
31093 2009-05-05 David S. Miller <davem@davemloft.net>
31094
31095 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31096
31097 2009-05-05 Pavel Roskin <proski@gnu.org>
31098
31099 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31100 of grub_dl_ref() and grub_dl_unref().
31101 * commands/parttool.c: Remove preprocessor conditionals around
31102 grub_dl_ref() and grub_dl_unref().
31103 * fs/affs.c: Likewise.
31104 * fs/afs.c: Likewise.
31105 * fs/cpio.c: Likewise.
31106 * fs/ext2.c: Likewise.
31107 * fs/fat.c: Likewise.
31108 * fs/hfs.c: Likewise.
31109 * fs/hfsplus.c: Likewise.
31110 * fs/iso9660.c: Likewise.
31111 * fs/jfs.c: Likewise.
31112 * fs/minix.c: Likewise.
31113 * fs/ntfs.c: Likewise.
31114 * fs/reiserfs.c: Likewise.
31115 * fs/sfs.c: Likewise.
31116 * fs/udf.c: Likewise.
31117 * fs/ufs.c: Likewise.
31118 * fs/xfs.c: Likewise.
31119 * include/grub/dl.h: Likewise.
31120 * loader/xnu.c: Likewise.
31121
31122 2009-05-04 Pavel Roskin <proski@gnu.org>
31123
31124 * commands/acpi.c: Remove unused variable my_mod.
31125 * partmap/amiga.c: Likewise.
31126 * partmap/apple.c: Likewise.
31127 * partmap/gpt.c: Likewise.
31128 * partmap/pc.c: Likewise.
31129 * partmap/sun.c: Likewise.
31130 * term/gfxterm.c: Likewise.
31131 * term/i386/pc/vesafb.c: Likewise.
31132 * term/i386/pc/vga.c: Likewise.
31133
31134 2009-05-04 David S. Miller <davem@davemloft.net>
31135
31136 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31137 pointer args to grub_ieee1275_get_property().
31138
31139 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31140
31141 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31142 devices, and do not traverse down under controller nodes.
31143
31144 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31145 (grub_ofdisk_open): Use it to un-escape "," characters.
31146 * kern/disk.c (find_part_sep): New.
31147 (grub_disk_open): Use it to find the first non-escaped ','
31148 character in the disk name.
31149 * util/ieee1275/devicemap.c (escape_of_path): New.
31150 (grub_util_emit_devicemap_entry): Use it.
31151 * util/sparc64/ieee1275/grub-install.in: Update script to
31152 strip partition specifiers properly by not triggering on
31153 '\' escaped ',' characters.
31154
31155 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31156
31157 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31158 to 0x300.
31159 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31160 resolutions.
31161 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31162 on documentation from Wikipedia).
31163
31164 2009-05-04 Pavel Roskin <proski@gnu.org>
31165
31166 * disk/ata.c: Spelling fixes.
31167 * disk/raid.c: Likewise.
31168 * disk/usbms.c: Likewise.
31169 * disk/dmraid_nvidia.c: Likewise.
31170 * kern/ieee1275/openfw.c: Likewise.
31171 * kern/ieee1275/init.c: Likewise.
31172 * kern/ieee1275/cmain.c: Likewise.
31173 * boot/i386/pc/cdboot.S: Likewise.
31174 * video/readers/png.c: Likewise.
31175 * video/i386/pc/vbe.c: Likewise.
31176 * fs/udf.c: Likewise.
31177 * fs/hfs.c: Likewise.
31178 * fs/reiserfs.c: Likewise.
31179 * efiemu/runtime/efiemu.c: Likewise.
31180 * efiemu/main.c: Likewise.
31181 * efiemu/mm.c: Likewise.
31182 * include/grub/elf.h: Likewise.
31183 * include/grub/xnu.h: Likewise.
31184 * include/grub/usbdesc.h: Likewise.
31185 * include/grub/usb.h: Likewise.
31186 * include/grub/script_sh.h: Likewise.
31187 * include/grub/lib/LzmaEnc.h: Likewise.
31188 * include/grub/efiemu/efiemu.h: Likewise.
31189 * include/grub/command.h: Likewise.
31190 * normal/menu.c: Likewise.
31191 * normal/main.c: Likewise.
31192 * normal/datetime.c: Likewise.
31193 * bus/usb/uhci.c: Likewise.
31194 * mmap/i386/uppermem.c: Likewise.
31195 * mmap/mmap.c: Likewise.
31196 * commands/acpi.c: Likewise.
31197 * commands/test.c: Likewise.
31198 * partmap/apple.c: Likewise.
31199 * font/font.c: Likewise.
31200 * loader/sparc64/ieee1275/linux.c: Likewise.
31201 * loader/macho.c: Likewise.
31202 * loader/i386/bsd_trampoline.S: Likewise.
31203 * loader/i386/bsd.c: Likewise.
31204 * loader/xnu.c: Likewise.
31205 * term/i386/pc/vesafb.c: Likewise.
31206 * term/usb_keyboard.c: Likewise.
31207 * util/resolve.c: Likewise.
31208 * util/getroot.c: Likewise.
31209
31210 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31211
31212 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31213
31214 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31215
31216 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31217 build error.
31218
31219 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31220
31221 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31222 parameter only available on BIOS.
31223
31224 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31225
31226 Removed wrong semicolon in declaration
31227
31228 * grub/misc.h (grub_dprintf): remove semicolon
31229
31230 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31231
31232 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31233 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31234 is done by grub_cmd_linux() now).
31235 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31236 restore video to text mode.
31237 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31238 indicates lack of "vga=" parameter. "vga=0" is mapped to
31239 `GRUB_LINUX_VID_MODE_NORMAL'.
31240
31241 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31242
31243 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31244 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31245 and `normal/script.c'. Add `kern/rescue_reader.c',
31246 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31247 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31248 `grub_script.tab.c'.
31249
31250 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31251 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31252 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31253 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31254 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31255
31256 * Makefile.in: Remove duplicated 2008 in Copyright line.
31257
31258 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31259
31260 * util/misc.c (grub_util_warn): New function. Emits a warning
31261 unconditionally.
31262 * include/grub/util/misc.h (grub_util_warn): New declaration.
31263
31264 * util/i386/pc/grub-install.in: Understand --force and pass it down
31265 to grub-setup.
31266
31267 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31268 down to setup().
31269 (setup): Improve error messages and add warnings when requested to
31270 install in odd layouts. Refuse to install using blocklists unless
31271 --force was set.
31272
31273 2009-05-04 martin f. krafft <madduck@madduck.net>
31274
31275 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31276
31277 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31278
31279 Updated copyright year
31280
31281 * fs/hfsplus.c: updated copyright year
31282
31283 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31284
31285 HFS+ UUID
31286
31287 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31288 in the space previously used by unused3
31289 (grub_hfsplus_uuid): new function
31290 (grub_hfsplus_fs): added uuid field
31291
31292 2009-05-03 Pavel Roskin <proski@gnu.org>
31293
31294 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31295 suppress warnings. It's no longer needed.
31296 * disk/host.c: Likewise.
31297 * disk/ata_pthru.c: Likewise.
31298 * disk/loopback.c: Likewise.
31299 * hook/datehook.c: Likewise.
31300 * parttool/pcpart.c: Likewise.
31301 * fs/i386/pc/pxe.c: Likewise.
31302 * fs/ntfscomp.c: Likewise.
31303 * efiemu/main.c: Likewise.
31304 * mmap/mmap.c: Likewise.
31305 * commands/crc.c: Likewise.
31306 * commands/hexdump.c: Likewise.
31307 * commands/hdparm.c: Likewise.
31308 * commands/acpi.c: Likewise.
31309 * commands/echo.c: Likewise.
31310 * commands/minicmd.c: Likewise.
31311 * commands/blocklist.c: Likewise.
31312 * commands/memrw.c: Likewise.
31313 * commands/loadenv.c: Likewise.
31314 * commands/usbtest.c: Likewise.
31315 * commands/lsmmap.c: Likewise.
31316 * commands/boot.c: Likewise.
31317 * commands/parttool.c: Likewise.
31318 * commands/configfile.c: Likewise.
31319 * commands/search.c: Likewise.
31320 * commands/ieee1275/suspend.c: Likewise.
31321 * commands/cat.c: Likewise.
31322 * commands/i386/pc/pxecmd.c: Likewise.
31323 * commands/i386/pc/play.c: Likewise.
31324 * commands/i386/pc/halt.c: Likewise.
31325 * commands/i386/pc/vbeinfo.c: Likewise.
31326 * commands/i386/pc/vbetest.c: Likewise.
31327 * commands/lspci.c: Likewise.
31328 * commands/date.c: Likewise.
31329 * commands/handler.c: Likewise.
31330 * commands/ls.c: Likewise.
31331 * commands/test.c: Likewise.
31332 * commands/cmp.c: Likewise.
31333 * commands/efi/loadbios.c: Likewise.
31334 * commands/efi/fixvideo.c: Likewise.
31335 * commands/halt.c: Likewise.
31336 * commands/help.c: Likewise.
31337 * commands/reboot.c: Likewise.
31338 * hello/hello.c: Likewise.
31339 * script/sh/main.c: Likewise.
31340 * loader/xnu.c: Likewise.
31341 * term/terminfo.c: Likewise.
31342 * term/i386/pc/serial.c: Likewise.
31343 * term/usb_keyboard.c: Likewise.
31344
31345 2009-05-03 David S. Miller <davem@davemloft.net>
31346
31347 * normal/menu.c: Include grub/parser.h
31348
31349 2009-05-03 Pavel Roskin <proski@gnu.org>
31350
31351 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31352 not char*.
31353 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31354 Suggested by Javier Martín <lordhabbit@gmail.com>
31355
31356 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31357 efiemu??.o doesn't exist.
31358 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31359 copying.
31360
31361 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31362
31363 FreeBSD 64-bit support
31364
31365 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31366 and loader/i386/bsd_trampoline.S
31367 (bsd_mod_ASFLAGS): new variable
31368 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31369 (FREEBSD_MODTYPE_KERNEL64): likewise
31370 (grub_bsd64_trampoline_start): likewise
31371 (grub_bsd64_trampoline_end): likewise
31372 (grub_bsd64_trampoline_selfjump): likewise
31373 (grub_bsd64_trampoline_gdt): likewise
31374 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31375 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31376 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31377 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31378 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31379 of "attrib" member
31380 * loader/i386/bsd_pagetable.c: new file
31381 * loader/i386/bsd_trampoline.S: likewise
31382 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31383 (ALIGN_VAR): likewise
31384 (entry_hi): new variable
31385 (kern_end_mdofs): likewise
31386 (is_64bit): likewise
31387 (grub_freebsd_add_meta): use ALIGN_VAR
31388 (grub_e820_mmap): new declaration
31389 (grub_freebsd_add_mmap): new function
31390 (grub_freebsd_add_meta_module): support 64 bit kernels
31391 (grub_freebsd_list_modules): use ALIGN_VAR
31392 (gdt_descriptor): new declaration
31393 (grub_freebsd_boot): support 64 bit kernels
31394 (grub_bsd_elf64_hook): new function
31395 (grub_bsd_load_elf): support elf64
31396
31397 2009-05-03 Bean <bean123ch@gmail.com>
31398
31399 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31400 after we get the result of if statement.
31401
31402 2009-05-03 Bean <bean123ch@gmail.com>
31403
31404 * Makefile.in (enable_efiemu): New variable.
31405
31406 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31407 set.
31408 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31409 path.
31410 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31411 path, add -mno-red-zone option.
31412 (efiemu64_s.o): Likewise.
31413 (efiemu64.o): Use macro $^ for source file.
31414
31415 * configure.ac (--enable-efiemu): New option.
31416
31417 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31418
31419 xnu support
31420
31421 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31422 (pkglib_MODULES): add xnu.mod
31423 (xnu_mod_SOURCES): new variable
31424 (xnu_mod_CFLAGS): likewise
31425 (xnu_mod_LDFLAGS): likewise
31426 (xnu_mod_ASFLAGS): likewise
31427 * conf/i386-pc.rmk: likewise
31428 * conf/x86_64-efi.rmk: likewise
31429 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31430 new declaration
31431 * include/grub/i386/macho.h: new file
31432 * include/grub/i386/xnu.h: likewise
31433 * include/grub/macho.h: likewise
31434 * include/grub/machoload.h: likewise
31435 * include/grub/x86_64/macho.h: likewise
31436 * include/grub/x86_64/xnu.h: likewise
31437 * include/grub/xnu.h: likewise
31438 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31439 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31440 * loader/i386/efi/xnu.c: new file
31441 * loader/i386/pc/xnu.c: likewise
31442 * loader/i386/xnu.c: likewise
31443 * loader/i386/xnu_helper.S: likewise
31444 * loader/macho.c: likewise
31445 * loader/xnu.c: likewise
31446 * loader/xnu_resume.c: likewise
31447 * util/grub-dumpdevtree: likewise
31448 * include/grub/i386/pit.h: include grub/err.h
31449 (grub_pit_wait): export
31450 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31451
31452 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31453
31454 Efiemu
31455
31456 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31457 _linux_efi, linux_efi.
31458 new files in grub-emu
31459 new targets efiemu32.o and efiemu64.o
31460 * loader/linux_normal_efiemu.c: likewise
31461 * loader/i386/efi/linux.c: added preliminary efiemu support
31462 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31463 files to copy
31464 * include/grub/autoefi.h: new file
31465 * include/grub/i386/efiemu.h: likewise
31466 * include/grub/i386/pc/efiemu.h: likewise
31467 * include/grub/efi/api.h: add LL suffix when necessary
31468 new definitions relating to tables
31469 * include/grub/efiemu/efiemu.h: new file
31470 * include/grub/efiemu/runtime.h: likewise
31471 * efiemu/prepare.c: likewise
31472 * efiemu/loadcore_common.c: likewise
31473 * efiemu/loadcore64.c: likewise
31474 * efiemu/runtime/efiemu.sh: likewise
31475 * efiemu/runtime/efiemu.S: likewise
31476 * efiemu/runtime/efiemu.c: likewise
31477 * efiemu/runtime/config.h: likewise
31478 * efiemu/prepare32.c: likewise
31479 * efiemu/main.c: likewise
31480 * efiemu/modules/pnvram.c: likewise
31481 * efiemu/modules/i386: likewise
31482 * efiemu/modules/i386/pc: likewise
31483 * efiemu/modules/acpi.c: likewise
31484 * efiemu/i386/pc/cfgtables.c: likewise
31485 * efiemu/i386/loadcore64.c: likewise
31486 * efiemu/i386/loadcore32.c: likewise
31487 * efiemu/prepare64.c: likewise
31488 * efiemu/loadcore.c: likewise
31489 * efiemu/symbols.c: likewise
31490 * efiemu/mm.c: likewise
31491 * efiemu/loadcore32.c: likewise
31492
31493 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31494
31495 ACPI spoofing
31496
31497 * commands/acpi.c: new file
31498 * commands/i386/pc/acpi.c: likewise
31499 * commands/efi/acpi.c: likewise
31500 * include/grub/acpi.h: likewise
31501 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31502 (acpi_mod_SOURCES): new variable
31503 (acpi_mod_CFLAGS): likewise
31504 (acpi_mod_LDFLAGS): likewise
31505 * conf/i386-efi.rmk: likewise
31506 * conf/x86_64-efi.rmk: likewise
31507
31508 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31509
31510 Missing part from mmap patch
31511
31512 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31513 (grub_mmap_unregister)
31514 (grub_mmap_free_and_unregister): use grub_mmap_register
31515
31516 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31517
31518 Mmap services
31519
31520 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31521 * loader/i386/linux.c (find_mmap_size): likewise
31522 (allocate_pages): likewise
31523 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31524 (grub_fill_multiboot_mmap): likewise
31525 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31526 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31527 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31528 (OPENBSD_MMAP_RESERVED): likewise
31529 * include/grub/i386/pc/memory.h: include grub/memory.h
31530 (grub_lower_mem): removed
31531 (grub_upper_mem): likewise
31532 (GRUB_MACHINE_MEMORY_ACPI): new definition
31533 (GRUB_MACHINE_MEMORY_NVS): likewise
31534 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31535 (GRUB_MACHINE_MEMORY_HOLE): likewise
31536 (grub_machine_mmap_register): likewise
31537 (grub_machine_mmap_unregister): likewise
31538 (grub_machine_get_upper): likewise
31539 (grub_machine_get_lower): likewise
31540 (grub_machine_get_post64): likewise
31541 * include/grub/i386/efi/memory.h: new file
31542 * include/grub/x86_64/efi/memory.h: likewise
31543 * include/grub/efi/memory.h: likewise
31544 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31545 (mmap_mod_SOURCES): new variable
31546 (mmap_mod_LDFLAGS): likewise
31547 (mmap_mod_ASFLAGS): likewise
31548 * conf/i386-coreboot.rmk: likewise
31549 * conf/i386-ieee1275.rmk: likewise
31550 * conf/i386-efi.rmk: likewise
31551 * conf/x86_64-efi.rmk: likewise
31552 * include/grub/types.h (UINT_TO_PTR): new macro
31553 (PTR_TO_UINT32): likewise
31554 (PTR_TO_UINT64): likewise
31555 * include/grub/memory.h: new file
31556 * mmap/i386/pc/mmap.c: likewise
31557 * mmap/i386/pc/mmap_helper.S: likewise
31558 * mmap/i386/uppermem.c: likewise
31559 * mmap/mmap.c: likewise
31560 * mmap/efi/mmap.c: likewise
31561 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31562 grub_upper_mem
31563 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31564 (grub_upper_mem): likewise
31565 (grub_machine_init): don't use grub_upper_mem,
31566 make grub_lower_mem local
31567 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31568 grub_mmap_iterate and grub_mmap_get_upper
31569 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31570
31571 2009-05-02 Bean <bean123ch@gmail.com>
31572
31573 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31574 script/sh/parser.y.
31575 (pkglib_MODULES): Add normal.mod and sh.mod.
31576 (normal_SOURCES): New variable.
31577 (normal_mod_CFLAGS): Likewise.
31578 (normal_mod_LDFLAGS): Likewise.
31579 (sh_mod_SOURCES): Likewise.
31580 (sh_mod_CFLAGS): Likewise.
31581 (sh_mod_LDFLAGS): Likewise.
31582
31583 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31584 script/sh/lexer.c_DEPENDENCIES.
31585 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31586 kern/rescue_reader.c and kern/rescue_parser.c.
31587 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31588 (grub_emu_SOURCES): Change source files.
31589 (pkglib_MODULES): Remove normal.mod.
31590 (normal_SOURCES): Removed.
31591 (normal_mod_CFLAGS): Likewise.
31592 (normal_mod_LDFLAGS): Likewise.
31593 * conf/i386-coreboot.rmk: Likewise.
31594 * conf/i386-efi.rmk: Likewise.
31595 * conf/i386-ieee1276.rmk: Likewise.
31596 * conf/powerpc-ieee1275.rmk: Likewise.
31597 * conf/sparc64-ieee1275.rmk: Likewise.
31598 * conf/x86_64-efi.rmk: Likewise.
31599
31600 * include/grub/command.h (grub_command_execute): New inline function.
31601
31602 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31603
31604 * include/grub/normal.h: Remove <grub/setjmp.h>.
31605 (grub_fs_module_list): Moved to normal/autofs.c.
31606 (grub_exit_env): Removed.
31607 (grub_command_execute): Likewise.
31608 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31609 parameter script.
31610 (read_command_list): New function declaration.
31611 (read_fs_list): Likewise.
31612
31613 * include/parser.h: Include <grub/reader.h>.
31614 (grub_parser_split_cmdline): Change type of getline parameter.
31615 (grub_parser): New structure.
31616 (grub_parser_class): New variable.
31617 (grub_parser_execute): New function declaration.
31618 (grub_register_rescue_parser): Likewise.
31619 (grub_parser_register): New inline function.
31620 (grub_parser_unregister): Likewise.
31621 (grub_parser_get_current): Likewise.
31622 (grub_parser_set_current): Likewise.
31623
31624 * include/grub/reader.h: New file.
31625 * kern/reader.c: Likewise.
31626 * kern/rescue_parser.c: Likewise.
31627 * kern/rescue_reader.c: Likewise.
31628 * normal/autofs.c: Likewise.
31629 * normal/dyncmd.c: Likewise.
31630
31631 * include/grub/rescue.h: Removed.
31632 * normal/command.h: Likewise.
31633
31634 * include/grub/script.h: Moved to ...
31635 * include/grub/script_sh.h: ... Moved here.
31636 * normal/execute.c: Moved to ...
31637 * script/sh/execute.c: ... Moved here.
31638 * normal/function.c: Moved to ...
31639 * script/sh/function.c: ... Moved here.
31640 * normal/lexer.c: Moved to ...
31641 * script/sh/lexer.c: ... Moved here.
31642 * normal/parser.y: Moved to ...
31643 * script/sh/parser.y: ... Moved here.
31644 * normal/script.c: Moved to ...
31645 * script/sh/script.c: ... Moved here.
31646
31647 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31648 <grub/reader.h>.
31649 (grub_exit_env): Removed.
31650 (fs_module_list): Moved to normal/autofs.c.
31651 (grub_file_getline): Don't handle comment here.
31652 (free_menu): Skip removed field entry->commands.
31653 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31654 script parameter.
31655 (read_config_file): Removed nested parameter, change getline function.
31656 (grub_enter_normal_mode): Removed.
31657 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31658 (read_command_list): Likewise.
31659 (autoload_fs_module): Moved to normal/autofs.c.
31660 (read_fs_list): Likewise.
31661 (reader_nested): New variable.
31662 (grub_normal_execute): Run parser.sh to switch to sh parser.
31663 (grub_cmd_rescue): Removed.
31664 (cmd_normal): Removed.
31665 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31666 rescue command.
31667 (grub_cmdline_run): New function.
31668 (grub_normal_reader_init): Likewise.
31669 (grub_normal_read_line): Likewise.
31670 (grub_env_write_pager): Likewise.
31671 (cmdline): New variable.
31672 (grub_normal_reader): Likewise.
31673 (GRUB_MOD_INIT): Register normal reader and set as current, register
31674 pager hook, register normal command with grub_register_command_prio,
31675 so that it won't show up in command.lst.
31676 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31677 grub_fs_autoload_hook.
31678
31679 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31680 (grub_menu_execute_entry): Replace grub_script_execute with
31681 grub_parser_execute, change parameter to grub_command_execute.
31682
31683 * normal/menu_text.c: Remove <grub/script.h>.
31684
31685 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31686 and <grub/parser.h>.
31687 (run): Change editor_getline to use new parser interface. Change
31688 parameter to grub_command_execute.
31689
31690 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31691 <grub/reader.h> and <grub/parser.h>.
31692 (grub_load_normal_mode): Execute normal command.
31693 (grub_main): Call grub_register_core_commands,
31694 grub_register_rescue_parser and grub_register_rescue_reader, use
31695 grub_reader_loop to enter input loop.
31696
31697 * kern/parser.c (grub_parser_split_cmdline): Change type of
31698 getline parameter.
31699 (grub_parser_class): New variable.
31700 (grub_parser_execute): New function.
31701
31702 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31703 * loader/multiboot2.c: Likewise.
31704 * loader/sparc64/ieee1275/linux.c: Likewise.
31705
31706 * util/grub-emu.c (read_command_list): New dummy function.
31707
31708 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31709
31710 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31711 count to 16 for CCISS and IDA.
31712
31713 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31714
31715 * normal/menu_text.c (grub_wait_after_message): Print a newline
31716 after waiting for user input.
31717
31718 * loader/i386/linux.c: Include `<grub/normal.h>'.
31719 (grub_cmd_linux): Improve the error message about `ask' mode, by
31720 waiting for user input so it's not missed (we can do this, since
31721 user requested interaction).
31722
31723 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31724
31725 Added missing lst to grub-mkrescue
31726
31727 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31728 and ${input_dir}/parttool.lst
31729
31730 2009-04-30 David S. Miller <davem@davemloft.net>
31731
31732 * util/hostdisk.c (device_is_wholedisk): New function.
31733 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31734 zero only if device_is_wholedisk() returns true.
31735
31736 * util/hostdisk.c (convert_system_partition_to_system_disk):
31737 Handle virtual disk devices named /dev/vdiskX as found on sparc
31738 and powerpc.
31739
31740 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31741 lettered partition specifier is found, convert to numbered.
31742
31743 2009-04-29 David S. Miller <davem@davemloft.net>
31744
31745 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31746 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31747
31748 * normal/command.c: Add missing newline at end of file.
31749
31750 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31751 warnings.
31752 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31753 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31754 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31755 ihandles have a 32-bit type but need to be stored in a "void *".
31756
31757 2009-04-28 Pavel Roskin <proski@gnu.org>
31758
31759 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31760 not disk. Adjust all dependencies.
31761 (grub_fs_uuid_close): Use grub_device_close(), not
31762 grub_disk_close().
31763
31764 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
31765 parent's partition, don't copy it by reference, as it gets freed
31766 on close.
31767
31768 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31769
31770 Preboot hooks support
31771
31772 * commands/boot.c (struct grub_preboot_t): new declaration
31773 (preboots_head): new variable
31774 (preboots_tail): likewise
31775 (grub_loader_register_preboot_hook): new function
31776 (grub_loader_unregister_preboot_hook): likewise
31777 (grub_loader_set): launch preboot hooks
31778 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
31779 (grub_loader_register_preboot_hook): new declaration
31780 (grub_loader_unregister_preboot_hook): likewise
31781
31782 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31783
31784 Warning fix
31785
31786 * disk/scsi.c (grub_scsi_open): added missing cast when
31787 calling grub_dprintf
31788
31789 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
31790
31791 Bug and warning fixes
31792
31793 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
31794 declaration
31795 * commands/test.c (test_parse): fixed bug with file tests and corrected
31796 declaration of find_file
31797
31798 2009-04-26 Pavel Roskin <proski@gnu.org>
31799
31800 * Makefile.in: Don't install empty manual pages if help2man is
31801 missing. Use help2man option for output, not shell redirection.
31802
31803 2009-04-26 David S. Miller <davem@davemloft.net>
31804
31805 * util/grub-mkdevicemap.c (make_device_map): Add missing
31806 NESTED_FUNC_ATTR to process_device().
31807
31808 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31809
31810 Test command
31811
31812 * commands/test.c: rewritten to use bash-like test
31813
31814 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31815
31816 Parttool autoloading and improvements
31817
31818 * Makefile.in (pkglib_DATA): add parttool.lst
31819 (parttool.lst): new target
31820 * genmk.rb: generate parttool-*
31821 (CLEANFILES): add #{parttool}
31822 (PARTTOOLFILES): new variable
31823 * genparttoollist.sh: new file
31824 * parttool/pcpart.c (grub_pcpart_boot): more feedback
31825 (grub_pcpart_type): likewise
31826 * commands/parttool.c (helpmsg): new variable
31827 (grub_cmd_parttool): output help if not enough arguments are supplied
31828 autoload modules
31829 (GRUB_MOD_INIT(parttool)): use helpmsg
31830
31831 2009-04-24 David S. Miller <davem@davemloft.net>
31832
31833 Avoiding opening same device multiple times in device iterator.
31834
31835 * kern/device.c: (grub_device_iterate): Define struct part_ent,
31836 and use it to build a list of partitions in iterate_disk() and
31837 iterate_partition().
31838
31839 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
31840 on disk->data.
31841
31842 * disk/ieee1275/nand.c (grub_nand_iterate): Return
31843 grub_devalias_iterate() result instead of unconditional 0.
31844 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
31845 Also, capture hook return value, either directly or via
31846 grub_children_iterate(), and propagate to caller.
31847 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
31848 grub_children_iterate): Return value is now 'int' instead of
31849 'grub_err_t'.
31850 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
31851 like a proper iterator, stopping when hooks return non-zero.
31852 (grub_devalias_iterate): Likewise.
31853
31854 2009-04-23 David S. Miller <davem@davemloft.net>
31855
31856 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
31857
31858 2009-04-22 David S. Miller <davem@davemloft.net>
31859
31860 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
31861 is larger than address_cells, use that value for address_cells too.
31862
31863 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
31864 IEEE1275_MAX_PATH_LEN): Define.
31865 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
31866 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
31867 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
31868 'devtype'. Explicitly NULL terminate devalias expansion.
31869
31870 * util/sparc64/ieee1275/misc.c: New file.
31871 * util/sparc64/ieee1275/grub-setup.c: New file.
31872 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
31873 * util/sparc64/ieee1275/grub-mkimage.c: New file.
31874 * util/sparc64/ieee1275/grub-install.in: New file.
31875 * util/ieee1275/ofpath.c: New file.
31876 * util/ieee1275/devicemap.c: New file.
31877 * util/devicemap.c: New file.
31878 * util/deviceiter.c: New file.
31879 * kern/sparc64/ieee1275/init.c: New file.
31880 * include/grub/util/ofpath.h: New file.
31881 * include/grub/util/deviceiter.h: New file.
31882 * util/grub-mkdevicemap.c: Include deviceiter.h.
31883 Implement using grub_util_emit_devicemap_entry and
31884 grub_util_iterate_devices.
31885 * conf/i386-corebook.rmk: Build util/deviceiter.c and
31886 util/devicemap.c into grub-mkdevicemap
31887 * conf/i386-efi.rmk: Likewise.
31888 * conf/i386-ieee1275.rmk: Likewise.
31889 * conf/i386-pc.rmk: Likewise.
31890 * conf/powerpc-ieee1275.rmk: Likewise.
31891 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
31892 images and installation utilities. Build kernel as image
31893 instead of as elf binary. Use common rules as much as possible.
31894
31895 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
31896
31897 Correct GPT definition
31898
31899 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31900 of "attrib" member
31901
31902 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
31903
31904 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
31905
31906 2009-04-19 David S. Miller <davem@davemloft.net>
31907
31908 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
31909 (grub_rescue_cmd_linux): Rename to...
31910 (grub_cmd_linux): and fix prototype.
31911 (grub_rescue_cmd_initrd): Rename to...
31912 (grub_cmd_initrd): and fix prototype.
31913 (cmd_linux, cmd_initrd): New.
31914 (GRUB_MOD_INIT(linux)): Use grub_register_command().
31915 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
31916
31917 2009-04-17 Pavel Roskin <proski@gnu.org>
31918
31919 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
31920 format.
31921 (grub_ohci_transfer): Likewise.
31922
31923 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
31924
31925 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
31926 return without a value. Fix inconsistent indentation.
31927
31928 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
31929 match struct grub_fs.
31930
31931 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
31932 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
31933 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31934 * commands/lspci.c (grub_lspci_iter): Likewise.
31935
31936 2009-04-16 Bean <bean123ch@gmail.com>
31937
31938 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
31939 value.
31940
31941 2009-04-15 Pavel Roskin <proski@gnu.org>
31942
31943 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
31944 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
31945 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
31946 definitions.
31947
31948 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31949
31950 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
31951 that no multiple data or metadata areas are supported and `Unknown
31952 metadata header'.
31953
31954 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31955
31956 Move loader out of the kernel
31957
31958 * kern/loader.c: moved to ...
31959 * commands/boot.c: ... moved here
31960 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
31961 * commands/boot.c (grub_cmd_boot): moved here. All users updated
31962 * include/grub/kernel.h (grub_machine_fini): export
31963 * include/grub/loader.h (grub_loader_is_loaded): update declaration
31964 (grub_loader_set): likewise
31965 (grub_loader_unset): likewise
31966 (grub_loader_boot): likewise
31967 * conf/common.rmk: new module boot.mod
31968 (pkglib_MODULES): add boot.mod
31969 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
31970 (grub_emu_SOURCES): likewise
31971 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
31972 (grub_emu_SOURCES): likewise
31973 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
31974 (grub_emu_SOURCES): likewise
31975 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
31976 (grub_emu_SOURCES): likewise
31977 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
31978 (grub_emu_SOURCES): likewise
31979 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
31980 (grub_emu_SOURCES): likewise
31981 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
31982 (grub_emu_SOURCES): likewise
31983
31984 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31985
31986 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
31987
31988 * kern/misc.c (grub_itoa): Removed function
31989 (grub_ltoa): likewise
31990 (grub_vsprintf): use grub_lltoa
31991
31992 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31993
31994 Restore grub-emu
31995
31996 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
31997 * conf/i386-coreboot.rmk: likewise
31998 * conf/i386-ieee1275.rmk: likewise
31999 * conf/powerpc-ieee1275.rmk: likewise
32000
32001 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32002
32003 * INSTALL: Add that `./autogen.sh' needs to be run before
32004 `./configure.'.
32005
32006 2009-04-14 Bean <bean123ch@gmail.com>
32007
32008 * Makefile.in (pkglib_DATA): Add handler.lst.
32009 (handler.lst): New rule.
32010
32011 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32012 * conf/i386-coreboot.rmk: Likewise.
32013 * conf/i386-ieee1275.rmk: Likewise.
32014 * conf/i386-efi.rmk: Likewise.
32015 * conf/x86_64-efi.rmk: Likewise.
32016 * conf/powerpc-ieee1275.rmk: Likewise.
32017 * conf/sparc64-ieee1275.rmk: Likewise.
32018
32019 * genhandlerlist.sh: New file.
32020
32021 * genmk.rb: Add rules to generate handler.lst.
32022
32023 * include/grub/normal.h (grub_file_getline): New function definition.
32024 (read_handler_list): Likewise.
32025 (free_handler_list): Likewise.
32026
32027 * include/grub/term.h (grub_term_register_input): Add name parameter
32028 for auto generation of handler.lst.
32029 (grub_term_register_output): Likewise.
32030
32031 * normal/handler.c: New file.
32032
32033 * normal/main.c (get_line): Renamed to grub_file_getline.
32034 (read_config_file): Use the newly renamed grub_file_getline.
32035 (read_command_list): Likewise.
32036 (read_fs_list): Likewise.
32037 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32038 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32039
32040 * term/efi/console.c (grub_console_init): Add name parameter for auto
32041 generation of handler.lst.
32042 * term/gfxterm.c: Likewise.
32043 * term/i386/pc/at_keyboard.c: Likewise.
32044 * term/i386/pc/console.c: Likewise.
32045 * term/i386/pc/serial.c: Likewise.
32046 * term/i386/pc/vesafb.c: Likewise.
32047 * term/i386/pc/vga.c: Likewise.
32048 * term/i386/pc/vga_text.c: Likewise.
32049 * term/ieee1275/ofconsole.c: Likewise.
32050 * term/usb_keyboard.c: Likewise.
32051
32052 2009-04-14 Bean <bean123ch@gmail.com>
32053
32054 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32055 properly with null character.
32056
32057 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32058
32059 * configure: Remove.
32060 * config.h.in: Likewise.
32061 * stamp-h.in: Likewise.
32062 * DISTLIST: Likewise.
32063 * conf/common.mk: Likewise.
32064 * conf/i386-coreboot.mk: Likewise.
32065 * conf/i386-efi.mk: Likewise.
32066 * conf/i386-ieee1275.mk: Likewise.
32067 * conf/i386.mk: Likewise.
32068 * conf/i386-pc.mk: Likewise.
32069 * conf/powerpc-ieee1275.mk: Likewise.
32070 * conf/sparc64-ieee1275.mk: Likewise.
32071 * conf/x86_64-efi.mk: Likewise.
32072
32073 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32074 develop on GRUB.
32075
32076 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32077 David S. Miller <davem@davemloft.net>
32078
32079 * util/hostdisk.c (make_device_name): Fix buffer length
32080 calculations.
32081
32082 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32083
32084 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32085 <sys/param.h> and <sys/sysctl.h>.
32086 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32087 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32088 opening the device and reset them afterwards.
32089
32090 2009-04-13 Pavel Roskin <proski@gnu.org>
32091
32092 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32093 Reported by John Stanley <jpsinthemix@verizon.net>
32094
32095 2009-04-13 Robert Millan <rmh@aybabtu.com>
32096
32097 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32098 that name for menuentries when appropriate.
32099
32100 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32101
32102 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32103
32104 2009-04-13 Robert Millan <rmh@aybabtu.com>
32105
32106 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32107 to Linux, simply abort telling the user it's no longer supported.
32108
32109 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32110
32111 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32112 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32113 `freebsd_loadenv' only when devices.hints exist.
32114
32115 2009-04-13 Pavel Roskin <proski@gnu.org>
32116
32117 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32118
32119 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32120
32121 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32122 partition number.
32123 (grub_drive): Likewise.
32124
32125 2009-04-13 David S. Miller <davem@davemloft.net>
32126
32127 * kern/sparc64/ieee1275/ieee1275.c: New file.
32128 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32129 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32130 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32131 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32132 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32133 grub_ieee1275_alloc_physmem): Declare new exported functions.
32134
32135 * include/grub/sparc64/ieee1275/loader.h: New file.
32136 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32137 * include/grub/sparc64/kernel.h: Likewise.
32138 * loader/sparc64/ieee1275/linux.c: Likewise.
32139
32140 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32141 (grub_fstest_SOURCES): Likewise.
32142
32143 * util/hostdisk.c (make_device_name): Do not make any assumptions
32144 about the length of drive names.
32145
32146 * kern/dl.c (grub_dl_load_file): Close file immediately when
32147 we are done using it.
32148
32149 2009-04-12 David S. Miller <davem@davemloft.net>
32150
32151 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32152 values. Noticed by Pavel Roskin.
32153
32154 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32155 target compiler.
32156
32157 * genmk.rb: Add more flexible image type specification, also
32158 pass --strip-unneeded to objcopy.
32159 * conf/i386-pc.rmk: Use *_FORMAT.
32160 * conf/i386-pc.mk: Rebuilt.
32161
32162 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32163 (OFDISK_HASH_SZ): Define.
32164 (ofdisk_hash): New hash table.
32165 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32166 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32167 instead of device phandle which is not unique.
32168
32169 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32170 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32171 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32172 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32173 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32174 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32175 GRUB_KERNEL_MACHINE_DATA_END): Define.
32176 (grub_kernel_image_size, grub_total_module_size): Declare.
32177
32178 2009-04-12 Pavel Roskin <proski@gnu.org>
32179
32180 * configure.ac: Change the logic when we check for target tools.
32181 Do it when the target is specified and it's different from the
32182 specified value of the host.
32183
32184 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32185
32186 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32187 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32188 GNU/kFreeBSD. Check if a device is a character device. Use
32189 DIOCGMEDIASIZE to get the size.
32190 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32191 support for GNU/kFreeBSD.
32192 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32193 is a character device instead of a block device. Add support for
32194 FreeBSD device names.
32195
32196 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32197 is a character device instead of a block device.
32198
32199 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32200 is a character device instead of a block device.
32201
32202 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32203
32204 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32205 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32206 FreeBSD. Check if a device is a character device. Use
32207 DIOCGMEDIASIZE to get the size.
32208 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32209 support for FreeBSD.
32210 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32211 is a character device instead of a block device. Add support for
32212 FreeBSD device names.
32213
32214 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32215 a character device instead of a block device.
32216 (grub_util_check_char_device): New function.
32217
32218 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32219 a character device instead of a block device.
32220
32221 * include/grub/util/getroot.h (grub_util_check_char_device): New
32222 prototype.
32223
32224 2009-04-11 David S. Miller <davem@davemloft.net>
32225
32226 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32227 static libgcc.
32228 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32229 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32230 function, if present.
32231 (__bswapdi2): Likewise.
32232
32233 * include/grub/sparc64/ieee1275/boot.h: New file.
32234 * boot/sparc64/ieee1275/boot.S: Likewise.
32235 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32236
32237 * kern/misc.c (grub_ltoa): New function.
32238 (grub_vsprintf): Use it to format 'long' integers.
32239
32240 2009-04-10 David S. Miller <davem@davemloft.net>
32241
32242 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32243 slots are of type grub_ieee1275_cell_t.
32244 (grub_nand_read): Likewise.
32245 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32246 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32247 macros are used to compare values in arg/ret block of the call.
32248 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32249 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32250 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32251 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32252 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32253 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32254 grub_ieee1275_close, grub_ieee1275_set_property,
32255 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32256 grub_ieee1275_cell_t.
32257 * kern/ieee1275/openfw.c (grub_map): Likewise.
32258 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32259 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32260
32261 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32262 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32263 (grub_devalias_iterate): Likewise.
32264
32265 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32266
32267 UFS improvements
32268
32269 * fs/ufs.c (INODE_NBLOCKS): new definition
32270 (struct grub_ufs_dirent): added fields for non-BSD dirents
32271 (grub_ufs_get_file_block): fixed double indirect handling
32272 (grub_ufs_lookup_symlink): use more robust way to determine whether
32273 symlink is inline
32274 (grub_ufs_find_file): support for non-BSD dirents
32275 (grub_ufs_dir): support for non-BSD dirents
32276
32277 2009-04-10 Bean <bean123ch@gnail.com>
32278
32279 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32280 attribute, otherwise the size would be wrong for i386 platform.
32281
32282 * include/grub/pci.h (grub_pci_read_word): New inline function.
32283 (grub_pci_read_byte): Likewise.
32284 (grub_pci_write): Likewise.
32285 (grub_pci_write_word): Likewise.
32286 (grub_pci_write_byte): Likewise.
32287
32288 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32289
32290 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32291 (find_framebuf): Scan pci to locate the frame buffer address.
32292
32293 * commands/efi/fixvideo.c: New file.
32294
32295 * commands/efi/loadbios.c: Likewise.
32296
32297 * commands/memrw.c: Likewise.
32298
32299 * util/grub-dumpbios.in: Likewise.
32300
32301 * conf/common.rmk (grub-dumpbios): New utility.
32302 (pkglib_MODULES): New module memrw.mod.
32303 (memrw_mod_SOURCE): New macro.
32304 (memrw_mod_CFLAGS): Likewise.
32305 (memrw_mod_LDFLAGS): Likewise.
32306
32307 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32308 fixvideo.mod.
32309 (loadbios_mod_SOURCE): New macro.
32310 (loadbios_mod_CFLAGS): Likewise.
32311 (loadbios_mod_LDFLAGS): Likewise.
32312 (fixvideo_mod_SOURCE): Likewise.
32313 (fixvideo_mod_CFLAGS): Likewise.
32314 (fixvideo_mod_LDFLAGS): Likewise.
32315
32316 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32317 fixvideo.mod.
32318 (loadbios_mod_SOURCE): New macro.
32319 (loadbios_mod_CFLAGS): Likewise.
32320 (loadbios_mod_LDFLAGS): Likewise.
32321 (fixvideo_mod_SOURCE): Likewise.
32322 (fixvideo_mod_CFLAGS): Likewise.
32323 (fixvideo_mod_LDFLAGS): Likewise.
32324
32325 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32326
32327 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32328
32329 2009-04-07 David S. Miller <davem@davemloft.net>
32330
32331 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32332 support for R_SPARC_OLO10 relocations. Fix compile warning for
32333 R_SPARC_WDISP30 case.
32334 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32335
32336 2009-04-06 Pavel Roskin <proski@gnu.org>
32337
32338 * include/grub/misc.h (ARRAY_SIZE): New macro.
32339 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32340 New macro.
32341 * loader/i386/linux.c (allocate_pages): Use free_pages().
32342 (grub_linux_unload): Don't use free_pages().
32343 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32344 wrong index. Treat all other modes as text modes.
32345 (grub_cmd_linux): Initialize vid_mode unconditionally to
32346 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32347
32348 * commands/help.c (print_command_help): Use cmd->prio, not
32349 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32350
32351 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32352
32353 Parttool
32354
32355 * parttool/pcpart.c: new file
32356 * commands/parttool.c: likewise
32357 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32358 (parttool_mod_SOURCES): new variable
32359 (parttool_mod_CFLAGS): likewise
32360 (parttool_mod_LDFLAGS): likewise
32361 (pcpart_mod_SOURCES): likewise
32362 (pcpart_mod_CFLAGS): likewise
32363 (pcpart_mod_LDFLAGS): likewise
32364 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32365 and parttool/pcpart.c
32366 * conf/i386-efi.rmk: likewise
32367 * conf/i386-ieee1275.rmk: likewise
32368 * conf/i386-pc.rmk: likewise
32369 * conf/powerpc-ieee1275.rmk: likewise
32370 * conf/sparc64-ieee1275.rmk: likewise
32371 * conf/x86_64-ieee1275.rmk: likewise
32372
32373 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32374
32375 Support for mtime and further expandability of dir command
32376
32377 * include/grub/lib/datetime.h: moved to ...
32378 * include/grub/datetime.h: ... moved here and added
32379 declaration of grub_unixtime2datetime. All users updated
32380 * include/grub/fs.h: new syntax for dir and mtime functions in
32381 struct grub_fs
32382 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32383 and GRUB_FSHELP_FLAGS_MASK
32384 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32385 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32386 (grub_ext2_mtime): new function
32387 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32388 (grub_hfsplus_mtime): new function
32389 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32390 (GRUB_UFS_ATTR_FILE): likewise
32391 (GRUB_UFS_ATTR_LNK): likewise
32392 (struct grub_ufs_sblock): new fields mtime
32393 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32394 all users updated
32395 (grub_ufs_dir): mtime support
32396 (grub_ufs_mtime): new function
32397 * fs/affs.c (grub_affs_dir): use new dir syntax
32398 * fs/afs.c (grub_afs_dir): likewise
32399 * fs/cpio.c (grub_cpio_dir): likewise
32400 * fs/fat.c (grub_fat_find_dir): likewise
32401 * fs/hfs.c (grub_hfs_dir): likewise
32402 * fs/iso9660.c (grub_iso9660_dir): likewise
32403 * fs/jfs.c (grub_jfs_dir): likewise
32404 * fs/minix.c (grub_minix_dir): likewise
32405 * fs/ntfs.c (grub_ntfs_dir): likewise
32406 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32407 * fs/sfs.c (grub_sfs_dir): likewise
32408 * fs/xfs.c (grub_xfs_dir): likewise
32409 * util/hostfs.c (grub_hostfs_dir): likewise
32410 * lib/datetime.c: moved to ...
32411 * normal/datetime.c: ... moved here
32412 (grub_unixtime2datetime): new function
32413 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32414 * normal/completion.c (iterate_dir): use new dir syntax
32415 * normal/misc.c (grub_normal_print_device_info): tell the
32416 last modification time of a volume
32417 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32418 * conf/common.rmk: added lib/datetime.c to ls.mod
32419 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32420 (normal_mod_SOURCES): likewise
32421 (datetime_mod_SOURCES): Removed lib/datetime.c
32422 * conf/i386-efi.rmk: likewise
32423 * conf/i386-ieee1275.rmk: likewise
32424 * conf/i386-pc.rmk: likewise
32425 * conf/powerpc-ieee1275.rmk: likewise
32426 * conf/sparc64-ieee1275.rmk: likewise
32427 * conf/x86_64-efi.rmk: likewise
32428
32429 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32430
32431 Trim trailing spaces in FAT label and support mtools-like labels
32432
32433 * fs/fat.c (grub_fat_iterate_dir): New function based
32434 on grub_fat_find_dir
32435 (grub_fat_find_dir): use grub_fat_iterate_dir
32436 (grub_fat_label): likewise
32437
32438 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32439
32440 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32441 and command.h
32442 remove extraneous kernel_elf_HEADERS
32443
32444 2009-04-04 Bean <bean123ch@gnail.com>
32445
32446 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32447
32448 * util/misc.c: Likewise.
32449
32450 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32451
32452 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32453 instead of grub_printf.
32454
32455 2009-04-03 Robert Millan <rmh@aybabtu.com>
32456
32457 * loader/i386/linux.c (grub_linux_setup_video): Fill
32458 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32459 values from `mode info' structure instead of hardcoded
32460 values.
32461
32462 2009-04-01 Pavel Roskin <proski@gnu.org>
32463
32464 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32465 unused now.
32466 * genmk.rb: Likewise.
32467 * configure.ac: Likewise.
32468
32469 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32470
32471 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32472 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32473
32474 2009-04-01 David S. Miller <davem@davemloft.net>
32475
32476 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32477 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32478 (grub_setjmp): Mark with 'returns_twice' attribute.
32479 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32480 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32481 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32482
32483 2009-04-01 Robert Millan <rmh@aybabtu.com>
32484
32485 Reapply fix from 2008-07-28 which was accidentally reverted; also
32486 perform the same fix to a similar check in same function.
32487
32488 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32489 with the same number are found, just use issue a warning with
32490 grub_dprintf(), as this error has been reported to be non-fatal.
32491
32492 2009-03-31 Pavel Roskin <proski@gnu.org>
32493
32494 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32495 for cross-compilation.
32496
32497 2009-03-30 Robert Millan <rmh@aybabtu.com>
32498
32499 Fix i386-ieee1275 build.
32500
32501 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32502 Remove declaration.
32503
32504 2009-03-30 Pavel Roskin <proski@gnu.org>
32505
32506 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32507 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32508 zero-terminated, rely only on the strlen value. Fix comparison
32509 of strings differing in length.
32510
32511 2009-03-30 Robert Millan <rmh@aybabtu.com>
32512
32513 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32514 checking for abi version. Improve error messages on BIOS to notify
32515 user about `linux16' command.
32516
32517 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32518
32519 Leak fixes
32520
32521 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32522 in case of collision
32523 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32524
32525 2009-03-29 Robert Millan <rmh@aybabtu.com>
32526
32527 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32528 set `vid_mode' accordingly.
32529 (grub_linux_boot): Process `vid_mode' and set video mode.
32530
32531 2009-03-29 Robert Millan <rmh@aybabtu.com>
32532
32533 * util/grub.d/10_linux.in (linux_entry): New function.
32534 Factorize generation of Linux boot entries.
32535
32536 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32537
32538 Make the format of Environment Block plain text. The boot loader
32539 part is not tested well yet.
32540
32541 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32542 (buffer): Removed.
32543 (envblk): Likewise.
32544 (usage): Remove "info" and "clear". Add "unset". Update the
32545 description of "set", as this does not delete variables any
32546 longer.
32547 (create_envblk_file): Complete rewrite.
32548 (open_envblk_file): Likewise.
32549 (cmd_info): Removed.
32550 (cmd_list): Likewise.
32551 (cmd_set): Likewise.
32552 (cmd_clear): Likewise.
32553 (list_variables): New function.
32554 (write_envblk): Likewise.
32555 (set_variables): Likewise.
32556 (unset_variables): Likewise.
32557 (main): Complete rewrite.
32558
32559 * commands/loadenv.c (buffer): Removed.
32560 (envblk): Likewise.
32561 (open_envblk_file): New function.
32562 (read_envblk_file): Complete rewrite.
32563 (grub_cmd_load_env): Likewise.
32564 (grub_cmd_list_env): Likewise.
32565 (struct blocklist): New struct.
32566 (free_blocklists): New function.
32567 (check_blocklists): Likewise.
32568 (write_blocklists): Likewise.
32569 (grub_cmd_save_env): Complete rewrite.
32570
32571 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32572 a plain text signature.
32573 (GRUB_ENVBLK_MAXLEN): Removed.
32574 (struct grub_envblk): Complete rewrite.
32575 (grub_envblk_find): Removed.
32576 (grub_envblk_insert): Likewise.
32577 (grub_envblk_open): New prototype.
32578 (grub_envblk_set): Likewise.
32579 (grub_envblk_delete): Put const to VALUE.
32580 (grub_envblk_iterate): Put const to NAME and VALUE.
32581 (grub_envblk_close): New prototype.
32582 (grub_envblk_buffer): New inline function.
32583 (grub_envblk_size): Likewise.
32584
32585 * lib/envblk.c: Include grub/mm.h.
32586 (grub_env_find): Removed.
32587 (grub_envblk_open): New function.
32588 (grub_envblk_close): Likewise.
32589 (escaped_value_len): Likewise.
32590 (find_next_line): Likewise.
32591 (grub_envblk_insert): Removed.
32592 (grub_envblk_set): New function.
32593 (grub_envblk_delete): Complete rewrite.
32594 (grub_envblk_iterate): Likewise.
32595
32596 2009-03-28 Robert Millan <rmh@aybabtu.com>
32597
32598 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32599 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32600 variables. Use 16-bit loader.
32601 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32602 loader.
32603 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32604 (grub_linux16_boot): ... this. Update all users.
32605 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32606 (grub_linux_boot): ... this. Update all users.
32607
32608 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32609 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32610 commands to `linux16' and `initrd16'.
32611 (GRUB_MOD_FINI(linux)): Rename to ...
32612 (GRUB_MOD_FINI(linux16)): ... this.
32613
32614 2009-03-24 Pavel Roskin <proski@gnu.org>
32615
32616 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32617 not just for compilation.
32618
32619 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32620
32621 Move multiboot helper out of kernel
32622
32623 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32624 `loader/i386/multiboot_helper.S'.
32625 * conf/i386-coreboot.rmk: Likewise
32626 * conf/i386-ieee1275.rmk: Likewise
32627
32628 * kern/i386/loader.S: Move multiboot helpers from here...
32629 * loader/i386/multiboot_helper.S: ...moved here
32630 * include/grub/i386/loader.h: Move declarations of multiboot
32631 helpers from here...
32632 * include/grub/i386/multiboot.h: ...moved here
32633 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32634
32635 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32636
32637 * kern/env.c (grub_env_context_open): Added an argument to specify
32638 whether a new context inherits exported variables from current
32639 one. This is useful when making a sandbox to interpret a config
32640 file.
32641 All callers updated.
32642
32643 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32644
32645 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32646
32647 * kern/env.c (grub_env_context_close): Fix memory leaks.
32648
32649 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32650
32651 * normal/main.c (grub_normal_execute): Added an argument
32652 BATCH to specify if an interactive interface should be provided
32653 after reading a config file.
32654 All callers updated.
32655 (read_command_list): Prevent being executed twice.
32656 (read_fs_list): Likewise.
32657
32658 * include/grub/normal.h (grub_normal_execute): Updated the
32659 prototype.
32660
32661 2009-03-22 Pavel Roskin <proski@gno.org>
32662
32663 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32664 _start.
32665 * kern/i386/pc/startup.S: Likewise.
32666 * kern/i386/efi/startup.S: Likewise.
32667 * kern/i386/ieee1275/startup.S: Likewise.
32668 * kern/i386/coreboot/startup.S: Likewise.
32669 * kern/x86_64/efi/startup.S: Likewise.
32670
32671 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32672 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32673 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32674
32675 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32676
32677 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32678
32679 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32680 limit detection.
32681 Use vaddr of correct segment for entry_point.
32682
32683 2009-03-21 Bean <bean123ch@gmail.com>
32684
32685 * commands/blocklist.c: Add include file <grub/command.h>, remove
32686 <grub/normal.h> and <grub/arg.h>.
32687 (grub_cmd_blocklist): Use the new command interface.
32688 (GRUB_MOD_INIT): Likewise.
32689 (GRUB_MOD_FINI): Likewise.
32690 * commands/boot.c: Likewise.
32691 * commands/cat.c: Likewise.
32692 * commands/cmp.c: Likewise.
32693 * commands/configfile.c: Likewise.
32694 * commands/crc.c: Likewise.
32695 * commands/echo.c: Likewise.
32696 * commands/halt.c: Likewise.
32697 * commands/handler.c: Likewise.
32698 * commands/hdparm.c: Likewise.
32699 * commands/help.c: Likewise.
32700 * commands/hexdump.c: Likewise.
32701 * commands/loadenv.c: Likewise.
32702 * commands/ls.c: Likewise.
32703 * commands/lsmmap.c: Likewise.
32704 * commands/lspci.c: Likewise.
32705 * commands/loadenv.c: Likewise.
32706 * commands/read.c: Likewise.
32707 * commands/reboot.c: Likewise.
32708 * commands/search.c: Likewise.
32709 * commands/sleep.c: Likewise.
32710 * commands/test.c: Likewise.
32711 * commands/usbtest.c: Likewise.
32712 * commands/videotest.c: Likewise.
32713 * commands/i386/cpuid.c: Likewise.
32714 * commands/i386/pc/halt.c: Likewise.
32715 * commands/i386/pc/play.c: Likewise.
32716 * commands/i386/pc/pxecmd.c: Likewise.
32717 * commands/i386/pc/vbeinfo.c: Likewise.
32718 * commands/i386/pc/vbetest.c: Likewise.
32719 * commands/ieee1275/suspend.c: Likewise.
32720 * disk/loopback.c: Likewise.
32721 * font/font_cmd.c: Likewise.
32722 * hello/hello.c: Likewise.
32723 * loader/efi/appleloader.c: Likewise.
32724 * loader/efi/chainloader.c: Likewise.
32725 * loader/i386/bsd.c: Likewise.
32726 * loader/i386/efi/linux.c: Likewise.
32727 * loader/i386/ieee1275/linux.c: Likewise.
32728 * loader/i386/linux.c: Likewise.
32729 * loader/i386/pc/chainloader.c: Likewise.
32730 * loader/i386/pc/linux.c: Likewise.
32731 * loader/powerpc/ieee1275/linux.c: Likewise.
32732 * loader/multiboot_loader.c: Likewise.
32733 * term/gfxterm.c: Likewise.
32734 * term/i386/pc/serial.c: Likewise.
32735 * term/terminfo.c: Likewise.
32736
32737 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32738 * term/i386/pc/vga.c: Likewise.
32739 * video/readers/jpeg.c: Likewise.
32740 * video/readers/png.c: Likewise.
32741 * video/readers/tga.c: Likewise.
32742
32743 * util/grub-fstest (cmd_loopback): Removed.
32744 (cmd_blocklist): Likewise.
32745 (cmd_ls): Likewise.
32746 (grub_register_command): Likewise.
32747 (grub_unregister_command): Likewise.
32748 (execute_command): Use grub_command_find to locate command and execute
32749 it.
32750
32751 * include/grub/efi/chainloader.h: Removed.
32752 * loader/efi/chainloader_normal.c: Likewise.
32753 * loader/i386/bsd_normal.c: Likewise.
32754 * loader/i386/pc/chainloader_normal.c: Likewise.
32755 * loader/i386/pc/multiboot_normal.c: Likewise.
32756 * loader/linux_normal.c: Likewise.
32757 * loader/multiboot_loader_normal.c: Likewise.
32758 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32759
32760 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32761 and grub_register_command_p1.
32762
32763 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32764 kern/command.c, lib/arg.c and commands/extcmd.c.
32765 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
32766 (minicmd_mod_SOURCES): New variable.
32767 (minicmd_mod_CFLAGS): Likewise.
32768 (minicmd_mod_LDFLAGS): Likewise.
32769 (extcmd_mod_SOURCES): Likewise.
32770 (extcmd_mod_CFLAGS): Likewise.
32771 (extcmd_mod_LDFLAGS): Likewise.
32772 (boot_mod_SOURCES): Removed.
32773 (boot_mod_CFLAGS): Likewise.
32774 (boot_mod_LDFLAGS): Likewise.
32775
32776 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
32777 kern/corecmd.c.
32778 (kernel_img_HEADERS): Add command.h.
32779 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
32780 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
32781 and lib/arg.c.
32782 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
32783 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
32784 remove the corresponding normal mode command.
32785 (normal_mod_SOURCES): Remove normal/arg.c.
32786 * conf/i386-coreboot.rmk: Likewise.
32787 * conf/i386-efi.rmk: Likewise.
32788 * conf/i386-ieee1275.rmk: Likewise.
32789 * conf/powerpc-ieee1275.rmk: Likewise.
32790 * conf/x86_64-efi.rmk: Likewise.
32791
32792 * include/grub/arg.h: Move from here ...
32793 * include/grub/lib/arg.h: ... to here.
32794
32795 * normal/arg.c: Move from here ...
32796 * lib/arg.c: ... to here.
32797
32798 * commands/extcmd.c: New file.
32799 * commands/minicmd.c: Likewise.
32800 * include/grub/command.h: Likewise.
32801 * include/grub/extcmd.h: Likewise.
32802 * kern/command.c: Likewise.
32803 * kern/corecmd.c: Likewise.
32804
32805 * kern/list.c (grub_list_iterate): Return int instead of void.
32806 (grub_list_insert): New function.
32807 (grub_prio_list_insert): Likewise.
32808
32809 * kern/rescue.c (grub_rescue_command): Removed.
32810 (grub_rescue_command_list): Likewise.
32811 (grub_rescue_register_command): Likewise.
32812 (grub_rescue_unregister_command): Likewise.
32813 (grub_rescue_cmd_boot): Move to minicmd.c
32814 (grub_rescue_cmd_help): Likewise.
32815 (grub_rescue_cmd_info): Likewise.
32816 (grub_rescue_cmd_boot): Likewise.
32817 (grub_rescue_cmd_testload): Likewise.
32818 (grub_rescue_cmd_dump): Likewise.
32819 (grub_rescue_cmd_rmmod): Likewise.
32820 (grub_rescue_cmd_lsmod): Likewise.
32821 (grub_rescue_cmd_exit): Likewise.
32822 (grub_rescue_print_devices): Moved to corecmd.c.
32823 (grub_rescue_print_files): Likewise.
32824 (grub_rescue_cmd_ls): Likewise.
32825 (grub_rescue_cmd_insmod): Likewise.
32826 (grub_rescue_cmd_set): Likewise.
32827 (grub_rescue_cmd_unset): Likewise.
32828 (attempt_normal_mode): Use grub_command_find to get normal module.
32829 (grub_enter_rescue_mode): Use grub_register_core_commands to register
32830 commands, remove grub_rescue_register_command calls.
32831
32832 * normal/command.c (grub_register_command): Removed.
32833 (grub_unregister_command): Likewise.
32834 (grub_command_find): Likewise.
32835 (grub_iterate_commands): Likewise.
32836 (rescue_command): Likewise.
32837 (export_command): Moved to corecmd.c.
32838 (set_command): Removed.
32839 (unset_command): Likewise.
32840 (insmod_command): Likewise.
32841 (rmmod_command): Likewise.
32842 (lsmod_command): Likewise.
32843 (grub_command_init): Likewise.
32844
32845 * normal/completion.c (iterate_command): Use cmd->prio to check for
32846 active command.
32847 (complete_arguments): Use grub_extcmd_t structure to find options.
32848 (grub_normal_do_completion): Change function grub_iterate_commands to
32849 grub_command_iterate.
32850
32851 * normal/execute.c (grub_script_execute_cmd): No need to parse
32852 argument here.
32853
32854 * normal/main.c (grub_dyncmd_dispatcher): New function.
32855 (read_command_list): Register unload commands as dyncmd.
32856 (grub_cmd_normal): Use new command interface, register rescue,
32857 unregister normal at entry, register normal, unregister rescue at exit.
32858
32859 * include/grub/list.h (grub_list_test_t): New type.
32860 (grub_list_iterate): Return int instead of void.
32861 (grub_list_insert): New function.
32862 (GRUB_AS_NAMED_LIST_P): New macro.
32863 (GRUB_AS_PRIO_LIST): Likewise.
32864 (GRUB_AS_PRIO_LIST_P): Likewise.
32865 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
32866 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
32867 (grub_prio_list): New structure.
32868 (grub_prio_list_insert): New function.
32869 (grub_prio_list_remove): New inline function.
32870
32871 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
32872 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
32873 (GRUB_COMMAND_FLAG_MENU): Likewise.
32874 (GRUB_COMMAND_FLAG_BOTH): Likewise.
32875 (GRUB_COMMAND_FLAG_TITLE): Likewise.
32876 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
32877 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
32878 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
32879 (grub_command): Likewise.
32880 (grub_register_command): Likewise.
32881 (grub_command_find): Likewise.
32882 (grub_iterate_commands): Likewise.
32883 (grub_command_init): Likewise.
32884 (grub_arg_parse): Likewise.
32885 (grub_arg_show_help): Likewise.
32886
32887 * include/grub/rescue.h (grub_rescue_register_command): Removed.
32888 (grub_rescue_unregister_command): Likewise.
32889
32890 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
32891 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
32892 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
32893
32894 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
32895 grub_rescue_cmd_initrd.
32896 * include/grub/i386/loader.h: Likewise.
32897 * include/grub/x86_64/loader.h: Likewise.
32898
32899 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
32900
32901 2009-03-21 Bean <bean123ch@gmail.com>
32902
32903 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
32904 instead of stat in mingw environment.
32905
32906 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
32907
32908 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
32909
32910 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
32911 AC_CONFIG_LINKS.
32912
32913 2009-03-21 Bean <bean123ch@gmail.com>
32914
32915 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
32916 out of range error.
32917
32918 2009-03-18 Michel Dänzer <michel@daenzer.net>
32919
32920 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
32921 checking inode flags for EXT4_EXTENTS_FLAG.
32922
32923 2009-03-18 Robert Millan <rmh@aybabtu.com>
32924
32925 * loader/i386/linux.c: Include `<grub/video.h>' and
32926 `<grub/i386/pc/vbe.h>'..
32927 (grub_linux_setup_video): New function. Loosely based on the EFI one.
32928 (grub_linux32_boot): Attempt to configure video settings with
32929 grub_linux_setup_video().
32930 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
32931 to avoid grub_console_fini() which would step out of graphical mode
32932 unconditionally.
32933
32934 2009-03-14 Robert Millan <rmh@aybabtu.com>
32935
32936 Fix build on powerpc.
32937 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
32938
32939 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
32940
32941 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
32942 background image command.
32943
32944 2009-03-12 Colin D Bennett <colin@gibibit.com>
32945
32946 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
32947 (grub_gfxterm_putchar): Extract pairs of identical calls to
32948 draw_cursor out of conditional blocks.
32949
32950 2009-03-11 Pavel Roskin <proski@gnu.org>
32951
32952 * fs/hfs.c (grub_hfs_strncasecmp): New function.
32953 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
32954
32955 2009-03-11 Robert Millan <rmh@aybabtu.com>
32956
32957 * loader/i386/multiboot_elfxx.c
32958 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
32959
32960 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
32961
32962 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
32963 `kern/handler.c'.
32964
32965 2009-03-11 Robert Millan <rmh@aybabtu.com>
32966
32967 * loader/i386/multiboot.c (code_size): New variable.
32968 (grub_multiboot): Define offsets by adding to `code_size' rather
32969 than subtracting from `grub_multiboot_payload_size'. Provide
32970 4-byte alignment to MBI and others by increasing
32971 `boot_loader_name_length' appropriately.
32972
32973 * loader/i386/multiboot_elfxx.c
32974 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
32975
32976 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
32977
32978 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
32979 `fs/ext2.c'.
32980
32981 2009-03-08 Robert Millan <rmh@aybabtu.com>
32982
32983 Make loader/i386/linux.c usable on i386-pc again.
32984
32985 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
32986 memory to heap.
32987 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
32988 `#error' stanza.
32989
32990 2009-03-07 Bean <bean123ch@gmail.com>
32991
32992 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
32993 allocation.
32994
32995 2009-03-06 Robert Millan <rmh@aybabtu.com>
32996
32997 Fix display issue on terminals with screen size other than 80x25
32998 (e.g. gfxterm with resolution higher than 640x480).
32999
33000 * normal/main.c (grub_normal_init_page): Display title text in a
33001 position relative to the center of the terminal instead of relying
33002 on a hardcoded offset.
33003
33004 2009-03-04 Robert Millan <rmh@aybabtu.com>
33005
33006 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33007 installed.
33008
33009 * Makefile.in (host_kernel): New variable.
33010 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33011 scripts instead of just the windows one.
33012 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33013
33014 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33015
33016 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33017 `kern/handler.c'.
33018 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33019 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33020 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33021 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33022 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33023 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33024
33025 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33026
33027 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33028 or if there's no space for the disk label and print the partition number on a
33029 invalid magic.
33030
33031 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33032
33033 * util/misc.c: Include <time.h>.
33034 (grub_millisleep): New function.
33035
33036 2009-03-04 Bean <bean123ch@gmail.com>
33037
33038 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33039 another option -mno-red-zone.
33040
33041 * commands/handler.c: Change module description.
33042
33043 * kern/handler.c: Add missing space at the end of description line.
33044
33045 * kern/list.c: Likewise.
33046
33047 2009-03-03 Robert Millan <rmh@aybabtu.com>
33048
33049 Move more components to the relocation area, and fix mbi pointer
33050 handling to use the destination rather than the origin (thanks to
33051 Vladimir Serbinenko for spotting).
33052
33053 * loader/i386/multiboot.c (mbi_dest): New variable.
33054 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33055 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33056 relocation area.
33057
33058 2009-03-01 Bean <bean123ch@gmail.com>
33059
33060 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33061 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33062 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33063 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33064
33065 * loader/i386/efi/linux.c (acpi_guid): New variable.
33066 (acpi_guid): Likewise.
33067 (EBDA_SEG_ADDR): New constant.
33068 (LOW_MEM_ADDR): Likewise.
33069 (FAKE_EBDA_SEG): Likewise.
33070 (fake_bios_data): New function.
33071 (grub_linux_boot): Call fake_bios_data.
33072
33073 2009-03-01 Bean <bean123ch@gmail.com>
33074
33075 * commands/terminal.c: Removed.
33076
33077 * commands/handler.c: New file.
33078
33079 * include/grub/list.h: Likewise.
33080
33081 * include/grub/handler.h: Likewise.
33082
33083 * kern/list.c: Likewise.
33084
33085 * kern/handler.c: Likewise.
33086
33087 * kern/term.h: Include header file <grub/handler.h>.
33088 (grub_term_input): Move next field to the beginning.
33089 (grub_term_output): Likewise.
33090 (grub_term_input_class): New variable.
33091 (grub_term_output_class): Likewise.
33092 (grub_term_register_input): Changed to inline function.
33093 (grub_term_register_output): Likewise.
33094 (grub_term_unregister_input): Likewise.
33095 (grub_term_unregister_output): Likewise.
33096 (grub_term_set_current_input): Likewise.
33097 (grub_term_set_current_output): Likewise.
33098 (grub_term_get_current_input): Likewise.
33099 (grub_term_get_current_output): Likewise.
33100 (grub_term_iterate_input): Removed.
33101 (grub_term_iterate_output): Likewise.
33102
33103 * kern/term.c (grub_term_list_input): Removed.
33104 (grub_term_list_output): Likewise.
33105 (grub_term_input_class): New variable.
33106 (grub_term_output_class): Likewise.
33107 (grub_cur_term_input): Change variable as macro.
33108 (grub_cur_term_output): Likewise.
33109 (grub_term_register_input): Removed.
33110 (grub_term_register_output): Likewise.
33111 (grub_term_unregister_input): Likewise.
33112 (grub_term_unregister_output): Likewise.
33113 (grub_term_set_current_input): Likewise.
33114 (grub_term_set_current_output): Likewise.
33115 (grub_term_iterate_input): Likewise.
33116 (grub_term_iterate_output): Likewise.
33117 (grub_term_get_current_input): Likewise.
33118 (grub_term_get_current_output): Likewise.
33119
33120 * util/grub-editenv.c: Include header file <grub/handler.h>.
33121 (grub_term_get_current_input): Removed.
33122 (grub_term_get_current_output): Likewise.
33123 (grub_term_input_class): New variable.
33124 (grub_term_output_class): Likewise.
33125
33126 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33127 (grub_term_get_current_output): Likewise.
33128 (grub_term_input_class): New variable.
33129 (grub_term_output_class): Likewise.
33130
33131 * util/grub-probe.c (grub_term_get_current_input): Removed.
33132 (grub_term_get_current_output): Likewise.
33133 (grub_term_input_class): New variable.
33134 (grub_term_output_class): Likewise.
33135
33136 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33137 (grub_term_get_current_output): Likewise.
33138 (grub_term_input_class): New variable.
33139 (grub_term_output_class): Likewise.
33140
33141 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33142 (terminal_mod_SOURCES): Likewise.
33143 (terminal_mod_CFLAGS): Likewise.
33144 (terminal_mod_LDFLAGS): Likewise.
33145
33146 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33147 handler.c.
33148 (kernel_img_SOURCES): Add list.c and handler.c.
33149 (kernel_img_HEADERS): Add list.h and handler.h.
33150
33151 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33152 handler.c.
33153 (kernel_mod_SOURCES): Add list.c and handler.c.
33154 (kernel_mod_HEADERS): Add list.h and handler.h.
33155
33156 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33157 handler.c.
33158 (kernel_elf_SOURCES): Add list.c and handler.c.
33159 (kernel_elf_HEADERS): Add list.h and handler.h.
33160
33161 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33162 handler.c.
33163 (kernel_elf_SOURCES): Add list.c and handler.c.
33164 (kernel_elf_HEADERS): Add list.h and handler.h.
33165
33166 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33167 handler.c.
33168 (kernel_mod_SOURCES): Add list.c and handler.c.
33169 (kernel_mod_HEADERS): Add list.h and handler.h.
33170
33171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33172 handler.c.
33173 (kernel_elf_SOURCES): Add list.c and handler.c.
33174 (kernel_elf_HEADERS): Add list.h and handler.h.
33175
33176 2009-02-27 Robert Millan <rmh@aybabtu.com>
33177
33178 Factorize elf32 / elf64 code in Multiboot loader. This will
33179 prevent it from getting out of sync again.
33180
33181 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33182 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33183 grub_multiboot_load_elf64): Move from here ...
33184 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33185 grub_multiboot_load_elf): ... to here (new file).
33186
33187 2009-02-27 Robert Millan <rmh@aybabtu.com>
33188
33189 * util/grub.d/10_linux.in: Rename "single-user mode" to
33190 "recovery mode".
33191
33192 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33193
33194 Don't leak in SCSI code.
33195 * disk/scsi.c (grub_scsi_close): free `scsi'.
33196
33197 2009-02-27 Robert Millan <rmh@aybabtu.com>
33198
33199 * loader/i386/pc/multiboot.c: Move from here ...
33200 * loader/i386/multiboot.c: ... to here. Update all users.
33201
33202 2009-02-27 Robert Millan <rmh@aybabtu.com>
33203
33204 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33205 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33206
33207 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33208
33209 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33210 b-tree.
33211
33212 2009-02-27 Robert Millan <rmh@aybabtu.com>
33213
33214 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33215 `0x' qualifier as 0 when base is specified as parameter).
33216
33217 2009-02-24 Bean <bean123ch@gmail.com>
33218
33219 * configure.ac: Check for -mcmodel=large in x86_64 target.
33220
33221 * include/grub/efi/api.h (efi_call_10): New macro.
33222 (efi_wrap_10): New function.
33223
33224 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33225 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33226 (GRUB_PE32_REL_BASED_LOW): Likewise.
33227 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33228 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33229 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33230 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33231 (GRUB_PE32_REL_BASED_REL): Likewise.
33232 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33233 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33234 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33235
33236 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33237 issue.
33238
33239 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33240 (efi_wrap_10): New function.
33241
33242 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33243
33244 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33245 MB/MBP model (NV chipset).
33246 (devdata_devs): Add devpath_5 to the list.
33247
33248 * load/i386/efi/linux.c (video_base): Remove variable.
33249 (RGB_MASK): New macro.
33250 (RGB_MAGIC): Likewise.
33251 (LINE_MIN): Likewise.
33252 (LINE_MAX): Likewise.
33253 (FBTEST_STEP): Likewise.
33254 (FBTEST_COUNT): Likewise.
33255 (fb_list): New variable.
33256 (grub_find_video_card): Remove function.
33257 (find_framebuf): New function.
33258 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33259 line length.
33260
33261 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33262 problem for x86_64.
33263
33264 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33265
33266 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33267
33268 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33269 coding tool name.
33270
33271 2009-02-22 Robert Millan <rmh@aybabtu.com>
33272
33273 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33274 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33275 in our relocation, instead of using it directly from heap. Also
33276 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33277
33278 2009-02-21 Robert Millan <rmh@aybabtu.com>
33279
33280 Implement USB keyboard support (based on patch by Marco Gerards)
33281
33282 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33283 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33284 (usb_keyboard_mod_LDFLAGS): New variables.
33285
33286 * term/usb_keyboard.c: New file.
33287
33288 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33289
33290 Corrected wrong declaration
33291
33292 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33293
33294 2009-02-14 Christian Franke <franke@computer.org>
33295
33296 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33297 (grub_lspci_iter): Print class code and programming interface byte.
33298
33299 2009-02-14 Christian Franke <franke@computer.org>
33300
33301 * gendistlist.sh: Ignore `.svn' directories.
33302
33303 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33304
33305 * fs/fat.c: Add 2009 to Copyright line.
33306
33307 2009-02-14 Christian Franke <franke@computer.org>
33308
33309 * commands/hdparm.c: New file. Provides `hdparm' command
33310 which sends ATA commands via grub_disk_ata_pass_through ().
33311
33312 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33313
33314 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33315 and <grub/cpu/io.h> to include/grub/ata.h.
33316 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33317 (GRUB_CDROM_SECTOR_SIZE): Remove.
33318 (GRUB_ATA_*): Move to include/grub/ata.h.
33319 (GRUB_ATAPI_*): Likewise.
33320 (enum grub_ata_commands): Likewise.
33321 (enum grub_ata_timeout_milliseconds): Likewise.
33322 (struct grub_ata_device): Likewise.
33323 (grub_ata_regset): Likewise.
33324 (grub_ata_regget): Likewise.
33325 (grub_ata_regset2): Likewise.
33326 (grub_ata_regget2): Likewise.
33327 (grub_ata_check_ready): Likewise.
33328 (grub_ata_wait_not_busy): Remove static, exported in
33329 include/grub/ata.h.
33330 (grub_ata_wait_drq): Likewise.
33331 (grub_ata_pio_read): Likewise.
33332
33333 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33334 function for hdparm.mod.
33335
33336 * include/grub/ata.h: New file, contains declarations from
33337 disk/ata.c.
33338 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33339
33340 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33341 (grub_disk_ata_pass_through): New exported variable.
33342
33343 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33344
33345 2009-02-13 Colin D Bennett <colin@gibibit.com>
33346
33347 Support multiple fallback entries, and provide an API to support
33348 executing default+fallback menu entries. Renamed the `terminal' menu
33349 viewer to `text'.
33350
33351 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33352 variable declaration.
33353 (grub_menu_execute_callback): New structure declaration.
33354 (grub_menu_execute_callback_t): New typedef.
33355 (grub_menu_execute_with_fallback): New function declaration.
33356 (grub_menu_get_entry): Likewise.
33357 (grub_menu_get_timeout): Likewise.
33358 (grub_menu_set_timeout): Likewise.
33359
33360 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33361
33362 * normal/menu.c (grub_wait_after_message): Moved to
33363 `normal/menu_text.c'.
33364 (draw_border): Likewise.
33365 (print_message): Likewise.
33366 (print_entry): Likewise.
33367 (print_entries): Likewise.
33368 (grub_menu_init_page): Likewise.
33369 (get_entry_number): Likewise.
33370 (print_timeout): Likewise.
33371 (run_menu): Likewise.
33372 (grub_menu_execute_entry): Likewise.
33373 (show_text_menu): Likewise.
33374 (get_and_remove_first_entry_number): New function.
33375 (grub_menu_execute_with_fallback): Likewise.
33376 (get_entry): Renamed to ...
33377 (grub_menu_get_entry): .. this and made it global.
33378 (get_timeout): Renamed to ...
33379 (grub_menu_get_timeout): ... this and made it global.
33380 (set_timeout): Renamed to ...
33381 (grub_menu_set_timeout): ... this and made it global.
33382 (grub_normal_terminal_menu_viewer): Renamed to ...
33383 (grub_normal_text_menu_viewer): ... this.
33384
33385 * normal/menu_text.c: New file. Extracted text-menu-specific code
33386 from normal/menu.c.
33387
33388 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33389 (normal_mod_SOURCES): Likewise.
33390
33391 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33392 (normal_mod_SOURCES): Likewise.
33393
33394 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33395 (normal_mod_SOURCES): Likewise.
33396
33397 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33398 (normal_mod_SOURCES): Likewise.
33399
33400 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33401 (normal_mod_SOURCES): Likewise.
33402
33403 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33404 (normal_mod_SOURCES): Likewise.
33405
33406 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33407 (normal_mod_SOURCES): Likewise.
33408
33409 2009-02-11 Robert Millan <rmh@aybabtu.com>
33410
33411 * util/grub.d/00_header.in: Update old reference to `font' command.
33412
33413 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33414
33415 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33416
33417 Based on patch from Javier Martín.
33418
33419 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33420
33421 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33422 to avoid false positives with FAT.
33423 (grub_fstest_SOURCES): Likewise.
33424 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33425 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33427 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33428 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33429 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33430
33431 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33432
33433 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33434 bpb.version_specific.fat12_or_fat16.fstype and
33435 bpb.version_specific.fat32.fstype.
33436
33437 2009-02-08 Robert Millan <rmh@aybabtu.com>
33438
33439 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33440
33441 2009-02-08 Robert Millan <rmh@aybabtu.com>
33442
33443 * Makefile.in (host_os, host_cpu): New variables.
33444 (target_os): Remove. Update all users.
33445
33446 2009-02-08 Marco Gerards <marco@gnu.org>
33447
33448 * Makefile.in (enable_grub_emu_usb): New variable.
33449 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33450 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33451 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33452 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33453 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33454 `usbtest.mod' and `usbms.mod'.
33455 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33456 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33457 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33458 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33459 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33460 variables.
33461
33462 * disk/usbms.c: New file.
33463
33464 * include/grub/usb.h: Likewise.
33465
33466 * include/grub/usbtrans.h: Likewise.
33467
33468 * include/grub/usbdesc.h: Likewise.
33469
33470 * bus/usb/usbtrans.c: Likewise.
33471
33472 * bus/usb/ohci.c: Likewise.
33473
33474 * bus/usb/uhci.c: Likewise.
33475
33476 * bus/usb/usbhub.c: Likewise.
33477
33478 * bus/usb/usb.c: Likewise.
33479
33480 * commands/usbtest.c: Likewise.
33481
33482 * util/usb.c: Likewise.
33483
33484 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33485
33486 * configure.ac: Test for libusb presence.
33487
33488 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33489
33490 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33491
33492 * kern/mm.c: Add more comments.
33493
33494 2009-02-08 Robert Millan <rmh@aybabtu.com>
33495
33496 Patch from Javier Martín.
33497 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33498 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33499
33500 2009-02-08 Robert Millan <rmh@aybabtu.com>
33501
33502 * fs/cpio.c: Split tar functionality to ...
33503 * fs/tar.c: ... here (new file). Update all users.
33504
33505 2009-02-07 Robert Millan <rmh@aybabtu.com>
33506
33507 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33508 backward-incompatible features.
33509
33510 Based on patch from Javier Martín, with some adjustments.
33511
33512 2009-02-07 Michael Scherer <misc@mandriva.org>
33513
33514 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33515
33516 2009-02-07 Robert Millan <rmh@aybabtu.com>
33517
33518 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33519 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33520 after the RAID stuff.
33521
33522 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33523
33524 Fixes problem when running vbetest command as reported by
33525 Vladimir Serbinenko <phcoder@gmail.com>.
33526
33527 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33528
33529 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33530
33531 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33532 /dev/md/NpN style mdraid devices.
33533
33534 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33535
33536 * util/unifont2pff.rb: Remove.
33537
33538 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33539
33540 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33541 `#'.
33542
33543 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33544
33545 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33546 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33547 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33548 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33550 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33551 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33552
33553 2009-02-02 Christian Franke <franke@computer.org>
33554
33555 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33556
33557 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33558
33559 * INSTALL: Note that we now require at least autoconf 2.59 and
33560 that LZO is optional.
33561
33562 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33563
33564 Base on patch on bug #24154 created by Tomas Tintera
33565 <trosos@seznam.cz>.
33566
33567 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33568
33569 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33570
33571 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33572 <bero@arklinux.org>.
33573
33574 * normal/parser.y (script_init): Add missing semicolon.
33575
33576 2009-01-31 Colin D Bennett <colin@gibibit.com>
33577
33578 * normal/main.c: Add include to grub/menu_viewer.h.
33579 (free_menu_entry_classes): Added.
33580 (grub_normal_menu_addentry): Added class property handling.
33581 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33582 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33583
33584 * normal/menu_viewer.c: New file.
33585
33586 * normal/menu.c (run_menu_entry): Renamed to ...
33587 (grub_menu_execute_entry): ... this and made it as global.
33588 (grub_menu_run): Renamed to ...
33589 (show_text_menu): ... this and made it local.
33590 (show_text_menu): Adapt to new function names.
33591 (grub_normal_terminal_menu_viewer): New global variable.
33592
33593 * include/grub/menu.h: New file.
33594
33595 * include/grub/menu_viewer.h: New file.
33596
33597 * include/grub/normal.h: Added include to grub/menu.h.
33598 (grub_menu_entry): Moved to include/grub/menu.h.
33599 (grub_menu_entry_t): Likewise.
33600 (grub_menu): Likewise.
33601 (grub_menu_t): Likewise.
33602 (grub_normal_terminal_menu_viewer): Added.
33603 (grub_menu_execute_entry): Likewise.
33604 (grub_menu_run): Removed.
33605
33606 * DISTLIST: Added include/grub/menu.h.
33607 Added include/grub/menu_viewer.h.
33608 Added normal/menu_viewer.c.
33609
33610 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33611
33612 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33613 arglist for menutitle arguments.
33614
33615 * normal/main.c (grub_normal_menu_addentry): Likewise.
33616
33617 * normal/parser.y (menuentry): Likewise.
33618
33619 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33620
33621 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33622 (grub_script_create_cmdmenu): Likewise.
33623
33624 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33625
33626 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33627 changes.
33628
33629 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33630
33631 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33632
33633 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33634
33635 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33636
33637 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33638
33639 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33640
33641 2009-01-30 Christian Franke <franke@computer.org>
33642
33643 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33644 in option help text.
33645
33646 2009-01-27 Pavel Roskin <proski@gnu.org>
33647
33648 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33649
33650 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33651
33652 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33653
33654 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33655
33656 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33657 unregister function.
33658
33659 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33660
33661 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33662
33663 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33664
33665 * util/grub-mkfont.c (usage): Fix typo.
33666
33667 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33668
33669 2009-01-26 Daniel Mierswa <impulze@impulze.org>
33670
33671 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33672
33673 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33674
33675 * kern/misc.c (grub_strcasecmp): New function.
33676 (grub_strcasecmp): Use grub_size_t instead of int for length.
33677 Fix return value.
33678 * include/grub/misc.h: Update function prototypes.
33679
33680 2009-01-26 Robert Millan <rmh@aybabtu.com>
33681
33682 * configure.ac: Fix cross-compilation check.
33683
33684 2009-01-22 Christian Franke <franke@computer.org>
33685
33686 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33687 (precision) digit string. Allow `.format2' without `format1' (width).
33688 Limit input chars for `%s' output to `format2' if specified. This is
33689 compatible with standard printf ().
33690
33691 2009-01-22 Christian Franke <franke@computer.org>
33692
33693 * disk/ata.c (grub_ata_wait_status): Replace by ...
33694 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33695 other status bits may be invalid while BSY is asserted.
33696 (grub_ata_check_ready): New function.
33697 (grub_ata_cmd): Removed.
33698 (grub_ata_wait_drq): New function.
33699 (grub_ata_strncpy): Remove inline.
33700 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33701 and error check now done by grub_ata_wait_drq ().
33702 (grub_ata_pio_write): Likewise.
33703 (grub_atapi_identify): Set DEV before check for !BSY. Use
33704 grub_ata_wait_drq () to wait for data.
33705 (grub_ata_device_initialize): Add status register check to
33706 detect missing SATA slave devices. Add debug messages.
33707 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33708 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33709 transfer loop by grub_ata_pio_write ().
33710 (grub_ata_identify): Set DEV before check for !BSY. Use
33711 grub_ata_wait_drq () to wait for data.
33712 (grub_ata_setaddress): Set DEV before check for !BSY.
33713 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33714 read/write in one loop. Fix invalid command on write. Fix incomplete
33715 command on (size % batch) == 0. Add missing error check after write of
33716 last block. Add debug messages.
33717 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33718
33719 2009-01-19 Christian Franke <franke@computer.org>
33720
33721 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33722 (GRUB_ATAPI_IREASON_*): Likewise.
33723 (grub_ata_pio_write): Fix timeout error return.
33724 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33725 (grub_atapi_wait_drq): New function.
33726 (grub_atapi_packet): New parameter `size'.
33727 Use grub_atapi_wait_drq () and direct write instead of
33728 grub_ata_pio_write ().
33729 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33730 reads the number of bytes requested by the device for each DRQ
33731 assertion.
33732 (grub_atapi_write): Remove old implementation, return not
33733 implemented instead.
33734
33735 2009-01-19 Christian Franke <franke@computer.org>
33736
33737 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33738 of 512 to calculate data size.
33739 (grub_scsi_read12): Likewise.
33740 (grub_scsi_write10): Likewise.
33741 (grub_scsi_write12): Likewise.
33742 (grub_scsi_read): Adjust size according to blocksize.
33743 Add checks for invalid blocksize and unaligned transfer.
33744
33745 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33746
33747 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33748
33749 * term/gfxterm.c (write_char): Fix background rendering for wide
33750 width glyphs.
33751
33752 2009-01-19 Robert Millan <rmh@aybabtu.com>
33753
33754 * config.guess: Update to latest version from config git.
33755 * config.sub: Likewise.
33756
33757 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33758
33759 * Makefile.in: Change font compilation to use new grub-mkfont instead
33760 of java version.
33761
33762 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33763 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33764 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33765 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33766 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33767 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33768 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33769 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33770 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33771
33772 2009-01-16 Christian Franke <franke@computer.org>
33773
33774 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
33775 (enum grub_ata_timeout_milliseconds): New enum.
33776 (grub_ata_wait_status): Add parameter milliseconds.
33777 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
33778 recovery from timed-out commands.
33779 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
33780 return grub_errno instead of REG_ERROR.
33781 (grub_ata_pio_write): Add parameter milliseconds.
33782 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
33783 Pass milliseconds to grub_ata_wait_status () and
33784 grub_ata_pio_read ().
33785 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
33786 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
33787 grub_ata_wait_status (). Fix IDENTIFY timeout check.
33788 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
33789 It is not suitable for device detection, because DEV bit is ignored,
33790 the command may run too long, and not all devices set the signature
33791 properly.
33792 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
33793 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
33794 Fix device selection, DEV bit must be set first to address the registers
33795 of the correct device.
33796 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
33797 grub_ata_pio_read/write ().
33798 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
33799 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
33800
33801 2009-01-13 Carles Pina i Estany <carles@pina.cat>
33802
33803 * util/grub-editenv.c (main): Use fseeko(), not fseek().
33804
33805 2009-01-13 Bean <bean123ch@gmail.com>
33806
33807 * util/grub-mkfont.c (write_font): forget to remove some debug code.
33808
33809 2009-01-13 Bean <bean123ch@gmail.com>
33810
33811 * Makefile.in: (enable_grub_mkfont): New variable.
33812 (freetype_cflags): Likewise.
33813 (freetype_libs): Likewise.
33814
33815 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
33816 (grub_mkfont_SOURCES): New variable.
33817 (grub_mkfont_CFLAGS): Likewise.
33818 (grub_mkfont_LDFLAGS): Likewise.
33819
33820 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
33821 library if `--enable-grub-mkfont' is requested.
33822 (enable_grub_mkfont): New variable.
33823 (freetype_cflags): Likewise.
33824 (freetype_libs): Likewise.
33825
33826 * util/grub-mkfont.c: New file.
33827
33828 2009-01-12 Christian Franke <franke@computer.org>
33829
33830 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
33831 mode check. Fix setting of compat_use[].
33832
33833 2009-01-10 Robert Millan <rmh@aybabtu.com>
33834
33835 Update a few copyright years which we forgot to do in 2008 (only for
33836 files whose changes made in 2008 were copyright-significant)
33837
33838 * Makefile.in: Add 2008 to Copyright line.
33839 * disk/ieee1275/ofdisk.c: Likewise.
33840 * disk/efi/efidisk.c: Likewise.
33841 * kern/dl.c: Likewise.
33842 * kern/sparc64/ieee1275/init.c: Likewise.
33843 * kern/mm.c: Likewise.
33844 * kern/efi/mm.c: Likewise.
33845 * boot/i386/pc/boot.S: Likewise.
33846 * genfslist.sh: Likewise.
33847 * fs/iso9660.c: Likewise.
33848 * fs/hfs.c: Likewise.
33849 * fs/jfs.c: Likewise.
33850 * fs/minix.c: Likewise.
33851 * fs/ufs.c: Likewise.
33852 * gensymlist.sh.in: Likewise.
33853 * genkernsyms.sh.in: Likewise.
33854 * include/grub/misc.h: Likewise.
33855 * include/grub/types.h: Likewise.
33856 * include/grub/symbol.h: Likewise.
33857 * include/grub/elf.h: Likewise.
33858 * include/grub/kernel.h: Likewise.
33859 * include/grub/disk.h: Likewise.
33860 * include/grub/dl.h: Likewise.
33861 * include/grub/i386/linux.h: Likewise.
33862 * include/grub/i386/pc/biosdisk.h: Likewise.
33863 * include/grub/efi/api.h: Likewise.
33864 * include/grub/efi/pe32.h: Likewise.
33865 * include/grub/util/misc.h: Likewise.
33866 * normal/execute.c: Likewise.
33867 * normal/arg.c: Likewise.
33868 * normal/completion.c: Likewise.
33869 * normal/lexer.c: Likewise.
33870 * normal/parser.y: Likewise.
33871 * normal/misc.c: Likewise.
33872 * commands/i386/pc/vbeinfo.c: Likewise.
33873 * commands/hexdump.c: Likewise.
33874 * commands/terminal.c: Likewise.
33875 * commands/ls.c: Likewise.
33876 * commands/help.c: Likewise.
33877 * partmap/pc.c: Likewise.
33878 * loader/efi/chainloader.c: Likewise.
33879 * loader/multiboot_loader.c: Likewise.
33880 * loader/i386/pc/multiboot2.c: Likewise.
33881 * term/efi/console.c: Likewise.
33882 * term/i386/pc/serial.c: Likewise.
33883 * util/lvm.c: Likewise.
33884 * util/console.c: Likewise.
33885 * util/i386/efi/grub-mkimage.c: Likewise.
33886 * util/raid.c: Likewise.
33887
33888 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
33889
33890 * commands/videotest.c: Removed include to grub/machine/memory.h.
33891
33892 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
33893 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
33894 (video_mod_SOURCES): Removed.
33895 (video_mod_CFLAGS): Likewise.
33896 (video_mod_LDFLAGS): Likewise.
33897 (gfxterm_mod_SOURCES): Likewise.
33898 (gfxterm_mod_CFLAGS): Likewise.
33899 (gfxterm_mod_LDFLAGS): Likewise.
33900 (videotest_mod_SOURCES): Likewise.
33901 (videotest_mod_CFLAGS): Likewise.
33902 (videotest_mod_LDFLAGS): Likewise.
33903 (bitmap_mod_SOURCES): Likewise.
33904 (bitmap_mod_CFLAGS): Likewise.
33905 (bitmap_mod_LDFLAGS): Likewise.
33906 (tga_mod_SOURCES): Likewise.
33907 (tga_mod_CFLAGS): Likewise.
33908 (tga_mod_LDFLAGS): Likewise.
33909 (jpeg_mod_SOURCES): Likewise.
33910 (jpeg_mod_CFLAGS): Likewise.
33911 (jpeg_mod_LDFLAGS): Likewise.
33912 (png_mod_SOURCES): Likewise.
33913 (png_mod_CFLAGS): Likewise.
33914 (png_mod_LDFLAGS): Likewise.
33915
33916 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
33917 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
33918 (video_mod_SOURCES): Added.
33919 (video_mod_CFLAGS): Likewise.
33920 (video_mod_LDFLAGS): Likewise.
33921 (videotest_mod_SOURCES): Likewise.
33922 (videotest_mod_CFLAGS): Likewise.
33923 (videotest_mod_LDFLAGS): Likewise.
33924 (bitmap_mod_SOURCES): Likewise.
33925 (bitmap_mod_CFLAGS): Likewise.
33926 (bitmap_mod_LDFLAGS): Likewise.
33927 (tga_mod_SOURCES): Likewise.
33928 (tga_mod_CFLAGS): Likewise.
33929 (tga_mod_LDFLAGS): Likewise.
33930 (jpeg_mod_SOURCES): Likewise.
33931 (jpeg_mod_CFLAGS): Likewise.
33932 (jpeg_mod_LDFLAGS): Likewise.
33933 (png_mod_SOURCES): Likewise.
33934 (png_mod_CFLAGS): Likewise.
33935 (png_mod_LDFLAGS): Likewise.
33936 (gfxterm_mod_SOURCES): Likewise.
33937 (gfxterm_mod_CFLAGS): Likewise.
33938 (gfxterm_mod_LDFLAGS): Likewise.
33939
33940 * term/gfxterm.c: Removed include to grub/machine/memory.h,
33941 grub/machine/console.h.
33942
33943 2009-01-04 Jerone Young <jerone@gmail.com>
33944
33945 Make on screen instructions clearer
33946
33947 Based on patch created by Jidanni <jidanni@jidanni.org>
33948
33949 * normal/menu.c: print clearer instructions on the screen
33950
33951 2009-01-02 Colin D Bennett <colin@gibibit.com>
33952
33953 New font engine.
33954
33955 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
33956 build system and fixed gfxterm.c to work with different sized fonts.
33957
33958 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
33959
33960 * configure: Re-generated.
33961
33962 * DISTLIST: Removed font/manager.c.
33963 Added font/font.c.
33964 Added font/font_cmd.c.
33965
33966 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
33967 compilation.
33968
33969 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
33970
33971 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
33972
33973 * kern/term.c: Changed users of grub_utf8_to_ucs4.
33974
33975 * normal/menu.c: Likewise.
33976
33977 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
33978 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
33979
33980 * include/grub/font.h: Replaced with new file.
33981
33982 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
33983 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
33984 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
33985 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
33986 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
33987 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
33988 fg_red, fg_green, fg_blue, fg_alpha.
33989 (grub_video_adapter): Removed blit_glyph.
33990 (grub_video_blit_glyph): Removed.
33991
33992 * font/manager.c: Removed file.
33993
33994 * font/font.c: New file.
33995
33996 * font/font_cmd.c: Likewise.
33997
33998 * video/video.c (grub_video_blit_glyph): Removed.
33999
34000 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34001 (grub_video_vbe_map_rgba): Likewise.
34002 (grub_video_vbe_unmap_color_int): Likewise.
34003 (grub_video_vbe_blit_glyph): Removed.
34004 (grub_video_vbe_adapter): Removed blit_glyph.
34005
34006 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34007 (get_pixel): Likewise.
34008 (set_pixel): Likewise.
34009
34010 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34011
34012 * term/gfxterm.c: Adapted to new font engine.
34013
34014 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34015
34016 * term/i386/pc/vga.c: Likewise.
34017
34018 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34019
34020 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34021
34022 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34023
34024 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34025
34026 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34027
34028 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34029
34030 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34031
34032 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34033
34034 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34035
34036 * util/grub.d/00_header.in: Changed to use new loadfont command.
34037
34038 * util/grub-mkconfig_lib.in: Changed font extension.
34039
34040 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34041
34042 * util/getroot.c (grub_util_get_grub_dev): Add support for
34043 /dev/md/dNNpNN style partitionable mdraid devices.
34044
34045 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34046
34047 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34048 at a time limit of the PXE TFTP API correctly.
34049 (grub_pxefs_close): Likewise.
34050
34051 2008-11-29 Robert Millan <rmh@aybabtu.com>
34052
34053 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34054 grub_ata_device_initialize() calls.
34055
34056 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34057
34058 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34059 iteration failed.
34060 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34061
34062 2008-11-28 Robert Millan <rmh@aybabtu.com>
34063
34064 Fix build on powerpc-ieee1275. Based on patch created by
34065 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34066 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34067 `kern/ieee1275/mmap.c'.
34068 * include/grub/powerpc/ieee1275/memory.h: New file.
34069
34070 Provide grub-install on coreboot.
34071 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34072 (grub_install_SOURCES): New variable.
34073 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34074 usable on coreboot.
34075
34076 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34077
34078 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34079 to `grub_term_input_t'.
34080 (grub_term_get_current_output): Change return type to
34081 `grub_term_output_t'.
34082
34083 2008-11-22 Robert Millan <rmh@aybabtu.com>
34084
34085 Fix breakage on coreboot due to declaration mismatch.
34086 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34087 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34088 grub_vga_text_cls().
34089
34090 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34091 comments. Avoid copying one more byte than necessary (just in case).
34092
34093 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34094 to 0x200000 (avoids trouble with some OFW implementations, and matches
34095 with the one in Yaboot).
34096 Reported by Manoel Abranches
34097
34098 2008-11-20 Robert Millan <rmh@aybabtu.com>
34099
34100 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34101 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34102
34103 * util/grub-mkconfig_lib.in (grub_warn): New function.
34104 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34105 warnings, to obtain consistent formatting.
34106 * util/grub.d/00_header.in: Likewise.
34107 * util/update-grub_lib.in: Likewise.
34108
34109 * loader/i386/linux.c (allocate_pages): Fix a warning.
34110 Move comment text to `#error' stanza.
34111
34112 Harmonize ieee1275's grub_available_iterate() with the generic
34113 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34114 build problem on i386-ieee1275):
34115 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34116 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34117 parameter `type'. Update all users of this function.
34118 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34119 `kern/ieee1275/mmap.c'.
34120 * kern/ieee1275/init.c
34121 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34122 with ...
34123 (grub_machine_mmap_iterate): ... this.
34124 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34125 return type to `grub_err_t'. Update all implementations of this
34126 function prototype.
34127 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34128 Likewise.
34129
34130 Add `lsmmap' command (lists firmware-provided memory map):
34131 * commands/lsmmap.c: New file.
34132 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34133 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34134 variables.
34135 * conf/powerpc-ieee1275.rmk: Likewise.
34136 * conf/i386-coreboot.rmk: Likewise.
34137 * conf/i386-ieee1275.rmk: Likewise.
34138
34139 2008-11-19 Robert Millan <rmh@aybabtu.com>
34140
34141 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34142 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34143 constraints to initrd allocation (based on code from
34144 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34145 for Linux to find it.
34146
34147 2008-11-14 Robert Millan <rmh@aybabtu.com>
34148
34149 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34150 order to cope with duplicate slashes.
34151
34152 2008-11-14 Robert Millan <rmh@aybabtu.com>
34153
34154 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34155 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34156 don't want to mess with lower memory, because it is used in the Linux
34157 loader.
34158
34159 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34160 an appropriate place in lower memory, between 0x10000 and 0x90000,
34161 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34162 is in our heap (probably as a result of it being corrupted during
34163 decompression). Add #error instance with comment to explain why this
34164 loader isn't currently usable on PC/BIOS.
34165
34166 2008-11-14 Robert Millan <rmh@aybabtu.com>
34167
34168 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34169 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34170
34171 2008-11-12 Robert Millan <rmh@aybabtu.com>
34172
34173 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34174
34175 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34176 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34177 from here ...
34178 * include/grub/i386/pc/memory.h: ... to here.
34179
34180 2008-11-12 Robert Millan <rmh@aybabtu.com>
34181
34182 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34183 split).
34184
34185 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34186 (grub_console_cur_color, grub_console_real_putchar)
34187 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34188 (grub_console_setcolorstate, grub_console_setcolor)
34189 (grub_console_getcolor): Move from here ...
34190 * include/grub/i386/vga_common.h: ... to here (new file).
34191
34192 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34193 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34194 `<grub/i386/io.h>'.
34195 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34196 `<grub/i386/vga_common.h>'.
34197
34198 2008-11-12 Robert Millan <rmh@aybabtu.com>
34199
34200 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34201 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34202 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34203 variables.
34204 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34205 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34206
34207 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34208 grub_console_init() with call to grub_vga_text_init().
34209 (grub_machine_fini): Replace call to
34210 grub_console_fini() with call to grub_vga_text_fini() and
34211 grub_at_keyboard_fini().
34212
34213 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34214 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34215 (grub_console_setcolorstate, grub_console_setcolor)
34216 (grub_console_getcolor): New function prototypes.
34217
34218 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34219 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34220 (grub_vga_text_setcursor): Static-ize.
34221 (grub_vga_text_term): New structure.
34222 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34223
34224 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34225 (grub_console_cur_color, grub_console_standard_color)
34226 (grub_console_normal_color, grub_console_highlight_color)
34227 (map_char, grub_console_putchar, grub_console_getcharwidth)
34228 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34229 (grub_console_getcolor): Move from here ...
34230 * term/i386/vga_common.c: ... to here (same function names).
34231
34232 2008-11-12 Robert Millan <rmh@aybabtu.com>
34233
34234 Use newly-added Multiboot support in coreboot.
34235
34236 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34237 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34238
34239 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34240 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34241 (codestart): Store the MBI in `startup_multiboot_info' when we're
34242 being loaded using Multiboot.
34243
34244 * kern/i386/coreboot/init.c (grub_machine_init): Move
34245 grub_at_keyboard_init() call to beginning of function (useful for
34246 debugging). Call grub_machine_mmap_init() before attempting to use
34247 grub_machine_mmap_iterate().
34248 (grub_lower_mem, grub_upper_mem): Move from here ...
34249 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34250 here (new file).
34251
34252 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34253 function prototype.
34254
34255 2008-11-12 Robert Millan <rmh@aybabtu.com>
34256
34257 Fix a regression introduced by the at_keyboard.mod split. Because
34258 some terminals are default on some platforms and non-default on
34259 others, the first terminal being registered determines which is
34260 going to be default.
34261
34262 * kern/term.c (grub_term_register_input): If this is the first
34263 terminal being registered, set it as the current one.
34264 (grub_term_register_output): Likewise.
34265
34266 * term/efi/console.c (grub_console_init): Do not call
34267 grub_term_set_current_output() or grub_term_set_current_input().
34268 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34269 * term/i386/pc/console.c (grub_console_init): Likewise.
34270 (grub_console_fini): Do not call grub_term_set_current_input()
34271 (but leave grub_term_set_current_output() to restore text mode).
34272
34273 2008-11-10 Robert Millan <rmh@aybabtu.com>
34274
34275 * util/grub.d/00_header.in: Add backward compatibility check for
34276 versions of terminal.mod that don't understand `terminal_input' or
34277 `terminal_output'.
34278
34279 2008-11-09 Robert Millan <rmh@aybabtu.com>
34280
34281 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34282 `terminal_input' / `terminal_output', not `terminal'.
34283
34284 2008-11-08 Robert Millan <rmh@aybabtu.com>
34285
34286 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34287 (DISTCLEANFILES): Add `build_env.mk'.
34288
34289 2008-11-08 Robert Millan <rmh@aybabtu.com>
34290
34291 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34292 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34293 members. Update all users.
34294 * util/console.c (grub_ncurses_term): Split in ...
34295 (grub_ncurses_term_input): ... this, and ...
34296 (grub_ncurses_term_output): ... this. Update all users.
34297 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34298
34299 2008-11-08 Robert Millan <rmh@aybabtu.com>
34300
34301 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34302 (PKGDATA): Add $(pkgdata_SRCDIR).
34303 (pkglib_BUILDDIR): New variable.
34304 (pkgdata_SRCDIR): New variable.
34305 (build_env.mk): New target.
34306 (include_DATA): New variable.
34307 (install-local): Install $(include_DATA) files in $(includedir).
34308
34309 2008-11-07 Pavel Roskin <proski@gnu.org>
34310
34311 * gendistlist.sh: Use C locale for sorting to ensure consistent
34312 output on all systems.
34313
34314 * util/grub.d/00_header.in: Remove incorrect space before
34315 "serial".
34316
34317 2008-11-07 Robert Millan <rmh@aybabtu.com>
34318
34319 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34320 per specification.
34321 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34322 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34323 (based on find_multi_boot1_header).
34324 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34325 using find_multi_boot2_header(), and abort if neither Multiboot or
34326 Multiboot headers were found.
34327
34328 2008-11-07 Robert Millan <rmh@aybabtu.com>
34329
34330 Modularize at_keyboard.mod:
34331
34332 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34333 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34334 (at_keyboard_mod_LDFLAGS): New variables.
34335
34336 Actual terminal split:
34337
34338 * include/grub/term.h (struct grub_term): Split in ...
34339 (struct grub_term_input): ... this, and ...
34340 (struct grub_term_output): ... this. Update all users.
34341 (grub_term_set_current): Split in ...
34342 (grub_term_set_current_input): ... this, and ...
34343 (grub_term_set_current_output): ... this.
34344 (grub_term_get_current): Split in ...
34345 (grub_term_get_current_input): ... this, and ...
34346 (grub_term_get_current_output): ... this.
34347 (grub_term_register): Split in ...
34348 (grub_term_register_input): ... this, and ...
34349 (grub_term_register_output): ... this.
34350 (grub_term_unregister): Split in ...
34351 (grub_term_unregister_input): ... this, and ...
34352 (grub_term_unregister_output): ... this.
34353 (grub_term_iterate): Split in ...
34354 (grub_term_iterate_input): ... this, and ...
34355 (grub_term_iterate_output): ... this.
34356
34357 * kern/term.c (grub_term_list): Split in ...
34358 (grub_term_list_input): ... this, and ...
34359 (grub_term_list_output): ... this. Update all users.
34360 (grub_cur_term): Split in ...
34361 (grub_cur_term_input): ... this, and ...
34362 (grub_cur_term_output): ... this. Update all users.
34363 (grub_term_set_current): Split in ...
34364 (grub_term_set_current_input): ... this, and ...
34365 (grub_term_set_current_output): ... this.
34366 (grub_term_get_current): Split in ...
34367 (grub_term_get_current_input): ... this, and ...
34368 (grub_term_get_current_output): ... this.
34369 (grub_term_register): Split in ...
34370 (grub_term_register_input): ... this, and ...
34371 (grub_term_register_output): ... this.
34372 (grub_term_unregister): Split in ...
34373 (grub_term_unregister_input): ... this, and ...
34374 (grub_term_unregister_output): ... this.
34375 (grub_term_iterate): Split in ...
34376 (grub_term_iterate_input): ... this, and ...
34377 (grub_term_iterate_output): ... this.
34378
34379 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34380 a check for input and one for output (and only attempt to get keys
34381 from user when input works).
34382
34383 * util/grub-probe.c (grub_term_get_current): Split in ...
34384 (grub_term_get_current_input): ... this, and ...
34385 (grub_term_get_current_output): ... this.
34386 * util/grub-fstest.c: Likewise.
34387 * util/i386/pc/grub-setup.c: Likewise.
34388 * util/grub-editenv.c: Likewise.
34389
34390 Portability adjustments:
34391
34392 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34393 `term/i386/pc/at_keyboard.c'.
34394 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34395 grub_keyboard_controller_init() (now handled by terminal .init).
34396 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34397 grub_at_keyboard_init().
34398 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34399 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34400 at_keyboard.mod via input terminal interface).
34401 * include/grub/i386/coreboot/console.h: Convert into a stub for
34402 `<grub/i386/pc/console.h>'.
34403
34404 Migrate full terminals to new API:
34405
34406 * term/efi/console.c (grub_console_term): Split into ...
34407 (grub_console_term_input): ... this, and ...
34408 (grub_console_term_output): ... this. Update all users.
34409 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34410 (grub_ofconsole_init): Split into ...
34411 (grub_ofconsole_init_input): ... this, and ...
34412 (grub_ofconsole_init_output): ... this.
34413 (grub_ofconsole_term): Split into ...
34414 (grub_ofconsole_term_input): ... this, and ...
34415 (grub_ofconsole_term_output): ... this. Update all users.
34416 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34417 (grub_serial_term_input): ... this, and ...
34418 (grub_serial_term_output): ... this. Update all users.
34419 * term/i386/pc/console.c (grub_console_term): Split into ...
34420 (grub_console_term_input): ... this, and ...
34421 (grub_console_term_output): ... this. Update all users.
34422 (grub_console_term_input): Only enable it on PC/BIOS platform.
34423 (grub_console_init): Remove grub_keyboard_controller_init() call.
34424
34425 Migrate input terminals to new API:
34426
34427 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34428 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34429 i386-specific anyway).
34430 (grub_console_checkkey): Rename to ...
34431 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34432 users.
34433 (grub_keyboard_controller_orig): New variable.
34434 (grub_console_getkey): Rename to ...
34435 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34436 users.
34437 (grub_keyboard_controller_init): Static-ize. Save original
34438 controller value so that it can be restored ...
34439 (grub_keyboard_controller_fini): ... here (new function).
34440 (grub_at_keyboard_term): New structure.
34441 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34442 functions.
34443
34444 Migrate output terminals to new API:
34445
34446 * term/i386/pc/vga.c (grub_vga_term): Change type to
34447 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34448 members. Update all users.
34449 * term/gfxterm.c (grub_video_term): Change type to
34450 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34451 members. Update all users.
34452 * include/grub/i386/pc/console.h (grub_console_checkkey)
34453 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34454 etc).
34455
34456 Migrate `terminal' command and userland tools to new API:
34457
34458 * commands/terminal.c (grub_cmd_terminal): Split into ...
34459 (grub_cmd_terminal_input): ... this, and ...
34460 (grub_cmd_terminal_output): ... this.
34461 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34462 `terminal_input' and `terminal_output'.
34463 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34464 `terminal_input' / `terminal_output' API.
34465 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34466 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34467 provided ${GRUB_TERMINAL}, convert it).
34468
34469 2008-11-04 Robert Millan <rmh@aybabtu.com>
34470
34471 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34472 for FreeBSD.
34473 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34474
34475 2008-11-03 Bean <bean123ch@gmail.com>
34476
34477 * kern/elf.c (grub_elf32_load): Revert to previous code.
34478 (grub_elf64_load): Likewise.
34479
34480 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34481
34482 2008-11-01 Robert Millan <rmh@aybabtu.com>
34483
34484 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34485 (TARGET_CPPFLAGS): Likewise.
34486 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34487
34488 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34489
34490 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34491
34492 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34493
34494 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34495 addition of objects until the code is not going to be able to fail.
34496
34497 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34498
34499 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34500 (add a missing NULL check, and correct them by moving the pointer
34501 operations after the actual check).
34502
34503 2008-10-29 Robert Millan <rmh@aybabtu.com>
34504
34505 * util/i386/pc/grub-install.in: Handle empty string as output from
34506 make_system_path_relative_to_its_root().
34507
34508 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34509
34510 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34511 circular metadata worst case scenario. If the metadata is circular
34512 then copy the wrap in place.
34513 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34514 project lib/format_text/layout.h
34515 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34516
34517 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34518
34519 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34520
34521 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34522
34523 * util/update-grub_lib.in: Mention filename in warning message.
34524
34525 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34526
34527 * NEWS: Update for rename of update-grub to grub-mkconfig.
34528
34529 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34530
34531 * util/update-grub_lib.in: Copy to ...
34532 * util/grub-mkconfig_lib.in: ... this. Update all users.
34533 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34534 * util/update-grub.in: Rename to ...
34535 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34536 option. Add `--output' option to allow users to specify the generated
34537 configuration file. Default to stdout.
34538 (update_grub_dir): Rename to ...
34539 (grub_mkconfig_dir): ... this.
34540 (grub_cfg): Default to an empty string.
34541 * conf/common.rmk (update-grub): Rename to ...
34542 (grub-mkconfig): ... this.
34543 (update-grub_lib): Copy to ...
34544 (grub-mkconfig_lib): ... this.
34545 (update-grub_SCRIPTS): Copy to ...
34546 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34547 (update-grub_DATA): Rename to ...
34548 (grub-mkconfig_DATA): ... this.
34549
34550 2008-09-28 Robert Millan <rmh@aybabtu.com>
34551
34552 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34553 to `modified'. Add the real `created' field.
34554 (grub_iso9660_uuid): Use `modified' rather than `created' for
34555 constructing the UUID.
34556
34557 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34558
34559 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34560 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34561
34562 2008-09-28 Bean <bean123ch@gmail.com>
34563
34564 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34565 Thanks to Christian Franke for finding this bug.
34566
34567 2008-09-25 Robert Millan <rmh@aybabtu.com>
34568
34569 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34570 instances of grub_util_get_disk_name() (see previous commit).
34571
34572 2008-09-25 Robert Millan <rmh@aybabtu.com>
34573
34574 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34575 `util/i386/get_disk_name.c'.
34576 * conf/i386-efi.rmk: Likewise.
34577 * conf/x86_64-efi.rmk: Likewise.
34578 * conf/i386-coreboot.rmk: Likewise.
34579 * conf/i386-ieee1275.rmk: Likewise.
34580 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34581 `util/ieee1275/get_disk_name.c'.
34582 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34583 * util/ieee1275/get_disk_name.c: Remove file.
34584 * util/i386/get_disk_name.c: Remove file.
34585 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34586 "hd%d" for device.map entries, rather than using
34587 grub_util_get_disk_name().
34588
34589 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34590
34591 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34592 warning.
34593 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34594
34595 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34596
34597 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34598 Changed to 0x5100.
34599 (GRUB_TERM_PPAGE): Changed to 0x4900.
34600
34601 2008-09-24 Robert Millan <rmh@aybabtu.com>
34602
34603 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34604 macros (they were i386-pc specific).
34605 * include/grub/sparc64/ieee1275/console.h: Likewise.
34606 * include/grub/efi/console.h: Likewise.
34607
34608 2008-09-22 Bean <bean123ch@gmail.com>
34609
34610 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34611 resident and in attribute list.
34612
34613 * include/grub/ntfs.h (BMP_LEN): Removed.
34614
34615 2008-09-22 Bean <bean123ch@gmail.com>
34616
34617 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
34618 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34619
34620 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34621 error occurs, as grub_disk_open will call grub_disk_close, which will
34622 call p->close (scsi).
34623
34624 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34625
34626 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34627 (AC_PREREQ): Bumped to 2.59.
34628 (AC_TRY_COMPILE): Replace obsolete macro with ...
34629 (AC_COMPILE_IFELSE): ... this.
34630 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34631 (AC_LINK_IFELSE): ... this.
34632
34633 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34634
34635 * autogen.sh: Add a call to `gendistlist.sh'.
34636
34637 2008-09-19 Christian Franke <franke@computer.org>
34638
34639 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34640 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34641 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34642 Export __enable_execute_stack() to modules.
34643 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34644 New function.
34645
34646 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34647
34648 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34649 Sort the list.
34650
34651 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34652
34653 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
34654 #include <grub/util/hostdisk.h>.
34655
34656 2008-09-08 Robert Millan <rmh@aybabtu.com>
34657
34658 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34659 segments when their filesz is zero (grub_file_read() interprets
34660 zero-size as "read until EOF", which results in memory corruption).
34661 Use `lowest_segment' rather than 0 for calculating the current
34662 segment load address.
34663
34664 2008-09-08 Robert Millan <rmh@aybabtu.com>
34665
34666 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34667 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34668 clobbered useful information.
34669
34670 2008-09-08 Robert Millan <rmh@aybabtu.com>
34671
34672 * include/grub/util/biosdisk.h: Move to ...
34673 * include/grub/util/hostdisk.h: ... here. Update all users.
34674 * util/biosdisk.c: Move to ...
34675 * util/hostdisk.c: ... here. Update all users.
34676
34677 2008-09-07 Robert Millan <rmh@aybabtu.com>
34678
34679 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34680 variables.
34681 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34682 and length can be stored directly in the `mbi->mmap_addr' and
34683 `mbi->mmap_length' struct fields.
34684
34685 2008-09-07 Robert Millan <rmh@aybabtu.com>
34686
34687 * conf/i386.rmk: New file. Provides declaration for building
34688 `cpuid.mod'.
34689 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34690 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34691 variables.
34692 Include `conf/i386.mk'.
34693 * conf/i386-efi.rmk: Likewise.
34694 * conf/x86_64-efi.rmk: Likewise.
34695 * conf/i386-coreboot.rmk: Likewise.
34696 * conf/i386-ieee1275.rmk: Likewise.
34697
34698 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34699
34700 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34701 Adds optimization support for BGR based modes.
34702
34703 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34704 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34705 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34706 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34707 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34708 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34709 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34710 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34711 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34712 (grub_video_i386_vbeblit_index_index): Likewise.
34713 (grub_video_i386_vbeblit_replace_directN): Added.
34714 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34715 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34716 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34717 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34718 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34719 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34720 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34721 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34722 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34723 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34724 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34725 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34726 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34727
34728 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34729 (grub_video_i386_vbefill_R8G8B8): Likewise.
34730 (grub_video_i386_vbefill_index): Likewise.
34731 (grub_video_i386_vbefill_direct32): Added.
34732 (grub_video_i386_vbefill_direct24): Likewise.
34733 (grub_video_i386_vbefill_direct16): Likewise.
34734 (grub_video_i386_vbefill_direct8): Likewise.
34735
34736 * include/grub/video.h (grub_video_blit_format): Removed
34737 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34738 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34739 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34740 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34741 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34742
34743 * video/video.c (grub_video_get_blit_format): Updated to use new
34744 blit formats. Added handling for 16 bit color modes.
34745
34746 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34747 fillers.
34748 (common_blitter): Updated to use new blitters.
34749
34750 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34751 Removed.
34752 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34753 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34754 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34755 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34756 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34757 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34758 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34759 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34760 (grub_video_i386_vbeblit_index_index): Likewise.
34761 (grub_video_i386_vbeblit_replace_directN): Added.
34762 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34763 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34764 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34765 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34766 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34767 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34768 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34769 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34770 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34771 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34772 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34773 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34774 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34775
34776 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
34777 (grub_video_i386_vbefill_R8G8B8): Likewise.
34778 (grub_video_i386_vbefill_index): Likewise.
34779 (grub_video_i386_vbefill_direct32): Added.
34780 (grub_video_i386_vbefill_direct24): Likewise.
34781 (grub_video_i386_vbefill_direct16): Likewise.
34782 (grub_video_i386_vbefill_direct8): Likewise.
34783
34784 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
34785 types.
34786
34787 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
34788 types.
34789
34790 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
34791 blitter types.
34792
34793 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
34794 types.
34795
34796 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34797
34798 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
34799 RAID level 1.
34800
34801 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34802
34803 * fs/iso9660.c (grub_iso9660_date): New structure.
34804 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
34805 (grub_iso9660_uuid): New function.
34806
34807 2008-09-05 Bean <bean123ch@gmail.com>
34808
34809 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
34810
34811 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
34812 insensitive bit for names in Win32 and Win32 & DOS namespace.
34813
34814 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
34815
34816 * include/grub/types.h (LONG_MAX): Likewise.
34817
34818 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34819
34820 * util/getroot.c: Include <config.h>.
34821 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
34822 add support for /dev/md/N devices and handle LVM double dash escaping.
34823
34824 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34825
34826 * config.guess: Update to latest version from config git.
34827 * config.sub: Likewise.
34828
34829 2008-09-03 Robert Millan <rmh@aybabtu.com>
34830
34831 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
34832 `disk->total_sectors'.
34833
34834 2008-09-01 Colin D Bennett <colin@gibibit.com>
34835
34836 * include/grub/normal.h: Fixed incorrect comment for
34837 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
34838
34839 2008-09-01 Colin D Bennett <colin@gibibit.com>
34840
34841 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
34842 values with defines.
34843
34844 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
34845 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
34846 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
34847 (GRUB_VBE_MODEATTR_COLOR): Likewise.
34848 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
34849 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
34850 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
34851 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
34852 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
34853 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
34854 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
34855 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
34856 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
34857 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
34858 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
34859 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
34860 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
34861 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
34862 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
34863
34864 2008-08-31 Robert Millan <rmh@aybabtu.com>
34865
34866 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
34867 declaration.
34868 (grub_multiboot): Fix a few warnings.
34869
34870 2008-08-31 Robert Millan <rmh@aybabtu.com>
34871
34872 * loader/i386/pc/multiboot.c: Update comment not to say that
34873 boot_device support is unimplemented.
34874
34875 2008-08-31 Robert Millan <rmh@aybabtu.com>
34876
34877 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
34878 or memory map support are unimplemented.
34879
34880 2008-08-31 Colin D Bennett <colin@gibibit.com>
34881
34882 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
34883
34884 2008-08-31 Colin D Bennett <colin@gibibit.com>
34885
34886 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
34887 total video memory in 'vbeinfo' output; show color format details for
34888 each video mode.
34889
34890 2008-08-30 Pavel Roskin <proski@gnu.org>
34891
34892 * util/genmoddep.c: Remove for real this time.
34893 * DISTLIST: Remove util/genmoddep.c.
34894
34895 2008-08-30 Robert Millan <rmh@aybabtu.com>
34896
34897 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
34898 as required by Multiboot spec (it was already 4-byte aligned, but
34899 only by chance).
34900
34901 2008-08-29 Pavel Roskin <proski@gnu.org>
34902
34903 * kern/powerpc/ieee1275/crt0.S: Rename to ...
34904 * kern/powerpc/ieee1275/startup.S: ... this.
34905 * conf/powerpc-ieee1275.rmk: Adjust for the above.
34906 * DISTLIST: Likewise.
34907
34908 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
34909 grub/cpu/kernel.h. Add start label for consistency with other
34910 platforms. Add grub_prefix immediately after start. Add jump
34911 to the code after grub_prefix.
34912 * include/grub/powerpc/kernel.h: Provide valid values for
34913 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
34914
34915 2008-08-29 Bean <bean123ch@gmail.com>
34916
34917 * configure.ac: Change host_os to cygwin for mingw.
34918 (asprintf): New check for function.
34919
34920 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
34921 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
34922
34923 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
34924 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
34925 sync, sleep and grub_util_get_disk_size for mingw.
34926
34927 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
34928 to get size in mingw.
34929 (open_device): Use flag O_BINARY if it's defined.
34930 (find_root_device): Add dummy code for mingw.
34931
34932 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
34933 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
34934 (get_scsi_disk_name): Return 0 for mingw.
34935
34936 * util/hostfs.c: #include <grub/util/misc.h>.
34937 (grub_hostfs_open): Use "rb" flag to open file, use
34938 grub_util_get_disk_size to get disk size for mingw.
34939
34940 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
34941 (asprintf): New function if HAVE_ASPRINTF is not set.
34942 (sync): New function for mingw.
34943 (sleep): Likewise.
34944 (grub_util_get_disk_size): Likewise.
34945
34946 2008-08-28 Pavel Roskin <proski@gnu.org>
34947
34948 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34949 kern/time.c.
34950
34951 2008-08-28 Robert Millan <rmh@aybabtu.com>
34952
34953 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
34954
34955 2008-08-28 Robert Millan <rmh@aybabtu.com>
34956
34957 Change find_grub_drive() syntax so it doesn't prevent it from
34958 detecting NULL names as errors.
34959
34960 * util/biosdisk.c (find_grub_drive): Move free slot search code
34961 from here ...
34962 (find_free_slot): ... to here.
34963 (read_device_map): Use find_free_slot() to search for free slots.
34964
34965 2008-08-27 Marco Gerards <marco@gnu.org>
34966
34967 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
34968 (scsi_mod_SOURCES): New variable.
34969 (scsi_mod_CFLAGS): Likewise
34970 (scsi_mod_LDFLAGS): Likewise.
34971
34972 * disk/scsi.c: New file.
34973
34974 * include/grub/scsi.h: Likewise.
34975
34976 * include/grub/scsicmd.h: Likewise.
34977
34978 * disk/ata.c: Include <grub/scsi.h>.
34979 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
34980 instead.
34981 (grub_ata_iterate): Skip ATAPI devices.
34982 (grub_ata_open): Only handle ATAPI devices.
34983 (struct grub_atapi_read): Removed.
34984 (grub_atapi_readsector): Likewise.
34985 (grub_ata_read): No longer handle ATAPI devices.
34986 (grub_ata_write): Likewise.
34987 (grub_atapi_iterate): New function.
34988 (grub_atapi_read): Likewise.
34989 (grub_atapi_write): Likewise.
34990 (grub_atapi_open): Likewise.
34991 (grub_atapi_close): Likewise.
34992 (grub_atapi_dev): New variable.
34993 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
34994 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
34995
34996 * include/grub/disk.h (enum grub_disk_dev_id): Add
34997 `GRUB_DISK_DEVICE_SCSI_ID'.
34998
34999 2008-08-26 Robert Millan <rmh@aybabtu.com>
35000
35001 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35002 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35003 descriptive.
35004
35005 2008-08-23 Bean <bean123ch@gmail.com>
35006
35007 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35008 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35009 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35010 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35011 dm_nv.mod.
35012 (raid5rec_mod_SOURCES): New macro.
35013 (raid5rec_mod_CFLAGS): Likewise.
35014 (raid5rec_mod_LDFLAGS): Likewise.
35015 (raid6rec_mod_SOURCES): Likewise.
35016 (raid6rec_mod_CFLAGS): Likewise.
35017 (raid6rec_mod_LDFLAGS): Likewise.
35018 (mdraid_mod_SOURCES): Likewise.
35019 (mdraid_mod_CFLAGS): Likewise.
35020 (mdraid_mod_LDFLAGS): Likewise.
35021 (dm_nv_mod_SOURCES): Likewise.
35022 (dm_nv_mod_CFLAGS): Likewise.
35023 (dm_nv_mod_LDFLAGS): Likewise.
35024
35025 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35026 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35027 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35028
35029 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35030 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35031
35032 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35033
35034 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35035
35036 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35037
35038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35039
35040 * disk/raid5_recover.c: New file.
35041
35042 * disk/raid6_recover.c: Likewise.
35043
35044 * disk/mdraid_linux.c: Likewise.
35045
35046 * disk/dmraid_nvidia.c: Likewise.
35047
35048 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35049 ULONG_MAX.
35050
35051 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35052 calculate the size of raid device.
35053 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35054 different layout of raid5.
35055 (grub_raid_scan_device): Remove code specific to mdraid.
35056 (grub_raid_list): New variable.
35057 (free_array): New function.
35058 (grub_raid_register): Likewise.
35059 (grub_raid_unregister): Likewise.
35060 (grub_raid_rescan): Likewise.
35061 (GRUB_MOD_INIT): Don't iterate device here.
35062 (GRUB_MOD_FINI): Use free_array to release resource.
35063
35064 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35065 (grub_raid5_recover_func_t): New function variable type.
35066 (grub_raid6_recover_func_t): Likewise.
35067 (grub_raid5_recover_func): New variable.
35068 (grub_raid6_recover_func): Likewise.
35069 (grub_raid_register): New function.
35070 (grub_raid_unregister): Likewise.
35071 (grub_raid_rescan): Likewise.
35072 (grub_raid_block_xor): Likewise.
35073
35074 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35075 (CMD_CRC): New macro.
35076 (part): Removed.
35077 (read_file): Handle device as well as file.
35078 (cmd_crc): New function.
35079 (fstest): Handle multiple disks.
35080 (options): Remove part, raw and long, add root and diskcount.
35081 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35082 (main): Find the first non option entry and ignore subsequent options,
35083 add handling for the new options, support multiple disks.
35084
35085 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35086
35087 2008-08-23 Bean <bean123ch@gmail.com>
35088
35089 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35090
35091 * genfslist.sh: Ignore kernel.mod.
35092
35093 * genpartmaplist.sh: Likewise.
35094
35095 2008-08-23 Robert Millan <rmh@aybabtu.com>
35096
35097 * util/getroot.c (find_root_device): Skip anything that starts with
35098 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35099
35100 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35101
35102 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35103 * util/grub.d/00_header.in: Allow the administrator to change default
35104 gfxmode via ${GRUB_GFXMODE}.
35105
35106 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35107
35108 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35109
35110 2008-08-21 Robert Millan <rmh@aybabtu.com>
35111
35112 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35113 loader.
35114 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35115 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35116
35117 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35118
35119 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35120 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35121
35122 2008-08-19 Robert Millan <rmh@aybabtu.com>
35123
35124 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35125 (struct grub_virtual_screen): Remove `cursor_color'.
35126 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35127 initialization.
35128 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35129
35130 2008-08-18 Robert Millan <rmh@aybabtu.com>
35131
35132 Unify (identical) linux_normal.c files.
35133 * loader/i386/efi/linux_normal.c: Move from here ...
35134 * loader/linux_normal.c: ... to here. Update all users.
35135 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35136 * loader/i386/ieee1275/linux_normal.c: Likewise.
35137
35138 2008-08-18 Robert Millan <rmh@aybabtu.com>
35139
35140 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35141 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35142 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35143 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35144 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35145 New macros.
35146 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35147 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35148 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35149 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35150 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35151 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35152 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35153 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35154 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35155 portably using grub_getxy().
35156 Replace `-EFI' with `-bzImage' in boot message.
35157
35158 2008-08-17 Robert Millan <rmh@aybabtu.com>
35159
35160 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35161
35162 2008-08-17 Robert Millan <rmh@aybabtu.com>
35163
35164 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35165
35166 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35167 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35168 (grub_machine_mmap_iterate): New function declaration.
35169 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35170 structure.
35171 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35172 macros.
35173
35174 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35175 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35176 Move e820 parsing from here ...
35177 * kern/i386/pc/mmap.c: New file.
35178 (grub_machine_mmap_iterate): ... to here.
35179
35180 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35181 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35182 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35183 (grub_available_iterate): Redeclare to return `void', and redeclare
35184 its hook to use grub_uint64_t as addr and size parameters, and rename
35185 to ...
35186 (grub_machine_mmap_iterate): ... this. Update all users.
35187
35188 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35189 to make it more readable. Rename to ...
35190 (grub_machine_mmap_iterate): ... this.
35191
35192 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35193 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35194 (grub_multiboot): Allocate an extra region after the payload, and fill
35195 it with a Multiboot memory map. Adjust a.out loader to calculate size
35196 with the extra space.
35197 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35198 with the extra space.
35199
35200 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35201
35202 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35203
35204 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35205
35206 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35207 mdate-sh to the list `find' searches for.
35208 * DISTLIST: Regenerated.
35209
35210 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35211
35212 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35213 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35214 genmoddep.awk, gensymlist.sh.in.
35215 (DISTDIRS): Add bus, docs, hook, lib.
35216 * DISTLIST: Regenerated.
35217 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35218
35219 2008-08-16 Robert Millan <rmh@aybabtu.com>
35220
35221 * disk/raid.c (grub_raid_init): Handle/report errors set by
35222 grub_device_iterate().
35223 * disk/lvm.c (grub_lvm_init): Likewise.
35224
35225 2008-08-15 Bean <bean123ch@gmail.com>
35226
35227 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35228 and datehook.mod.
35229 (datetime_mod_SOURCES): New macro.
35230 (datetime_mod_CFLAGS): Likewise.
35231 (datetime_mod_LDFLAGS): Likewise.
35232 (date_mod_SOURCES): Likewise.
35233 (date_mod_CFLAGS): Likewise.
35234 (date_mod_LDFLAGS): Likewise.
35235 (datehook_mod_SOURCES): Likewise.
35236 (datehook_mod_CFLAGS): Likewise.
35237 (datehook_mod_LDFLAGS): Likewise.
35238
35239 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35240 and datehook.mod.
35241 (datetime_mod_SOURCES): New macro.
35242 (datetime_mod_CFLAGS): Likewise.
35243 (datetime_mod_LDFLAGS): Likewise.
35244 (date_mod_SOURCES): Likewise.
35245 (date_mod_CFLAGS): Likewise.
35246 (date_mod_LDFLAGS): Likewise.
35247 (datehook_mod_SOURCES): Likewise.
35248 (datehook_mod_CFLAGS): Likewise.
35249 (datehook_mod_LDFLAGS): Likewise.
35250
35251 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35252 and datehook.mod.
35253 (datetime_mod_SOURCES): New macro.
35254 (datetime_mod_CFLAGS): Likewise.
35255 (datetime_mod_LDFLAGS): Likewise.
35256 (date_mod_SOURCES): Likewise.
35257 (date_mod_CFLAGS): Likewise.
35258 (date_mod_LDFLAGS): Likewise.
35259 (datehook_mod_SOURCES): Likewise.
35260 (datehook_mod_CFLAGS): Likewise.
35261 (datehook_mod_LDFLAGS): Likewise.
35262
35263 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35264 and datehook.mod.
35265 (datetime_mod_SOURCES): New macro.
35266 (datetime_mod_CFLAGS): Likewise.
35267 (datetime_mod_LDFLAGS): Likewise.
35268 (date_mod_SOURCES): Likewise.
35269 (date_mod_CFLAGS): Likewise.
35270 (date_mod_LDFLAGS): Likewise.
35271 (datehook_mod_SOURCES): Likewise.
35272 (datehook_mod_CFLAGS): Likewise.
35273 (datehook_mod_LDFLAGS): Likewise.
35274
35275 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35276 and datehook.mod.
35277 (datetime_mod_SOURCES): New macro.
35278 (datetime_mod_CFLAGS): Likewise.
35279 (datetime_mod_LDFLAGS): Likewise.
35280 (date_mod_SOURCES): Likewise.
35281 (date_mod_CFLAGS): Likewise.
35282 (date_mod_LDFLAGS): Likewise.
35283 (datehook_mod_SOURCES): Likewise.
35284 (datehook_mod_CFLAGS): Likewise.
35285 (datehook_mod_LDFLAGS): Likewise.
35286
35287 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35288
35289 * commands/date.c: New file.
35290
35291 * hook/datehook.c: Likewise.
35292
35293 * include/grub/lib/datetime.h: Likewise.
35294
35295 * include/grub/i386/cmos.h: Likewise.
35296
35297 * lib/datetime.c: Likewise.
35298
35299 * lib/i386/datetime.c: Likewise.
35300
35301 * lib/efi/datetime.c: Likewise.
35302
35303 2008-08-14 Robert Millan <rmh@aybabtu.com>
35304
35305 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35306 (grub_mkelfimage_SOURCES): New variable.
35307 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35308
35309 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35310 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35311 * conf/powerpc-ieee1275.rmk: Likewise.
35312 * conf/i386-ieee1275.rmk: Likewise.
35313
35314 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35315 * kern/i386/coreboot/init.c: Likewise.
35316
35317 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35318 with `<grub/cpu/kernel.h>'.
35319 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35320 to ...
35321 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35322 * kern/i386/coreboot/startup.S: Likewise.
35323
35324 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35325 (GRUB_MOD_GAP): Remove.
35326 * include/grub/powerpc/kernel.h: New file.
35327 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35328 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35329 * include/grub/i386/kernel.h: New file.
35330 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35331 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35332 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35333
35334 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35335 `grub-mkelfimage'.
35336 Use --directory when invoking grub_mkimage.
35337
35338 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35339 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35340 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35341 and GRUB_KERNEL_CPU_PREFIX.
35342
35343 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35344
35345 * include/grub/err.h (grub_err_printf): New function prototype.
35346 * util/misc.c (grub_err_printf): New function.
35347 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35348 grub_printf.
35349 * kern/err.c (grub_print_error): Use grub_err_printf.
35350
35351 2008-08-13 Robert Millan <rmh@aybabtu.com>
35352
35353 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35354
35355 2008-08-13 Robert Millan <rmh@aybabtu.com>
35356
35357 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35358 boot entry.
35359
35360 2008-08-12 Robert Millan <rmh@aybabtu.com>
35361
35362 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35363 of the relocation code from here ...
35364 (grub_multiboot): ... to here.
35365 (forward_relocator, backward_relocator): Move from here ...
35366 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35367 (grub_multiboot_backward_relocator): ... to here.
35368 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35369 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35370 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35371 (grub_multiboot_forward_relocator_end)
35372 (grub_multiboot_backward_relocator)
35373 (grub_multiboot_backward_relocator_end): New variables.
35374
35375 2008-08-12 Bean <bean123ch@gmail.com>
35376
35377 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35378
35379 2008-08-11 Robert Millan <rmh@aybabtu.com>
35380
35381 * kern/i386/linuxbios/startup.S: Move from here ...
35382 * kern/i386/coreboot/startup.S: ... to here.
35383
35384 * kern/i386/linuxbios/init.c: Move from here ...
35385 * kern/i386/coreboot/init.c: ... to here.
35386
35387 * kern/i386/linuxbios/table.c: Move from here ...
35388 * kern/i386/coreboot/mmap.c: ... to here.
35389
35390 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35391
35392 2008-08-11 Robert Millan <rmh@aybabtu.com>
35393
35394 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35395 errors. Leave it to the upper layer to handle them.
35396
35397 2008-08-09 Christian Franke <franke@computer.org>
35398
35399 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35400 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35401 Install `grub.d/10_windows' only on Cygwin.
35402 * configure.ac: Add subst of `target_os'.
35403 Check `target_os' also before setting TARGET_OBJ2ELF.
35404 Add `--enable-grub-pe2elf'.
35405
35406 2008-08-08 Robert Millan <rmh@aybabtu.com>
35407
35408 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35409 (grub_last_time): Change type to grub_uint64_t.
35410 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35411 (grub_disk_close): Likewise.
35412
35413 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35414 (run_menu): Migrate code from to using grub_get_time_ms().
35415
35416 * util/misc.c (grub_get_time_ms): New function.
35417
35418 2008-08-08 Marco Gerards <marco@gnu.org>
35419
35420 * disk/ata.c (grub_ata_regget): Change return type to
35421 `grub_uint8_t'.
35422 (grub_ata_regget2): Likewise.
35423 (grub_ata_wait_status): New function.
35424 (grub_ata_wait_busy): Removed function, updated all users to use
35425 `grub_ata_wait_status'.
35426 (grub_ata_wait_drq): Likewise.
35427 (grub_ata_cmd): New function.
35428 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35429 error handling.
35430 (grub_ata_pio_write): Add error handling.
35431 (grub_atapi_identify): Likewise.
35432 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35433 handling.
35434 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35435 handling. Actually use the detected registers. Reorder the
35436 detection logic such that it is easier to read.
35437 (grub_ata_pciinit): Do not assign the same ID to each controller.
35438 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35439 handling.
35440 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35441
35442 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35443
35444 2008-08-08 Marco Gerards <marco@gnu.org>
35445
35446 * NEWS: Update.
35447
35448 2008-08-07 Bean <bean123ch@gmail.com>
35449
35450 * include/grub/x86_64/pci.h: New file.
35451
35452 2008-08-07 Christian Franke <franke@computer.org>
35453
35454 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35455 (TIMER2_GATE): Likewise.
35456 (grub_pit_wait): Add enable/disable of the timer2 gate
35457 bit of port 0x61. This fixes a possible infinite loop.
35458
35459 2008-08-07 Bean <bean123ch@gmail.com>
35460
35461 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35462 kern/i386/tsc.c and kern/i386/pit.c.
35463
35464 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35465 x86_64 platform.
35466
35467 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35468 <grub/i386/tsc.h>.
35469
35470 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35471
35472 2008-08-07 Bean <bean123ch@gmail.com>
35473
35474 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35475
35476 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35477
35478 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35479 multiple inclusion. Add #include <grub/types.h>.
35480
35481 2008-08-06 Christian Franke <franke@computer.org>
35482
35483 * conf/common.rmk: Build and install `10_windows'.
35484 * util/grub.d/10_windows.in: New script.
35485
35486 2008-08-06 Pavel Roskin <proski@gnu.org>
35487
35488 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35489
35490 2008-08-06 Robert Millan <rmh@aybabtu.com>
35491
35492 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35493 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35494
35495 2008-08-06 Bean <bean123ch@gmail.com>
35496
35497 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35498 (grub_pxefs_fs_int): Remove dummy definition.
35499 (grub_pxefs_open): Use data->block_size to store the current block
35500 size setting.
35501 (grub_pxefs_read): Use block size stored in data->block_size. As the
35502 value of grub_pxe_blksize can be changed after the file is opened.
35503
35504 2008-08-06 Bean <bean123ch@gmail.com>
35505
35506 * fs/i386/pc/pxe.c (curr_file): new variable.
35507 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35508 require the dummy internal file system anymore.
35509 (grub_pxefs_read): Removed.
35510 (grub_pxefs_close): Likewise.
35511 (grub_pxefs_fs_int): Likewise.
35512 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35513 connection when we switch file.
35514 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35515
35516 2008-08-06 Robert Millan <rmh@aybabtu.com>
35517
35518 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35519 `halt.mod'.
35520 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35521 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35522
35523 * kern/i386/halt.c: New file.
35524 * kern/i386/reboot.c: Likewise.
35525 * include/grub/i386/reboot.h: Likewise.
35526 * include/grub/i386/halt.h: Likewise.
35527
35528 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35529 Include `<grub/cpu/halt.h>'.
35530 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35531 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35532
35533 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35534 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35535 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35536 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35537 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35538 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35539 from here ...
35540 * include/grub/i386/at_keyboard.h: ... to here.
35541
35542 2008-08-05 Robert Millan <rmh@aybabtu.com>
35543
35544 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35545 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35546 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35547 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35548 `kern/generic/millisleep.c'.
35549
35550 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35551 instead of grub_get_rtc().
35552 (grub_tsc_init): Initialize `tsc_boot_time'.
35553
35554 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35555 (grub_machine_init): Use grub_tsc_init() rather than
35556 installing an RTC-based handler via grub_install_get_time_ms().
35557
35558 * kern/i386/pit.c: New file.
35559 * include/grub/i386/pit.h: Likewise.
35560
35561 2008-08-05 Bean <bean123ch@gmail.com>
35562
35563 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35564
35565 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35566 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35567 (pxe_mod_SOURCES): New macro.
35568 (pxe_mod_CFLAGS): Likewise.
35569 (pxe_mod_LDFLAGS): Likewise.
35570 (pxecmd_mod_SOURCES): Likewise.
35571 (pxecmd_mod_CFLAGS): Likewise.
35572 (pxecmd_mod_LDFLAGS): Likewise.
35573
35574 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35575 (grub_pxe_call): Likewise.
35576
35577 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35578
35579 * commands/i386/pc/pxecmd.c: New file.
35580
35581 * fs/i386/pc/pxe.c: Likewise.
35582
35583 * include/grub/i386/pc/pxe.h: Likewise.
35584
35585 2008-08-05 Bean <bean123ch@gmail.com>
35586
35587 * util/console.c (grub_console_cur_color): New variable.
35588 (grub_console_standard_color): Likewise.
35589 (grub_console_normal_color): Likewise.
35590 (grub_console_highlight_color): Likewise.
35591 (color_map): Likewise.
35592 (use_color): Likewise.
35593 (NUM_COLORS): New macro.
35594 (grub_ncurses_setcolorstate): Handle color properly.
35595 (grub_ncurses_setcolor): Don't change color here, just remember the
35596 settings, color will be set in grub_ncurses_setcolorstate.
35597 (grub_ncurses_getcolor): New function.
35598 (grub_ncurses_init): Initialize color pairs.
35599 (grub_ncurses_term): New member grub_ncurses_getcolor.
35600
35601 2008-08-05 Colin D Bennett <colin@gibibit.com>
35602
35603 High resolution timer support. Implemented for x86 CPUs using TSC.
35604 Extracted generic grub_millisleep() so it's linked in only as needed.
35605 This requires a Pentium compatible CPU; if the RDTSC instruction is
35606 not supported, then it falls back on the generic grub_get_time_ms()
35607 implementation that uses the machine's RTC.
35608
35609 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35610 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35611 `kern/generic/millisleep.c'.
35612
35613 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35614 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35615
35616 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35617 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35618
35619 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35620
35621 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35622 `kern/generic/millisleep.c'.
35623
35624 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35625
35626 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35627
35628 * kern/generic/rtc_get_time_ms.c: New file.
35629
35630 * kern/generic/millisleep.c: New file.
35631
35632 * kern/misc.c: Don't include
35633 <kern/time.h> anymore.
35634 (grub_millisleep_generic): Removed.
35635
35636 * commands/sleep.c (grub_interruptible_millisleep): Uses
35637 grub_get_time_ms() instead of grub_get_rtc().
35638
35639 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35640 function.
35641 (grub_cpu_is_cpuid_supported): New inline function.
35642 (grub_cpu_is_tsc_supported): New inline function.
35643 (grub_tsc_init): New function prototype.
35644 (grub_tsc_get_time_ms): New function prototype.
35645
35646 * kern/i386/tsc.c (grub_get_time_ms): New file.
35647
35648 * include/grub/time.h: Include <grub/types.h.
35649 (grub_millisleep_generic): Removed.
35650 (grub_get_time_ms): New prototype.
35651 (grub_install_get_time_ms): New prototype.
35652 (grub_rtc_get_time_ms): New prototype.
35653
35654 * kern/time.c (grub_get_time_ms): New function.
35655 (grub_install_get_time_ms): New function.
35656
35657 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35658 <grub/time.h> anymore.
35659 (grub_millisleep): Removed.
35660 (grub_machine_init): Call grub_tsc_init.
35661
35662 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35663 get_time_ms() implementation.
35664
35665 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35666 (ieee1275_get_time_ms): New function.
35667 (grub_machine_init): Install get_time_ms() implementation.
35668
35669 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35670 (grub_machine_init): Call grub_tsc_init().
35671 (grub_millisleep): Removed.
35672
35673 * kern/ieee1275/init.c (grub_millisleep): Removed.
35674 (grub_machine_init): Install ieee1275_get_time_ms()
35675 implementation.
35676 (ieee1275_get_time_ms): New function.
35677 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35678 real work.
35679
35680 2008-08-05 Marco Gerards <marco@gnu.org>
35681
35682 * disk/ata.c: Include <grub/pci.h>.
35683 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35684 (grub_ata_initialize): Rewritten.
35685 (grub_ata_device_initialize): New function.
35686
35687 2008-08-04 Pavel Roskin <proski@gnu.org>
35688
35689 * kern/main.c: Include grub/mm.h.
35690
35691 2008-08-04 Robert Millan <rmh@aybabtu.com>
35692
35693 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35694 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35695 corruption problem).
35696
35697 2008-08-04 Robert Millan <rmh@aybabtu.com>
35698
35699 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35700 warnings introduced in my last commit.
35701
35702 2008-08-03 Robert Millan <rmh@aybabtu.com>
35703
35704 Make PCI available on all i386 architectures.
35705
35706 * include/grub/i386/pc/pci.h: Move from here ...
35707 * include/grub/i386/pci.h: ... to here.
35708
35709 * include/grub/i386/pc/pci.h: Remove.
35710 * include/grub/i386/efi/pci.h: Remove.
35711 * include/grub/x86_64/efi/pci.h: Remove.
35712
35713 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35714 `<grub/cpu/pci.h>'.
35715
35716 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35717 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35718 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35719
35720 * conf/i386-ieee1275.rmk: Likewise.
35721
35722 2008-08-03 Robert Millan <rmh@aybabtu.com>
35723
35724 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35725 (grub_console_setcursor): Make it possible to set cursor off.
35726
35727 2008-08-03 Robert Millan <rmh@aybabtu.com>
35728
35729 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35730 of modules instead of assuming which platform provides what.
35731 * util/update-grub.in: Likewise.
35732
35733 2008-08-03 Robert Millan <rmh@aybabtu.com>
35734
35735 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35736 instead of `grub_install_dos_part' to determine whether a drive needs
35737 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35738 because it can be overridden when loading GRUB via Multiboot).
35739
35740 2008-08-02 Robert Millan <rmh@aybabtu.com>
35741
35742 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35743
35744 2008-08-02 Robert Millan <rmh@aybabtu.com>
35745
35746 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35747 of informational grub_dprintf() calls.
35748
35749 2008-08-02 Robert Millan <rmh@aybabtu.com>
35750
35751 * disk/memdisk.c (memdisk_size): Don't initialize.
35752 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35753
35754 * include/grub/i386/pc/kernel.h
35755 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35756 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35757 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35758 (grub_arch_memdisk_size): Remove.
35759
35760 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35761 field (was only used to transfer a constant). Add `type' field to
35762 support multiple module types.
35763 (grub_module_iterate): New function.
35764
35765 * kern/device.c (grub_device_open): Do not hide error messages
35766 when grub_disk_open() fails. Use grub_print_error() instead.
35767
35768 * kern/i386/pc/init.c (grub_arch_modules_addr)
35769 (grub_arch_memdisk_size): Remove functions.
35770 (grub_arch_modules_addr): Return the module address in high memory
35771 (now that it isn't copied anymore).
35772
35773 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
35774 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
35775 decompression routine (grub_total_module_size already includes that
35776 now). Don't copy modules back to low memory.
35777
35778 * kern/main.c: Include `<grub/mm.h>'.
35779 (grub_load_modules): Split out (and use) ...
35780 (grub_module_iterate): ... this function, which iterates through
35781 module objects and runs a hook.
35782 Comment out grub_mm_init_region() call, as it would cause non-ELF
35783 modules to be overwritten.
35784
35785 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
35786 the memdisk image in its own region, make it part of the module list.
35787 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
35788 (main): Parse --memdisk|-m option, and pass user-provided path as
35789 parameter to generate_image().
35790 (add_segments): Pass `memdisk_path' down to load_modules().
35791 (load_modules): Embed memdisk image in module section when requested.
35792 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
35793 `header.type' instead of `header.offset'.
35794
35795 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
35796 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
35797 (memdisk_mod_LDFLAGS): New variables.
35798 * conf/i386-coreboot.rmk: Likewise.
35799 * conf/i386-ieee1275.rmk: Likewise.
35800
35801 2008-08-02 Robert Millan <rmh@aybabtu.com>
35802
35803 * loader/i386/pc/multiboot.c (playground, forward_relocator)
35804 (backward_relocator): New variables. Used to allocate and relocate
35805 the payload, respectively.
35806 (grub_multiboot_load_elf32): Load into heap instead of requested
35807 address, install the appropriate relocator code in each bound of
35808 the payload, and set the entry point such that
35809 grub_multiboot_real_boot() will jump to one of them.
35810
35811 * kern/i386/loader.S (grub_multiboot_payload_size)
35812 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35813 (grub_multiboot_payload_entry_offset): New variables.
35814 (grub_multiboot_real_boot): Set cpu context to what the relocator
35815 expects, and jump to the relocator instead of the payload.
35816
35817 * include/grub/i386/loader.h (grub_multiboot_payload_size)
35818 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35819 (grub_multiboot_payload_entry_offset): Export.
35820
35821 2008-08-01 Bean <bean123ch@gmail.com>
35822
35823 * normal/menu_entry.c (editor_getline): Don't return the original
35824 string as result, as it will be released by lexer once it has done
35825 using it.
35826
35827 2008-08-01 Robert Millan <rmh@aybabtu.com>
35828
35829 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
35830 within menuentries, not before them.
35831 util/grub.d/10_hurd.in: Likewise.
35832
35833 2008-08-01 Bean <bean123ch@gmail.com>
35834
35835 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
35836 (bufio_mod_SOURCES): New macro.
35837 (bufio_mod_CFLAGS): Likewise.
35838 (bufio_mod_LDFLAGS): Likewise.
35839
35840 * include/grub/bufio.h: New file.
35841
35842 * io/bufio.c: Likewise.
35843
35844 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
35845 (grub_video_reader_png): Use grub_buffile_open to open file.
35846
35847 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
35848 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
35849
35850 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
35851 (grub_video_reader_tga): Use grub_buffile_open to open file.
35852
35853 * font/manager.c: Include <grub/bufio.h>.
35854 (add_font): Use grub_buffile_open to open file.
35855
35856 2008-07-31 Robert Millan <rmh@aybabtu.com>
35857
35858 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
35859 ELF segments, use a macro for arbitrarily accessing any of them instead
35860 of preparing a pointer that allows access to one at a time.
35861 (grub_multiboot_load_elf64): Likewise.
35862
35863 2008-07-31 Bean <bean123ch@gmail.com>
35864
35865 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
35866 GRUB_KERNEL_MACHINE_DATA_END.
35867
35868 2008-07-30 Robert Millan <rmh@aybabtu.com>
35869
35870 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
35871 Increase from 0x50 to 0x60.
35872 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
35873 use UUIDs to identify the root drive for them. If that's not
35874 possible, abort.
35875 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
35876 check, for cross-disk installs.
35877
35878 2008-07-30 Robert Millan <rmh@aybabtu.com>
35879
35880 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
35881 is non-empty, use it to set the `prefix' environment variable instead
35882 of the usual approach.
35883 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
35884 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
35885 environment variable instead of dummy make_install_device().
35886
35887 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
35888 (start): Insert a data section, with `grub_prefix' variable.
35889 * kern/i386/linuxbios/startup.S: Likewise.
35890
35891 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
35892 New variable reference.
35893 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
35894 New macro. Defines offset of `grub_prefix' within startup.S (relative
35895 to `start').
35896 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
35897 section within startup.S (relative to `start').
35898 * include/grub/i386/coreboot/kernel.h: Likewise.
35899
35900 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
35901 Overwrite grub_prefix with its contents, at the beginning of the
35902 first segment.
35903 (main): Understand -p|--prefix.
35904
35905 2008-07-30 Robert Millan <rmh@aybabtu.com>
35906
35907 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
35908
35909 2008-07-30 Robert Millan <rmh@aybabtu.com>
35910
35911 * term/i386/pc/vga_text.c (grub_console_cls): Use
35912 grub_console_gotoxy() to go back to beginning of the screen.
35913 Found by Patrick Georgi <patrick.georgi@coresystems.de>
35914
35915 2008-07-29 Christian Franke <franke@computer.org>
35916
35917 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
35918 Add conversion of emulated mount points on Cygwin.
35919
35920 2008-07-29 Christian Franke <franke@computer.org>
35921
35922 * util/update-grub.in: Add a check for admin
35923 group on Cygwin.
35924 Remove old `grub.cfg.new' before creation.
35925 Add `-f' to `mv' to handle the different filesystem
35926 semantics of Windows.
35927
35928 2008-07-29 Bean <bean123ch@gmail.com>
35929
35930 * normal/main.c (get_line): Fix buffer overflow bug.
35931
35932 2008-07-28 Robert Millan <rmh@aybabtu.com>
35933
35934 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
35935 (struct grub_apple_header): New struct. Describes the layout of
35936 the partmap header.
35937 (apple_partition_map_iterate): Check the header magic as well as the
35938 partition magic (which was already being checked).
35939
35940 2008-07-28 Pavel Roskin <proski@gnu.org>
35941
35942 * genmk.rb: Add a warning to the beginning of the output that
35943 it's a generated file and should not be edited.
35944
35945 2008-07-28 Robert Millan <rmh@aybabtu.com>
35946
35947 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
35948 with the same number are found, just use issue a warning with
35949 grub_dprintf(), as this error has been reported to be non-fatal.
35950
35951 2008-07-27 Robert Millan <rmh@aybabtu.com>
35952
35953 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
35954 information.
35955
35956 2008-07-27 Bean <bean123ch@gmail.com>
35957
35958 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
35959 (grub_fat_find_dir): Ignore case when comparing filename.
35960
35961 2008-07-27 Bean <bean123ch@gmail.com>
35962
35963 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
35964 smallino, as it's more descriptive, and i8count can be confused with
35965 the other field count.
35966 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
35967 inode type.
35968
35969 2008-07-27 Bean <bean123ch@gmail.com>
35970
35971 * commands/crc.c: New file.
35972
35973 * lib/crc.c: Likewise.
35974
35975 * include/grub/lib/crc.h: Likewise.
35976
35977 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
35978
35979 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
35980 (hexdump): Move this function to ...
35981
35982 * lib/hexdump.c: ... here.
35983
35984 * include/grub/hexdump.h: Renamed to ...
35985
35986 * include/grub/lib/hexdump.h: ... this.
35987
35988 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
35989
35990 * util/grub-editenv.c: Likewise.
35991
35992 * include/envblk.h: Renamed to ...
35993
35994 * include/lib/envblk.h: ... this.
35995
35996 * util/envblk.c: Renamed to ...
35997
35998 * lib/envblk.c: ... this.
35999
36000 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36001 lib/hexdump.c.
36002 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36003 (pkglib_MODULES): Add crc.mod.
36004 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36005 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36006 (crc_mod_SOURCES): New macro.
36007 (crc_mod_CFLAGS): Likewise.
36008 (crc_mod_LDFLAGS): Likewise.
36009
36010 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36011
36012 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36013
36014 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36015
36016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36017
36018 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36019
36020 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36021
36022 * commands/help.c: Include <grub/term.h>.
36023 (TERM_WIDTH): Removed. Updated all users.
36024
36025 2008-07-27 Pavel Roskin <proski@gnu.org>
36026
36027 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36028 spurious warnings about a comment within a comment.
36029
36030 2008-07-25 Robert Millan <rmh@aybabtu.com>
36031
36032 * util/getroot.c (find_root_device): Skip devices that match
36033 /dev/dm-[0-9]. This lets the real device be found for any type of
36034 abstraction (LVM, EVMS, RAID..).
36035 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36036 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36037 device is found first, find_root_device() will now skip it.
36038
36039 2008-07-24 Pavel Roskin <proski@gnu.org>
36040
36041 * include/grub/types.h: Use __builtin_bswap32() and
36042 __builtin_bswap64() with gcc 4.3 and newer.
36043
36044 2008-07-24 Christian Franke <franke@computer.org>
36045
36046 * util/i386/pc/grub-install.in: If `--debug' is specified,
36047 pass `--verbose' to grub-setup.
36048 Abort script if make_system_path_relative_to_its_root() fails.
36049
36050 2008-07-24 Bean <bean123ch@gmail.com>
36051
36052 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36053 variable `target_platform' should be `platform'.
36054
36055 2008-07-24 Bean <bean123ch@gmail.com>
36056
36057 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36058 (grub_png_init_fixed_block): New function.
36059 (grub_png_decode_image_data): Handle fixed huffman code compression.
36060
36061 2008-07-24 Bean <bean123ch@gmail.com>
36062
36063 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36064 (grub_pe2elf_SOURCES): New macro.
36065 (CLEANFILES): Add grub-pe2elf.
36066
36067 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36068 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36069 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36070 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36071 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36072 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36073 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36074 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36075 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36076 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36077 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36078 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36079 (GRUB_PE32_DT_FUNCTION): Likewise.
36080 (GRUB_PE32_REL_I386_DIR32): Likewise.
36081 (GRUB_PE32_REL_I386_REL32): Likewise.
36082 (grub_pe32_symbol): New structure.
36083 (grub_pe32_reloc): Likewise.
36084
36085 * util/grub-pe2elf.c: New file.
36086
36087 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36088 start symbol in non pc platform.
36089
36090 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36091
36092 The following patches are from Christian Franke.
36093
36094 * include/grub/dl.h: Remove .previous, gas supports this only
36095 for ELF format.
36096
36097 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36098 Remove .type, gas supports this only for ELF format.
36099
36100 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36101 nullbytes in symbol table. This fixes an infinite loop if table is
36102 zero filled.
36103
36104 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36105 TARGET_IMG_LDFLAGS and EXEEXT.
36106
36107 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36108 TARGET_IMG_LDFLAGS_AC.
36109 (grub_CHECK_STACK_ARG_PROBE): New function.
36110
36111 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36112
36113 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36114
36115 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36116 to set TARGET_IMG_LD* accordingly.
36117 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36118 Add call to grub_CHECK_STACK_ARG_PROBE.
36119 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36120
36121 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36122
36123 * genmk.rb: Add EXEEXT to CLEANFILES.
36124
36125 2008-07-23 Robert Millan <rmh@aybabtu.com>
36126
36127 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36128 define the codes for arrows and lines used for the menu).
36129 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36130 as well.
36131
36132 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36133 fonts, because the latter are too slow.
36134
36135 2008-07-21 Bean <bean123ch@gmail.com>
36136
36137 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36138 a20. Run keyboard test last, as it will cause macbook to halt.
36139
36140 2008-07-18 Pavel Roskin <proski@gnu.org>
36141
36142 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36143 load foreign architecture modules correctly anyway. Keep
36144 support for loading host architecture modules, whether we
36145 compile them or not.
36146
36147 2008-07-17 Pavel Roskin <proski@gnu.org>
36148
36149 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36150 change target_cpu. The compiler default can mismatch target_cpu
36151 in any case.
36152
36153 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36154 * kern/efi/efi.c: Likewise.
36155
36156 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36157 target compiler is functional.
36158 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36159 are set up.
36160
36161 * configure.ac: Default to efi platform for x86_64-apple. Allow
36162 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36163 adjustments from the rest, only do them if target is not
36164 explicitly given. Merge other adjustments with the final sanity
36165 check. Remove an extraneous check for supported CPU. Be
36166 specific which CPU and which platform is not supported.
36167
36168 * configure.ac: Default to pc platform for x86_64.
36169
36170 2008-07-17 Robert Millan <rmh@aybabtu.com>
36171
36172 Partial LinuxBIOS -> Coreboot rename.
36173
36174 * conf/i386-linuxbios.rmk: Renamed to ...
36175 * conf/i386-coreboot.rmk: ... this.
36176 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36177 * configure.ac: Accept "coreboot" as input platform (but maintain
36178 compatibility with "linuxbios").
36179 * include/grub/i386/linuxbios: Renamed to ...
36180 * include/grub/i386/coreboot: ... this.
36181
36182 2008-07-17 Bean <bean123ch@gmail.com>
36183
36184 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36185 (appleldr_mod_SOURCE): New variable.
36186 (appleldr_mod_CFLAGS): Likewise.
36187 (appleldr_mod_LDFLAGS): Likewise.
36188 (pci_mod_SOURCES): Likewise.
36189 (pci_mod_CFLAGS): Likewise.
36190 (pci_mod_LDFLAGS): Likewise.
36191 (lspci_mod_SOURCES): Likewise.
36192 (lspci_mod_CFLAGS): Likewise.
36193 (lspci_mod_LDFLAGS): Likewise.
36194
36195 * conf/x86_64-efi.rmk: New file.
36196
36197 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36198 macro.
36199 (grub_efidisk_write): Likewise.
36200
36201 * include/efi/api.h (efi_call_0): New macro.
36202 (efi_call_1): Likewise.
36203 (efi_call_2): Likewise.
36204 (efi_call_3): Likewise.
36205 (efi_call_4): Likewise.
36206 (efi_call_5): Likewise.
36207 (efi_call_6): Likewise.
36208
36209 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36210 grub_rescue_cmd_chainloader.
36211
36212 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36213 (grub_pe32_optional_header): Change some fields based on i386 or
36214 x86_64 platform.
36215 (GRUB_PE32_PE32_MAGIC): Likewise.
36216
36217 * include/grub/efi/uga_draw.h: New file.
36218
36219 * include/grub/elf.h (STN_ABS): New constant.
36220 (R_X86_64_NONE): Relocation constant for x86_64.
36221 (R_X86_64_64): Likewise.
36222 (R_X86_64_PC32): Likewise.
36223 (R_X86_64_GOT32): Likewise.
36224 (R_X86_64_PLT32): Likewise.
36225 (R_X86_64_COPY): Likewise.
36226 (R_X86_64_GLOB_DAT): Likewise.
36227 (R_X86_64_JUMP_SLOT): Likewise.
36228 (R_X86_64_RELATIVE): Likewise.
36229 (R_X86_64_GOTPCREL): Likewise.
36230 (R_X86_64_32): Likewise.
36231 (R_X86_64_32S): Likewise.
36232 (R_X86_64_16): Likewise.
36233 (R_X86_64_PC16): Likewise.
36234 (R_X86_64_8): Likewise.
36235 (R_X86_64_PC8): Likewise.
36236
36237 * include/grub/i386/efi/pci.h: New file.
36238
36239 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36240 Change it value based on platform.
36241 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36242 (GRUB_E820_RAM): Likewise.
36243 (GRUB_E820_RESERVED): Likewise.
36244 (GRUB_E820_ACPI): Likewise.
36245 (GRUB_E820_NVS): Likewise.
36246 (GRUB_E820_EXEC_CODE): Likewise.
36247 (GRUB_E820_MAX_ENTRY): Likewise.
36248 (grub_e820_mmap): New structure.
36249 (linux_kernel_header): Change the efi field according to different
36250 kernel version, also field from linux_kernel_header.
36251
36252 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36253
36254 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36255 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36256 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36257 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36258 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36259 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36260 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36261 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36262 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36263 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36264
36265 * include/grub/x86_64/efi/kernel.h: New file.
36266
36267 * include/grub/x86_64/efi/loader.h: Likewise.
36268
36269 * include/grub/x86_64/efi/machine.h: Likewise.
36270
36271 * include/grub/x86_64/efi/pci.h: Likewise.
36272
36273 * include/grub/x86_64/efi/time.h: Likewise.
36274
36275 * include/grub/x86_64/linux.h: Likewise.
36276
36277 * include/grub/x86_64/setjmp.h: Likewise.
36278
36279 * include/grub/x86_64/time.h: Likewise.
36280
36281 * include/grub/x86_64/types.h: Likewise.
36282
36283 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36284 GRUB_TARGET_SIZEOF_VOID_P.
36285
36286 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36287 (grub_efi_locate_handle): Likewise.
36288 (grub_efi_open_protocol): Likewise.
36289 (grub_efi_set_text_mode): Likewise.
36290 (grub_efi_stall): Likewise.
36291 (grub_exit): Likewise.
36292 (grub_reboot): Likewise.
36293 (grub_halt): Likewise.
36294 (grub_efi_exit_boot_services): Likewise.
36295 (grub_get_rtc): Likewise.
36296
36297 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36298 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36299 (grub_efi_allocate_pages): Wrap efi calls.
36300 (grub_efi_free_pages): Wrap efi calls.
36301 (grub_efi_get_memory_map): Wrap efi calls.
36302
36303 * kern/x86_64/dl.c: New file.
36304
36305 * kern/x86_64/efi/callwrap.S: Likewise.
36306
36307 * kern/x86_64/efi/startup.S: Likewise.
36308
36309 * loader/efi/appleloader.c: Likewise.
36310
36311 * loader/efi/chainloader.c (cmdline): New variable.
36312 (grub_chainloader_unload): Wrap efi calls.
36313 (grub_chainloader_boot): Likewise.
36314 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36315 command line.
36316
36317 * loader/efi/chainloader_normal.c (chainloader_command):
36318 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36319 command line.
36320
36321 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36322 method.
36323 (grub_e820_add_region): New function.
36324 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36325 booting.
36326 (grub_find_video_card): New function.
36327 (grub_linux_setup_video): New function.
36328 (grub_rescue_cmd_linux): Probe for video information.
36329
36330 * normal/x86_64/setjmp.S: New file.
36331
36332 * term/efi/console.c (map_char): New function.
36333 (grub_console_putchar): Map unicode char.
36334 (grub_console_checkkey): Wrap efi calls.
36335 (grub_console_getkey): Likewise.
36336 (grub_console_getwh): Likewise.
36337 (grub_console_gotoxy): Likewise.
36338 (grub_console_cls): Likewise.
36339 (grub_console_setcolorstate): Likewise.
36340 (grub_console_setcursor): Likewise.
36341
36342 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36343
36344 2008-07-16 Pavel Roskin <proski@gnu.org>
36345
36346 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36347 format strings.
36348
36349 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36350 pointer, not an integer. This fixes a warning and prevents
36351 precision loss on 64-bit systems.
36352 (relocate_addresses): Remove unneeded cast.
36353
36354 2008-07-15 Pavel Roskin <proski@gnu.org>
36355
36356 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36357
36358 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36359
36360 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36361 Fix comparison between signed and unsigned.
36362
36363 * include/grub/i386/ieee1275/console.h: Declare
36364 grub_console_init() and grub_console_fini().
36365
36366 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36367 It's empty and unused.
36368
36369 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36370 beginning to avoid warnings with some compilers.
36371
36372 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36373 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36374
36375 2008-07-14 Pavel Roskin <proski@gnu.org>
36376
36377 * kern/env.c (grub_register_variable_hook): Don't copy empty
36378 string, it leaks memory. Pass "" to grub_env_set(), it should
36379 handle constant strings.
36380
36381 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36382 * commands/cmp.c (grub_cmd_cmp): Likewise.
36383 * kern/dl.c (grub_dl_flush_cache): Likewise.
36384 (grub_dl_load_core): Likewise.
36385 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36386 (grub_elf64_load_phdrs): Likewise.
36387
36388 2008-07-13 Pavel Roskin <proski@gnu.org>
36389
36390 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36391 between signed and unsigned.
36392 (LzmaEnc_Finish): Fix warning about an unused parameter.
36393
36394 2008-07-13 Bean <bean123ch@gmail.com>
36395
36396 * Makefile.in (enable_lzo): New rule.
36397
36398 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36399
36400 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36401
36402 * boot/i386/pc/lnxboot.S: #include <config.h>.
36403
36404 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36405 its value according to the compression algorithm used, lzo or lzma.
36406
36407 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36408 compression algorithm according to configure macro.
36409
36410 * kern/i386/pc/startup.S (codestart): Likewise.
36411
36412 * kern/i386/pc/lzma_decode.S: New file.
36413
36414 * include/grub/lib/LzFind.h: Likewise.
36415
36416 * include/grub/lib/LzHash.h: Likewise.
36417
36418 * include/grub/lib/LzmaDec.h: Likewise.
36419
36420 * include/grub/lib/LzmaEnc.h: Likewise.
36421
36422 * include/grub/lib/LzmaTypes.h: Likewise.
36423
36424 * lib/LzFind.c: Likewise.
36425
36426 * lib/LzmaDec.c: Likewise.
36427
36428 * lib/LzmaEnc.c: Likewise.
36429
36430 2008-07-13 Bean <bean123ch@gmail.com>
36431
36432 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36433 (grub_ext4_extent_header): New structure.
36434 (grub_ext4_extent): Likewise.
36435 (grub_ext4_extent_idx): Likewise.
36436 (grub_ext4_find_leaf): New function.
36437 (grub_ext2_read_block): Handle extents.
36438
36439 2008-07-12 Robert Millan <rmh@aybabtu.com>
36440
36441 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36442
36443 2008-07-11 Robert Millan <rmh@aybabtu.com>
36444
36445 * util/grub.d/40_custom.in: New file. Example on how to add custom
36446 entries to /etc/grub.d.
36447 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36448 40_custom (implicitly, by merging all the grub.d rules).
36449
36450 2008-07-11 Pavel Roskin <proski@gnu.org>
36451
36452 * commands/read.c (grub_getline): Fix invalid memory access.
36453 Don't add newline to the variable value.
36454
36455 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36456 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36457 (serial_hw_get_port): Check validity of the port number.
36458 (grub_cmd_serial): Check return value of serial_hw_get_port().
36459
36460 2008-07-07 Pavel Roskin <proski@gnu.org>
36461
36462 * boot/i386/pc/diskboot.S (notification_string): Replace
36463 "Loading kernel" with just "loading". This is shorter, less
36464 confusing and saves a few bytes for possible future changes.
36465
36466 2008-07-05 Pavel Roskin <proski@gnu.org>
36467
36468 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36469 size for ATAPI devices, they are undefined. Output sector
36470 number in decimal form.
36471
36472 * disk/ata.c: Use named constants for status bits.
36473
36474 2008-07-04 Pavel Roskin <proski@gnu.org>
36475
36476 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36477 grub_addr_t before casting it to the void pointer to fix a
36478 warning. Non-addressable regions are discarded earlier.
36479 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36480 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36481 (check_signature): Don't shadow table_header.
36482 (grub_linuxbios_table_iterate): Cast numeric constants to
36483 grub_linuxbios_table_header_t.
36484 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36485 grub_stop().
36486
36487 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36488 prevent warnings.
36489
36490 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36491 pointer, which can cause warnings. Support 64-bit addresses.
36492
36493 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36494 of sizeof(long). This fixes PowerPC image generation on x86_64.
36495
36496 2008-07-04 Robert Millan <rmh@aybabtu.com>
36497
36498 This fixes a performance issue when pc & gpt partmap iterators
36499 didn't abort iteration even after our hook found what it was
36500 looking for (often causing expensive probes of non-existent drives).
36501
36502 Some callers relied on previous buggy behaviour, since they would
36503 raise an error when their own hooks caused early abortion of its
36504 iteration.
36505
36506 * kern/device.c (grub_device_open): Improve error message.
36507 * disk/lvm.c (grub_lvm_open): Likewise.
36508 * disk/raid.c (grub_raid_open): Likewise.
36509
36510 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36511 when hook requests it, independently of grub_errno.
36512 (pc_partition_map_probe): Do not fail when find_func() caused
36513 early abortion of pc_partition_map_iterate().
36514
36515 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36516 when hook requests it, independently of grub_errno.
36517 (gpt_partition_map_probe): Do not fail when find_func() caused
36518 early abortion of gpt_partition_map_iterate().
36519
36520 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36521 when hook requests it, independently of grub_errno. Do not fail when
36522 part_map_iterate_hook() caused early abortion of p->iterate().
36523
36524 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36525 when grub_partition_iterate() returned with non-zero.
36526
36527 2008-07-03 Pavel Roskin <proski@gnu.org>
36528
36529 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36530 like we do in grub_ata_pio_read().
36531 (grub_ata_readwrite): Always write individual sectors. Fix the
36532 sector count for the remainder.
36533 (grub_ata_write): Enable writing to ATA devices. Correctly
36534 report error for ATAPI devices.
36535
36536 2008-07-02 Pavel Roskin <proski@gnu.org>
36537
36538 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36539 warning.
36540
36541 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36542 for every read sector, we already increment it for the whole
36543 batch. This fixes reading more than 256 sectors at once.
36544
36545 * util/grub-editenv.c (cmd_info): Cast argument to long
36546 explicitly. ptrdiff_t reduces to int on i386.
36547
36548 * util/grub-editenv.c (main): Be specific which parameter is
36549 missing.
36550
36551 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36552 (memdisk): Make memdisk_orig_addr a pointer.
36553
36554 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36555 for file offsets, use grub_off_t instead. Fix printf format
36556 warnings.
36557
36558 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36559 there. Real unexpected warnings should not drown in the noise
36560 about known problems.
36561
36562 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36563 grub_disk_addr_t for memory addresses.
36564
36565 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36566 explicitly to fix a warning.
36567
36568 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36569
36570 * Makefile.in (MODULE_LDFLAGS): New variable.
36571 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36572 the linker accepts --build-id=none.
36573 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36574 MODULE_LDFLAGS.
36575 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36576
36577 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36578 those in Linux XFS code. Provide a way to access 64-bit parent
36579 inode.
36580 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36581 the end of struct grub_xfs_dir_header.
36582
36583 2008-07-02 Bean <bean123ch@gmail.com>
36584
36585 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36586 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36587 and GRUB_IEEE1275_FLAG_NO_ANSI.
36588
36589 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36590 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36591 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36592
36593 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36594 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36595
36596 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36597 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36598
36599 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36600 esc sequence on non ANSI terminal.
36601 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36602
36603 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36604 beginning of file.
36605
36606 2008-07-02 Bean <bean123ch@gmail.com>
36607
36608 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36609 (grub_editenv_SOURCES): New variable.
36610 (pkglib_MODULES): Add loadenv.mod.
36611 (loadenv_mod_SOURCES): New variable.
36612 (loadenv_mod_CFLAGS): Likewise.
36613 (loadenv_mod_LDFLAGS): Likewise.
36614
36615 * include/grub/envblk.h: New file.
36616
36617 * util/envblk.c: New file.
36618
36619 * util/grub-editenv.c: New file.
36620
36621 * commands/loadenv.c: New file.
36622
36623 2008-07-01 Pavel Roskin <proski@gnu.org>
36624
36625 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36626 not unsigned char. This fixes warnings and is consistent with
36627 other tags.
36628
36629 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36630
36631 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36632
36633 * term/tparm.c (analyze): Always set *popcount.
36634
36635 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36636 cast to fix a warning.
36637
36638 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36639 cast to suppress a warning.
36640
36641 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36642 grub_fshelp_read_file() expects.
36643
36644 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36645 write uuid as a 32-bit value in CPU byte order, so declare and
36646 use it as such.
36647
36648 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36649 long if the format specifier expects it.
36650 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36651 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36652 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36653 long to fix a warning.
36654 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36655 grub_dprintf() arguments to fix warnings.
36656
36657 2008-06-30 Pavel Roskin <proski@gnu.org>
36658
36659 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36660 install_bsd_part immediately before core.img is embedded or
36661 modified on disk. This fixes core.img verification if core.img
36662 cannot be embedded.
36663
36664 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36665 core_path to calculate the blocklist.
36666 Patch from Javier Martín <lordhabbit@gmail.com>
36667
36668 2008-06-29 Robert Millan <rmh@aybabtu.com>
36669
36670 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36671 block to disk block.
36672 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36673 Patch from Niels Böhm <bitbucket@arcor.de>
36674
36675 2008-06-29 Robert Millan <rmh@aybabtu.com>
36676
36677 * util/update-grub_lib.in (font_path): Search for fonts in
36678 /boot/grub first, which is more likely to be readable (we aren't
36679 deciding where fonts live, just looking for them).
36680
36681 2008-06-26 Pavel Roskin <proski@gnu.org>
36682
36683 * util/biosdisk.c (read_device_map): Don't leave dead map
36684 entries for devices failing stat() check.
36685
36686 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36687 core_path_dev for the core.img path on the target device.
36688
36689 2008-06-26 Robert Millan <rmh@aybabtu.com>
36690
36691 * disk/fs_uuid.c: New file.
36692 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36693 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36694 (fs_uuid_mod_LDFLAGS): New variables.
36695 * include/grub/disk.h (grub_disk_dev_id): Add
36696 `GRUB_DISK_DEVICE_UUID_ID'.
36697 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36698 implement iterate().
36699
36700 2008-06-26 Robert Millan <rmh@aybabtu.com>
36701
36702 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36703 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36704 Linux image includes no initrd.
36705
36706 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36707
36708 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36709 call to resolve the core image location that effectively appended the
36710 name twice.
36711
36712 2008-06-21 Robert Millan <rmh@aybabtu.com>
36713
36714 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36715 call from here ...
36716
36717 * util/grub.d/10_hurd.in: ... to here ...
36718 * util/grub.d/10_linux.in: ... and here.
36719
36720 2008-06-19 Robert Millan <rmh@aybabtu.com>
36721
36722 * kern/main.c (grub_main): Export `prefix' variable immediately
36723 after it has been set by grub_machine_set_prefix().
36724
36725 2008-06-19 Robert Millan <rmh@aybabtu.com>
36726
36727 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36728 search result when not saving to variable, not the other way around.
36729 When saving to variable, abort iteration as soon as a match is found.
36730
36731 2008-06-19 Robert Millan <rmh@aybabtu.com>
36732
36733 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36734 check for partition that provides /boot/grub. Its logic is flawed,
36735 as it prevents prepare_grub_to_access_device() from being called
36736 multiple times.
36737
36738 2008-06-19 Robert Millan <rmh@aybabtu.com>
36739
36740 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36741 "insmod" command directly when abstraction modules are needed,
36742 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36743 since it had already been processed).
36744
36745 2008-06-19 Pavel Roskin <proski@gnu.org>
36746
36747 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36748 changed. This is needed in case GRUB_LIBDIR changes.
36749 * conf/i386-ieee1275.rmk: Likewise.
36750 * conf/i386-linuxbios.rmk: Likewise.
36751 * conf/i386-pc.rmk: Likewise.
36752 * conf/powerpc-ieee1275.rmk: Likewise.
36753
36754 2008-06-18 Pavel Roskin <proski@gnu.org>
36755
36756 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36757 kernel_elf_symlist.c to symlist.c for consistency with other
36758 architectures. Update all users.
36759 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36760
36761 2008-06-18 Robert Millan <rmh@aybabtu.com>
36762
36763 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36764 it in prefix.
36765
36766 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
36767 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
36768 a RAID device, run setup() for all members independently on whether
36769 LVM abstraction is being used.
36770 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
36771 If grub-mkimage has set `*install_dos_part == -2', don't override this
36772 value.
36773 Perform *install_dos_part adjustments independently on whether
36774 we're embedding or not.
36775 Clarify error message when image is too big for embedding.
36776 Remove duplicate *install_dos_part stanza.
36777
36778 2008-06-17 Robert Millan <rmh@aybabtu.com>
36779
36780 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
36781 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
36782 variables.
36783 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
36784 values in grub_ofconsole_normal_color and
36785 grub_ofconsole_highlight_color (they're not directly related to
36786 background and foreground).
36787 (grub_ofconsole_setcolorstate): Extract background and foreground
36788 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
36789
36790 2008-06-17 Robert Millan <rmh@aybabtu.com>
36791
36792 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
36793 /boot/grub for the check in last commit, not /boot (they could be
36794 different partitions).
36795
36796 2008-06-16 Robert Millan <rmh@aybabtu.com>
36797
36798 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
36799 asked to setup access for the same partition that provides /boot,
36800 don't bother using UUIDs since our root already has the value we
36801 want.
36802
36803 2008-06-16 Robert Millan <rmh@aybabtu.com>
36804
36805 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
36806 I2O devices.
36807 Patch from Sven Mueller <sven@debian.org>.
36808
36809 2008-06-16 Robert Millan <rmh@aybabtu.com>
36810
36811 * util/update-grub.in: Check for $EUID instead of $UID.
36812 Reported by Vincent Zweije.
36813
36814 2008-06-16 Bean <bean123ch@gmail.com>
36815
36816 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
36817 (grub_ext2_read_block): Likewise.
36818 (grub_ext2_read_inode): Likewise.
36819 (grub_ext2_mount): Likewise.
36820 (grub_ext2_close): Likewise.
36821 (grub_ext3_get_journal): Removed.
36822
36823 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
36824 (grub_reiserfs_read_symlink): Likewise.
36825 (grub_reiserfs_mount): Likewise.
36826 (grub_reiserfs_open): Likewise.
36827 (grub_reiserfs_read): Likewise.
36828 (grub_reiserfs_close): Likewise.
36829 (grub_reiserfs_get_journal): Removed.
36830
36831 * fs/fshelp.c (grub_fshelp_read): Removed.
36832 (grub_fshelp_map_block): Likewise.
36833
36834 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
36835 (grub_fshelp_journal): Likewise.
36836 (grub_fshelp_read): Likewise.
36837 (grub_fshelp_map_block): Likewise.
36838
36839 2008-06-16 Pavel Roskin <proski@gnu.org>
36840
36841 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
36842 floating point anymore.
36843 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
36844
36845 2008-06-15 Pavel Roskin <proski@gnu.org>
36846
36847 * commands/ls.c (grub_ls_list_files): Use integer calculations
36848 for human readable format, avoid floating point use.
36849 * kern/misc.c (grub_ftoa): Remove.
36850 (grub_vsprintf): Remove floating point support.
36851
36852 2008-06-15 Robert Millan <rmh@aybabtu.com>
36853
36854 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
36855 devices.
36856 Reported by Max Vozeler.
36857
36858 2008-06-15 Robert Millan <rmh@aybabtu.com>
36859
36860 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
36861 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
36862 skipped later.
36863 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
36864 the beginning of the prefix.
36865
36866 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
36867 It is assumed that if we have a memdisk, grub-mkimage has set
36868 grub_prefix to include the "(memdisk)" drive in it.
36869
36870 2008-06-15 Robert Millan <rmh@aybabtu.com>
36871
36872 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
36873 Initialize keyboard controller after registering the terminal, so that
36874 grub_printf() can be called from grub_keyboard_controller_init().
36875
36876 2008-06-15 Robert Millan <rmh@aybabtu.com>
36877
36878 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
36879 extent-btree which is written as big endian on disk.
36880 Reported by Alain Greppin <al@chilibi.org>.
36881
36882 2008-06-14 Robert Millan <rmh@aybabtu.com>
36883
36884 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
36885 * util/i386/pc/grub-install.in (modules): Likewise.
36886
36887 2008-06-13 Pavel Roskin <proski@gnu.org>
36888
36889 * commands/ls.c (grub_ls_list_files): Fix format warnings.
36890
36891 2008-06-13 Bean <bean123ch@gmail.com>
36892
36893 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
36894
36895 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
36896
36897 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
36898 to indicate sparse block.
36899
36900 2008-06-12 Pavel Roskin <proski@gnu.org>
36901
36902 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
36903 number, grub_fshelp_read() does it for us.
36904
36905 * fs/fshelp.c (grub_fshelp_read): New function. Implement
36906 linear disk read with journal translation.
36907 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
36908 * include/grub/fshelp.h: Declare grub_fshelp_read().
36909
36910 2008-06-09 Pavel Roskin <proski@gnu.org>
36911
36912 * fs/minix.c (grub_minix_mount): Handle error reading
36913 superblock.
36914
36915 2008-06-08 Robert Millan <rmh@aybabtu.com>
36916
36917 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
36918 don't append the RAID prefix afterwards.
36919 Reported by Clint Adams.
36920
36921 2008-06-08 Robert Millan <rmh@aybabtu.com>
36922
36923 Based on description from Pavel:
36924 * kern/disk.c (grub_disk_check_range): Rename to ...
36925 (grub_disk_adjust_range): ... this. Add a comment explaining the
36926 tasks performed by this function.
36927
36928 2008-06-08 Robert Millan <rmh@aybabtu.com>
36929
36930 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
36931 `num_serial' (for consistency with other variables).
36932 (struct grub_ntfs_data): Add `uuid' member.
36933 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
36934 (grub_ntfs_uuid): New function.
36935 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
36936
36937 2008-06-07 Pavel Roskin <proski@gnu.org>
36938
36939 * util/biosdisk.c (open_device): Revert last change to the
36940 function, it broke installation. The sector needs to be
36941 different dependent on which device is opened.
36942
36943 2008-06-06 Robert Millan <rmh@aybabtu.com>
36944
36945 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
36946 rest of GRUB, and breakage doesn't happen if its value were modified.
36947
36948 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36949 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
36950 a constant (same value).
36951 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
36952 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
36953
36954 2008-06-06 Robert Millan <rmh@aybabtu.com>
36955
36956 * util/biosdisk.c (open_device): Do not modify sector offset when
36957 accessing a partition. kern/disk.c already handles this for us.
36958
36959 2008-06-06 Robert Millan <rmh@aybabtu.com>
36960
36961 * util/grub-emu.c (grub_machine_init): Move code in this function from
36962 here ...
36963 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
36964 segfault in case grub_printf() is called).
36965
36966 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
36967 grub_probe. Update all users not to explicitly add it again.
36968 (grub_device): New variable; contains corresponding device for grubdir.
36969 (fs_module, partmap_module, devabstraction_module): Pass
36970 `--device ${grub_device}' to grub_probe to avoid traversing /dev
36971 every time.
36972
36973 2008-06-05 Robert Millan <rmh@aybabtu.com>
36974
36975 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
36976 is found, print it (same layout as with labels).
36977
36978 2008-06-04 Robert Millan <rmh@aybabtu.com>
36979
36980 * util/biosdisk.c (get_drive): Rename to ...
36981 (find_grub_drive): ... this. Update all users.
36982
36983 (get_os_disk): Rename to ...
36984 (convert_system_partition_to_system_disk): ... this. Update all users.
36985
36986 (find_drive): Rename to ...
36987 (find_system_device): ... this. Update all users.
36988
36989 2008-06-04 Robert Millan <rmh@aybabtu.com>
36990
36991 * util/biosdisk.c (get_os_disk): Handle IDA devices.
36992 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36993 (make_device_map): Likewise.
36994
36995 2008-06-01 Robert Millan <rmh@aybabtu.com>
36996
36997 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
36998 before dereferencing it.
36999
37000 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37001 union with fat12/fat16-specific ones. Add some new fields, including
37002 `num_serial' for both versions.
37003 (struct grub_fat_data): Add `uuid' member.
37004 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37005 names. Initialize `data->uuid' using `num_serial'.
37006 (grub_fat_uuid): New function.
37007 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37008
37009 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37010 (grub_reiserfs_uuid): New function.
37011 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37012 member.
37013
37014 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37015 (grub_xfs_uuid): New function.
37016 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37017
37018 2008-06-01 Robert Millan <rmh@aybabtu.com>
37019
37020 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37021 code that is backward compatible with pre-uuid search command.
37022
37023 2008-05-31 Robert Millan <rmh@aybabtu.com>
37024
37025 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37026 floppies after everything else, to ensure floppy drive isn't accessed
37027 unnecessarily (patch from Bean).
37028
37029 2008-05-31 Robert Millan <rmh@aybabtu.com>
37030
37031 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37032 not print device names when we were asked to set a variable.
37033
37034 2008-05-31 Robert Millan <rmh@aybabtu.com>
37035
37036 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37037 using "cursor-on" and "cursor-off" commands (understood at least by
37038 the Open Firmware flavour on OLPC).
37039
37040 2008-05-31 Michael Gorven <michael@gorven.za.net>
37041
37042 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37043 on and off sequences.
37044
37045 2008-05-31 Robert Millan <rmh@aybabtu.com>
37046
37047 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37048 * util/update-grub.in: Likewise.
37049
37050 2008-05-30 Pavel Roskin <proski@gnu.org>
37051
37052 * util/biosdisk.c (linux_find_partition): Simplify logic and
37053 make the code more universal. Keep special processing for
37054 devfs, but use a simple rule for all other devices. If the
37055 device ends with a number, append 'p' and the partition number.
37056 Otherwise, append only the partition number.
37057
37058 2008-05-30 Robert Millan <rmh@aybabtu.com>
37059
37060 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37061 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37062 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37063 the `root' parameter to Linux.
37064
37065 2008-05-30 Robert Millan <rmh@aybabtu.com>
37066
37067 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37068 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37069 --fs_uuid with --fs-uuid.
37070 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37071 all filesystems support them).
37072
37073 2008-05-30 Robert Millan <rmh@aybabtu.com>
37074
37075 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37076 grub_printf() flags, since we're printing in units of 2 bytes.
37077
37078 2008-05-30 Robert Millan <rmh@aybabtu.com>
37079
37080 * util/grub.d/00_header.in: Remove obsolete comment referencing
37081 convert_system_path_to_grub_path().
37082 * util/update-grub.in: Likewise.
37083 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37084 (convert_system_path_to_grub_path): Add a warning message explaining
37085 that this function is deprecated. Rely on is_path_readable_by_grub()
37086 for the readability checks.
37087 (font_path): Use is_path_readable_by_grub() for the readability
37088 check rather than convert_system_path_to_grub_path().
37089
37090 2008-05-30 Robert Millan <rmh@aybabtu.com>
37091
37092 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37093 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37094 converting it first.
37095 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37096 grub.cfg for access to font file, and afterwards call it again to set
37097 the root device.
37098
37099 2008-05-30 Robert Millan <rmh@aybabtu.com>
37100
37101 * commands/search.c (options): Add --fs_uuid option.
37102 (search_fs_uuid): New function.
37103 (grub_cmd_search): Fix --set argument passing.
37104 Use search_fs_uuid() when requested via --fs_uuid.
37105 (grub_search_init): Update help message.
37106 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37107 and redeclare it as an array of 16-bit words.
37108 (grub_ext2_uuid): New function.
37109 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37110 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37111 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37112 (GRUB_DEVICE_BOOT_UUID): New variables.
37113 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37114 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37115 whenever possible.
37116 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37117 just assume `root' variable has the right value.
37118 * util/grub.d/10_linux.in: Likewise.
37119 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37120 via PRINT_FS_UUID.
37121 (main): Recognise `-t fs_uuid' argument.
37122
37123 2008-05-30 Robert Millan <rmh@aybabtu.com>
37124
37125 * util/biosdisk.c (map): Redefine structure to hold information
37126 about GRUB drive name.
37127 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37128 drive names.
37129 (call_hook): Remove.
37130 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37131 member. Assume drive has partitions.
37132 (grub_util_biosdisk_open): Access device names via `.device' struct
37133 member.
37134 (open_device): Likewise.
37135 (find_drive): Likewise.
37136 (read_device_map): Adjust map[] usage to match the new struct
37137 definition. Don't check for duplicates (still possible, but not cheap
37138 anymore).
37139 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37140 (make_device_name): Remove assumption of BIOS-like drive names.
37141
37142 2008-05-30 Pavel Roskin <proski@gnu.org>
37143
37144 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37145 compiling execute.c doesn't need grub_script.tab.h anymore.
37146 (normal/command.c_DEPENDENCIES): Likewise.
37147 (normal/function.c_DEPENDENCIES): Likewise.
37148 * conf/i386-ieee1275.rmk: Likewise.
37149 * conf/i386-linuxbios.rmk: Likewise.
37150 * conf/i386-pc.rmk: Likewise.
37151 * conf/powerpc-ieee1275.rmk: Likewise.
37152 * conf/sparc64-ieee1275.rmk: Likewise.
37153
37154 2008-05-29 Pavel Roskin <proski@gnu.org>
37155
37156 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37157 when scanning metadata for volume group name.
37158
37159 * include/grub/script.h: Don't include grub_script.tab.h. It's
37160 a generated file, which may only be included from the files with
37161 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37162 use union YYSTYPE, as the later allows forward declaration.
37163 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37164
37165 2008-05-29 Robert Millan <rmh@aybabtu.com>
37166
37167 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37168 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37169 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37170 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37171 scan codes.
37172
37173 2008-05-29 Robert Millan <rmh@aybabtu.com>
37174
37175 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37176 control key combinations.
37177
37178 2008-05-29 Robert Millan <rmh@aybabtu.com>
37179
37180 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37181 * util/ieee1275/grub-install.in: ... to here.
37182 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37183 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37184 (grub_install_SOURCES): Likewise.
37185
37186 2008-05-29 Robert Millan <rmh@aybabtu.com>
37187
37188 * fs/affs.c: Update copyright year.
37189 * fs/ext2.c: Likewise.
37190 * fs/fshelp.c: Likewise.
37191 * fs/hfsplus.c: Likewise.
37192 * fs/ntfs.c: Likewise.
37193 * fs/xfs.c: Likewise.
37194 * include/grub/fshelp.h: Likewise.
37195 * util/grub-mkdevicemap.c: Likewise.
37196
37197 2008-05-28 Robert Millan <rmh@aybabtu.com>
37198
37199 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37200 might need to be fatfs to support some firmware implementations
37201 (e.g. OFW or EFI).
37202
37203 2008-05-28 Robert Millan <rmh@aybabtu.com>
37204
37205 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37206 devices.
37207 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37208 (make_device_map): Likewise.
37209
37210 2008-05-20 Bean <bean123ch@gmail.com>
37211
37212 * fs/fshelp.c (grub_fshelp_map_block): New function.
37213 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37214 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37215
37216 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37217 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37218 (grub_fshelp_journal): New structure.
37219 (grub_fshelp_map_block): New function prototype.
37220 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37221 (grub_fshelp_map_block): Likewise.
37222
37223 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37224 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37225 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37226 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37227 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37228 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37229 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37230 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37231 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37232 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37233 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37234 (grub_ext2_sblock): New members for journal support.
37235 (grub_ext3_journal_header): New structure.
37236 (grub_ext3_journal_revoke_header): Likewise.
37237 (grub_ext3_journal_block_tag): Likewise.
37238 (grub_ext3_journal_sblock): Likewise.
37239 (grub_fshelp_node): New members logfile and journal.
37240 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37241 grub_fshelp_map_block to get real block number.
37242 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37243 number.
37244 (grub_ext2_read_inode): Likewise.
37245 (grub_ext3_get_journal): New function.
37246 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37247 (grub_ext2_close): Release memory used by journal.
37248
37249 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37250 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37251 (grub_reiserfs_transaction_header): Renamed to
37252 grub_reiserfs_description_block, replace field data with real_blocks.
37253 (grub_reiserfs_commit_block): New structure.
37254 (grub_reiserfs_data): New member journal.
37255 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37256 number.
37257 (grub_reiserfs_read_symlink): Likewise.
37258 (grub_reiserfs_iterate_dir): Likewise.
37259 (grub_reiserfs_open): Likewise.
37260 (grub_reiserfs_read): Likewise.
37261 (grub_reiserfs_get_journal): New function.
37262 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37263 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37264 using grub_reiserfs_get_journal.
37265 (grub_reiserfs_close): Release memory used by journal.
37266
37267 * fs/affs.c (grub_affs_read_block): Change block type to
37268 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37269
37270 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37271
37272 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37273
37274 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37275
37276 * fs/udf.c (grub_udf_read_block): Change block type to
37277 grub_disk_addr_t. Use type cast to avoid warning.
37278
37279 * fs/xfs.c (grub_xfs_read_block): Likewise.
37280
37281 2008-05-16 Christian Franke <franke@computer.org>
37282
37283 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37284 to ensure that break with ESC will always work.
37285 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37286 Remove ESC from keyboard queue.
37287
37288 2008-05-16 Christian Franke <franke@computer.org>
37289
37290 * util/biosdisk.c: [__CYGWIN__] Add includes.
37291 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37292 (get_os_disk): Move variable declarations to OS specific
37293 parts to avoid warning.
37294 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37295 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37296 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37297 Cygwin.
37298 * util/getroot.c: [__CYGWIN__] Add includes.
37299 (strip_extra_slashes): Fix "/" case.
37300 [__CYGWIN__] (get_win32_path): New function.
37301 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37302 [__CYGWIN__] (find_root_device): Disable.
37303 [__CYGWIN__] (get_bootsec_serial): New function.
37304 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37305 [__linux__] (grub_guess_root_device): Add early returns to simplify
37306 structure.
37307 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37308 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37309 check for Linux only.
37310
37311 2008-05-15 Bean <bean123ch@gmail.com>
37312
37313 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37314 keyboard hang problem in apple's intel mac.
37315
37316 2008-05-09 Robert Millan <rmh@aybabtu.com>
37317
37318 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37319 devices.
37320 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37321 (make_device_map): Likewise.
37322 Reported by Aurelien Jarno <aurel32@debian.org>
37323
37324 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37325
37326 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37327 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37328 (make_device_map): Output entries for xvd type disks.
37329
37330 2008-05-07 Robert Millan <rmh@aybabtu.com>
37331
37332 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37333 devices.
37334 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37335 (make_device_map): Likewise.
37336 Reported by Roland Dreier <rdreier@cisco.com>
37337
37338 2008-05-07 Robert Millan <rmh@aybabtu.com>
37339
37340 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37341 grub_strstr() call. Correct a few mistakes in failure path handling.
37342
37343 2008-05-06 Robert Millan <rmh@aybabtu.com>
37344
37345 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37346 Do not print a trailing slash (therefore, the root directory is an
37347 empty string).
37348 (convert_system_path_to_grub_path): Do not remove trailing slash
37349 from make_system_path_relative_to_its_root() output.
37350
37351 * util/i386/pc/grub-install.in: Add trailing slash to output from
37352 make_system_path_relative_to_its_root().
37353
37354 2008-05-06 Robert Millan <rmh@aybabtu.com>
37355
37356 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37357 ensures that output lines aren't intermangled with those sent to
37358 stderr (via grub_util_info()).
37359 * util/grub-probe.c (grub_refresh): Likewise.
37360 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37361
37362 2008-05-05 Christian Franke <franke@computer.org>
37363
37364 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37365 Add Cygwin device names.
37366 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37367 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37368 (check_device): Return error instead of success on empty name.
37369 (make_device_map): Move label inside linux specific code to
37370 prevent compiler warning.
37371
37372 2008-04-30 Robert Millan <rmh@aybabtu.com>
37373
37374 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37375 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37376 first boot option.
37377 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37378
37379 2008-04-29 Robert Millan <rmh@aybabtu.com>
37380
37381 * docs/grub.cfg: New file (example GRUB configuration).
37382
37383 2008-04-26 Robert Millan <rmh@aybabtu.com>
37384
37385 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37386 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37387 and `disk/ieee1275/nand.c'.
37388
37389 2008-04-25 Bean <bean123ch@gmail.com>
37390
37391 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37392 i386-linuxbios.
37393
37394 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37395 change the buffer size to 4096 for cdrom device.
37396
37397 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37398 and nand.mod.
37399 (_linux_mod_SOURCES): New variable.
37400 (_linux_mod_CFLAGS): Likewise.
37401 (_linux_mod_LDFLAGS): Likewise.
37402 (linux_mod_SOURCES): Likewise.
37403 (linux_mod_CFLAGS): Likewise.
37404 (linux_mod_LDFLAGS): Likewise.
37405 (nand_mod_SOURCES): Likewise.
37406 (nand_mod_CFLAGS): Likewise.
37407 (nand_mod_LDFLAGS): Likewise.
37408
37409 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37410 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37411 type property. (nand device in olpc don't have this property)
37412
37413 * include/grub/disk.h (grub_disk_dev_id): New macro
37414 GRUB_DISK_DEVICE_NAND_ID.
37415
37416 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37417 function prototype.
37418 (grub_rescue_cmd_initrd): Likewise.
37419
37420 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37421 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37422 ofw_cif_handler and ofw_idt, adjust padding number.
37423
37424 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37425 GRUB_MACHINE_IEEE1275 is defined.
37426
37427 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37428 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37429
37430 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37431 on nested function heap_init.
37432 (grub_upper_mem): New variable for i386-ieee1275.
37433 (grub_get_extended_memory): New function for i386-ieee1275.
37434 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37435
37436 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37437 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37438 property.
37439
37440 * loader/i386/ieee1275/linux.c: New file.
37441
37442 * loader/i386/ieee1275/linux_normal.c: New file.
37443
37444 * disk/ieee1275/nand.c: New file.
37445
37446 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37447
37448 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37449 value.
37450 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37451
37452 2008-04-18 Robert Millan <rmh@aybabtu.com>
37453
37454 Restructures early code path on ieee1275 to unify grub_main() as
37455 the first C function that is executed in every platform.
37456
37457 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37458 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37459 cmain().
37460 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37461 * kern/ieee1275/cmain.c (cmain): Rename to ...
37462 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37463 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37464 at the beginning.
37465
37466 2008-04-18 Robert Millan <rmh@aybabtu.com>
37467
37468 * util/update-grub.in: Fix syntax error when setting
37469 `GRUB_PRELOAD_MODULES'.
37470 Reported by Stephane Chazelas <stephane@artesyncp.com>
37471
37472 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37473
37474 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37475 section into account, newer toolchains generate unique build ids
37476 * configure.ac: remove the test for --build-id=none acceptance,
37477 we want build ids to be preserved
37478 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37479 far from other sections don't cause the raw binary images grow
37480 size
37481
37482 2008-04-15 Robert Millan <rmh@aybabtu.com>
37483
37484 * disk/lvm.c: Update copyright year.
37485 * kern/misc.c: Likewise.
37486
37487 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37488
37489 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37490 there is no memory left for physical volume name.
37491
37492 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37493
37494 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37495 volume name mapping to support bigger than 9 character names properly.
37496
37497 2008-04-13 Robert Millan <rmh@aybabtu.com>
37498
37499 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37500 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37501
37502 2008-04-13 Christian Franke <franke@computer.org>
37503
37504 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37505 to create a floppy emulation boot CD when non emulation mode
37506 does not work.
37507 Enable Joliet CD filesystem extension.
37508
37509 2008-04-13 Robert Millan <rmh@aybabtu.com>
37510
37511 * kern/misc.c (grub_strncat): Fix off-by-one error.
37512 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37513
37514 * kern/env.c (grub_env_context_close): Clear current context, not
37515 previous one.
37516 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37517
37518 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37519
37520 2008-04-13 Robert Millan <rmh@aybabtu.com>
37521
37522 Improve robustness when handling LVM.
37523
37524 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37525 (and leave `*p' unmodified).
37526 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37527 through it.
37528 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37529 iterating through it.
37530 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37531 through it.
37532 (grub_lvm_scan_device): Check the return value (and fail gracefully
37533 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37534 Don't assume `vg->pvs != NULL' when iterating through it.
37535
37536 2008-04-13 Robert Millan <rmh@aybabtu.com>
37537
37538 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37539 * genmk.rb (partmap): New variable.
37540 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37541 (#{partmap}): New target rule.
37542 * genpartmaplist.sh: New file.
37543 * Makefile.in (pkglib_DATA): Add partmap.lst.
37544 (partmap.lst): New target rule.
37545 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37546 modules (including all partition maps), instead of preloading them.
37547
37548 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37549
37550 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37551 `linux-boot-prober' (if installed) to detect other operating
37552 systems which are installed on the computer and add them to
37553 the boot menu.
37554 * conf/common.rmk: Build and install 30_os-prober.
37555
37556 2008-04-12 Robert Millan <rmh@aybabtu.com>
37557
37558 * kern/powerpc/ieee1275/init.c: Move from here ...
37559 * kern/ieee1275/init.c: ... to here. Update all users.
37560
37561 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37562 * kern/ieee1275/cmain.c: ... to here. Update all users.
37563
37564 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37565 * kern/ieee1275/openfw.c: ... to here. Update all users.
37566
37567 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37568 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37569
37570 2008-04-10 Pavel Roskin <proski@gnu.org>
37571
37572 * configure.ac: Always use "_cv_" in cache variables for
37573 compatibility with Autoconf 2.62.
37574
37575 2008-04-07 Robert Millan <rmh@aybabtu.com>
37576
37577 Revert grub/machine/init.h addition by Pavel (since it breaks on
37578 i386-ieee1275 and others):
37579 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37580 * util/powerpc/ieee1275/misc.c: Likewise.
37581
37582 2008-04-07 Robert Millan <rmh@aybabtu.com>
37583
37584 * util/grub-probe.c (probe): Improve error message.
37585
37586 2008-04-07 Robert Millan <rmh@aybabtu.com>
37587
37588 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37589 (this prevents the presence of a bogus entry from ruining the whole
37590 thing).
37591
37592 2008-04-06 Pavel Roskin <proski@gnu.org>
37593
37594 * util/biosdisk.c: Include grub/util/biosdisk.h.
37595 * util/grub-fstest.c (execute_command): Make static.
37596 * util/grub-mkdevicemap.c (check_device): Likewise.
37597 * util/i386/pc/misc.c: Include grub/machine/init.h.
37598 * util/powerpc/ieee1275/misc.c: Likewise.
37599 * util/lvm.c: Include grub/util/lvm.h.
37600 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37601 grub/cache.h.
37602 * util/raid.c: Include grub/util/raid.h.
37603 (grub_util_getdiskname): Make static.
37604
37605 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37606 grub_hostfs_fini(), as they are called from grub_init_all() and
37607 grub_fini_all() respectively. This fixes an infinite loop in
37608 grub-fstest due to double registration of hostfs.
37609 Reported by Christian Franke <Christian.Franke@t-online.de>
37610
37611 2008-04-05 Pavel Roskin <proski@gnu.org>
37612
37613 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37614 all 8 functions. Otherwise, probe function 0 only.
37615
37616 2008-04-04 Pavel Roskin <proski@gnu.org>
37617
37618 * commands/lspci.c (grub_lspci_iter): Print the bus number
37619 correctly.
37620
37621 * commands/lspci.c (grub_pci_classes): Fix typos.
37622 (grub_lspci_iter): Don't print func twice. Print vendor ID
37623 before device ID, as it's normally done.
37624
37625 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37626 Fix signedness warnings.
37627 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37628 Likewise.
37629 * util/ieee1275/get_disk_name.c: Include config.h so that
37630 _GNU_SOURCE is defined and getline() is declared. Mark an
37631 unused argument as such. Fix a signedness warning.
37632
37633 2008-04-02 Pavel Roskin <proski@gnu.org>
37634
37635 * genkernsyms.sh.in: Use more robust assignments for CC and
37636 srcdir. Quote srcdir.
37637 * gensymlist.sh.in: Likewise. Assert at the compile time that
37638 the symbol table is not empty.
37639
37640 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37641 * fs/cpio.c (grub_cpio_read): Likewise.
37642
37643 2008-04-01 Pavel Roskin <proski@gnu.org>
37644
37645 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37646 * disk/host.c (grub_host_open): Likewise.
37647 * disk/loopback.c (grub_loopback_open): Likewise.
37648 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37649 disk->id as in disk/host.c, not a multi-character constant.
37650
37651 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37652 later is obsolete, potentially dangerous and sets a bad example.
37653 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37654 * util/misc.c (grub_util_get_image_size): Likewise.
37655
37656 * disk/loopback.c (options): Improve help for "--partitions".
37657
37658 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37659 options to align them with the short options, e.g. "echo -e".
37660
37661 2008-03-31 Bean <bean123ch@gmail.com>
37662
37663 * video/reader/png.c (grub_png_data): New member is_16bit and
37664 image_data.
37665 (grub_png_decode_image_header): Detect 16 bit png image.
37666 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37667 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37668 (grub_video_reader_png): Release memory occupied by image_data.
37669
37670 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37671 4096 bytes.
37672 (grub_nfs_mount): Skip the test for sector per cluster.
37673
37674 * include/grub/ntfs.h (MAX_SPC): Removed.
37675
37676 2008-03-31 Bean <bean123ch@gmail.com>
37677
37678 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37679 (grub_probe_SOURCES): Add fs/afs.c.
37680 (grub_fstest_SOURCES): Likewise.
37681 (afs_mod_SOURCES): New variable.
37682 (afs_mod_CFLAGS): Likewise.
37683 (afs_mod_LDFLAGS): Likewise.
37684
37685 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37686 (grub_emu_SOURCES): Likewise.
37687
37688 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37689
37690 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37691
37692 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37693
37694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37695
37696 * fs/afs.c: New file.
37697
37698 2008-03-30 Pavel Roskin <proski@gnu.org>
37699
37700 * disk/host.c: Include grub/misc.h to fix a warning.
37701 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37702 warnings about implicit declarations.
37703
37704 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37705 variable.
37706 * include/grub/i386/loader.h: Change declaration of
37707 grub_linux_boot() to match what grub_loader_set() expects.
37708 * util/getroot.c (grub_guess_root_device): Return const char* to
37709 fix a warning.
37710 * util/grub-probe.c (probe): Fix a warning about uninitialized
37711 abstraction_name variable.
37712 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37713 second argument as unused to fix a warning.
37714
37715 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37716 missing grub_error() call.
37717
37718 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37719 2.60 and newer uses it to define datadir.
37720
37721 * commands/sleep.c: Fix warning about implicit declaration.
37722 * disk/memdisk.c: Likewise.
37723 * loader/aout.c: Likewise.
37724 * loader/i386/bsd_normal.c: Likewise.
37725 * util/grub-probe.c: Likewise.
37726
37727 * commands/i386/cpuid.c (has_longmode): Make static.
37728 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37729 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37730
37731 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37732 GDT. This is more robust, as %ds can change.
37733 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37734 calling real_to_prot().
37735 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37736
37737 2008-03-28 Pavel Roskin <proski@gnu.org>
37738
37739 * kern/i386/pc/startup.S: Assert that uncompressed functions
37740 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37741 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37742 code, as they push parts of the code (error handlers) beyond
37743 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37744 code as correctness and size.
37745
37746 2008-03-28 Pavel Roskin <proski@gnu.org>
37747
37748 * kern/i386/pc/startup.S
37749 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37750 data block address to the real mode, keep offset minimal. This
37751 works around a bug in AWARD BIOS on old Athlon systems, which
37752 makes CD detection hang.
37753
37754 2008-03-26 Pavel Roskin <proski@gnu.org>
37755
37756 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37757 const.
37758 * include/grub/normal.h: Add grub_parse_color_name_pair()
37759 declaration.
37760
37761 2008-03-24 Bean <bean123ch@gmail.com>
37762
37763 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37764 (cd_count): Removed.
37765 (cd_drive): New variable.
37766 (grub_biosdisk_get_drive): Don't check for (cdN) device.
37767 (grub_biosdisk_call_hook): Likewise.
37768 (grub_biosdisk_iterate): Change cdrom detection method.
37769 (grub_biosdisk_open): Replace cd_start with cd_drive.
37770 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
37771 detect cdrom device.
37772
37773 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
37774 Removed.
37775 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
37776 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
37777 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
37778 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
37779 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
37780 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
37781 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
37782 (grub_biosdisk_cdrp): New structure.
37783 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
37784
37785 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
37786
37787 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
37788 device.
37789
37790 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
37791 New function.
37792
37793 2008-03-20 Robert Millan <rmh@aybabtu.com>
37794
37795 Remove 2 TiB limit in ata.mod.
37796 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
37797 (grub_ata_dumpinfo): Print sector count with 0x%llx.
37798 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
37799 grub_uint64_t instead of grub_uint32_t.
37800
37801 2008-03-05 Bean <bean123ch@gmail.com>
37802
37803 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
37804 (grub_multiboot): Set boot device.
37805
37806 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
37807
37808 2008-03-02 Bean <bean123ch@gmail.com>
37809
37810 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
37811 symlink_buffer.
37812
37813 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
37814
37815 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
37816 texinfo.tex.
37817
37818 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
37819 modified.
37820
37821 * docs/fdl.texi: New file.
37822
37823 * docs/mdate-sh: New file. Copied from gnulib.
37824 * docs/texinfo.tex: Likewise.
37825
37826 * config.guess: Updated from gnulib.
37827 * install-sh: Likewise.
37828
37829 2008-02-28 Robert Millan <rmh@aybabtu.com>
37830
37831 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
37832 (aout_mod_SOURCES): New variable.
37833 (aout_mod_CFLAGS): Likewise.
37834 (aout_mod_LDFLAGS): Likewise.
37835
37836 * conf/i386-ieee1275.rmk: Likewise.
37837
37838 2008-02-28 Robert Millan <rmh@aybabtu.com>
37839
37840 * util/update-grub.in: Reorganise terminal validity check. Accept
37841 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
37842 Based on suggestion by Franklin PIAT.
37843
37844 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
37845
37846 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
37847 function.
37848 * util/getroot.c (grub_util_check_block_device): New function that
37849 returns the given argument if it is a block device and returns NULL else.
37850 * util/grub-probe.c (argument_is_device): New variable.
37851 (probe): Promote device_name from a variable to an argument. Receive
37852 device_name from grub_util_check_block_device() if path is NULL and from
37853 grub_guess_root_device() else. Do not free() device_name anymore.
37854 (options): Introduce new parameter '-d, --device'.
37855 (main): Add description of the new parameter to the help screen.
37856 Rename path variable to argument. Set argument_is_device if the '-d'
37857 option is given. Pass argument to probe() depending on
37858 argument_is_device.
37859
37860 2008-02-24 Bean <bean123ch@gmail.com>
37861
37862 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
37863 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
37864 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
37865 (GRUB_ISO9660_VOLDESC_PART): Likewise.
37866 (GRUB_ISO9660_VOLDESC_END): Likewise.
37867 (grub_iso9660_primary_voldesc): New member escape.
37868 (grub_iso9660_data): New member joliet.
37869 (grub_iso9660_convert_string): New function.
37870 (grub_iso9660_mount): Detect joliet extension.
37871 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
37872 (grub_iso9660_iso9660_label): Likewise.
37873
37874 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
37875 (grub_setup_SOURCES): Add fs/udf.c.
37876 (grub_fstest_SOURCES): Likewise.
37877 (udf_mod_SOURCES): New variable.
37878 (udf_mod_CFLAGS): Likewise.
37879 (udf_mod_LDFLAGS): Likewise.
37880
37881 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
37882 (grub_emu_SOURCES): Likewise.
37883
37884 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37885
37886 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37887
37888 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37889
37890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37891
37892 * fs/udf.c: New file.
37893
37894 2008-02-24 Robert Millan <rmh@aybabtu.com>
37895
37896 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
37897 (normal/lexer.c_DEPENDENCIES): New variables.
37898 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37899 (normal/lexer.c_DEPENDENCIES): Likewise.
37900 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
37901 (normal/lexer.c_DEPENDENCIES): Likewise.
37902 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
37903 (normal/lexer.c_DEPENDENCIES): Likewise.
37904 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37905 (normal/lexer.c_DEPENDENCIES): Likewise.
37906 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37907 (normal/lexer.c_DEPENDENCIES): Likewise.
37908
37909 2008-02-23 Robert Millan <rmh@aybabtu.com>
37910
37911 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
37912 since they were intended to be in hex. This didn't break previously
37913 because of a bug in gpt_partition_map_iterate() (see below).
37914
37915 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
37916 when checking the validity of GPT header.
37917 Remove `partno', since it always provides the same information as `i'.
37918
37919 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
37920
37921 * include/grub/efi/time.h: Fix a wrong comment.
37922
37923 2008-02-19 Pavel Roskin <proski@gnu.org>
37924
37925 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
37926 message.
37927
37928 2008-02-19 Bean <bean123ch@gmail.com>
37929
37930 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
37931 (aout_mod_SOURCES): New variable.
37932 (aout_mod_CFLAGS): Likewise.
37933 (aout_mod_LDFLAGS): Likewise.
37934 (_bsd_mod_SOURCES): New variable.
37935 (_bsd_mod_CFLAGS): Likewise.
37936 (_bsd_mod_LDFLAGS): Likewise.
37937 (bsd_mod_SOURCES): New variable.
37938 (bsd_mod_CFLAGS): Likewise.
37939 (bsd_mod_LDFLAGS): Likewise.
37940
37941 * include/grub/aout.h: New file.
37942
37943 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
37944
37945 * include/grub/i386/bsd.h: New file.
37946
37947 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
37948 to make it public.
37949
37950 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
37951 function is called, so that it's possible to change it inside the hook.
37952 (grub_elf64_load): Likewise.
37953 (grub_elf_file): Don't close the file if elf header is not found.
37954 (grub_elf_close): Close the file if grub_elf_file fails (The new
37955 grub_elf_file won't close it).
37956 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
37957 (grub_elf64_size): Likewise.
37958
37959 * kern/i386/loader.S (grub_unix_real_boot): New function.
37960
37961 * loader/aout.c: New file.
37962
37963 * loader/i386/bsd.c: New file.
37964
37965 * loader/i386/bsd_normal.c: New file.
37966
37967 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
37968
37969 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
37970 can test other formats.
37971
37972 2008-02-19 Robert Millan <rmh@aybabtu.com>
37973
37974 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
37975 (grub_gpt_partition_type_empty): Redefine with macro from
37976 `<grub/gpt_partition.h>'.
37977 (gpt_partition_map_iterate): Adjust partition type comparison.
37978
37979 Export `entry' as partmap-specific `part.data' struct.
37980 (grub_gpt_header, grub_gpt_partentry): Move from here ...
37981
37982 * include/grub/gpt_partition.h (grub_gpt_header)
37983 (grub_gpt_partentry): ... to here (new file).
37984
37985 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
37986
37987 (grub_gpt_partition_type_bios_boot): New const variable, defined
37988 with macro from `<grub/gpt_partition.h>'.
37989
37990 (setup): Replace `first_start' with `embed_region', which keeps
37991 track of the embed region (and is partmap-agnostic).
37992
37993 Replace find_first_partition_start() with find_usable_region(),
37994 which finds a usable region for embedding using partmap-specific
37995 knowledge (supports PC/MSDOS and GPT).
37996
37997 Fix all assumptions that the embed region start at sector 1, using
37998 `embed_region.start' from now on. Similarly, use `embed_region.end'
37999 rather than `first_start' to calculate available size.
38000
38001 In grub_util_info() message, replace "into after the MBR" with an
38002 indication of the specific sector our embed region starts at.
38003
38004 2008-02-19 Robert Millan <rmh@aybabtu.com>
38005
38006 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38007 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38008 `commands/reboot.c'.
38009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38010 (halt_mod_SOURCES): Likewise.
38011 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38012 (halt_mod_SOURCES): Likewise.
38013
38014 2008-02-17 Christian Franke <franke@computer.org>
38015
38016 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38017
38018 2008-02-17 Robert Millan <rmh@aybabtu.com>
38019
38020 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38021 set `first_start' to 0 for non-PC/MSDOS partition maps.
38022
38023 2008-02-16 Robert Millan <rmh@aybabtu.com>
38024
38025 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38026 do not assume partition map is PC/MSDOS before performing checks that
38027 are specific to that layout.
38028
38029 2008-02-13 Robert Millan <rmh@aybabtu.com>
38030
38031 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38032 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38033 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38034
38035 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38036
38037 * configure.ac: Only a cosmetic change on the handling of
38038 -fno-stack-protector.
38039
38040 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38041
38042 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38043 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38044 reboot.c.
38045 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38046 (halt_mod_SOURCES): New variable.
38047 (halt_mod_CFLAGS): Likewise.
38048 (halt_mod_LDFLAGS): Likewise.
38049 (reboot_mod_SOURCES): Likewise.
38050 (reboot_mod_CFLAGS): Likewise.
38051 (reboot_mod_LDFLAGS): Likewise.
38052
38053 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38054 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38055 reboot.c.
38056 (halt_mod_SOURCES): Likewise.
38057 (reboot_mod_SOURCES): Likewise.
38058
38059 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38060 commands/i386/pc/reboot.c by commands/reboot.c.
38061 (reboot_mod_SOURCES): Likewise.
38062
38063 * commands/i386/pc/reboot.c: merge this file ...
38064
38065 * commands/ieee1275/reboot.c: ... and this file ...
38066
38067 * commands/reboot.c: ... to this file.
38068 Add some precompiler directive to include the correct header for
38069 each machine.
38070
38071 * commands/ieee1275/halt.c: move this file ...
38072
38073 * commands/halt.c: ... to here.
38074 Add some precompiler directive to include the correct header for
38075 each machine.
38076
38077 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38078 (grub_halt): Likewise.
38079
38080 * kern/efi/efi.c (grub_reboot): New function.
38081 (grub_halt): Likewise.
38082
38083 2008-02-12 Robert Millan <rmh@aybabtu.com>
38084
38085 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38086 /dev (like it is done for /dev/mapper). This doesn't provide support
38087 for EVMS, but at least it is now easy to identify the problem when it
38088 arises.
38089
38090 2008-02-11 Robert Millan <rmh@aybabtu.com>
38091
38092 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38093 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38094 comparing it with -1, not 0.
38095
38096 2008-02-10 Robert Millan <rmh@aybabtu.com>
38097
38098 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38099 `disk/lvm.c'.
38100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38101 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38102
38103 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38104 `disk/lvm.c' to the end of the list.
38105 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38106 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38107
38108 2008-02-10 Robert Millan <rmh@aybabtu.com>
38109
38110 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38111 grub_print_error() instead. This will let user know why we're entering
38112 rescue mode.
38113 Based on suggestions from Sam Morris.
38114
38115 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38116
38117 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38118 on remaining N args, instead of "--" arg N times.
38119
38120 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38121
38122 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38123 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38124 pattern for unknown glyphs.
38125
38126 2008-02-09 Robert Millan <rmh@aybabtu.com>
38127
38128 * configure.ac: Probe for `help2man'.
38129 * Makefile.in (builddir): New variable.
38130 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38131 or otherwise add a few flags/options to it.
38132 (install-local): For every executable utility or script that is
38133 installed, invoke $(HELP2MAN) to install a manpage based on --help
38134 output.
38135
38136 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38137 that it doesn't prevent --help from working in build tree.
38138
38139 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38140 with `bug-grub@gnu.org'.
38141 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38142 * util/update-grub.in (usage): New function.
38143 Implement proper argument check, with support for --help and --version
38144 (as well as existing -y).
38145
38146 2008-02-09 Christian Franke <franke@computer.org>
38147
38148 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38149 avoid overwriting previous output.
38150 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38151
38152 2008-02-09 Robert Millan <rmh@aybabtu.com>
38153
38154 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38155 drawing the menu.
38156
38157 2008-02-09 Robert Millan <rmh@aybabtu.com>
38158
38159 * commands/sleep.c: New file.
38160 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38161 (sleep_mod_SOURCES): New variable.
38162 (sleep_mod_CFLAGS): Likewise.
38163 (sleep_mod_LDFLAGS): Likewise.
38164
38165 2008-02-09 Robert Millan <rmh@aybabtu.com>
38166
38167 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38168 situations in which we can deduce the RAID size and the superblock
38169 doesn't match it.
38170
38171 2008-02-09 Robert Millan <rmh@aybabtu.com>
38172
38173 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38174 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38175 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38176
38177 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38178 and return a grub_diskmemberlist_t composed of physical array members.
38179 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38180
38181 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38182 prototype.
38183 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38184 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38185 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38186
38187 * util/grub-probe.c (probe): Move partmap probing code from here ...
38188 (probe_partmap): ... to here.
38189 (probe): Use probe_partmap() once for the disk we're probing, and
38190 additionally, when such disk contains a memberlist() struct member,
38191 once for each disk that is contained in the structure returned by
38192 memberlist().
38193
38194 2008-02-09 Robert Millan <rmh@aybabtu.com>
38195
38196 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38197 environment variable to 'all' in order to obtain debug output from
38198 non-util/ code.
38199 * util/i386/pc/grub-setup.c (main): Likewise.
38200
38201 2008-02-08 Robert Millan <rmh@aybabtu.com>
38202
38203 * disk/raid.c (grub_raid_scan_device): Check for
38204 `array->device[sb.this_disk.number]' rather than for
38205 `array->device[sb.this_disk.number]->name', since the latter is not
38206 guaranteed to be accessible.
38207
38208 2008-02-08 Robert Millan <rmh@aybabtu.com>
38209
38210 * disk/raid.c: Update copyright.
38211 * fs/cpio.c: Likewise.
38212 * include/grub/raid.h: Likewise.
38213 * loader/i386/pc/multiboot.c: Likewise.
38214 * util/hostfs.c: Likewise.
38215
38216 2008-02-08 Robert Millan <rmh@aybabtu.com>
38217
38218 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38219 to a grub_disk_t array.
38220 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38221 `device[x]'.
38222 (grub_raid_scan_device): Replace `device[x].name' accesses with
38223 `device[x]->name'. Simplify initialization of `array->device[x]'.
38224
38225 2008-02-08 Robert Millan <rmh@aybabtu.com>
38226
38227 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38228 grub_dprintf() calls.
38229 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38230 error message.
38231
38232 2008-02-07 Christian Franke <franke@computer.org>
38233
38234 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38235 instead of fseek and ftell to support large files.
38236 (grub_hostfs_read): Likewise.
38237
38238 2008-02-07 Robert Millan <rmh@aybabtu.com>
38239
38240 Patch from Jeroen Dekkers.
38241 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38242 failure, since successfully reading all array members might not be
38243 required.
38244
38245 2008-02-06 Robert Millan <rmh@aybabtu.com>
38246
38247 * util/grub-probe.c (probe): Simplify partmap probing (with the
38248 assumption that the first word up to the underscore equals to
38249 the module name).
38250
38251 2008-02-06 Christian Franke <franke@computer.org>
38252
38253 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38254 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38255 last block of a cpio or tar stream.
38256 Check for "TRAILER!!!" instead of any empty data
38257 block to detect last block of a cpio stream.
38258 (grub_cpio_dir): Fix constness of variable np.
38259 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38260 cpio or tar trailer is detected. This fixes a crash
38261 on open of a non existing file.
38262
38263 2008-02-05 Bean <bean123ch@gmail.com>
38264
38265 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38266 address of entry.
38267 (grub_multiboot_load_elf64): Likewise.
38268 (grub_multiboot): Initialize mbi structure.
38269
38270 * util/grub-fstest.c: Don't include unused header file script.h.
38271
38272 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38273 of file.
38274 (grub_fstest_SOURCES): Likewise.
38275
38276 2008-02-05 Robert Millan <rmh@aybabtu.com>
38277
38278 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38279 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38280 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38281 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38282
38283 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38284 (translation_table): Replace hardcoded values with macros
38285 provided by `<grub/term.h>'.
38286
38287 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38288 (keyboard_map): Correct/add a few values, with macros provided
38289 by `<grub/term.h>'.
38290 (keyboard_map_shift): Zero values that don't differ from their
38291 `keyboard_map' equivalents.
38292 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38293 Discard the second scan code that is always sent by Caps lock.
38294 Only use `keyboard_map_shift' when it provides a non-zero value,
38295 otherwise fallback to `keyboard_map'.
38296
38297 2008-02-04 Bean <bean123ch@gmail.com>
38298
38299 * Makefile.in (enable_grub_fstest): New variable.
38300
38301 * conf/common.rmk (grub_fstest_init.lst): New rule.
38302 (grub_fstest_init.h): Likewise.
38303 (grub_fstest_init.c): Likewise.
38304 (util/grub-fstest.c_DEPENDENCIES): New variable.
38305 (grub_fstest_SOURCES): Likewise.
38306
38307 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38308
38309 * util/grub-fstest.c: New file.
38310
38311 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38312
38313 Make grub-setup handle a separate root device.
38314
38315 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38316 so that the root device can be compared with the destination
38317 device.
38318 When embedding the core image, if the root and destination devices
38319 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38320 0xFF.
38321 When not embedding, set ROOT_DRIVE to 0xFF.
38322
38323 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38324
38325 Add support for having a grub directory in a different drive. This
38326 is still only the data handling part.
38327
38328 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38329 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38330 (grub_root_drive): New variable.
38331
38332 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38333 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38334 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38335 as it was.
38336
38337 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38338
38339 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38340 macro.
38341 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38342
38343 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38344 is bogus, because PXE booting does not specify any drive
38345 correctly.
38346
38347 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38348 am not sure if this is really correct.
38349
38350 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38351 is always identical to the boot drive when booting from a CD.
38352
38353 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38354 longer.
38355 (root_drive): New variable.
38356 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38357 (setup_sectors): Push %dx right after popping it, because %dh will
38358 be modified later.
38359 (copy_buffer): Restore %dx.
38360
38361 2008-02-03 Robert Millan <rmh@aybabtu.com>
38362
38363 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38364 use `cdboot.img' for cdrom images.
38365
38366 2008-02-03 Robert Millan <rmh@aybabtu.com>
38367
38368 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38369 only setup gfxterm when `font' command has succeeded.
38370
38371 2008-02-03 Robert Millan <rmh@aybabtu.com>
38372
38373 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38374 (grub_rescue_cmd_multiboot_loader)
38375 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38376
38377 2008-02-03 Pavel Roskin <proski@gnu.org>
38378
38379 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38380 %edx and %esi from stack only after grub_gate_a20() is called.
38381 grub_gate_a20() clobbers %edx.
38382
38383 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38384
38385 * configure.ac (AC_INIT): Bumped to 1.96.
38386
38387 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38388 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38389 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38390 video/readers/png.c.
38391
38392 2008-02-03 Bean <bean123ch@gmail.com>
38393
38394 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38395 (cdboot_img_SOURCES): New variable.
38396 (cdboot_img_ASFLAGS): New variable.
38397 (cdboot_img_LDFLAGS): New variable.
38398
38399 * boot/i386/pc/cdboot.S: New file.
38400
38401 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38402 (cd_count): Likewise.
38403 (grub_biosdisk_get_drive): Add support for cd device.
38404 (grub_biosdisk_call_hook): Likewise.
38405 (grub_biosdisk_iterate): Likewise.
38406 (grub_biosdisk_open): Likewise.
38407 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38408 (grub_biosdisk_rw): Support reading from cd device.
38409 (GRUB_MOD_INIT): Iterate cd devices.
38410
38411 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38412 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38413 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38414
38415 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38416
38417 2008-02-02 Robert Millan <rmh@aybabtu.com>
38418
38419 * commands/read.c: New file.
38420 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38421 (read_mod_SOURCES): New variable.
38422 (read_mod_CFLAGS): Likewise.
38423 (read_mod_LDFLAGS): Likewise.
38424
38425 2008-02-02 Robert Millan <rmh@aybabtu.com>
38426
38427 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38428 determining whether menu has to be displayed.
38429
38430 2008-02-02 Marco Gerards <marco@gnu.org>
38431
38432 * bus/pci.c: New file.
38433
38434 * include/grub/pci.h: Likewise.
38435
38436 * include/grub/i386/pc/pci.h: Likewise.
38437
38438 * commands/lspci.c: Likewise.
38439
38440 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38441 `lspci.mod'.
38442 (pci_mod_SOURCES): New variable.
38443 (pci_mod_CFLAGS): Likewise.
38444 (pci_mod_LDFLAGS): Likewise.
38445 (lspci_mod_SOURCES): Likewise.
38446 (lspci_mod_CFLAGS): Likewise.
38447 (lspci_mod_LDFLAGS): Likewise.
38448
38449 2008-02-02 Bean <bean123ch@gmail.com>
38450
38451 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38452 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38453
38454 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38455 (grub_xfs_btree_node): New structure.
38456 (grub_xfs_btree_root): New structure.
38457 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38458 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38459 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38460 (GRUB_XFS_EXTENT_SIZE): Likewise.
38461 (grub_xfs_read_block): Support btree format type.
38462 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38463 Use directory block as basic unit.
38464
38465 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38466
38467 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38468 __attribute__ ((__regparm__ (1))).
38469
38470 2008-02-01 Robert Millan <rmh@aybabtu.com>
38471
38472 Correct a mistake in previous commit.
38473
38474 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38475 top.
38476 (normal/command.c_DEPENDENCIES): New variable.
38477
38478 2008-02-01 Robert Millan <rmh@aybabtu.com>
38479
38480 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38481 top.
38482 (normal/command.c_DEPENDENCIES): New variable.
38483 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38484 * conf/i386-ieee1275.rmk: Likewise.
38485 * conf/i386-linuxbios.rmk: Likewise.
38486 * conf/i386-pc.rmk: Likewise.
38487 * conf/sparc64-ieee1275.rmk: Likewise.
38488 * conf/powerpc-ieee1275.rmk: Likewise.
38489 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38490
38491 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38492
38493 2008-02-01 Robert Millan <rmh@aybabtu.com>
38494
38495 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38496 call at beginning of function.
38497
38498 2008-01-31 Pavel Roskin <proski@gnu.org>
38499
38500 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38501 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38502 (grub_mkrescue_SOURCES): Likewise.
38503 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38504
38505 2008-01-30 Robert Millan <rmh@aybabtu.com>
38506
38507 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38508 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38509 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38510 (grub_probe_SOURCES): ... to here.
38511
38512 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38513 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38514 * conf/i386-ieee1275.rmk: Likewise.
38515 * conf/i386-linuxbios.rmk: Likewise.
38516 * conf/powerpc-ieee1275.rmk: Likewise.
38517
38518 2008-01-30 Tristan Gingold <gingold@free.fr>
38519
38520 * kern/rescue.c: Silently accept empty lines.
38521
38522 2008-01-29 Bean <bean123ch@gmail.com>
38523
38524 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38525 (real_code_2): Code cleanup and change comment style.
38526 (move_memory): Avoid using 32-bit address mode.
38527
38528 2008-01-29 Bean <bean123ch@gmail.com>
38529
38530 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38531 (png_mod_SOURCES): New variable.
38532 (png_mod_CFLAGS): Likewise.
38533 (png_mod_LDFLAGS): Likewise.
38534
38535 * video/readers/png.c: New file.
38536
38537 2008-01-28 Robert Millan <rmh@aybabtu.com>
38538
38539 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38540 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38541 `ifndef GRUB_MOD_GAP' hack.
38542 * util/elf/grub-mkimage.c (add_segments): Likewise.
38543
38544 2008-01-27 Robert Millan <rmh@aybabtu.com>
38545
38546 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38547 `GRUB_MOD_GAP' for platforms in which it's not defined.
38548 * util/elf/grub-mkimage.c (add_segments): Likewise.
38549
38550 2008-01-27 Robert Millan <rmh@aybabtu.com>
38551
38552 Get grub-emu to build again (including parallel builds).
38553
38554 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38555 Split into ...
38556 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38557 (normal/execute.c_DEPENDENCIES): ... this, ...
38558 (grub-emu_DEPENDENCIES): ... and this.
38559
38560 * conf/i386-efi.rmk: Likewise.
38561 * conf/i386-linuxbios.rmk: Likewise.
38562 * conf/i386-ieee1275.rmk: Likewise.
38563 * conf/powerpc-ieee1275.rmk: Likewise.
38564 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38565
38566 2008-01-27 Robert Millan <rmh@aybabtu.com>
38567
38568 * NEWS: Add a few items.
38569
38570 2008-01-27 Robert Millan <rmh@aybabtu.com>
38571
38572 Fix parallel builds with grub-emu. Based on earlier commit for
38573 grub-probe and grub-setup.
38574
38575 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38576 (util/grub-emu.c_DEPENDENCIES): ... this.
38577 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38578 (util/grub-emu.c_DEPENDENCIES): ... this.
38579 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38580 (util/grub-emu.c_DEPENDENCIES): ... this.
38581 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38582 (util/grub-emu.c_DEPENDENCIES): ... this.
38583 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38584 (util/grub-emu.c_DEPENDENCIES): ... this.
38585
38586 2008-01-27 Pavel Roskin <proski@gnu.org>
38587
38588 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38589 to create a gap between _end and the modules added to the image
38590 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38591 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38592 * util/elf/grub-mkimage.c (add_segments): Likewise.
38593
38594 2008-01-26 Pavel Roskin <proski@gnu.org>
38595
38596 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38597 just return an error.
38598
38599 2008-01-26 Bean <bean123ch@gmail.com>
38600
38601 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38602 (grub_reiserfs_get_item): Save offset of the next item.
38603 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38604
38605 2008-01-25 Robert Millan <rmh@aybabtu.com>
38606
38607 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38608 make all filesystem sources appear together (possibly fixing omissions
38609 while at it).
38610 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38611 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38612 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38614
38615 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38616 add `kern/file.c'.
38617 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38618 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38619 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38620 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38621
38622 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38623 (probe): Add a sanity check to make sure of our ability to read
38624 requested files when probing for filesystem type.
38625
38626 * genmk.rb: Update copyright year (2007).
38627
38628 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38629 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38630 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38631 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38632 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38633 : Remove function prototypes.
38634
38635 2008-01-25 Robert Millan <rmh@aybabtu.com>
38636
38637 Revert my previous commits (based on wrong assumption of how grub_errno
38638 works).
38639
38640 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
38641 * kern/file.c (grub_file_open): Likewise.
38642
38643 2008-01-24 Pavel Roskin <proski@gnu.org>
38644
38645 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38646 that hang if GRUB tries to setup colors.
38647 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38648 colors for firmwares that don't support it.
38649 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38650 Recognize Open Hack'Ware, set flags to work around its
38651 limitations.
38652
38653 2008-01-24 Robert Millan <rmh@aybabtu.com>
38654
38655 * kern/file.c (grub_file_open): Do not account previous failures of
38656 unrelated functions when grub_errno is checked for.
38657 Reported by Oleg Strikov.
38658
38659 2008-01-24 Bean <bean123ch@gmail.com>
38660
38661 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38662 (grub_ufs_sblock): New member volume name.
38663 (grub_ufs_find_file): Fix string copy bug.
38664 (grub_ufs_label): Implement this function properly.
38665
38666 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38667 (grub_hfs_iterate_records): Use the correct file number for extents
38668 and catalog file. Fix problem in next index calculation.
38669 (grub_hfs_find_node): Replace recursive function call with loop.
38670 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38671
38672 2008-01-23 Robert Millan <rmh@aybabtu.com>
38673
38674 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38675 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38676 (grub_multiboot2_real_boot): New function prototype.
38677
38678 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38679 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38680
38681 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38682 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38683
38684 2008-01-23 Robert Millan <rmh@aybabtu.com>
38685
38686 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38687 #ifdef'ed out grub_printf().
38688
38689 2008-01-23 Robert Millan <rmh@aybabtu.com>
38690
38691 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38692 grub_dprintf calls, since they make "debug=all" mode unusable.
38693 (grub_console_checkkey): Likewise.
38694
38695 2008-01-23 Robert Millan <rmh@aybabtu.com>
38696
38697 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38698 `term/i386/pc/at_keyboard.c'.
38699 (pkglib_MODULES): Add `serial.mod'.
38700 (serial_mod_SOURCES): New variable.
38701 (serial_mod_CFLAGS): Likewise.
38702 (serial_mod_LDFLAGS): Likewise.
38703
38704 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38705 `<grub/powerpc/ieee1275/console.h>'.
38706 (grub_keyboard_controller_init): New function prototype.
38707 (grub_console_checkkey): Likewise.
38708 (grub_console_getkey): Likewise.
38709
38710 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38711 keyboard on i386.
38712
38713 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38714 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38715
38716 2008-01-23 Robert Millan <rmh@aybabtu.com>
38717
38718 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38719 present, "(memdisk)/boot/grub" becomes the default prefix.
38720
38721 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38722 a memdisk tarball with all the modules. Add --overlay=DIR option that
38723 allows users to overlay additional files into the image.
38724
38725 2008-01-23 Robert Millan <rmh@aybabtu.com>
38726
38727 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38728 and `machine/memory.h'.
38729 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38730 (_multiboot_mod_SOURCES): New variable.
38731 (_multiboot_mod_CFLAGS): Likewise.
38732 (_multiboot_mod_LDFLAGS): Likewise.
38733 (multiboot_mod_SOURCES): Likewise.
38734 (multiboot_mod_CFLAGS): Likewise.
38735 (multiboot_mod_LDFLAGS): Likewise.
38736
38737 * include/grub/i386/ieee1275/loader.h: New file.
38738
38739 * include/grub/i386/ieee1275/machine.h: Likewise.
38740
38741 * include/grub/i386/ieee1275/memory.h: Likewise.
38742
38743 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38744 variable declaration.
38745 (grub_os_area_size): Likewise.
38746
38747 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38748 (grub_lower_mem, grub_upper_mem): New variables.
38749 (grub_stop_floppy): New function (just to make
38750 grub_multiboot2_real_boot() happy).
38751
38752 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38753 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38754 (grub_stop): New function.
38755 Include `"../realmode.S"' and `"../loader.S"'.
38756
38757 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38758 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38759
38760 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38761 rely on grub_multiboot2_real_boot() for final boot.
38762
38763 2008-01-22 Robert Millan <rmh@aybabtu.com>
38764
38765 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
38766 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
38767 device that doesn't look like an SD card.
38768 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
38769 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
38770 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
38771 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
38772 found.
38773
38774 2008-01-22 Robert Millan <rmh@aybabtu.com>
38775
38776 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
38777 avoid claiming over our own code.
38778
38779 2008-01-22 Bean <bean123ch@gmail.com>
38780
38781 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
38782 (jpeg_mod_SOURCES): New variable.
38783 (jpeg_mod_CFLAGS): Likewise.
38784 (jpeg_mod_LDFLAGS): Likewise.
38785
38786 * video/readers/jpeg.c : New file.
38787
38788 2008-01-22 Bean <bean123ch@gmail.com>
38789
38790 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
38791 there are no more items.
38792
38793 2008-01-21 Robert Millan <rmh@aybabtu.com>
38794
38795 * kern/mm.c (grub_mm_init_region): Improve debug message.
38796
38797 2008-01-21 Robert Millan <rmh@aybabtu.com>
38798
38799 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
38800 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
38801 address.
38802 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
38803 a C macro.
38804 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
38805 Indicates start of upper memory.
38806 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
38807 (generate_image): Abort when image size is big enough to corrupt
38808 upper memory.
38809
38810 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
38811 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
38812 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38813 instead of hardcoding 0xA0000.
38814 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
38815 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38816 instead of hardcoding 0xA0000.
38817
38818 2008-01-21 Robert Millan <rmh@aybabtu.com>
38819
38820 * disk/memdisk.c (memdisk_size): New variable.
38821 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
38822 `memdisk_size'.
38823 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
38824 image to dynamic memory.
38825 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
38826 `memdisk_size'. Free memdisk block.
38827
38828 2008-01-21 Robert Millan <rmh@aybabtu.com>
38829
38830 Fix detection of very small filesystems (like tar).
38831
38832 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
38833 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
38834 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
38835 a problem with this disk).
38836
38837 2008-01-21 Robert Millan <rmh@aybabtu.com>
38838
38839 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
38840 on grub_biosdisk_rw_standard() error.
38841
38842 2008-01-21 Robert Millan <rmh@aybabtu.com>
38843
38844 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
38845 recent changes.
38846 * kern/elf.c: Likewise.
38847 * kern/ieee1275/ieee1275.c: Likewise.
38848 * kern/powerpc/ieee1275/openfw.c: Likewise.
38849 * term/ieee1275/ofconsole.c: Likewise.
38850
38851 2008-01-21 Robert Millan <rmh@aybabtu.com>
38852
38853 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
38854
38855 * include/grub/kernel.h (grub_arch_memdisk_addr)
38856 (grub_arch_memdisk_size): Moved from here ...
38857
38858 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
38859 (grub_arch_memdisk_size): ... to here.
38860
38861 2008-01-21 Robert Millan <rmh@aybabtu.com>
38862
38863 Mostly based on bugfix from Bean.
38864
38865 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
38866 attribute with hook() parameter.
38867 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
38868 declaration.
38869 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
38870 attribute with hook() parameter.
38871 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
38872 declaration.
38873
38874 2008-01-21 Robert Millan <rmh@aybabtu.com>
38875
38876 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
38877 (pkglib_MODULES): Add `memdisk.mod'.
38878 (memdisk_mod_SOURCES): New variable.
38879 (memdisk_mod_CFLAGS): Likewise.
38880 (memdisk_mod_LDFLAGS): Likewise.
38881
38882 * disk/memdisk.c: New file.
38883
38884 * include/grub/disk.h (grub_disk_dev_id): Add
38885 `GRUB_DISK_DEVICE_MEMDISK_ID'.
38886
38887 * include/grub/i386/pc/kernel.h
38888 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
38889 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
38890 (grub_kernel_image_size): New variable declaration.
38891 (grub_total_module_size): Likewise.
38892 (grub_memdisk_image_size): Likewise.
38893
38894 * include/grub/i386/pc/memory.h
38895 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
38896
38897 * include/grub/kernel.h: Include `<grub/symbol.h>'.
38898 (grub_arch_memdisk_addr): New variable declaration.
38899 (grub_arch_memdisk_size): Likewise.
38900
38901 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
38902 (grub_arch_memdisk_size): Likewise.
38903
38904 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
38905 (codestart): Replace hardcoded `0x100000' with
38906 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
38907
38908 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
38909 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
38910 not NULL, append the contents of the file it refers to, at the end of
38911 the compressed kernel image. Initialize `grub_memdisk_image_size'
38912 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
38913 (options): Add "memdisk"|'m' option.
38914 (main): Parse --memdisk|-m option, and pass user-provided path as
38915 parameter to generate_image().
38916
38917 2008-01-20 Robert Millan <rmh@aybabtu.com>
38918
38919 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
38920 grub_dprintf() calls from here ...
38921 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
38922
38923 2008-01-20 Robert Millan <rmh@aybabtu.com>
38924
38925 Fix detection of "real mode" when /options/real-mode? doesn't exist.
38926
38927 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
38928 declaration.
38929 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
38930 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
38931 `GRUB_IEEE1275_FLAG_REAL_MODE'.
38932 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
38933 property).
38934 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
38935 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
38936
38937 2008-01-19 Robert Millan <rmh@aybabtu.com>
38938
38939 Get rid of confusing function (superseded by
38940 `grub_ieee1275_get_integer_property')
38941 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
38942 prototype.
38943 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
38944 function.
38945 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
38946 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
38947 in native endianness from grub_ieee1275_get_integer_property().
38948
38949 2008-01-19 Robert Millan <rmh@aybabtu.com>
38950
38951 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
38952 command after "shut-down", since implementations differ on which
38953 the command for halt is.
38954
38955 2008-01-19 Robert Millan <rmh@aybabtu.com>
38956
38957 * include/grub/i386/linuxbios/console.h: Add header protection.
38958 (grub_keyboard_controller_init): New function prototype.
38959 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
38960 (KEYBOARD_COMMAND_READ): Likewise.
38961 (KEYBOARD_COMMAND_WRITE): Likewise.
38962 (KEYBOARD_SCANCODE_SET1): Likewise.
38963 (grub_keyboard_controller_write): New function.
38964 (grub_keyboard_controller_read): Likewise.
38965 (grub_keyboard_controller_init): Likewise.
38966
38967 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
38968 (grub_console_init): On coreboot/LinuxBIOS, call
38969 grub_keyboard_controller_init().
38970
38971 2008-01-19 Robert Millan <rmh@aybabtu.com>
38972
38973 PowerPC changes provided by Pavel Roskin.
38974
38975 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
38976 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
38977 don't rely on cmain() doing it.
38978 * kern/i386/ieee1275/startup.S (_start): Store %eax in
38979 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
38980
38981 2008-01-16 Robert Millan <rmh@aybabtu.com>
38982
38983 * include/grub/i386/linuxbios/memory.h
38984 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
38985 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
38986 receive `table_header' as argument. Instead, probe for it in the
38987 known memory ranges where it can be present.
38988 (grub_available_iterate): Do not pass a fixed `table_header' address
38989 to grub_linuxbios_table_iterate().
38990
38991 2008-01-15 Robert Millan <rmh@aybabtu.com>
38992
38993 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
38994 * conf/i386-ieee1275.rmk: New file.
38995 * include/grub/i386/ieee1275/console.h: Likewise.
38996 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
38997 * include/grub/i386/ieee1275/kernel.h: Likewise.
38998 * include/grub/i386/ieee1275/time.h: Likewise.
38999 * kern/i386/ieee1275/init.c: Likewise.
39000 * kern/i386/ieee1275/startup.S: Likewise.
39001
39002 2008-01-15 Robert Millan <rmh@aybabtu.com>
39003
39004 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39005 when pointers are 32-bit (but still do set it to one when they are
39006 64-bit).
39007
39008 2008-01-15 Robert Millan <rmh@aybabtu.com>
39009
39010 * include/grub/ieee1275/ieee1275.h
39011 (grub_ieee1275_get_integer_property): New function prototype.
39012
39013 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39014 (grub_ieee1275_get_integer_property): New function. Wraps around
39015 grub_ieee1275_get_property() to handle endianness.
39016
39017 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39018 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39019 where appropriate.
39020 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39021 (grub_map): Likewise.
39022 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39023
39024 2008-01-15 Bean <bean123ch@gmail.com>
39025
39026 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39027 (grub_script_execute_cmdline): Reset grub_errno.
39028
39029 * normal/main.c (read_config_file): Reset grub_errno.
39030
39031 * normal/parse.y (script_init): New.
39032 (script): Move function and menuentry here.
39033 (delimiter): New.
39034 (command): Add delimiter at the end of command.
39035 (commands): Adjust to match the new command.
39036 (commandblock): Remove grub_script_lexer_record_start.
39037 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39038 (if): Use the new commands.
39039
39040 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39041
39042 2008-01-15 Robert Millan <rmh@aybabtu.com>
39043
39044 * normal/menu.c (run_menu): Move timeout message from here ...
39045 (print_timeout): ... to here.
39046 (run_menu): Use print_timeout() once during initial draw to print
39047 the whole message, and again in every clock tick to update only
39048 the number of seconds.
39049
39050 2008-01-15 Robert Millan <rmh@aybabtu.com>
39051
39052 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39053 actual size of `available' from grub_ieee1275_get_property(), and
39054 restrict parsing to that bound.
39055
39056 2008-01-15 Christian Franke <franke@computer.org>
39057
39058 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39059 (argp_program_version): Remove variable.
39060 (argp_program_bug_address): Likewise.
39061 (options): Convert from struct argp_option to struct option.
39062 (struct arguments): Remove.
39063 (parse_opt): Remove.
39064 (usage): New function.
39065 (main): Replace struct args members by simple variables.
39066 Replace argp_parse() by getopt_long().
39067 Add switch to evaluate options.
39068 Add missing "(...)" around root_dev in prefix string.
39069
39070 2008-01-14 Robert Millan <rmh@aybabtu.com>
39071
39072 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39073 for grub_ieee1275_exit(), in order to improve portability.
39074
39075 2008-01-14 Robert Millan <rmh@aybabtu.com>
39076
39077 * util/grub.d/10_linux.in (prefix): Define.
39078 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39079
39080 2008-01-13 Pavel Roskin <proski@gnu.org>
39081
39082 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39083 grub_errno if no errors have been detected.
39084
39085 2008-01-12 Robert Millan <rmh@aybabtu.com>
39086
39087 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39088 (grub_util_get_dev_abstraction): New function prototype.
39089
39090 * util/getroot.c: Include `<grub/util/getroot.h>'
39091 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39092 (grub_util_get_dev_abstraction): ... here (new function).
39093
39094 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39095 `PRINT_ABSTRACTION'.
39096 (probe): Probe for abstraction type when requested.
39097 (main): Understand `--target=abstraction'.
39098
39099 * util/i386/efi/grub-install.in: Add abstraction module to core
39100 image when it is found to be necessary.
39101 * util/i386/pc/grub-install.in: Likewise.
39102 * util/powerpc/ieee1275/grub-install.in: Likewise.
39103
39104 * util/update-grub_lib.in (font_path): Return system path without
39105 converting to GRUB path.
39106 * util/update-grub.in: Convert system path returned by font_path()
39107 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39108 abstraction module is needed for loading fonts (if any). Export
39109 that as `GRUB_PRELOAD_MODULES'.
39110 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39111 insmod commands).
39112
39113 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39114
39115 Remove some unused code from reiserfs.
39116
39117 * fs/reiserfs.c (struct grub_reiserfs_key)
39118 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39119 (struct grub_reiserfs_node_body): Removed.
39120 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39121 Likewise.
39122 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39123 Likewise.
39124 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39125 Likewise.
39126 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39127 Likewise.
39128 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39129 Likewise.
39130 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39131 Likewise.
39132 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39133 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39134 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39135
39136 2008-01-10 Robert Millan <rmh@aybabtu.com>
39137
39138 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39139 Determines if a file is garbage left by packaging systems, etc.
39140 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39141 for processing /etc/grub.d scripts.
39142 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39143 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39144 as a condition for processing Linux images.
39145
39146 2008-01-10 Pavel Roskin <proski@gnu.org>
39147
39148 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39149 to compile reiserfs.c on PowerPC.
39150
39151 2008-01-10 Robert Millan <rmh@aybabtu.com>
39152
39153 * kern/device.c (grub_device_iterate): Do not abort device iteration
39154 when one of the devices cannot be opened.
39155 * kern/disk.c (grub_disk_open): Do not account previous failures of
39156 unrelated functions when grub_errno is checked for.
39157
39158 2008-01-08 Robert Millan <rmh@aybabtu.com>
39159
39160 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39161 `! grub_linux_is_bzimage', change order of address comparison to make
39162 it more intuitive, and improve "too big zImage" error message.
39163
39164 2008-01-08 Robert Millan <rmh@aybabtu.com>
39165
39166 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39167 `$(update-grub_DATA)'.
39168 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39169 targets.
39170
39171 2008-01-07 Robert Millan <rmh@aybabtu.com>
39172
39173 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39174 which instruction is modified by grub-setup during installation
39175 (since it wasn't obvious by only looking at this file).
39176
39177 2008-01-07 Robert Millan <rmh@aybabtu.com>
39178
39179 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39180 listing actual TODO items.
39181
39182 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39183
39184 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39185 correctly.
39186 (grub_reiserfs_get_key_offset): Likewise.
39187 (grub_reiserfs_set_key_offset): Likewise.
39188 (grub_reiserfs_set_key_type): Likewise.
39189 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39190
39191 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39192 better to remove the bitfield version completely.
39193
39194 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39195
39196 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39197 allocated from the heap, due to the fshelp implementation.
39198 (grub_reiserfs_dir): Free NODE, due to the same reason.
39199
39200 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39201
39202 Mostly from Vincent Pelletier:
39203
39204 * fs/reiserfs.c: New file.
39205
39206 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39207 (reiserfs_mod_SOURCES): New variable.
39208 (reiserfs_mod_CFLAGS): Likewise.
39209 (reiserfs_mod_LDFLAGS): Likewise.
39210
39211 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39212 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39213 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39214 normal/color.c.
39215
39216 2008-01-06 Robert Millan <rmh@aybabtu.com>
39217
39218 * normal/color.c: Remove `<grub/env.h>'.
39219
39220 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39221
39222 * include/grub/normal.h: Include <grub/env.h>.
39223
39224 2008-01-05 Robert Millan <rmh@aybabtu.com>
39225
39226 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39227 usage example with `(hd0,1)'.
39228 Reported by Samuel Thibault.
39229
39230 2008-01-05 Robert Millan <rmh@aybabtu.com>
39231
39232 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39233 (grub_linux_boot_zimage): Rename to ...
39234 (grub_linux_boot): ... this.
39235 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39236 (grub_linux_boot_zimage): Conditionalize zImage copy.
39237
39238 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39239 (grub_linux_boot_bzimage): Remove prototype.
39240 (grub_linux_boot_zimage): Rename to ...
39241 (grub_linux_boot): ... this.
39242
39243 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39244 (grub_linux_boot): Remove function.
39245
39246 2008-01-05 Robert Millan <rmh@aybabtu.com>
39247
39248 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39249 (grub_env_write_color_highlight): Likewise.
39250 (grub_wait_after_message): Likewise.
39251
39252 * normal/color.c: New file.
39253
39254 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39255 (normal_mod_DEPENDENCIES): Likewise.
39256
39257 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39258 (normal_mod_DEPENDENCIES): Likewise.
39259
39260 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39261 (normal_mod_DEPENDENCIES): Likewise.
39262
39263 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39264 (normal_mod_DEPENDENCIES): Likewise.
39265
39266 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39267 for waiting after a message is printed.
39268 * normal/main.c (read_config_file): Likewise.
39269 (grub_normal_init): Register grub_env_write_color_normal() and
39270 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39271 `color_highlight' variables as global.
39272
39273 * normal/menu.c (grub_wait_after_message): New function.
39274 (grub_color_menu_normal): New variable. Replaces ...
39275 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39276 (grub_color_menu_highlight): New variable. Replaces ...
39277 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39278 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39279 `GRUB_TERM_COLOR_STANDARD'.
39280 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39281 `normal_code' and `highlight_code' to `old_color_normal' and
39282 `old_color_highlight', respectively.
39283 (grub_menu_init_page): Update colors when drawing the menu, based on
39284 `menu_color_normal' and `menu_color_highlight' variables.
39285 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39286 a message is printed.
39287
39288 2008-01-05 Robert Millan <rmh@aybabtu.com>
39289
39290 * kern/env.c (grub_env_context_open): Propagate hooks for global
39291 variables to new context.
39292
39293 * kern/main.c (grub_set_root_dev): Export `root' variable.
39294
39295 2008-01-05 Robert Millan <rmh@aybabtu.com>
39296
39297 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39298 discs unconditionally, since udev and others have options to provide
39299 them.
39300
39301 2008-01-05 Robert Millan <rmh@aybabtu.com>
39302
39303 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39304
39305 2008-01-04 Christian Franke <franke@computer.org>
39306
39307 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39308 of eisa_mmap.
39309
39310 2008-01-03 Pavel Roskin <proski@gnu.org>
39311
39312 * kern/i386/linuxbios/init.c: Put "void" to all function
39313 declarations with no arguments.
39314 * kern/powerpc/ieee1275/init.c: Likewise.
39315 * term/i386/pc/at_keyboard.c: Likewise.
39316 * term/i386/pc/vga_text.c: Likewise.
39317 * util/grub-mkdevicemap.c: Likewise.
39318
39319 2008-01-02 Robert Millan <rmh@aybabtu.com>
39320
39321 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39322 message when loaded image is out of bounds.
39323 (grub_multiboot_load_elf64): Likewise.
39324
39325 2008-01-02 Pavel Roskin <proski@gnu.org>
39326
39327 * util/grub.d/10_linux.in: Try version without ".old" when
39328 looking for initrd. It's better to use initrd from the newer
39329 kernel of the same version than no initrd at all.
39330
39331 2008-01-01 Robert Millan <rmh@aybabtu.com>
39332
39333 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39334
39335 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39336
39337 * include/grub/video.h: Added grub_video_unmap_color and
39338 grub_video_get_active_render_target.
39339 (grub_video_adapter): Added unmap_color and get_active_render_target.
39340
39341 * video/video.c: Added grub_video_unmap_color and
39342 grub_video_get_active_render_target.
39343 (grub_video_get_info): Changed method to accept NULL pointer as an
39344 argument to allow detection of active video adapter.
39345
39346 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39347 grub_video_vbe_unmap_color_int.
39348 Added grub_video_vbe_unmap_color and
39349 grub_video_vbe_get_active_render_target.
39350 (grub_video_vbe_adapter): Added unmap_color and
39351 get_active_render_target.
39352
39353 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39354 with grub_video_vbe_unmap_color_int.
39355
39356 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39357 (DEFAULT_NORMAL_COLOR): Likewise.
39358 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39359 (DEFAULT_FG_COLOR): Removed.
39360 (DEFAULT_BG_COLOR): Likewise.
39361 (DEFAULT_CURSOR_COLOR): Changed value.
39362 (grub_virtual_screen): Added standard_color_setting,
39363 normal_color_setting, highlight_color_setting and term_color.
39364 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39365 (bitmap_width): Added.
39366 (bitmap_height): Likewise.
39367 (bitmap): Likewise.
39368 (set_term_color): Likewise.
39369 (grub_virtual_screen_setup): Changed to use new terminal coloring
39370 settings.
39371 (grub_gfxterm_init): Added init for bitmap.
39372 (grub_gfxterm_fini): Added destroy for bitmap.
39373 (redraw_screen_rect): Updated to use background bitmap and new
39374 terminal coloring.
39375 (scroll_up): Added optimization for case when there is no bitmap.
39376 (grub_gfxterm_cls): Fixed to use correct background color.
39377 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39378 coloring.
39379 (grub_virtual_screen_setcolor): Likewise.
39380 (grub_virtual_screen_getcolor): Added.
39381 (grub_gfxterm_background_image_cmd): Likewise.
39382 (grub_video_term): Added setcolor and getcolor.
39383 (MOD_INIT): Added registration of background_image command.
39384 (MOD_TERM): Added unregistration for background_image command.
39385
39386 2007-12-30 Pavel Roskin <proski@gnu.org>
39387
39388 * loader/multiboot_loader.c: Fix multiboot command
39389 unregistration. Fix all typos in the word "multiboot".
39390
39391 2007-12-29 Pavel Roskin <proski@gnu.org>
39392
39393 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39394 support for initrd names used in Fedora.
39395
39396 2007-12-26 Bean <bean123ch@gmail.com>
39397
39398 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39399 (cpio_mod_SOURCES): New variable.
39400 (cpio_mod_CFLAGS): Likewise.
39401 (cpio_mod_LDFLAGS): Likewise.
39402
39403 * fs/cpio.c: New file.
39404
39405 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39406
39407 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39408
39409 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39410
39411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39412
39413 2007-12-25 Robert Millan <rmh@aybabtu.com>
39414
39415 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39416 (grub_getcolor): New function.
39417
39418 * kern/term.c (grub_getcolor): New function.
39419 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39420 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39421 (print_entry): Set normal and highlight colors to
39422 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39423 respectively, before printing and restore them to old
39424 values afterwards.
39425 (grub_menu_init_page): Likewise. Fill an additional colored space
39426 that would otherwise be left blank.
39427
39428 * term/efi/console.c (grub_console_getcolor): New function.
39429 (struct grub_console_term.getcolor): New variable.
39430 * term/i386/pc/console.c (grub_console_getcolor): New function.
39431 (struct grub_console_term.getcolor): New variable.
39432 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39433 (struct grub_console_term.getcolor): New variable.
39434
39435 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39436 (struct grub_console_term.setcolor): Remove variable.
39437 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39438 (struct grub_console_term.setcolor): Remove variable.
39439 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39440 (struct grub_console_term.setcolor): Remove variable.
39441 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39442 (struct grub_console_term.setcolor): Remove variable.
39443
39444 2007-12-25 Robert Millan <rmh@aybabtu.com>
39445
39446 * configure.ac: Search for possible unifont.hex locations, and
39447 define UNIFONT_HEX if found.
39448
39449 * Makefile.in (UNIFONT_HEX): Define variable.
39450 (DATA): Rename to ...
39451 (PKGLIB): ... this. Update all users.
39452 (PKGDATA): New variable.
39453 (pkgdata_IMAGES): Rename to ...
39454 (pkglib_IMAGES): ... this. Update all users.
39455 (pkgdata_MODULES): Rename to ...
39456 (pkglib_MODULES): ... this. Update all users.
39457 (pkgdata_PROGRAMS): Rename to ...
39458 (pkglib_PROGRAMS): ... this. Update all users.
39459 (pkgdata_DATA): Rename to ...
39460 (pkglib_DATA): ... this. Update all users.
39461 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39462 (unicode.pff, ascii.pff): New rules.
39463 (all-local): Add `$(PKGDATA)' dependency.
39464 (install-local): Process `$(PKGDATA)'.
39465
39466 * util/update-grub_lib.in (font_path): Search for *.pff files in
39467 a few more locations, including `${pkgdata}'.
39468
39469 2007-12-23 Robert Millan <rmh@aybabtu.com>
39470
39471 Patch from Bean <bean123ch@gmail.com>:
39472 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39473 `size'.
39474
39475 2007-12-21 Bean <bean123ch@gmail.com>
39476
39477 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39478 (ntfscomp_mod_SOURCES): New variable.
39479 (ntfscomp_mod_CFLAGS): Likewise.
39480 (ntfscomp_mod_LDFLAGS): Likewise.
39481
39482 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39483 (grub_probe_SOURCES): Likewise.
39484 (grub_emu_SOURCES): Likewise.
39485
39486 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39487 (grub_emu_SOURCES): Likewise.
39488
39489 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39490 (grub_emu_SOURCES): Likewise.
39491
39492 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39493 (grub_emu_SOURCES): Likewise.
39494
39495 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39496 (read_run_list): Renamed to grub_ntfs_read_run_list.
39497 (decomp_nextvcn): Moved to ntfscomp.c.
39498 (decomp_getch): Likewise.
39499 (decomp_get16): Likewise.
39500 (decomp_block): Likewise.
39501 (read_block): Likewise.
39502 (read_data): Partially moved to ntfscomp.c.
39503 (fixup): Change unsigned to grub_uint16_t.
39504 (read_mft): Change unsigned long to grub_uint32_t.
39505 (read_attr): Likewise.
39506 (read_data): Likewise.
39507 (read_run_data): Likewise.
39508 (read_run_list): Likewise.
39509 (read_mft): Likewise.
39510
39511 * fs/ntfscomp.c: New file.
39512
39513 * include/grub/ntfs.h: New file.
39514
39515 2007-12-16 Robert Millan <rmh@aybabtu.com>
39516
39517 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39518 IDE disk check, since Linux is known to support 20 IDE disks.
39519 Reported by Colin Watson.
39520
39521 2007-12-15 Bean <bean123ch@gmail.com>
39522
39523 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39524 (lnxboot_img_SOURCES): New variable.
39525 (lnxboot_img_ASFLAGS): Likewise.
39526 (lnxboot_img_LDFLAGS): Likewise.
39527
39528 * boot/i386/pc/lnxboot.S: New file.
39529
39530 2007-11-24 Pavel Roskin <proski@gnu.org>
39531
39532 * configure.ac: Test if '--build-id=none' is supported by the
39533 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39534 objcopy to generate incorrect binary files (binutils
39535 2.17.50.0.18-1 as shipped by Fedora 8).
39536 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39537 linking, so that build ID doesn't break the test.
39538
39539 2007-11-24 Pavel Roskin <proski@gnu.org>
39540
39541 * include/grub/i386/time.h: use "void" in the argument list
39542 of grub_cpu_idle().
39543 * include/grub/powerpc/time.h: Likewise.
39544 * include/grub/sparc64/time.h: Likewise.
39545
39546 2007-11-18 Christian Franke <franke@computer.org>
39547
39548 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39549 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39550 This fixes the problem that function keys did not work in grub-emu.
39551
39552 2007-11-18 Christian Franke <franke@computer.org>
39553
39554 * disk/host.c (grub_host_open): Remove attribute unused from
39555 name parameter. Add check for "host". This fixes the problem
39556 that grub-emu does not find partitions.
39557
39558 2007-11-18 Christian Franke <franke@computer.org>
39559
39560 * util/hostfs.c (is_dir): New function.
39561 (grub_hostfs_dir): Handle missing dirent.d_type case.
39562 (grub_hostfs_read): Add missing fseek().
39563 (grub_hostfs_label): Clear label pointer. This fixes a crash
39564 of grub-emu on "ls (host)".
39565
39566 2007-11-18 Christian Franke <franke@computer.org>
39567
39568 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39569 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39570 to 64 bit boundary by default.
39571
39572 2007-11-18 Bean <bean123ch@gmail.com>
39573
39574 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39575 (hexdump_mod_SOURCES): New variable.
39576 (hexdump_mod_CFLAGS): Likewise.
39577 (hexdump_mod_LDFLAGS): Likewise.
39578
39579 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39580
39581 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39582
39583 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39584
39585 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39586
39587 * include/grub/hexdump.h: New file.
39588
39589 * commands/hexdump.c: New file.
39590
39591 2007-11-10 Robert Millan <rmh@aybabtu.com>
39592
39593 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39594 in grub_outb() calls.
39595 (beep_on): Likewise.
39596
39597 2007-11-10 Christian Franke <franke@computer.org>
39598
39599 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39600 (grub_menu_run): Likewise.
39601
39602 2007-11-10 Robert Millan <rmh@aybabtu.com>
39603
39604 * include/grub/i386/efi/machine.h: New file.
39605 * include/grub/i386/linuxbios/machine.h: Likewise.
39606 * include/grub/i386/pc/machine.h: Likewise.
39607 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39608 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39609
39610 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39611 (serial_hw_io_addr): New variable.
39612 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39613 instead of `(unsigned short *) 0x400'.
39614
39615 2007-11-10 Bean <bean123ch@gmail.com>
39616
39617 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39618
39619 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39620
39621 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39622 (vga_mod_SOURCES): Added.
39623 (vga_mod_CFLAGS): Likewise.
39624 (vga_mod_LDFLAGS): Likewise.
39625
39626 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39627 grub_outb() calls.
39628 (set_map_mask): Likewise.
39629 (set_read_map): Likewise.
39630 (set_read_address): Likewise.
39631 (vga_font): Removed variable.
39632 (get_vga_glyph): Removed function.
39633 (invalidate_char): Likewise.
39634 (write_char): Changed to use grub_font_get_glyph() for font
39635 information.
39636 (grub_vga_putchar): Likewise.
39637 (grub_vga_getcharwidth): Likewise.
39638
39639 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39640
39641 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39642 flags.
39643 (pxeboot_img_LDFLAGS): Likewise.
39644 (diskboot_img_LDFLAGS): Likewise.
39645 (kernel_img_LDFLAGS): Likewise.
39646
39647 2007-11-06 Robert Millan <rmh@aybabtu.com>
39648
39649 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39650 in grub_outb() calls.
39651 (serial_hw_init): Likewise.
39652
39653 2007-11-05 Robert Millan <rmh@aybabtu.com>
39654
39655 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39656 spaces. Skip non-regular files.
39657
39658 2007-11-05 Robert Millan <rmh@aybabtu.com>
39659
39660 * kern/disk.c (grub_disk_firmware_fini)
39661 (grub_disk_firmware_is_tainted): New variables.
39662
39663 * include/grub/disk.h (grub_disk_firmware_fini)
39664 (grub_disk_firmware_is_tainted): Likewise.
39665
39666 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39667 (grub_disk_biosdisk_fini): ... to here.
39668 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39669 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39670 is set. Register grub_disk_biosdisk_fini() in
39671 `grub_disk_firmware_fini'.
39672
39673 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39674 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39675 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39676 to finish existing firmware disk interface.
39677
39678 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39679 (ata_mod_SOURCES): New variable.
39680 (ata_mod_CFLAGS): Likewise.
39681 (ata_mod_LDFLAGS): Likewise.
39682
39683 2007-11-05 Robert Millan <rmh@aybabtu.com>
39684
39685 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39686 (grub_ata_wait): Reimplement using grub_millisleep().
39687
39688 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39689 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39690
39691 2007-11-03 Marco Gerards <marco@gnu.org>
39692
39693 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39694 (CRTC_ADDR_PORT): New macro.
39695 (CRTC_DATA_PORT): Likewise.
39696 (CRTC_CURSOR): Likewise.
39697 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39698 (CRTC_CURSOR_ADDR_LOW): Likewise.
39699 (update_cursor): New function.
39700 (grub_console_real_putchar): Call `update_cursor'.
39701 (grub_console_gotoxy): Likewise.
39702 (grub_console_cls): Set the default color when clearing the
39703 screen.
39704 (grub_console_setcursor): Implemented.
39705
39706 2007-11-03 Marco Gerards <marco@gnu.org>
39707
39708 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39709 become activate.
39710 (grub_ata_pio_write): Likewise.
39711
39712 (grub_atapi_identify): Wait after issuing an ATA command.
39713 (grub_atapi_packet): Likewise.
39714 (grub_ata_identify): Likewise.
39715 (grub_ata_readwrite): Likewise.
39716
39717 2007-11-03 Marco Gerards <marco@gnu.org>
39718
39719 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39720 (grub_ata_pio_write): Likewise.
39721 (grub_ata_readwrite): Use `grub_error', instead of
39722 returning `grub_errno'.
39723
39724 2007-11-03 Marco Gerards <marco@gnu.org>
39725
39726 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39727 grub_ata_pio_write once for every single sector, instead of for
39728 multiple sectors.
39729
39730 2007-10-31 Robert Millan <rmh@aybabtu.com>
39731
39732 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39733
39734 * conf/i386-linuxbios.rmk: New file.
39735
39736 * kern/i386/pc/hardware.c: Likewise.
39737 * term/i386/pc/at_keyboard.c: Likewise.
39738 * term/i386/pc/vga_text.c: Likewise.
39739
39740 * include/grub/i386/linuxbios/boot.h: Likewise.
39741 * include/grub/i386/linuxbios/console.h: Likewise.
39742 * include/grub/i386/linuxbios/init.h: Likewise.
39743 * include/grub/i386/linuxbios/kernel.h: Likewise.
39744 * include/grub/i386/linuxbios/loader.h: Likewise.
39745 * include/grub/i386/linuxbios/memory.h: Likewise.
39746 * include/grub/i386/linuxbios/serial.h: Likewise.
39747 * include/grub/i386/linuxbios/time.h: Likewise.
39748
39749 * kern/i386/linuxbios/init.c: Likewise.
39750 * kern/i386/linuxbios/startup.S: Likewise.
39751 * kern/i386/linuxbios/table.c: Likewise.
39752
39753 2007-10-31 Marco Gerards <marco@gnu.org>
39754
39755 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39756 (ata_mod_SOURCES): New variable.
39757 (ata_mod_CFLAGS): Likewise.
39758 (ata_mod_LDFLAGS): Likewise.
39759
39760 * disk/ata.c: New file.
39761
39762 * include/grub/disk.h (grub_disk_dev_id): Add
39763 `GRUB_DISK_DEV_ATA_ID'.
39764
39765 2007-10-31 Robert Millan <rmh@aybabtu.com>
39766
39767 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
39768 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
39769
39770 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
39771 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
39772
39773 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
39774 `<grub/types.h>'.
39775
39776 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
39777
39778 2007-10-27 Robert Millan <rmh@aybabtu.com>
39779
39780 * include/grub/types.h (ULONG_MAX): Define macro.
39781
39782 2007-10-22 Robert Millan <rmh@aybabtu.com>
39783
39784 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
39785 `"../realmode.S"'.
39786 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
39787
39788 2007-10-22 Robert Millan <rmh@aybabtu.com>
39789
39790 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
39791 (pkgdata_MODULES): Add `biosdisk.mod'.
39792 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
39793 variables.
39794
39795 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
39796 (grub_biosdisk_init): Replace with ...
39797 (GRUB_MOD_INIT(biosdisk)): ... this.
39798 (grub_biosdisk_fini): Replace with ...
39799 (GRUB_MOD_FINI(biosdisk)): ... this.
39800
39801 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
39802 (grub_machine_init): Remove call to grub_biosdisk_init().
39803 (grub_machine_fini): Remove call to grub_machine_fini().
39804
39805 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
39806
39807 2007-10-22 Robert Millan <rmh@aybabtu.com>
39808
39809 * include/grub/time.h: New file.
39810 * include/grub/i386/time.h: Likewise.
39811 * include/grub/powerpc/time.h: Likewise.
39812 * include/grub/sparc64/time.h: Likewise.
39813
39814 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
39815 instances to ...
39816 (KERNEL_MACHINE_TIME_HEADER): ... this.
39817 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39818 instances to ...
39819 (KERNEL_MACHINE_TIME_HEADER): ... this.
39820 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39821 instances to ...
39822 (KERNEL_MACHINE_TIME_HEADER): ... this.
39823
39824 * kern/i386/efi/init.c: Include `<grub/time.h>'.
39825 (grub_millisleep): New function.
39826 * kern/i386/pc/init.c: Include `<grub/time.h>'.
39827 (grub_millisleep): New function.
39828 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
39829 Remove `grub/machine/time.h' include.
39830 (grub_millisleep): New function.
39831 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
39832 Remove `grub/machine/time.h' include.
39833 (grub_millisleep): New function.
39834
39835 * include/grub/misc.h (grub_div_roundup): New function.
39836
39837 * kern/misc.c: Include `<grub/time.h>'.
39838 (grub_millisleep_generic): New function.
39839
39840 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
39841 Add `time.h'.
39842 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
39843 Add `time.h'.
39844 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
39845 `machine/time.h'. Add `time.h'.
39846 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
39847
39848 2007-10-21 Robert Millan <rmh@aybabtu.com>
39849
39850 * include/grub/misc.h (grub_max): New function.
39851
39852 2007-10-21 Robert Millan <rmh@aybabtu.com>
39853
39854 * util/misc.c (grub_util_info): Call fflush() before returning.
39855
39856 2007-10-20 Robert Millan <rmh@aybabtu.com>
39857
39858 * genmk.rb (Image): Copy `extra_flags' from here ...
39859 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
39860
39861 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
39862 to `argc' and `args' arguments.
39863
39864 2007-10-17 Robert Millan <rmh@aybabtu.com>
39865
39866 * kern/i386/loader.S: New file.
39867
39868 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
39869 * kern/i386/loader.S (grub_linux_prot_size)... to here.
39870 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
39871 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
39872 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
39873 * kern/i386/loader.S (grub_linux_real_addr)... to here.
39874 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
39875 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
39876 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
39877 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
39878 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
39879 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
39880 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
39881 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
39882
39883 * kern/i386/realmode.S: New file.
39884
39885 * kern/i386/pc/startup.S (protstack): Moved from here ...
39886 * kern/i386/realmode.S (protstack)... to here.
39887 * kern/i386/pc/startup.S (gdt): Moved from here ...
39888 * kern/i386/realmode.S (gdt)... to here.
39889 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
39890 * kern/i386/realmode.S (prot_to_real)... to here.
39891
39892 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
39893 `kern/i386/realmode.S'.
39894
39895 2007-10-17 Robert Millan <rmh@aybabtu.com>
39896
39897 * include/grub/i386/loader.h: New file.
39898
39899 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
39900 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39901 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39902 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39903 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
39904 * include/grub/i386/loader.h (grub_linux_prot_size)
39905 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39906 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39907 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39908 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
39909
39910 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
39911
39912 2007-10-15 Robert Millan <rmh@aybabtu.com>
39913
39914 * normal/misc.c (grub_normal_print_device_info): Do not probe for
39915 filesystem when dev->disk is unset.
39916 Do probe for filesystem even when dev->disk->has_partitions is set.
39917 In case a filesystem is found, always report it.
39918 In case it isn't, if dev->disk->has_partitions is set, report that
39919 a partition table was found instead of reporting that no filesystem
39920 could be identified.
39921
39922 2007-10-12 Robert Millan <rmh@aybabtu.com>
39923
39924 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
39925 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
39926
39927 * include/grub/types.h (grub_host_to_target16): New macro.
39928 (grub_host_to_target32): Likewise.
39929 (grub_host_to_target64): Likewise.
39930 (grub_target_to_host16): Likewise.
39931 (grub_target_to_host32): Likewise.
39932 (grub_target_to_host64): Likewise.
39933
39934 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
39935 Renamed from to ...
39936 (GRUB_MOD_ALIGN): ...this. Update all users.
39937
39938 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
39939 grub_host_to_target32.
39940 Replace grub_be_to_cpu32 with grub_target_to_host32.
39941 (load_modules): Likewise.
39942 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
39943 Replace grub_be_to_cpu32 with grub_target_to_host32.
39944 Replace grub_cpu_to_be16 with grub_host_to_target16.
39945 Replace grub_cpu_to_be32 grub_host_to_target32.
39946
39947 2007-10-12 Robert Millan <rmh@aybabtu.com>
39948
39949 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
39950 * util/elf/grub-mkimage.c: ... here.
39951
39952 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
39953 `util/powerpc/ieee1275/grub-mkimage.c'.
39954
39955 2007-10-07 Robert Millan <rmh@aybabtu.com>
39956
39957 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
39958 and make it easier to figure out.
39959 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
39960 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
39961 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
39962 leave us with less than HEAP_MIN_SIZE total heap.
39963 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
39964
39965 2007-10-03 Robert Millan <rmh@aybabtu.com>
39966
39967 * include/grub/i386/io.h: New file.
39968 * commands/i386/pc/play.c (inb): Removed.
39969 (outb): Removed.
39970 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39971 with grub_outb().
39972 * term/i386/pc/serial.c (inb): Removed.
39973 (outb): Removed.
39974 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39975 with grub_outb().
39976 * term/i386/pc/vga.c (inb): Removed.
39977 (outb): Removed.
39978 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39979 with grub_outb().
39980
39981 2007-10-02 Robert Millan <rmh@aybabtu.com>
39982
39983 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
39984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39985 Reported by Marcin Kurek.
39986
39987 2007-09-07 Robert Millan <rmh@aybabtu.com>
39988
39989 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
39990 SmartFirmware version updates (as released by Sven Luther), and avoid
39991 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
39992 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
39993 known broken.
39994
39995 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39996
39997 From Hitoshi Ozeki:
39998 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
39999 when merging two regions.
40000
40001 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40002
40003 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40004 * normal/completion.c (grub_normal_do_completion): Likewise.
40005 Reported by Hitoshi Ozeki.
40006
40007 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40008
40009 Do not use devices at boot in chainloading.
40010
40011 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40012 (boot_part_addr): Likewise.
40013 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40014 with BOOT_DRIVE and BOOT_PART_ADDR.
40015 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40016 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40017
40018 2007-08-29 Robert Millan <rmh@aybabtu.com>
40019
40020 Patch from Simon Peter <dn.tlp@gmx.net>:
40021 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40022 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40023 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40024 util/i386/pc/grub-setup.c_DEPENDENCIES.
40025 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40026 util/grub-probe.c_DEPENDENCIES.
40027 * conf/powerpc-ieee1275.rmk: Likewise.
40028
40029 2007-08-28 Robert Millan <rmh@aybabtu.com>
40030
40031 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40032 to tell grub-mkdevicemap how to name devices.
40033 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40034 feature).
40035
40036 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40037 util/i386/get_disk_name.c.
40038 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40039 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40040 util/ieee1275/get_disk_name.c.
40041
40042 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40043
40044 * DISTLIST: Add util/i386/get_disk_name.c and
40045 util/ieee1275/get_disk_name.c.
40046
40047 * util/grub-mkdevicemap.c: Replace device naming logic with
40048 grub_util_get_disk_name() calls.
40049
40050 2007-08-20 Robert Millan <rmh@aybabtu.com>
40051
40052 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40053 (so that it works for both plural and singular quantities).
40054
40055 2007-08-05 Robert Millan <rmh@aybabtu.com>
40056
40057 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40058 so that [xz] isn't taken into account when determining order.
40059
40060 2007-08-02 Marco Gerards <marco@gnu.org>
40061
40062 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40063 `include/multiboot2.h', `include/grub/elfload.h',
40064 `include/multiboot.h', `include/grub/multiboot.h',
40065 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40066 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40067 `kern/elf.c', `loader/multiboot_loader.c',
40068 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40069 `loader/i386/pc/multiboot2.c',
40070 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40071 `util/i386/pc/grub-mkrescue.in'. Remove
40072 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40073 `include/grub/i386/pc/util/biosdisk.h' and
40074 `include/grub/powerpc/ieee1275/multiboot.h'.
40075
40076 2007-08-02 Bean <bean123ch@gmail.com>
40077
40078 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40079 (ntfs_mod_SOURCES): New variable.
40080 (ntfs_mod_CFLAGS): Likewise.
40081 (ntfs_mod_LDFLAGS): Likewise.
40082
40083 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40084 (grub_probe_SOURCES): Likewise.
40085 (grub_emu_SOURCES): Likewise.
40086
40087 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40088 (grub_emu_SOURCES): Likewise.
40089
40090 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40091 (grub_emu_SOURCES): Likewise.
40092
40093 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40094
40095 * fs/ntfs.c: New file.
40096
40097 2007-08-02 Bean <bean123ch@gmail.com>
40098
40099 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40100
40101 * file.h (grub_file): Likewise.
40102
40103 * fshelp.h (grub_fshelp_read_file): Likewise.
40104
40105 * util/i386/pc/grub-setup.c (setup): Likewise.
40106 (save_first_sector): Likewise.
40107 (save_blocklists): Likewise.
40108
40109 * fs/affs.c (grub_affs_read_file): Likewise.
40110
40111 * fs/ext2.c (grub_ext2_read_file): Likewise.
40112
40113 * fs/fat.c (grub_fat_read_data): Likewise.
40114
40115 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40116
40117 * fs/hfs.c (grub_hfs_read_file): Likewise.
40118
40119 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40120
40121 * fs/jfs.c (grub_jfs_read_file): Likewise.
40122
40123 * fs/minix.c (grub_minix_read_file): Likewise.
40124
40125 * fs/sfs.c (grub_sfs_read_file): Likewise.
40126
40127 * fs/ufs.c (grub_ufs_read_file): Likewise.
40128
40129 * fs/xfs.c (grub_xfs_read_file): Likewise.
40130
40131 * command/blocklist.c (read_blocklist): Likewise.
40132 (print_blocklist): Likewise.
40133
40134 2007-08-02 Marco Gerards <marco@gnu.org>
40135
40136 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40137 `util/hostfs.c'.
40138
40139 * disk/host.c: New file.
40140
40141 * util/hostfs.c: Likewise.
40142
40143 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40144 return `GRUB_ERR_BAD_FS'.
40145 * fs/sfs.c (grub_sfs_mount): Likewise.
40146 * fs/xfs.c (grub_xfs_mount): Likewise.
40147
40148 * include/grub/disk.h (enum grub_disk_dev_id): Add
40149 `GRUB_DISK_DEVICE_HOST_ID'.
40150
40151 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40152
40153 2007-07-24 Jerone Young <jerone@gmail.com>
40154
40155 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40156 modules for compilation.
40157 * conf/powerpc-ieee1275.rmk: Likewise.
40158
40159 * include/multiboot.h: Move multiboot definitions to one file. Rename
40160 many definitions to not get grub specific.
40161 * include/multiboot2.h: Create header with multiboot 2 definitions.
40162 * include/grub/multiboot.h: Header for grub specific function
40163 prototypes and definitions.
40164 * include/grub/multiboot2.h: Likewise.
40165 * include/grub/multiboot_loader.h: Likewise.
40166 * include/grub/i386/pc/multiboot.h: Removed.
40167 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40168
40169 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40170 and 2 to allow for one multiboot and module commands.
40171 * loader/multiboot2.c: Add multiboot2 functionality.
40172 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40173 and definition names.
40174 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40175 2 functions.
40176 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40177 ieee1275 specific multiboot2 code.
40178
40179 * kern/i386/pc/startup.S: Change headers and definition names for
40180 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40181
40182 2007-07-22 Robert Millan <rmh@aybabtu.com>
40183
40184 * geninitheader.sh: Process file specified in first parameter rather
40185 than hardcoding grub_modules_init.lst.
40186 * geninit.sh: Likewise. Also, construct header name dynamically rather
40187 than hardcoding grub_modules_init.h.
40188
40189 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40190 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40191 grub_probe_init.[ch] and grub_setup_init.[ch].
40192
40193 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40194 grub_modules_init.h with grub_emu_init.h.
40195 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40196 grub_probe_init.[ch] files.
40197 * conf/i386-efi.rmk: Likewise.
40198 * conf/i386-pc.rmk: Likewise.
40199 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40200 grub_setup_init.[ch] files.
40201
40202 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40203 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40204 to initialize modules rather than a list of hardcoded functions.
40205 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40206 grub_init_all() to initialize modules rather than a list of hardcoded
40207 functions.
40208
40209 2007-07-22 Robert Millan <rmh@aybabtu.com>
40210
40211 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40212 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40213
40214 2007-07-22 Robert Millan <rmh@aybabtu.com>
40215
40216 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40217 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40218 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40219 flag when running on SmartFirmware.
40220 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40221 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40222 was set.
40223
40224 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40225 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40226 rather than decreasing it.
40227
40228 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40229 there's not enough space to do it, fail in the same way as when it
40230 can't be done because there are no partitions.
40231
40232 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40233 when nvsetenv failed.
40234
40235 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40236
40237 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40238 because this rule is automatically generated.
40239 (grub-mkrescue): Removed for the same reason as above.
40240
40241 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40242
40243 Migrate to GNU General Public License Version 3.
40244
40245 * COPYING: Replaced with the plain text version of GPLv3.
40246
40247 * config.guess: Updated from gnulib.
40248 * config.sub: Likewise.
40249
40250 * geninit.sh: Output a GPLv3 copyright notice.
40251 * geninitheader.sh: Likewise.
40252 * genmodsrc.sh: Likewise.
40253 * gensymlist.sh.in: Likewise.
40254
40255 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40256 * boot/i386/pc/diskboot.S: Likewise.
40257 * boot/i386/pc/pxeboot.S: Likewise.
40258 * commands/blocklist.c: Likewise.
40259 * commands/boot.c: Likewise.
40260 * commands/cat.c: Likewise.
40261 * commands/cmp.c: Likewise.
40262 * commands/configfile.c: Likewise.
40263 * commands/echo.c: Likewise.
40264 * commands/help.c: Likewise.
40265 * commands/ls.c: Likewise.
40266 * commands/search.c: Likewise.
40267 * commands/terminal.c: Likewise.
40268 * commands/test.c: Likewise.
40269 * commands/videotest.c: Likewise.
40270 * commands/i386/cpuid.c: Likewise.
40271 * commands/i386/pc/halt.c: Likewise.
40272 * commands/i386/pc/play.c: Likewise.
40273 * commands/i386/pc/reboot.c: Likewise.
40274 * commands/i386/pc/vbeinfo.c: Likewise.
40275 * commands/i386/pc/vbetest.c: Likewise.
40276 * commands/ieee1275/halt.c: Likewise.
40277 * commands/ieee1275/reboot.c: Likewise.
40278 * commands/ieee1275/suspend.c: Likewise.
40279 * disk/loopback.c: Likewise.
40280 * disk/lvm.c: Likewise.
40281 * disk/raid.c: Likewise.
40282 * disk/efi/efidisk.c: Likewise.
40283 * disk/i386/pc/biosdisk.c: Likewise.
40284 * disk/ieee1275/ofdisk.c: Likewise.
40285 * font/manager.c: Likewise.
40286 * fs/affs.c: Likewise.
40287 * fs/ext2.c: Likewise.
40288 * fs/fat.c: Likewise.
40289 * fs/fshelp.c: Likewise.
40290 * fs/hfs.c: Likewise.
40291 * fs/hfsplus.c: Likewise.
40292 * fs/iso9660.c: Likewise.
40293 * fs/jfs.c: Likewise.
40294 * fs/minix.c: Likewise.
40295 * fs/sfs.c: Likewise.
40296 * fs/ufs.c: Likewise.
40297 * fs/xfs.c: Likewise.
40298 * hello/hello.c: Likewise.
40299 * include/grub/acorn_filecore.h: Likewise.
40300 * include/grub/arg.h: Likewise.
40301 * include/grub/bitmap.h: Likewise.
40302 * include/grub/boot.h: Likewise.
40303 * include/grub/cache.h: Likewise.
40304 * include/grub/device.h: Likewise.
40305 * include/grub/disk.h: Likewise.
40306 * include/grub/dl.h: Likewise.
40307 * include/grub/elfload.h: Likewise.
40308 * include/grub/env.h: Likewise.
40309 * include/grub/err.h: Likewise.
40310 * include/grub/file.h: Likewise.
40311 * include/grub/font.h: Likewise.
40312 * include/grub/fs.h: Likewise.
40313 * include/grub/fshelp.h: Likewise.
40314 * include/grub/gzio.h: Likewise.
40315 * include/grub/hfs.h: Likewise.
40316 * include/grub/kernel.h: Likewise.
40317 * include/grub/loader.h: Likewise.
40318 * include/grub/lvm.h: Likewise.
40319 * include/grub/misc.h: Likewise.
40320 * include/grub/mm.h: Likewise.
40321 * include/grub/net.h: Likewise.
40322 * include/grub/normal.h: Likewise.
40323 * include/grub/parser.h: Likewise.
40324 * include/grub/partition.h: Likewise.
40325 * include/grub/pc_partition.h: Likewise.
40326 * include/grub/raid.h: Likewise.
40327 * include/grub/rescue.h: Likewise.
40328 * include/grub/script.h: Likewise.
40329 * include/grub/setjmp.h: Likewise.
40330 * include/grub/symbol.h: Likewise.
40331 * include/grub/term.h: Likewise.
40332 * include/grub/terminfo.h: Likewise.
40333 * include/grub/tparm.h: Likewise.
40334 * include/grub/types.h: Likewise.
40335 * include/grub/video.h: Likewise.
40336 * include/grub/efi/api.h: Likewise.
40337 * include/grub/efi/chainloader.h: Likewise.
40338 * include/grub/efi/console.h: Likewise.
40339 * include/grub/efi/console_control.h: Likewise.
40340 * include/grub/efi/disk.h: Likewise.
40341 * include/grub/efi/efi.h: Likewise.
40342 * include/grub/efi/pe32.h: Likewise.
40343 * include/grub/efi/time.h: Likewise.
40344 * include/grub/i386/linux.h: Likewise.
40345 * include/grub/i386/setjmp.h: Likewise.
40346 * include/grub/i386/types.h: Likewise.
40347 * include/grub/i386/efi/kernel.h: Likewise.
40348 * include/grub/i386/efi/loader.h: Likewise.
40349 * include/grub/i386/efi/time.h: Likewise.
40350 * include/grub/i386/pc/biosdisk.h: Likewise.
40351 * include/grub/i386/pc/boot.h: Likewise.
40352 * include/grub/i386/pc/chainloader.h: Likewise.
40353 * include/grub/i386/pc/console.h: Likewise.
40354 * include/grub/i386/pc/init.h: Likewise.
40355 * include/grub/i386/pc/kernel.h: Likewise.
40356 * include/grub/i386/pc/loader.h: Likewise.
40357 * include/grub/i386/pc/memory.h: Likewise.
40358 * include/grub/i386/pc/multiboot.h: Likewise.
40359 * include/grub/i386/pc/serial.h: Likewise.
40360 * include/grub/i386/pc/time.h: Likewise.
40361 * include/grub/i386/pc/vbe.h: Likewise.
40362 * include/grub/i386/pc/vbeblit.h: Likewise.
40363 * include/grub/i386/pc/vbefill.h: Likewise.
40364 * include/grub/i386/pc/vbeutil.h: Likewise.
40365 * include/grub/i386/pc/vga.h: Likewise.
40366 * include/grub/ieee1275/ieee1275.h: Likewise.
40367 * include/grub/ieee1275/ofdisk.h: Likewise.
40368 * include/grub/powerpc/libgcc.h: Likewise.
40369 * include/grub/powerpc/setjmp.h: Likewise.
40370 * include/grub/powerpc/types.h: Likewise.
40371 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40372 * include/grub/powerpc/ieee1275/console.h: Likewise.
40373 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40374 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40375 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40376 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40377 * include/grub/powerpc/ieee1275/time.h: Likewise.
40378 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40379 * include/grub/sparc64/libgcc.h: Likewise.
40380 * include/grub/sparc64/setjmp.h: Likewise.
40381 * include/grub/sparc64/types.h: Likewise.
40382 * include/grub/sparc64/ieee1275/console.h: Likewise.
40383 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40384 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40385 * include/grub/sparc64/ieee1275/time.h: Likewise.
40386 * include/grub/util/biosdisk.h: Likewise.
40387 * include/grub/util/getroot.h: Likewise.
40388 * include/grub/util/lvm.h: Likewise.
40389 * include/grub/util/misc.h: Likewise.
40390 * include/grub/util/raid.h: Likewise.
40391 * include/grub/util/resolve.h: Likewise.
40392 * io/gzio.c: Likewise.
40393 * kern/device.c: Likewise.
40394 * kern/disk.c: Likewise.
40395 * kern/dl.c: Likewise.
40396 * kern/elf.c: Likewise.
40397 * kern/env.c: Likewise.
40398 * kern/err.c: Likewise.
40399 * kern/file.c: Likewise.
40400 * kern/fs.c: Likewise.
40401 * kern/loader.c: Likewise.
40402 * kern/main.c: Likewise.
40403 * kern/misc.c: Likewise.
40404 * kern/mm.c: Likewise.
40405 * kern/parser.c: Likewise.
40406 * kern/partition.c: Likewise.
40407 * kern/rescue.c: Likewise.
40408 * kern/term.c: Likewise.
40409 * kern/efi/efi.c: Likewise.
40410 * kern/efi/init.c: Likewise.
40411 * kern/efi/mm.c: Likewise.
40412 * kern/i386/dl.c: Likewise.
40413 * kern/i386/efi/init.c: Likewise.
40414 * kern/i386/efi/startup.S: Likewise.
40415 * kern/i386/pc/init.c: Likewise.
40416 * kern/i386/pc/lzo1x.S: Likewise.
40417 * kern/i386/pc/startup.S: Likewise.
40418 * kern/ieee1275/ieee1275.c: Likewise.
40419 * kern/powerpc/cache.S: Likewise.
40420 * kern/powerpc/dl.c: Likewise.
40421 * kern/powerpc/ieee1275/cmain.c: Likewise.
40422 * kern/powerpc/ieee1275/crt0.S: Likewise.
40423 * kern/powerpc/ieee1275/init.c: Likewise.
40424 * kern/powerpc/ieee1275/openfw.c: Likewise.
40425 * kern/sparc64/cache.S: Likewise.
40426 * kern/sparc64/dl.c: Likewise.
40427 * kern/sparc64/ieee1275/init.c: Likewise.
40428 * kern/sparc64/ieee1275/openfw.c: Likewise.
40429 * loader/efi/chainloader.c: Likewise.
40430 * loader/efi/chainloader_normal.c: Likewise.
40431 * loader/i386/efi/linux.c: Likewise.
40432 * loader/i386/efi/linux_normal.c: Likewise.
40433 * loader/i386/pc/chainloader.c: Likewise.
40434 * loader/i386/pc/chainloader_normal.c: Likewise.
40435 * loader/i386/pc/linux.c: Likewise.
40436 * loader/i386/pc/linux_normal.c: Likewise.
40437 * loader/i386/pc/multiboot.c: Likewise.
40438 * loader/i386/pc/multiboot_normal.c: Likewise.
40439 * loader/powerpc/ieee1275/linux.c: Likewise.
40440 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40441 * normal/arg.c: Likewise.
40442 * normal/cmdline.c: Likewise.
40443 * normal/command.c: Likewise.
40444 * normal/completion.c: Likewise.
40445 * normal/execute.c: Likewise.
40446 * normal/function.c: Likewise.
40447 * normal/lexer.c: Likewise.
40448 * normal/main.c: Likewise.
40449 * normal/menu.c: Likewise.
40450 * normal/menu_entry.c: Likewise.
40451 * normal/misc.c: Likewise.
40452 * normal/parser.y: Likewise.
40453 * normal/script.c: Likewise.
40454 * normal/i386/setjmp.S: Likewise.
40455 * normal/powerpc/setjmp.S: Likewise.
40456 * normal/sparc64/setjmp.S: Likewise.
40457 * partmap/acorn.c: Likewise.
40458 * partmap/amiga.c: Likewise.
40459 * partmap/apple.c: Likewise.
40460 * partmap/gpt.c: Likewise.
40461 * partmap/pc.c: Likewise.
40462 * partmap/sun.c: Likewise.
40463 * term/gfxterm.c: Likewise.
40464 * term/terminfo.c: Likewise.
40465 * term/efi/console.c: Likewise.
40466 * term/i386/pc/console.c: Likewise.
40467 * term/i386/pc/serial.c: Likewise.
40468 * term/i386/pc/vesafb.c: Likewise.
40469 * term/i386/pc/vga.c: Likewise.
40470 * term/ieee1275/ofconsole.c: Likewise.
40471 * util/biosdisk.c: Likewise.
40472 * util/console.c: Likewise.
40473 * util/genmoddep.c: Likewise.
40474 * util/getroot.c: Likewise.
40475 * util/grub-emu.c: Likewise.
40476 * util/grub-mkdevicemap.c: Likewise.
40477 * util/grub-probe.c: Likewise.
40478 * util/lvm.c: Likewise.
40479 * util/misc.c: Likewise.
40480 * util/raid.c: Likewise.
40481 * util/resolve.c: Likewise.
40482 * util/update-grub.in: Likewise.
40483 * util/update-grub_lib.in: Likewise.
40484 * util/grub.d/00_header.in: Likewise.
40485 * util/grub.d/10_hurd.in: Likewise.
40486 * util/grub.d/10_linux.in: Likewise.
40487 * util/i386/efi/grub-install.in: Likewise.
40488 * util/i386/efi/grub-mkimage.c: Likewise.
40489 * util/i386/pc/grub-install.in: Likewise.
40490 * util/i386/pc/grub-mkimage.c: Likewise.
40491 * util/i386/pc/grub-mkrescue.in: Likewise.
40492 * util/i386/pc/grub-setup.c: Likewise.
40493 * util/i386/pc/misc.c: Likewise.
40494 * util/powerpc/ieee1275/grub-install.in: Likewise.
40495 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40496 * util/powerpc/ieee1275/misc.c: Likewise.
40497 * video/bitmap.c: Likewise.
40498 * video/video.c: Likewise.
40499 * video/i386/pc/vbe.c: Likewise.
40500 * video/i386/pc/vbeblit.c: Likewise.
40501 * video/i386/pc/vbefill.c: Likewise.
40502 * video/i386/pc/vbeutil.c: Likewise.
40503 * video/readers/tga.c: Likewise.
40504
40505 2007-07-02 Robert Millan <rmh@aybabtu.com>
40506
40507 * conf/i386-efi.rmk: Replace obsolete reference to
40508 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40509 with util/getroot.c.
40510 * conf/powerpc-ieee1275.rmk: Likewise.
40511 * conf/sparc64-ieee1275.rmk: Likewise.
40512
40513 * util/grub-emu.c (main): Fix unchecked pointer handling.
40514
40515 2007-07-02 Robert Millan <rmh@aybabtu.com>
40516
40517 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40518 invocation to fail, in order to support partition-less media.
40519
40520 * util/i386/pc/grub-install.in: Likewise.
40521
40522 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40523 which fs or partmap modules are needed (akin to its sister scripts).
40524
40525 Also use grub-probe to get rid of unportable /proc/mounts check.
40526
40527 Print the same informational message that the other scripts do, before
40528 exiting.
40529
40530 2007-06-23 Robert Millan <rmh@aybabtu.com>
40531
40532 * util/update-grub_lib.in (font_path): New function. Determine whether
40533 a font file can be found and, if so, echo the GRUB path to it.
40534
40535 * util/update-grub.in: Handle multiple terminals depending on user
40536 input, platform availability and font file presence. Propagate
40537 variables of our findings to /etc/grub.d/ children.
40538
40539 * util/grub.d/00_header.in: Handle multiple terminals, based on
40540 environment setup by update-grub.
40541
40542 2007-06-23 Robert Millan <rmh@aybabtu.com>
40543
40544 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40545
40546 2007-06-21 Robert Millan <rmh@aybabtu.com>
40547
40548 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40549 indicate end of data section in kernel image.
40550 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40551 GRUB_KERNEL_MACHINE_DATA_END.
40552
40553 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40554 space for it.
40555 * kern/i386/efi/startup.S: Likewise.
40556
40557 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40558 during image generation. Implement --prefix option to override this
40559 patch.
40560 * util/i386/efi/grub-mkimage.c: Likewise.
40561
40562 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40563 code to make path relative to its root into a separate function.
40564
40565 * util/i386/pc/grub-install.in: Use newly provided
40566 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40567 pass the result to grub-install --prefix.
40568
40569 2007-06-13 Robert Millan <rmh@aybabtu.com>
40570
40571 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40572 DEFAULT_DEVICE_MAP.
40573 * util/grub-emu.c: Use above definitions from misc.h instead of
40574 defining them.
40575 * util/grub-mkdevicemap.c: Likewise.
40576 * util/i386/pc/grub-setup.c: Likewise.
40577 * util/grub-probe.c: Likewise.
40578 (probe): Abort with grub_util_error() when either
40579 grub_guess_root_device or grub_util_get_grub_dev fails.
40580
40581 2007-06-12 Robert Millan <rmh@aybabtu.com>
40582
40583 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40584 "pager" assignment.
40585 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40586 "pcdata".
40587 * util/grub-probe.c (probe): Likewise for "drive_name".
40588
40589 2007-06-11 Robert Millan <rmh@aybabtu.com>
40590
40591 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40592 not just the cdrom one.
40593
40594 2007-06-11 Robert Millan <rmh@aybabtu.com>
40595
40596 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40597 Add --pkglibdir=DIR option to override pkglibdir.
40598 Mention --image-type=TYPE in help output.
40599 Fix --grub-mkimage (it was a no-op).
40600 Abort gracefully when no parameter is given.
40601
40602 2007-06-11 Robert Millan <rmh@aybabtu.com>
40603
40604 * util/i386/pc/grub-mkrescue.in: New file.
40605 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40606 * Makefile.in: Handle bin_SCRIPTS.
40607
40608 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40609
40610 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40611 list of video modes.
40612
40613 2007-06-06 Robert Millan <rmh@aybabtu.com>
40614
40615 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40616 file doesn't exist, or if it is in a filesystem grub can't read.
40617
40618 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40619 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40620 header comment to fit in 80 columns when the variables are resolved.
40621
40622 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40623 could be identified by update-grub. Remove redundant check for
40624 unifont.pff existence (since convert_system_path_to_grub_path now
40625 handles that).
40626
40627 2007-06-04 Robert Millan <rmh@aybabtu.com>
40628
40629 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40630
40631 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40632
40633 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40634
40635 2007-06-04 Robert Millan <rmh@aybabtu.com>
40636
40637 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40638
40639 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40640 grub_apple_partition_map_fini.
40641
40642 * util/biosdisk.c
40643 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40644 to access >2 TiB disks).
40645
40646 Print disk->total_sectors with %llu instead of %lu, since this
40647 variable is always 64-bit (prevents wrong disk size from being displayed
40648 on either >2 TiB disk or big-endian CPU).
40649
40650 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40651 into a generic case that supports all (sane) partition maps.
40652
40653 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40654 breaks big-endian.
40655
40656 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40657 and grub_apple_partition_map_fini() after that.
40658
40659 2007-06-01 Robert Millan <rmh@aybabtu.com>
40660
40661 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40662
40663 * util/grub.d/00_header.in: Only enable gfxterm when
40664 convert_system_path_to_grub_path() succeeds.
40665
40666 2007-05-20 Robert Millan <rmh@aybabtu.com>
40667
40668 * util/update-grub_lib.in: New file.
40669 * DISTLIST: Add update-grub_lib.in.
40670 * conf/common.rmk: Generate update-grub_lib and install it in
40671 $(lib_DATA).
40672 * Makefile.in: Add install routine for $(lib_DATA).
40673
40674 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40675 function provided by update-grub_lib to support arbitrary paths of
40676 unifont.pff.
40677 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40678 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40679
40680 2007-05-19 Robert Millan <rmh@aybabtu.com>
40681
40682 * commands/i386/cpuid.c: New module.
40683 * DISTLIST: Add it.
40684 * conf/i386-efi.rmk: Enable cpuid.mod.
40685 * conf/i386-pc.rmk: Likewise.
40686
40687 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40688
40689 * kern/disk.c (grub_disk_read): Check return value of
40690 grub_realloc().
40691
40692 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40693
40694 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40695 arrays.
40696 * disk/raid.c (grub_raid_open): Likewise.
40697
40698 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40699
40700 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40701 stack instead of on the heap.
40702
40703 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40704 before doing a read on it.
40705
40706 * configure.ac: Only use -fno-stack-protector for the target
40707 environment.
40708
40709 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40710
40711 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40712 __attribute_ ((unused)) to mode_type argument.
40713
40714 * util/getroot.c (grub_guess_root_device): Fix #endif.
40715
40716 * kern/misc.c (memcmp): Fix prototype.
40717
40718 * include/grub/partition.h [GRUB_UTIL]
40719 (grub_gpt_partition_map_init): Add prototype.
40720 (grub_gpt_partition_map_fini): Likewise.
40721
40722 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40723 at the right place.
40724
40725 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40726 (grub_fat_read_data): Likewise.
40727 (grub_fat_find_dir): Likewise.
40728
40729 * font/manager.c (find_glyph): Make table a const.
40730 (grub_font_get_glyph): Remove bitmap from if statement.
40731
40732 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40733
40734 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40735 code, first search for device in /dev/mapper, then in /dev.
40736 (grub_util_get_grub_dev): New function.
40737 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40738 prototype.
40739 * util/grub-probe.c (probe): Remove check for RAID, call
40740 grub_util_get_grub_dev() instead of
40741 grub_util_biosdisk_get_grub_dev().
40742 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40743 grub_util_biosdisk_get_grub_dev().
40744 * util/i386/pc/grub-setup.c (main): Likewise.
40745
40746 2007-05-16 Robert Millan <rmh@aybabtu.com>
40747
40748 * DISTLIST: Update for the latest changes.
40749 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40750 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40751 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40752 grub/util/biosdisk.h.
40753 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40754 grub/util/biosdisk.h.
40755
40756 2007-05-16 Robert Millan <rmh@aybabtu.com>
40757
40758 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40759
40760 2007-05-16 Robert Millan <rmh@aybabtu.com>
40761
40762 * util/i386/efi/grub-install.in: New.
40763 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40764 newly added grub-install.
40765 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
40766 include.
40767 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
40768 grub/util/biosdisk.h.
40769 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
40770 grub/util/biosdisk.h.
40771
40772 2007-05-16 Robert Millan <rmh@aybabtu.com>
40773
40774 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
40775 * include/grub/util/biosdisk.h: ... here.
40776 * util/i386/pc/biosdisk.c: Moved to ...
40777 * util/biosdisk.c: ... here.
40778 * util/i386/pc/getroot.c: Moved to ...
40779 * util/getroot.c: ... here.
40780 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
40781 * util/grub-mkdevicemap.c: ... here.
40782 * util/i386/pc/grub-probe.c: Moved to ...
40783 * util/grub-probe.c: ... here.
40784
40785 2007-05-15 Robert Millan <rmh@aybabtu.com>
40786
40787 * util/update-grub.in: Remove duplicated line in grub.cfg header
40788 message.
40789
40790 2007-05-13 Robert Millan <rmh@aybabtu.com>
40791
40792 * util/update-grub.in: Fix a few assumptions about the devices holding
40793 /, /boot and /boot/grub being the same.
40794 * util/grub.d/00_header.in: Likewise.
40795 * util/grub.d/10_hurd.in: Likewise.
40796 * util/grub.d/10_linux.in: Likewise.
40797
40798 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
40799 patterns. Use that to define the `.old' suffix as older than `'.
40800
40801 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
40802
40803 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
40804 the grub.cfg header message.
40805
40806 2007-05-11 Robert Millan <rmh@aybabtu.com>
40807
40808 * util/update-grub.in: Create device.map if it doesn't already exist,
40809 before attempting to run grub-probe.
40810 Check for grub-probe and grub-mkdevicemap with the same code
40811 grub-install is using.
40812 Remove test mode.
40813
40814 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
40815
40816 * Makefile.in: Add the datarootdir autoconf variable.
40817
40818 2007-05-09 Robert Millan <rmh@aybabtu.com>
40819
40820 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
40821 fail gracefully if dev->disk->partition == NULL.
40822
40823 2007-05-07 Robert Millan <rmh@aybabtu.com>
40824
40825 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
40826 determine partition map module.
40827 * util/i386/pc/grub-install.in: Use this feature to decide which
40828 partition module to load, instead of hardcoding pc and gpt.
40829
40830 2007-05-07 Robert Millan <rmh@aybabtu.com>
40831
40832 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
40833 source directory differs from build directory.
40834
40835 2007-05-05 Robert Millan <rmh@aybabtu.com>
40836
40837 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
40838 initialisation.
40839
40840 2007-05-05 Robert Millan <rmh@aybabtu.com>
40841
40842 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
40843
40844 2007-05-05 Robert Millan <rmh@aybabtu.com>
40845
40846 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
40847 command-line arguments via ${GRUB_CMDLINE_LINUX}.
40848
40849 2007-05-05 Robert Millan <rmh@aybabtu.com>
40850
40851 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
40852 (grub_probe_SOURCES): Likewise.
40853 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
40854 GPT and initialize dos_part and bsd_part accordingly.
40855 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
40856 install_bsd_part.
40857 (main): Activate gpt module for use during partition identification,
40858 and deactivate it afterwards.
40859 * util/i386/pc/grub-install.in: Add gpt module to core.img.
40860 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
40861 partition identification, and deactivate it afterwards.
40862
40863 2007-05-05 Robert Millan <rmh@aybabtu.com>
40864
40865 * term/i386/pc/console.c (grub_console_fini): Call
40866 grub_term_set_current() before grub_term_unregister().
40867
40868 2007-05-04 Robert Millan <rmh@aybabtu.com>
40869
40870 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
40871 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
40872 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
40873 and update-grub_DATA.
40874 * conf/common.rmk: Build and install update-grub components.
40875 * conf/common.mk: Regenerate.
40876 * util/update-grub.in: New. Core of update-grub.
40877 * util/grub.d/00_header.in: New. Generates grub.cfg header.
40878 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
40879 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
40880 * util/grub.d/README: New. Document grub.d directory layout.
40881
40882 2007-05-01 Robert Millan <rmh@aybabtu.com>
40883
40884 * util/grub-emu.c: Move initialization functions
40885 grub_util_biosdisk_init() and grub_init_all() before
40886 grub_util_biosdisk_get_grub_dev(), which relies on them.
40887
40888 2007-04-19 Robert Millan <rmh@aybabtu.com>
40889
40890 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
40891 it is used later.
40892
40893 2007-04-18 Jerone Young <jerone@gmail.com>
40894
40895 * kernel/elf.c: Add missing parenthesis for conditional statement
40896 stanza.
40897
40898 2007-04-10 Jerone Young <jerone@gmail.com>
40899
40900 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
40901 continue on and look for device node with real device name.
40902
40903 2007-04-10 Jerone Young <jerone@gmail.com>
40904
40905 * configure.ac: Add argument for autoconf to use transformation
40906 ability.
40907 * Makefile.in: Add autoconf package transformation code.
40908 * util/i386/pc/grub-install.in: Likewise.
40909 * util/powerpc/ieee1275/grub-install.in: Likewise.
40910
40911 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40912
40913 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
40914 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
40915 (EXT2_REVISION): Likewise.
40916 (EXT2_INODE_SIZE): Likewise.
40917 (struct grub_ext2_block_group): Added a missing member
40918 "used_dirs".
40919 (grub_ext2_read_inode): Divide by the inode size in a superblock
40920 instead of 128 to obtain INODES_PER_BLOCK.
40921 Use the macro EXT2_INODE_SIZE instead of directly using
40922 SBLOCK->INODE_SIZE.
40923
40924 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40925
40926 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
40927 superblock instead of the structure size to compute an
40928 offset. This fixes the problem that GRUB could not read a
40929 filesystem when inode size is different from 128-byte.
40930
40931 2007-03-05 Marco Gerards <marco@gnu.org>
40932
40933 * normal/main.c (read_config_file): When "menu" is not set, create
40934 an initial context.
40935
40936 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40937
40938 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
40939 (HEAP_LIMIT): New macro.
40940 (grub_claim_heap): Claim memory up to `heaplimit'.
40941
40942 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40943
40944 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
40945 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
40946 (_start): Likewise.
40947 (grub_arch_modules_addr): Return address after `_end'.
40948 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
40949 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
40950 (add_segments): Calculate `_end' from phdr size and location.
40951 (ALIGN_UP): Moved to ...
40952 * include/grub/misc.h: here.
40953 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40954 New macro.
40955 (GRUB_IEEE1275_MODULE_BASE): Removed.
40956
40957 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40958
40959 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
40960 loop boundary.
40961
40962 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40963
40964 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
40965 All users updated.
40966 (grub_elf64_load_hook_t): Likewise.
40967 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
40968 debug output.
40969
40970 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40971
40972 * kern/mm.c: Update copyright.
40973 (grub_mm_debug): Correct syntax error.
40974 (grub_mm_dump_free): New function.
40975 (grub_debug_free): Call `grub_free'.
40976 * include/grub/mm.h: Update copyright.
40977 (grub_mm_dump_free): Add declaration.
40978
40979 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40980
40981 * include/grub/ieee1275/ieee1275.h: Update copyright.
40982 * kern/powerpc/ieee1275/init.c: Likewise.
40983 * kern/powerpc/ieee1275/openfw.c: Likewise.
40984
40985 * loader/powerpc/ieee1275/linux.c: Likewise.
40986 * include/grub/elfload.h: Likewise.
40987 * kern/elf.c: Likewise.
40988 (grub_elf32_load): Pass `base' and `size' parameters. Update all
40989 callers.
40990 (grub_elf64_load): Likewise.
40991 (grub_elf32_load_segment): Move to a nested function.
40992 (grub_elf64_load_segment): Likewise.
40993
40994 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40995
40996 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
40997 prototype.
40998 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
40999 (grub_heap_len): Likewise.
41000 (HEAP_SIZE): New macro.
41001 (grub_claim_heap): New function.
41002 (grub_machine_init): Don't claim heap directly. Call
41003 `grub_claim_heap'.
41004 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41005 (grub_available_iterate): New function.
41006
41007 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41008
41009 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41010 * configure.ac: Use it for testing the HOST and TARGET compilers.
41011
41012 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41013
41014 * Makefile.in (enable_grub_emu): New variable.
41015 * configure.ac (--enable-grub-emu): New option.
41016 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41017 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41018 * conf/i386-pc.rmk: Likewise.
41019 * conf/powerpc-ieee1275.rmk: Likewise.
41020 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41021
41022 2006-12-12 Marco Gerards <marco@gnu.org>
41023
41024 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41025
41026 * kern/env.c (grub_env_unset): Don't free the member `value' when
41027 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41028 pointer.
41029
41030 * normal/main.c (current_menu): Removed.
41031 (free_menu): Unset the `menu' environment variable.
41032 (grub_normal_menu_addentry): Make use of the environment variable
41033 `menu', instead of using the global `current_menu'. Allocate
41034 memory for the sourcecode of this entry.
41035 (read_config_file): New argument `nested', changed all callers.
41036 Only in the case of a new context, initialize a new menu. Set the
41037 `menu' environment variable.
41038 (grub_normal_execute): Don't set and unset the environment
41039 variable `menu' here anymore. Only free the menu when leaving the
41040 context.
41041
41042 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41043 leak.
41044
41045 2006-12-11 Marco Gerards <marco@gnu.org>
41046
41047 * normal/menu_entry.c (run): Fix off by one bug so the last line
41048 is executed. Move the loader check to outside the loop.
41049
41050 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41051
41052 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41053
41054 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41055
41056 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41057 the number of sectors. Reported by Andrey Shuvikov
41058 <mr_hyro@yahoo.com>.
41059
41060 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41061
41062 * kern/disk.c (grub_disk_read): When there is a read error, always
41063 try to read only the necessary data.
41064
41065 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41066 disk/raid.c.
41067 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41068 prototype.
41069 [GRUB_UTIL] (grub_raid_fini): Likewise.
41070 [GRUB_UTIL] (grub_lvm_init): Likewise.
41071 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41072 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41073 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41074 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41075 and grub_raid_fini().
41076
41077 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41078
41079 * include/grub/types.h (__unused): Rename to UNUSED.
41080 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41081 (grub_elf64_size): Likewise.
41082
41083 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41084
41085 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41086 grub_error_push and grub_error_pop in the error-handling path.
41087 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41088 length.
41089
41090 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41091
41092 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41093 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41095 (kernel_elf_SOURCES): Likewise.
41096 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41097 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41098 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41099 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41100 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41101 (elf_mod_SOURCES): New variable.
41102 (elf_mod_CFLAGS): Likewise.
41103 (elf_mod_LDFLAGS): Likewise.
41104 * include/grub/types.h (__unused): New macro.
41105 * include/grub/elfload.h: New file.
41106 * kern/elf.c: Likewise.
41107 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41108 (ELF32_LOADMASK): New macro.
41109 (ELF64_LOADMASK): Likewise.
41110 (vmlinux): Removed.
41111 (grub_linux_load32): New function.
41112 (grub_linux_load64): Likewise.
41113 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41114 Use grub_elf_t instead of grub_file_t.
41115
41116 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41117
41118 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41119 `catch_result' to struct set_color_args.
41120
41121 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41122
41123 * normal/menu.c: Include grub/script.h.
41124 * normal/menu_entry.c: Likewise.
41125 * include/grub/normal.h: Do not include grub/script.h.
41126
41127 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41128
41129 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41130
41131 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41132
41133 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41134 disk.
41135 (grub_disk_close): Print debug messages when closing a disk.
41136 (grub_disk_read): Print debug messages when disk read fails.
41137 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41138 filesystem type.
41139 * kern/partition.c: Include misc.h.
41140 (grub_partition_iterate): Print debug messages when detecting
41141 partition type.
41142
41143 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41144
41145 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41146 is negative.
41147 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41148
41149 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41150
41151 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41152 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41153
41154 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41155
41156 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41157 instead of sizeof(lv). Patch by Michael Guntsche.
41158
41159 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41160
41161 * disk/lvm.c: Rename VGS to VG_LIST.
41162 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41163 (grub_lvm_open): Likewise.
41164 Thanks to Michael Guntsche for finding this bug.
41165
41166 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41167
41168 * configure.ac (AC_INIT): Bumped to 1.95.
41169
41170 2006-10-14 Robert Millan <rmh@aybabtu.com>
41171
41172 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41173 with "/dev/.static/dev/md".
41174
41175 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41176
41177 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41178 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41179 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41180 DRIVE_NAME are always freed.
41181
41182 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41183 DOS_PART, as a DOS partition is counted from one instead of zero
41184 now. Reported by Robert Millan.
41185
41186 2006-10-14 Robert Millan <rmh@aybabtu.com>
41187
41188 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41189 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41190 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41191 string returned by grub_guess_root_device.
41192 * util/i386/pc/grub-setup.c: Likewise.
41193 * util/i386/pc/grub-probefs.c: Likewise.
41194
41195 * util/i386/pc/grub-probefs.c: Rename to ...
41196 * util/i386/pc/grub-probe.c: ... this.
41197 * DISTLIST: Remove grub-probefs, add grub-probe.
41198 * conf/i386-efi.rmk: Likewise.
41199 * conf/i386-pc.rmk: Likewise.
41200 * util/i386/pc/grub-install.in: Likewise.
41201
41202 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41203 choose which information we want to print.
41204
41205 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41206
41207 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41208 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41209 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41210 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41211 video/readers/tga.c and video/i386/pc/vbeutil.c.
41212
41213 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41214
41215 Added support for RAID and LVM.
41216
41217 * disk/lvm.c: New file.
41218 * disk/raid.c: Likewise.
41219 * include/grub/lvm.h: Likewise.
41220 * include/grub/raid.h: Likewise.
41221 * include/grub/util/lvm.h: Likewise.
41222 * include/grub/util/raid.h: Likewise.
41223 * util/lvm.c: Likewise.
41224 * util/raid.c: Likewise.
41225
41226 * include/grub/disk.h (grub_disk_dev_id): Add
41227 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41228 (grub_disk_get_size): New prototype.
41229 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41230 returns a partition.
41231 (grub_disk_get_size): New function.
41232
41233 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41234 verbatim if grub_install_dos_part is -2.
41235
41236 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41237 and LVM devices.
41238
41239 * util/i386/pc/grub-setup.c (setup): New argument
41240 MUST_EMBED. Force embedding of GRUB when the argument is
41241 true. Close FILE before returning.
41242 (main): Add support for RAID and LVM.
41243
41244 * conf/common.rmk: Add RAID and LVM modules.
41245 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41246 util/lvm.c.
41247 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41248
41249 * kern/misc.c (grub_strstr): New function.
41250 * include/grub/misc.h (grub_strstr): New prototype.
41251
41252 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41253
41254 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41255
41256 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41257
41258 * kern/misc.c (grub_strtoull): Guess the base only if not
41259 specified.
41260
41261 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41262
41263 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41264 PowerMac support.
41265
41266 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41267
41268 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41269
41270 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41271 Remove `flags' argument. All callers changed.
41272 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41273 (IEEE1275_IHANDLE_INVALID): New variable.
41274 (IEEE1275_CELL_INVALID): New variable.
41275 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41276 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41277 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41278 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41279 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41280 codes from Open Firmware. All callers updated.
41281 (grub_ieee1275_next_property): Directly return Open Firmware return
41282 code.
41283 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41284 Standardize error checking from `grub_ieee1275_get_property'.
41285 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41286 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41287
41288 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41289
41290 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41291 `instance_to_package_args' to `instance_to_path_args'.
41292
41293 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41294 `grub_ieee1275_chosen'.
41295
41296 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41297 `grub_ieee1275_interpret'.
41298
41299 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41300
41301 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41302
41303 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41304
41305 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41306 (__cmpdi): Likewise.
41307
41308 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41309 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41310 `grub_ssize_t'.
41311
41312 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41313
41314 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41315 to type `grub_ssize_t'.
41316 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41317
41318 2006-09-22 Marco Gerards <marco@gnu.org>
41319
41320 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41321 newlines.
41322
41323 2006-09-22 Marco Gerards <marco@gnu.org>
41324
41325 * commands/echo.c: New file.
41326
41327 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41328
41329 * conf/common.rmk (echo_mod_SOURCES): New variable.
41330 (echo_mod_CFLAGS): Likewise.
41331 (echo_mod_LDFLAGS): Likewise.
41332
41333 2006-09-22 Marco Gerards <marco@gnu.org>
41334
41335 * normal/main.c (get_line): Malloc memory instead of using
41336 preallocated memory. Removed the arguments `cmdline' and
41337 `max_len'. Updated all callers.
41338
41339 2006-09-22 Marco Gerards <marco@gnu.org>
41340
41341 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41342 (normal_mod_DEPENDENCIES): Likewise.
41343
41344 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41345 (normal_mod_DEPENDENCIES): Likewise.
41346
41347 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41348
41349 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41350
41351 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41352 programs.
41353 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41354 (normal_mod_DEPENDENCIES): Likewise.
41355 * conf/i386-pc.mk: Regenerate.
41356 * conf/i386-efi.mk: Likewise
41357 * conf/common.mk: Likewise.
41358 * conf/powerpc-ieee1275.mk: Likewise.
41359 * conf/sparc64-ieee1275.mk: Likewise.
41360
41361 2006-09-22 Robert Millan <rmh@aybabtu.com>
41362
41363 Sync with i386 version.
41364 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41365 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41366
41367 2006-09-21 Robert Millan <rmh@aybabtu.com>
41368
41369 Import from GRUB Legacy (lib/device.c):
41370 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41371 (init_device_map) [__linux__]: Add support for I2O devices.
41372
41373 2006-09-14 Marco Gerards <marco@gnu.org>
41374
41375 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41376 `-melf_i386'.
41377
41378 2006-09-14 Robert Millan <rmh@aybabtu.com>
41379
41380 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41381 /boot/grub/*.lst.
41382
41383 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41384
41385 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41386 before adding it to device.map.
41387
41388 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41389
41390 * genmk.rb: Let GCC generate dependencies the first time it
41391 compiles a file; using the -MD option.
41392 * conf/common.mk: Regenerate.
41393 * conf/i386-pc.mk: Likewise.
41394 * conf/i386-efi.mk: Likewise.
41395 * conf/powerpc-ieee1275.mk: Likewise.
41396 * conf/sparc64-ieee1275.mk: Likewise.
41397
41398 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41399
41400 Move the prototypes of grub_setjmp and grub_longjmp to
41401 cpu/setjmp.h, so that each architecture may specify different
41402 attributes.
41403
41404 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41405 (grub_longjmp): Likewise.
41406 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41407 (grub_longjmp): Likewise.
41408 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41409 (grub_longjmp): Likewise.
41410
41411 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41412 [!GRUB_UTIL] (grub_longjmp): Removed.
41413
41414 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41415
41416 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41417 "color!" method does not return any value.
41418
41419 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41420
41421 * include/grub/bitmap.h: New file.
41422
41423 * include/grub/i386/pc/vbeutil.h: Likewise.
41424
41425 * video/bitmap.c: Likewise.
41426
41427 * video/readers/tga.c: Likewise.
41428
41429 * video/i386/pc/vbeutil.c: Likewise.
41430
41431 * commands/videotest.c: Code cleanup and updated to reflect to new
41432 video API.
41433
41434 * term/gfxterm.c: Likewise.
41435
41436 * video/video.c: Likewise.
41437
41438 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41439 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41440 (bitmap_mod_SOURCES): New entry.
41441 (bitmap_mod_CFLAGS): Likewise.
41442 (bitmap_mod_LDFLAGS): Likewise.
41443 (tga_mod_SOURCES): Likewise.
41444 (tga_mod_CFLAGS): Likewise.
41445 (tga_mod_LDFLAGS): Likewise.
41446
41447 * include/grub/video.h (grub_video_blit_operators): New enum type.
41448 (grub_video_render_target): Changed as forward declaration and moved
41449 actual definition to be video driver specific.
41450 (grub_video_adapter.blit_bitmap): Added blitting operator.
41451 (grub_video_adapter.blit_render_target): Likewise.
41452 (grub_video_blit_bitmap): Likewise.
41453 (grub_video_blit_render_target): Likewise.
41454
41455 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41456 driver specific render target definition.
41457 (grub_video_vbe_map_rgba): Added driver internal helper.
41458 (grub_video_vbe_unmap_color): Updated to use
41459 grub_video_i386_vbeblit_info.
41460 (grub_video_vbe_get_video_ptr): Likewise.
41461
41462 * include/grub/i386/pc/vbeblit.h
41463 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41464 grub_video_i386_vbeblit_info.
41465 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41466 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41467 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41468 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41469 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41470 (grub_video_i386_vbeblit_index_index): Likewise.
41471 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41472 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41473 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41474 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41475 operator.
41476 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41477 operator.
41478
41479 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41480 include/grub/i386/pc/vbeblit.h.
41481
41482 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41483 Updated to use grub_video_i386_vbeblit_info.
41484 (grub_video_i386_vbefill_R8G8B8): Likewise.
41485 (grub_video_i386_vbefill_index): Likewise.
41486 (grub_video_i386_vbefill): Added generic filler.
41487
41488 * video/i386/pc/vbefill.c: Updated to reflect changes on
41489 include/grub/i386/pc/vbefill.h.
41490
41491 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41492 grub_video_i386_vbeblit_info.
41493 (grub_video_vbe_unmap_color): Likewise.
41494 (grub_video_vbe_blit_glyph): Likewise.
41495 (grub_video_vbe_scroll): Likewise.
41496 (grub_video_vbe_draw_pixel): Removed function.
41497 (grub_video_vbe_get_pixel): Likewise.
41498 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41499 updated code to use it.
41500 (common_blitter): Added common blitter for render target and bitmap.
41501 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41502 (grub_video_vbe_blit_render_target): Likewise.
41503
41504 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41505
41506 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41507 is in text mode if there is no console control protocol instance
41508 available.
41509
41510 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41511
41512 * include/grub/video.h: Code cleanup.
41513
41514 * include/grub/i386/pc/vbe.h: Likewise.
41515
41516 * video/i386/pc/vbe.c: Likewise.
41517
41518 * video/i386/pc/vbeblit.c: Likewise.
41519
41520 * video/i386/pc/vbefill.c: Likewise.
41521
41522 * video/video.c: Likewise. Also added more comments.
41523
41524 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41525
41526 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41527 (struct grub_biosdisk_dap): Likewise.
41528
41529 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41530 linkage settings for all functions.
41531
41532 2006-07-12 Marco Gerards <marco@gnu.org>
41533
41534 * configure.ac (--enable-mm-debug): Fix typo.
41535
41536 * genkernsyms.sh.in: Use proper quoting for `CC'.
41537
41538 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41539
41540 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41541 (normal_mod_ASFLAGS): Remove "-m32".
41542
41543 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41544
41545 * util/misc.c: Include config.h.
41546 [!HAVE_MEMALIGN]: Do not include malloc.h.
41547 (grub_memalign): Use posix_memalign, if present. Then, use
41548 memalign, if present. Otherwise, emit an error.
41549
41550 * util/grub-emu.c: Do not include malloc.h.
41551
41552 * include/grub/util/misc.h: Include unistd.h. This is required for
41553 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41554 D. Eades III <hde@foobar-qux.org>.
41555
41556 * configure.ac (AC_GNU_SOURCE): Added.
41557 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41558 type.
41559
41560 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41561
41562 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41563 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41564
41565 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41566
41567 * include/grub/types.h (grub_host_addr_t): Rename to
41568 grub_target_addr_t.
41569 (grub_host_off_t): Rename to grub_target_off_t.
41570 (grub_host_size_t): Rename to grub_target_size_t.
41571 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41572 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41573
41574 * include/grub/kernel.h (struct grub_module_header): Change type
41575 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41576 (grub_module_info): Likewise.
41577
41578 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41579
41580 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41581 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41582 Velazquez <jesus.velazquez@gmail.com>.
41583
41584 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41585
41586 Count partitions from 1 instead of 0 in the string representation
41587 of partitions. Still use 0-based internally.
41588
41589 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41590 (sun_partition_map_iterate): Use grub_partition_t instead of
41591 struct grub_partition *. Cast DESC->START_CYLINDER to
41592 grub_uint64_t after converting the endian.
41593 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41594 (sun_partition_map_get_name): Add 1 to P->INDEX.
41595
41596 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41597 PCDATA->DOS_PART.
41598 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41599
41600 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41601 zero instead of one.
41602 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41603 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41604
41605 * partmap/apple.c (apple_partition_map_iterate): Change the type
41606 of POS to unsigned.
41607 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41608 (apple_partition_map_get_name): Add 1 into P->INDEX.
41609
41610 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41611 of POS to unsigned.
41612 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41613 calculate the offset of a partition.
41614 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41615 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41616
41617 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41618 SECTOR to grub_disk_addr_t.
41619 (acorn_partition_map_iterate): Likewise.
41620 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41621 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41622 top.
41623 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41624
41625 * kern/i386/pc/init.c (make_install_device): Add 1 into
41626 GRUB_INSTALL_DOS_PART.
41627
41628 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41629 conditional.
41630
41631 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41632
41633 Clean up the code to support 64-bit addressing in disks and
41634 files. This change is not enough for filesystems yet.
41635
41636 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41637 type of "start" to grub_uint64_t.
41638 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41639 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41640 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41641 convert addresses.
41642
41643 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41644 to grub_disk_addr_t.
41645
41646 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41647 string.
41648
41649 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41650
41651 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41652 to char *.
41653
41654 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41655
41656 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41657
41658 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41659
41660 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41661 to grub_off_t, to detect an error from grub_file_seek.
41662 (grub_multiboot_load_elf32): Likewise.
41663
41664 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41665 maximum unsigned long value when an overflow is detected.
41666 (grub_strtoull): New function.
41667 (grub_divmod64): Likewise.
41668 (grub_lltoa): use grub_divmod64.
41669
41670 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41671 grub_disk_addr_t.
41672 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41673 the pointer to next character. Use grub_strtoull instead of
41674 grub_strtoul.
41675 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41676 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41677 respectively.
41678
41679 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
41680 return value is signed.
41681 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41682 test if OFFSET is less than zero, as OFFSET is unsigned now.
41683
41684 * kern/disk.c (struct grub_disk_cache): Change the type of
41685 "sector" to grub_disk_addr_t.
41686 (grub_disk_cache_get_index): Change the type of SECTOR to
41687 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41688 unsigned after shifting.
41689 (grub_disk_cache_invalidate): Change the type of SECTOR to
41690 grub_disk_addr_t.
41691 (grub_disk_cache_unlock): Likewise.
41692 (grub_disk_cache_store): Likewise.
41693 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41694 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41695 grub_disk_addr_t and grub_uint64_t, respectively.
41696 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41697 body, as the value of OFFSET is tweaked by
41698 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41699 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41700 respectively.
41701 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41702 body, as the value of OFFSET is tweaked by
41703 grub_disk_check_range. Change the types of LEN and N to
41704 grub_size_t.
41705
41706 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41707 and "saved_offset" to grub_off_t.
41708 (test_header): Cast BUF to char *.
41709 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41710 to char *.
41711 (grub_gzio_read): Change the types of OFFSET and SIZE to
41712 grub_off_t and grub_size_t, respectively.
41713
41714 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41715 Removed.
41716 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41717 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41718 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41719 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41720 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41721
41722 * include/grub/types.h (grub_off_t): Unconditionally set to
41723 grub_uint64_t.
41724 (grub_disk_addr_t): Changed to grub_uint64_t.
41725
41726 * include/grub/partition.h (struct grub_partition): Change the
41727 types of "start", "len" and "offset" to grub_disk_addr_t,
41728 grub_uint64_t and grub_disk_addr_t, respectively.
41729 (grub_partition_get_start): Return grub_disk_addr_t.
41730 (grub_partition_get_len): Return grub_uint64_t.
41731
41732 * include/grub/misc.h (grub_strtoull): New prototype.
41733 (grub_divmod64): Likewise.
41734
41735 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41736 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41737 grub_off_t, respectively.
41738 All callers and references changed.
41739
41740 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41741 grub_size_t in "read".
41742 All callers and references changed.
41743
41744 * include/grub/file.h (struct grub_file): Change the types of
41745 "offset" and "size" to grub_off_t and grub_off_t,
41746 respectively. Change the type of SECTOR to grub_disk_addr_t in
41747 "read_hook".
41748 (grub_file_read): Change the type of LEN to grub_size_t.
41749 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41750 grub_off_t.
41751 (grub_file_size): Return grub_off_t.
41752 (grub_file_tell): Likewise.
41753 All callers and references changed.
41754
41755 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41756 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41757 "write".
41758 (struct grub_disk): Change the type of "total_sectors" to
41759 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41760 "read_hook".
41761 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41762 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41763 (grub_disk_write): Likewise.
41764 All callers and references changed.
41765
41766 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
41767 char * for grub_strncmp to silence gcc.
41768 (grub_iso9660_mount): Likewise.
41769 (grub_iso9660_mount): Likewise.
41770 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
41771 return statement.
41772 (grub_iso9660_iterate_dir): Likewise.
41773 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
41774
41775 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
41776 LEN to grub_disk_addr_t and grub_size_t, respectively.
41777
41778 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41779
41780 * fs/jfs.c (grub_jfs_read_file): Likewise.
41781
41782 * fs/minix.c (grub_jfs_read_file): Likewise.
41783
41784 * fs/sfs.c (grub_jfs_read_file): Likewise.
41785
41786 * fs/ufs.c (grub_jfs_read_file): Likewise.
41787
41788 * fs/xfs.c (grub_jfs_read_file): Likewise.
41789
41790 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
41791 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
41792 respectively.
41793
41794 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
41795 BLKNR to -1 instead of returning GRUB_ERRNO.
41796 (grub_ext2_read_file): Change the types of SECTOR and
41797 LEN to grub_disk_addr_t and grub_size_t, respectively.
41798
41799 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
41800 LEN to grub_disk_addr_t and grub_size_t, respectively.
41801
41802 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
41803 grub_file_read.
41804
41805 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
41806 string. Do not cast SECTOR explicitly.
41807
41808 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
41809 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
41810 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
41811 grub_disk_addr_t and grub_size_t, respectively. If the sector is
41812 over 2TB and LBA mode is not supported, raise an error.
41813 (get_safe_sectors): New function.
41814 (grub_biosdisk_read): Use get_safe_sectors.
41815 (grub_biosdisk_write): Likewise.
41816
41817 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
41818 (grub_efidisk_write): Likewise.
41819
41820 * disk/loopback.c (delete_loopback): Cosmetic changes.
41821 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
41822 correctly.
41823 (grub_loopback_open): Likewise.
41824 (grub_loopback_read): Likewise. Also, change the type of POS to
41825 grub_off_t, and fix the usage of grub_memset.
41826
41827 * commands/i386/pc/play.c: Include grub/machine/time.h.
41828
41829 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
41830 print FILE->SIZE.
41831
41832 * commands/configfile.c: Include grub/env.h.
41833
41834 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
41835 GRUB_ERRNO directly instead. Change the type of POS to
41836 grub_off_t. Follow the coding standard.
41837
41838 * commands/blocklist.c: Include grub/partition.h.
41839 (grub_cmd_blocklist): Return an error if the underlying device is
41840 not a disk. Take the starting sector of a partition into account,
41841 if a partition is used.
41842
41843 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
41844 a length field.
41845 (lba_mode): Support 64-bit addresses.
41846 (chs_mode): Likewise.
41847 (copy_buffer): Adapted to the new offsets of a length field and a
41848 segment field.
41849 (blocklist_default_start): Allocate 64-bit space.
41850
41851 * boot/i386/pc/boot.S (force_lba): Removed.
41852 (boot_drive): Moved to under KERNEL_SECTOR.
41853 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
41854 space.
41855 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
41856 is useless.
41857 (lba_mode): Refactored to support a 64-bit address. More size
41858 optimization.
41859 (setup_sectors): Likewise.
41860
41861 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41862
41863 * DISTLIST: Added include/grub/i386/linux.h. Removed
41864 include/grub/i386/pc/linux.h
41865
41866 * configure.ac (AC_INIT): Bumped to 1.94.
41867
41868 * config.guess: Updated from gnulib.
41869 * config.sub: Likewise.
41870 * install-sh: Likewise.
41871 * mkinstalldirs: Likewise.
41872
41873 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41874
41875 * conf/common.rmk (grub_modules_init.lst): Depended on
41876 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
41877 MODSRCFILES.
41878
41879 * genmk.rb (PModule::rule): Reverted the previous change.
41880
41881 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41882
41883 * conf/common.rmk (grub_modules_init.lst): Depends on
41884 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
41885 that the target does not exist before producing.
41886 (grub_modules_init.h): Remove the target before generating.
41887 (grub_emu_init.c): Likewise.
41888
41889 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
41890
41891 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
41892
41893 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
41894 for the target-specific tests. Make sure that we also have the
41895 up-to-date target variables for those tests.
41896
41897 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41898
41899 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
41900 (PModule::rule): Likewise.
41901
41902 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41903
41904 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
41905 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
41906 target-specific flags should be prefixed.
41907 (PModule::rule): Likewise.
41908
41909 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
41910
41911 * configure.ac (CMP): Check if cmp is available explicitly.
41912
41913 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
41914
41915 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
41916 (target_cpu): New variable.
41917 (pkglibdir): Use target_cpu instead of host_cpu.
41918
41919 * util/i386/pc/grub-install.in (host_cpu): Removed.
41920 (target_cpu): New variable.
41921 (pkglibdir): Use target_cpu instead of host_cpu.
41922
41923 * util/genmoddep.c: Removed.
41924
41925 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
41926 instead of GRUB_HOST_SIZEOF_VOID_P.
41927 * kern/dl.c: Likewise.
41928
41929 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
41930 ...
41931 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41932 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41933 (GRUB_TARGET_SIZEOF_LONG): ... this.
41934 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41935 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41936 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41937 to ...
41938 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41939 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41940 (GRUB_TARGET_SIZEOF_LONG): ... this.
41941 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41942 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41943 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41944 to ...
41945 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41946 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41947 (GRUB_TARGET_SIZEOF_LONG): ... this.
41948 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41949 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41950
41951 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
41952 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
41953 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
41954 instead of GRUB_HOST_SIZEOF_LONG.
41955 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
41956 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
41957 GRUB_CPU_WORDS_BIGENDIAN.
41958 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
41959 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
41960 grub_host_ssize_t.
41961
41962 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
41963 (genmoddep_SOURCES): Likewise.
41964 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
41965 (genmoddep_SOURCES): Likewise.
41966 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
41967 (genmoddep_SOURCES): Likewise.
41968 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
41969 Likewise.
41970 (genmoddep_SOURCES): Likewise.
41971
41972 * genmoddep.awk: New file.
41973
41974 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
41975 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
41976 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
41977 (PModule::rule): Likewise.
41978 (Program::rule): Likewise.
41979 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
41980 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
41981 respectively.
41982
41983 * configure.ac: Rewritten intensively to use host and target
41984 instead of build and host, respectively.
41985
41986 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
41987 (host_cpu): Removed.
41988 (target_cpu): New variable.
41989 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
41990 (BUILD_CC): Removed.
41991 (BUILD_CFLAGS): Likewise.
41992 (BUILD_CPPFLAGS): Likewise.
41993 (TARGET_CC): New variable.
41994 (TARGET_CFLAGS): Likewise.
41995 (TARGET_CPPFLAGS): Likewise.
41996 (TARGET_LDFLAGS): Likewise.
41997 (AWK): Likewise.
41998 (include): Use target_cpu instead of host_cpu.
41999 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42000
42001 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42002
42003 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42004
42005 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42006 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42007 field 'false' to 'exec_on_false'.
42008 (grub_script_create_cmdif): Renamed argument names to reflect above
42009 changes.
42010
42011 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42012
42013 * normal/script.c (grub_script_create_cmdif): Likewise.
42014
42015 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42016
42017 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42018 top.
42019 (grub_hfsplus_btree_recptr): Likewise.
42020 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42021 FILEBLOCK both to pass a block number and store next block
42022 number.
42023 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42024 overflow file correctly. Specify errors appropriately, because
42025 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42026 grub_hfsplus_btree_recptr to get the pointer to a found key.
42027 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42028 is found.
42029
42030 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42031 linux.mod.
42032 (_linux_mod_SOURCES): New variable.
42033 (_linux_mod_CFLAGS): Likewise.
42034 (_linux_mod_LDFLAGS): Likewise.
42035 (linux_mod_SOURCES): Likewise.
42036 (linux_mod_CFLAGS): Likewise.
42037 (linux_mod_LDFLAGS): Likewise.
42038
42039 * DISTLIST: Added loader/i386/efi/linux.c,
42040 loader/i386/efi/linux_normal.c and
42041 include/grub/i386/efi/loader.h.
42042
42043 * loader/i386/efi/linux.c: New file.
42044 * loader/i386/efi/linux_normal.c: Likewise.
42045 * include/grub/i386/efi/loader.h: Likewise.
42046
42047 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42048
42049 * commands/blocklist.c: New file.
42050
42051 * DISTLIST: Added commands/blocklist.c.
42052
42053 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42054 color for the background, and a darker color for the foreground.
42055 (grub_console_checkkey): Return READ_KEY.
42056 (grub_console_cls): Set the background to
42057 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42058
42059 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42060
42061 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42062 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42063
42064 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42065 prototype.
42066
42067 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42068 BG. The spec is wrong again.
42069
42070 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42071 prototype.
42072 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42073
42074 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42075 commands/blocklist.c.
42076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42077
42078 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42079 (blocklist_mod_SOURCES): New variable.
42080 (blocklist_mod_CFLAGS): Likewise.
42081 (blocklist_mod_LDFLAGS): Likewise.
42082
42083 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42084
42085 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42086 duplication.
42087 (lba_mode): Use %eax more intensively to reduce the code size.
42088
42089 2006-05-20 Marco Gerards <marco@gnu.org>
42090
42091 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42092
42093 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42094 for `menuentry'.
42095 (script): Accept leading newlines.
42096 (newlines): New rule to describe 0 or more newlines.
42097 (commands): Accept `command' with trailing newline. Fixed the
42098 order in which arguments were passed to `grub_script_add_cmd'.
42099 Accept commands separated by newlines.
42100 (function): Changed to accept newlines.
42101 (menuentry) Rewritten.
42102
42103 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42104 front of the list, instead of to the end.
42105
42106 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42107
42108 * util/i386/pc/grub-install.in (bindir): New variable.
42109 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42110 Shaver <lbgwjl@gmail.com>.
42111
42112 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42113
42114 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42115 grub/machine/linux.h
42116 * loader/i386/pc/linux.c: Likewise.
42117
42118 * include/grub/i386/pc/linux.h: Moved to ...
42119 * include/grub/i386/linux.h: ... here.
42120
42121 * include/grub/i386/linux.h (struct linux_kernel_params): New
42122 struct.
42123
42124 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42125
42126 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42127 checking.
42128 (grub_video_vbe_blit_glyph): Likewise.
42129 (grub_video_vbe_blit_bitmap): Likewise.
42130 (grub_video_vbe_blit_render_target): Likewise.
42131
42132 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42133
42134 * configure.ac (--with-platform): Properly quote the square
42135 brackets.
42136
42137 2006-05-08 Marco Gerards <marco@gnu.org>
42138
42139 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42140 this...
42141 (kernel_elf_HEADERS): ...to this. Updated all users.
42142 (grubof_symlist.c): Renamed from this...
42143 (kernel_elf_symlist.c): ...to this. Updated all users.
42144 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42145 (grubof_SOURCES): Renamed from this...
42146 (kernel_elf_SOURCES): ...to this.
42147 (grubof_HEADERS): Renamed from this...
42148 (kernel_elf_HEADERS): ...to this.
42149 (grubof_CFLAGS): Renamed from this...
42150 (kernel_elf_CFLAGS): ...to this.
42151 (grubof_ASFLAGS): Renamed from this...
42152 (kernel_elf_ASFLAGS): ...to this.
42153 (grubof_LDFLAGS): Renamed from this...
42154 (kernel_elf_LDFLAGS): ...to this.
42155
42156 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42157 this...
42158 (kernel_elf_HEADERS): ...to this. Updated all users.
42159 (grubof_symlist.c): Renamed from this...
42160 (kernel_elf_symlist.c): ...to this. Updated all users.
42161 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42162 (grubof_SOURCES): Renamed from this...
42163 (kernel_elf_SOURCES): ...to this.
42164 (grubof_HEADERS): Renamed from this...
42165 (kernel_elf_HEADERS): ...to this.
42166 (grubof_CFLAGS): Renamed from this...
42167 (kernel_elf_CFLAGS): ...to this.
42168 (grubof_ASFLAGS): Renamed from this...
42169 (kernel_elf_ASFLAGS): ...to this.
42170 (grubof_LDFLAGS): Renamed from this...
42171 (kernel_elf_LDFLAGS): ...to this.
42172
42173 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42174 `kernel.elf' instead of `grubof'.
42175
42176 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42177
42178 Add --with-platform to configure. Use pkglibdir instead of
42179 pkgdatadir. This is reported by Roger Leigh.
42180
42181 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42182 (host_vendor): Likewise.
42183 (host_os): Likewise.
42184 (pkgdatadir): Likewise.
42185 (platform): New variable.
42186 (pkglibdir): Likewise.
42187 Use PKGLIBDIR instead of PKGDATADIR.
42188
42189 * util/i386/pc/grub-install.in (datadir): Removed.
42190 (host_vendor): Likewise.
42191 (host_os): Likewise.
42192 (pkgdatadir): Likewise.
42193 (platform): New variable.
42194 (pkglibdir): Likewise.
42195 Use PKGLIBDIR instead of PKGDATADIR.
42196
42197 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42198 instead of GRUB_DATADIR.
42199 (main): Likewise.
42200 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42201 (main): Likewise.
42202 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42203 (main): Likewise.
42204
42205 * configure.ac (--with-platform): New option.
42206 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42207
42208 * Makefile.in: Include a makefile based on PLATFORM instead of
42209 HOST_VENDOR.
42210 (pkgdatadir): Not appended by the machine type.
42211 (pkglibdir): Appended by the machine type.
42212 (host_vendor): Removed.
42213 (platform): New variable.
42214 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42215 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42216 (uninstall): Likewise.
42217
42218 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42219
42220 Use the environment context in the menu. Remove the commands
42221 "default" and "timeout", and use variables instead.
42222
42223 * normal/menu.c: Include grub/env.h.
42224 (print_entry): Cast TITLE to silence gcc.
42225 (get_timeout): New function.
42226 (set_timeout): Likewise.
42227 (get_entry_number): Likewise.
42228 (run_menu): Use a default entry, a fallback entry and a timeout
42229 in the environment variables "default", "fallback" and
42230 "timeout". Also, tweak the default entry if it is not within the
42231 current menu entries.
42232 (grub_menu_run): Use a fallback entry in the environment variable
42233 "fallback".
42234
42235 * normal/main.c (read_config_file): Do not initialize
42236 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42237 NEWMENU->TIMEOUT.
42238 (grub_normal_execute): Use a data slot to store the menu.
42239
42240 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42241 fallback_entry and timeout.
42242 (struct grub_menu_list): Removed.
42243 (grub_menu_list_t): Likewise.
42244 (struct grub_context): Likewise.
42245 (grub_context_t): Likewise.
42246 (grub_context_get): Likewise.
42247 (grub_context_get_current_menu): Likewise.
42248 (grub_context_push_menu): Likewise.
42249 (grub_context_pop_menu): Likewise.
42250 (grub_default_init): Likewise.
42251 (grub_default_fini): Likewise.
42252 (grub_timeout_init): Likewise.
42253 (grub_timeout_fini): Likewise.
42254
42255 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42256 and timeout.mod.
42257 (normal_mod_SOURCES): Removed normal/context.c.
42258
42259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42260 commands/default.c, commands/timeout.c and normal/context.c.
42261 (normal_mod_SOURCES): Removed normal/context.c.
42262
42263 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42264 commands/timeout.c and normal/context.c.
42265 (normal_mod_SOURCES): Removed normal/context.c.
42266
42267 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42268 commands/default.c, commands/timeout.c and normal/context.c.
42269 (normal_mod_SOURCES): Removed normal/context.c.
42270
42271 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42272 timeout.mod.
42273 (default_mod_SOURCES): Removed.
42274 (default_mod_CFLAGS): Likewise.
42275 (default_mod_LDFLAGS): Likewise.
42276 (timeout_mod_SOURCES): Removed.
42277 (timeout_mod_CFLAGS): Likewise.
42278 (timeout_mod_LDFLAGS): Likewise.
42279
42280 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42281 normal/context.c.
42282
42283 * commands/default.c: Removed.
42284 * commands/timeout.c: Likewise.
42285 * normal/context.c: Likewise.
42286
42287 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42288
42289 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42290
42291 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42292
42293 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42294 "next" to "prev" for readability.
42295 (struct grub_env_sorted_var): New struct.
42296 (grub_env_context): Renamed to ...
42297 (initial_context): ... this.
42298 (grub_env_var_context): Renamed to ...
42299 (current_context): ... this.
42300 (grub_env_find): Look only at CURRENT_CONTEXT.
42301 (grub_env_context_open): Rewritten to copy exported variables from
42302 previous context.
42303 (grub_env_context_close): Rewritten according to the new
42304 scheme. Also, add an assertion to prevent the initial context from
42305 removed.
42306 (grub_env_insert): Removed the code for the sorted list.
42307 (grub_env_remove): Likewise.
42308 (grub_env_export): Simply mark the variable with
42309 GRUB_ENV_VAR_GLOBAL.
42310 (grub_env_set): A cosmetic change for naming consistency.
42311 (grub_env_get): Likewise.
42312 (grub_env_unset): Likewise.
42313 (grub_env_iterate): Rewritten to sort variables within this
42314 function.
42315 (grub_register_variable_hook): Fixed for naming consistency. Call
42316 grub_env_find again, only if NAME is not found at the first time.
42317 (mangle_data_slot_name): New function.
42318 (grub_env_set_data_slot): Likewise.
42319 (grub_env_get_data_slot): Likewise.
42320 (grub_env_unset_data_slot): Likewise.
42321
42322 * include/grub/env.h (grub_env_var_type): New enum.
42323 (GRUB_ENV_VAR_LOCAL): New constant.
42324 (GRUB_ENV_VAR_GLOBAL): Likewise.
42325 (GRUB_ENV_VAR_DATA): Likewise.
42326 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42327 "type".
42328 (grub_env_set): Replace VAR with NAME for consistency.
42329 (grub_register_variable_hook): Likewise.
42330 (grub_env_export): Specify the name of the argument.
42331 (grub_env_set_data_slot): New prototype.
42332 (grub_env_get_data_slot): Likewise.
42333 (grub_env_unset_data_slot): Likewise.
42334
42335 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42336
42337 Extend the loader so that GRUB can accept a loader which comes
42338 back to GRUB when a loaded image exits. Also, this change adds
42339 support for a chainloader on EFI.
42340
42341 * term/efi/console.c: Include grub/misc.h.
42342 (grub_console_checkkey): Display a scan code on the top for
42343 debugging. This will be removed once the EFI port gets stable.
42344 Correct the scan code mapping.
42345
42346 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42347 allocate memory from larger regions, in order to reduce the number
42348 of allocated regions. Otherwise, the MacOSX loader panics.
42349 (filter_memory_map): Avoid less than 1MB for compatibility with
42350 other loaders.
42351 (add_memory_regions): Allocate from the tail of a region, if
42352 possible, to avoid allocating a region near to 1MB, for the MacOSX
42353 loader.
42354
42355 * kern/efi/init.c (grub_efi_set_prefix): Specify
42356 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42357
42358 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42359 argument IMAGE_HANDLE and specify it to get a loaded image.
42360 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42361 grub_efi_get_loaded_image.
42362 (grub_efi_get_filename): Divide the length by the size of
42363 grub_efi_char16_t.
42364 (grub_efi_get_device_path): New function.
42365 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42366 the length by the size of grub_efi_char16_t for a file path device
42367 path node.
42368
42369 * kern/loader.c (grub_loader_noreturn): New variable.
42370 (grub_loader_set): Accept a new argument NORETURN. Set
42371 GRUB_LOADER_NORETURN to NORETURN.
42372 All callers changed.
42373 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42374 grub_machine_fini.
42375
42376 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42377 prototype.
42378 (grub_efi_get_loaded_image): Take an argument to specify an image
42379 handle.
42380
42381 * include/grub/loader.h (grub_loader_set): Added one more argument
42382 NORETURN.
42383
42384 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42385 instead of grub_efi_open_protocol.
42386 (grub_efidisk_get_device_name): Likewise.
42387 (grub_efidisk_close): Print a newline.
42388 (grub_efidisk_get_device_handle): Fixed to use
42389 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42390 GRUB_EFI_DEVICE_PATH_TYPE.
42391
42392 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42393 * kern/efi/efi.c (device_path_guid): ... here.
42394
42395 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42396 chain.mod.
42397 (kernel_mod_HEADERS): Added efi/disk.h.
42398 (_chain_mod_SOURCES): New variable.
42399 (_chain_mod_CFLAGS): Likewise.
42400 (_chain_mod_LDFLAGS): Likewise.
42401 (chain_mod_SOURCES): Likewise.
42402 (chain_mod_CFLAGS): Likewise.
42403 (chain_mod_LDFLAGS): Likewise.
42404
42405 * DISTLIST: Added include/grub/efi/chainloader.h,
42406 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42407
42408 * include/grub/efi/chainloader.h: New file.
42409 * loader/efi/chainloader.c: Likewise.
42410 * loader/efi/chainloader_normal.c: Likewise.
42411
42412 2006-04-30 Marco Gerards <marco@gnu.org>
42413
42414 * commands/configfile.c (grub_cmd_source): New function.
42415 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42416 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42417
42418 2006-04-30 Marco Gerards <marco@gnu.org>
42419
42420 * normal/execute.c (grub_script_execute_cmd): Change the return
42421 type to `grub_err_t'. Correctly return the error.
42422 (grub_script_execute_cmdline): In case a command line is not a
42423 command or a function, try to interpret it as an assignment.
42424
42425 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42426
42427 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42428 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42429 skip a node whose name is obviously invalid as UTF-16,
42430 i.e. contains a NUL character. Stop the iteration when the last
42431 directory entry is found. Instead of using the return value of
42432 grub_hfsplus_btree_iterate_node, store the value in RET and use
42433 it, because the iterator can be stopped by the last directory
42434 entry.
42435
42436 2006-04-30 Marco Gerards <marco@gnu.org>
42437
42438 * include/grub/env.h (grub_env_export): New prototype. Reported
42439 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42440
42441 2006-04-30 Marco Gerards <marco@gnu.org>
42442
42443 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42444 size of the extents in a catalog file record.
42445
42446 2006-04-29 Marco Gerards <marco@gnu.org>
42447
42448 * commands/configfile.c (grub_cmd_configfile): Execute the
42449 configfile within its own context.
42450
42451 * include/grub/env.h (grub_env_context_open): New prototype.
42452 (grub_env_context_close): Likewise.
42453
42454 * kern/env.c (grub_env): Removed.
42455 (grub_env_sorted): Likewise.
42456 (grub_env_context): New variable.
42457 (grub_env_var_context): Likewise.
42458 (grub_env_find): Search both the active context and the global
42459 context.
42460 (grub_env_context_open): New function.
42461 (grub_env_context_close): Likewise.
42462 (grub_env_insert): Likewise.
42463 (grub_env_remove): Likewise.
42464 (grub_env_export): Likewise.
42465 (grub_env_set): Changed to use helper functions to avoid code
42466 duplication.
42467 (grub_env_iterate): Rewritten so both the current context and the
42468 global context are being used.
42469
42470 * normal/command.c (export_command): New function.
42471 (grub_command_init): Register the `export' function.
42472
42473 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42474
42475 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42476 explicitly to suppress gcc's warnings.
42477 * fs/fat.c (grub_fat_find_dir): Likewise.
42478 (grub_fat_label): Likewise.
42479 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42480 (grub_xfs_mount): Likewise.
42481 (grub_xfs_label): Likewise.
42482 * fs/affs.c (grub_affs_mount): Likewise.
42483 (grub_affs_label): Likewise.
42484 (grub_affs_iterate_dir): Likewise.
42485 * fs/sfs.c (grub_sfs_mount): Likewise.
42486 (grub_sfs_iterate_dir): Likewise.
42487 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42488 * fs/hfs.c (grub_hfs_mount): Likewise.
42489 (grub_hfs_cmp_catkeys): Likewise.
42490 (grub_hfs_find_dir): Likewise.
42491 (grub_hfs_dir): Likewise.
42492 (grub_hfs_label): Likewise.
42493 * fs/jfs.c (grub_jfs_mount): Likewise.
42494 (grub_jfs_opendir): Likewise.
42495 (grub_jfs_getent): Likewise.
42496 (grub_jfs_lookup_symlink): Likewise.
42497 (grub_jfs_label): Likewise.
42498 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42499 (grub_hfsplus_iterate_dir): Likewise.
42500 (grub_hfsplus_btree_iterate_node): Made static.
42501
42502 * util/grub-emu.c (prefix): New variable.
42503 (grub_machine_set_prefix): New function.
42504 (main): Do not set the environment variable "prefix" here. Only
42505 set PREFIX, which is used later by grub_machine_set_prefix.
42506
42507 * include/grub/video.h: Do not include grub/symbol.h.
42508 (grub_video_register): Not exported. This symbol is not defined in
42509 the kernel.
42510 (grub_video_unregister): Likewise.
42511 (grub_video_iterate): Likewise.
42512 (grub_video_setup): Likewise.
42513 (grub_video_restore): Likewise.
42514 (grub_video_get_info): Likewise.
42515 (grub_video_get_blit_format): Likewise.
42516 (grub_video_set_palette): Likewise.
42517 (grub_video_get_palette): Likewise.
42518 (grub_video_set_viewport): Likewise.
42519 (grub_video_get_viewport): Likewise.
42520 (grub_video_map_color): Likewise.
42521 (grub_video_map_rgb): Likewise.
42522 (grub_video_map_rgba): Likewise.
42523 (grub_video_fill_rect): Likewise.
42524 (grub_video_blit_glyph): Likewise.
42525 (grub_video_blit_bitmap): Likewise.
42526 (grub_video_blit_render_target): Likewise.
42527 (grub_video_scroll): Likewise.
42528 (grub_video_swap_buffers): Likewise.
42529 (grub_video_create_render_target): Likewise.
42530 (grub_video_delete_render_target): Likewise.
42531 (grub_video_set_active_render_target): Likewise.
42532
42533 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42534 Undefined.
42535 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42536
42537 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42538 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42539 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42540 instead of $(srcdir)/genkernsyms.sh.
42541
42542 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42543 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42544 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42545 instead of $(srcdir)/genkernsyms.sh.
42546
42547 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42548 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42549 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42550 instead of $(srcdir)/genkernsyms.sh.
42551
42552 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42553 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42554 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42555 instead of $(srcdir)/genkernsyms.sh.
42556
42557 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42558 genkernsyms.sh.
42559
42560 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42561 genkernsyms.sh.
42562 (gensymlist.sh): New target.
42563 (genkernsyms.sh): Likewise.
42564
42565 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42566 genkernsyms.sh.in and gensymlist.sh.in.
42567
42568 * genkernsyms.sh: Removed.
42569 * gensymlist.sh: Likewise.
42570
42571 * genkernsyms.sh.in: New file.
42572 * gensymlist.sh.in: Likewise.
42573
42574 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42575
42576 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42577 clobber "prefix", since we may have already set it manually.
42578
42579 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42580
42581 * kern/misc.c (abort): New alias for grub_abort.
42582
42583 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42584
42585 A new machine-specific function "grub_machine_set_prefix" is
42586 defined. This is called after loading modules, so that a prefix
42587 initialization can use modules. Also, this change adds an
42588 intensive debugging feature for the memory manager via the
42589 configure option "--enable-mm-debug".
42590
42591 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42592 PART.LEN.
42593
42594 * kern/sparc64/ieee1275/init.c (abort): Removed.
42595 (grub_stop): Likewise.
42596 (grub_exit): New function.
42597 (grub_set_prefix): Renamed to ...
42598 (grub_machine_set_prefix): ... this.
42599 (grub_machine_init): Do not call grub_set_prefix.
42600
42601 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42602 (grub_machine_set_prefix): ... this.
42603 (grub_machine_init): Do not call grub_set_prefix.
42604
42605 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42606 (grub_machine_init): Do not set the prefix here.
42607
42608 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42609
42610 * kern/efi/init.c: Include grub/mm.h.
42611 (grub_efi_set_prefix): New function.
42612
42613 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42614 (grub_efi_get_filename): New function.
42615 (grub_print_device_path): Renamed to ...
42616 (grub_efi_print_device_path): ... this.
42617
42618 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42619 [MM_DEBUG] (grub_realloc): Likewise.
42620 [MM_DEBUG] (grub_free): Likewise.
42621 [MM_DEBUG] (grub_memalign): Likewise.
42622 [MM_DEBUG] (grub_mm_debug): New variable.
42623 [MM_DEBUG] (grub_debug_malloc): New function.
42624 [MM_DEBUG] (grub_debug_free): New function.
42625 [MM_DEBUG] (grub_debug_realloc): New function.
42626 [MM_DEBUG] (grub_debug_memalign): New function.
42627
42628 * kern/misc.c (grub_abort): Print a newline to distinguish
42629 the message.
42630
42631 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42632 grub_set_root_dev after loading modules. This is necessary when
42633 setting a prefix depends on modules.
42634
42635 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42636 (grub_efi_print_device_path): ... this.
42637 (grub_efi_get_filename): New prototype.
42638 (grub_efi_set_prefix): Likewise.
42639
42640 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42641 and grub/disk.h.
42642 (grub_efidisk_get_device_handle): New prototype.
42643 (grub_efidisk_get_device_name): Likewise.
42644
42645 * include/grub/mm.h: Include config.h.
42646 (MM_DEBUG): Removed.
42647 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42648 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42649 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42650 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42651 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42652 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42653 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42654 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42655 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42656
42657 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42658
42659 * disk/efi/efidisk.c: Include grub/partition.h.
42660 (iterate_child_devices): New function.
42661 (add_device): First, compare only last device path nodes, so that
42662 devices are sorted by the types.
42663 (grub_efidisk_get_device_handle): New function.
42664 (grub_efidisk_get_device_name): Likewise.
42665
42666 * configure.ac (--enable-mm-debug): New option to enable the
42667 memory manager debugging feature. This makes the binary much
42668 bigger, so is disabled by default.
42669
42670 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42671
42672 Use grub_abort instead of grub_stop, and grub_exit must be
42673 define in each architecture now. Also, this change adds support
42674 for EFI disks.
42675
42676 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42677 (grub_getkey): New function.
42678 (grub_term_get_current): Likewise.
42679
42680 * util/i386/pc/grub-setup.c: Include grub/term.h.
42681 (grub_getkey): New function.
42682 (grub_term_get_current): Likewise.
42683
42684 * util/misc.c (grub_stop): Renamed to ...
42685 (grub_exit): ... this.
42686
42687 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42688 (grub_exit): ... this.
42689 (grub_machine_init): Use grub_abort instead of abort.
42690 (grub_stop): Removed.
42691
42692 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42693 abort.
42694
42695 * kern/i386/pc/startup.S (grub_exit): New function.
42696 (cold_reboot): New label.
42697
42698 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42699 (grub_efi_init): Call grub_efidisk_init.
42700 (grub_efi_fini): Call grub_efidisk_fini.
42701
42702 * kern/efi/efi.c: Include grub/mm.h.
42703 (grub_efi_console_control_guid): Renamed to ...
42704 (console_control_guid): ... this.
42705 (grub_efi_loaded_image_guid): Renamed to ...
42706 (loaded_image_guid): ... this.
42707 (grub_efi_locate_handle): New function.
42708 (grub_efi_open_protocol): Likewise.
42709 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42710 GRUB_EFI_CONSOLE_CONTROL_GUID.
42711 (grub_efi_exit): Removed.
42712 (grub_stop): Likewise.
42713 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42714 (grub_exit): New function.
42715 (grub_print_device_path): Likewise.
42716
42717 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42718 (grub_enter_rescue_mode): Register "exit".
42719
42720 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42721 (grub_abort): New function.
42722
42723 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42724
42725 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42726
42727 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42728
42729 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42730 (grub_print_device_path): New prototype.
42731 (grub_efi_locate_handle): Likewise.
42732 (grub_efi_open_protocol): Likewise.
42733
42734 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42735 * disk/efi/efidisk.c: Likewise.
42736
42737 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42738
42739 * include/grub/efi/console_control.h
42740 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42741
42742 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42743 last 8 bytes as an array.
42744 (GRUB_EFI_DISK_IO_GUID): New macro.
42745 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42746 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42747 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42748 grub_uint8_t.
42749 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42750 (struct grub_efi_device_path): Rename the member "sub_type" to
42751 "subtype".
42752 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42753 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42754 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42755 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42756 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42757 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42758 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42759 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42760 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42761 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42762 (struct grub_efi_pci_device_path): New structure.
42763 (grub_efi_pci_device_path_t): New type.
42764 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
42765 (struct grub_efi_pccard_device_path): New structure.
42766 (grub_efi_pccard_device_path_t): New type.
42767 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
42768 (struct grub_efi_memory_mapped_device_path): New structure.
42769 (grub_efi_memory_mapped_device_path_t): New type.
42770 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
42771 (struct grub_efi_vendor_device_path): New structure.
42772 (grub_efi_vendor_device_path_t): New type.
42773 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
42774 (struct grub_efi_controller_device_path): New structure.
42775 (grub_efi_controller_device_path_t): New type.
42776 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
42777 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
42778 (struct grub_efi_acpi_device_path): New structure.
42779 (grub_efi_acpi_device_path_t): New type.
42780 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
42781 (struct grub_efi_expanded_acpi_device_path): New structure.
42782 (grub_efi_expanded_acpi_device_path_t): New type.
42783 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
42784 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
42785 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
42786 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
42787 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
42788 (struct grub_efi_atapi_device_path): New structure.
42789 (grub_efi_atapi_device_path_t): New type.
42790 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
42791 (struct grub_efi_fibre_channel_device_path): New structure.
42792 (grub_efi_fibre_channel_device_path_t): New type.
42793 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
42794 (struct grub_efi_1394_device_path): New structure.
42795 (grub_efi_1394_device_path_t): New type.
42796 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
42797 (struct grub_efi_usb_device_path): New structure.
42798 (grub_efi_usb_device_path_t): New type.
42799 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
42800 (struct grub_efi_usb_class_device_path): New structure.
42801 (grub_efi_usb_class_device_path_t): New type.
42802 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
42803 (struct grub_efi_i2o_device_path): New structure.
42804 (grub_efi_i2o_device_path_t): New type.
42805 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
42806 (struct grub_efi_mac_address_device_path): New structure.
42807 (grub_efi_mac_address_device_path_t): New type.
42808 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
42809 (struct grub_efi_ipv4_device_path): New structure.
42810 (grub_efi_ipv4_device_path_t): New type.
42811 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
42812 (struct grub_efi_ipv6_device_path): New structure.
42813 (grub_efi_ipv6_device_path_t): New type.
42814 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
42815 (struct grub_efi_infiniband_device_path): New structure.
42816 (grub_efi_infiniband_device_path_t): New type.
42817 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
42818 (struct grub_efi_uart_device_path): New structure.
42819 (grub_efi_uart_device_path_t): New type.
42820 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
42821 (struct grub_efi_vendor_messaging_device_path): New structure.
42822 (grub_efi_vendor_messaging_device_path_t): New type.
42823 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
42824 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
42825 (struct grub_efi_hard_drive_device_path): New structure.
42826 (grub_efi_hard_drive_device_path_t): New type.
42827 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
42828 (struct grub_efi_cdrom_device_path): New structure.
42829 (grub_efi_cdrom_device_path_t): New type.
42830 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
42831 (struct grub_efi_vendor_media_device_path): New structure.
42832 (grub_efi_vendor_media_device_path_t): New type.
42833 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
42834 (struct grub_efi_file_path_device_path): New structure.
42835 (grub_efi_file_path_device_path_t): New type.
42836 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
42837 (struct grub_efi_protocol_device_path): New structure.
42838 (grub_efi_protocol_device_path_t): New type.
42839 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
42840 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
42841 (struct grub_efi_bios_device_path): New structure.
42842 (grub_efi_bios_device_path_t): New type.
42843 (struct grub_efi_disk_io): New structure.
42844 (grub_efi_disk_io_t): New type.
42845 (struct grub_efi_block_io_media): New structure.
42846 (grub_efi_block_io_media_t): New type.
42847 (struct grub_efi_block_io): New structure.
42848 (grub_efi_block_io_t): New type.
42849
42850 * include/grub/misc.h (grub_stop): Removed.
42851 (grub_exit): New prototype.
42852 (grub_abort): Likewise.
42853
42854 * include/grub/disk.h (enum grub_disk_dev_id): Added
42855 GRUB_DISK_DEVICE_EFIDISK_ID.
42856
42857 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
42858 disk/efi/efidisk.c.
42859 (kernel_syms.lst): Remove the target if an error occurs.
42860
42861 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
42862
42863 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
42864 as it was simply too buggy.
42865
42866 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
42867
42868 * kern/misc.c (grub_lltoa): New function.
42869 (grub_vsprintf): Added support for the long long suffix,
42870 i.e. "ll".
42871
42872 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
42873
42874 * Makefile.in (LDFLAGS): Add variable.
42875 (LD): Remove variable.
42876 * configure.ac: Add -m32 to LDFLAGS.
42877 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
42878 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
42879 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
42880 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
42881 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
42882 variables.
42883 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
42884 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
42885 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
42886
42887 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
42888
42889 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
42890 length for unknown glyph.
42891
42892 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42893
42894 Add support for pre-loaded modules into the EFI port.
42895
42896 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
42897 completely. Accept one more argument DIR. The caller has changed.
42898
42899 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
42900
42901 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
42902 (grub_efi_loaded_image_guid): New variable.
42903 (grub_efi_get_loaded_image): New function.
42904 (grub_arch_modules_addr): Likewise.
42905
42906 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
42907 prototype.
42908
42909 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
42910 (struct grub_efi_loaded_image): New structure.
42911 (grub_efi_loaded_image_t): New type.
42912
42913 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42914
42915 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
42916 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
42917 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
42918
42919 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
42920
42921 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
42922
42923 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
42924
42925 * DISTLIST: Added include/grub/efi/console.h,
42926 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
42927 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42928
42929 * include/grub/efi/console.h: New file.
42930 * include/grub/efi/time.h: Likewise.
42931 * include/grub/i386/efi/kernel.h: Likewise.
42932 * kern/efi/init.c: Likewise.
42933 * kern/efi/mm.c: Likewise.
42934 * term/efi/console.c: Likewise.
42935
42936 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
42937 (grub_stop): Removed.
42938 (grub_get_rtc): Likewise.
42939 (grub_machine_init): Simply call grub_efi_init.
42940 (grub_machine_fini): Call grub_efi_fini.
42941
42942 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
42943 (grub_efi_output_string): Removed.
42944 (grub_efi_stall): New function.
42945 (grub_stop): Likewise.
42946 (grub_get_rtc): Likewise.
42947
42948 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
42949 (grub_efi_stall): New prototype.
42950 (grub_efi_allocate_pages): Likewise.
42951 (grub_efi_free_pages): Likewise.
42952 (grub_efi_get_memory_map): Likewise.
42953 (grub_efi_mm_init): Likewise.
42954 (grub_efi_mm_fini): Likewise.
42955 (grub_efi_init): Likewise.
42956 (grub_efi_fini): Likewise.
42957
42958 * include/grub/i386/efi/time.h: Do not include
42959 grub/symbol.h. Include grub/efi/time.h.
42960 (GRUB_TICKS_PER_SECOND): Removed.
42961 (grub_get_rtc): Likewise.
42962
42963 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
42964 Added padding. The EFI spec is buggy.
42965 (GRUB_EFI_BLACK): New macro.
42966 (GRUB_EFI_BLUE): Likewise.
42967 (GRUB_EFI_GREEN): Likewise.
42968 (GRUB_EFI_CYAN): Likewise.
42969 (GRUB_EFI_RED): Likewise.
42970 (GRUB_EFI_MAGENTA): Likewise.
42971 (GRUB_EFI_BROWN): Likewise.
42972 (GRUB_EFI_LIGHTGRAY): Likewise.
42973 (GRUB_EFI_BRIGHT): Likewise.
42974 (GRUB_EFI_DARKGRAY): Likewise.
42975 (GRUB_EFI_LIGHTBLUE): Likewise.
42976 (GRUB_EFI_LIGHTGREEN): Likewise.
42977 (GRUB_EFI_LIGHTCYAN): Likewise.
42978 (GRUB_EFI_LIGHTRED): Likewise.
42979 (GRUB_EFI_LIGHTMAGENTA): Likewise.
42980 (GRUB_EFI_YELLOW): Likewise.
42981 (GRUB_EFI_WHITE): Likewise.
42982 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
42983 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
42984 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
42985 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
42986 (GRUB_EFI_BACKGROUND_RED): Likewise.
42987 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
42988 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
42989 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
42990 (GRUB_EFI_TEXT_ATTR): Likewise.
42991
42992 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
42993 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42994 (kernel_mod_HEADERS): Added efi/time.h.
42995
42996 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
42997
42998 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
42999 include/grub/efi/api.h, include/grub/efi/console_control.h,
43000 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43001 include/grub/i386/efi/time.h, kern/efi/efi.c,
43002 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43003 and util/i386/efi/grub-mkimage.c.
43004
43005 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43006
43007 * genmk.rb (PModule#rule): Do not export symbols if
43008 #{prefix}_EXPORTS is set to "no".
43009
43010 * conf/i386-efi.mk: New file.
43011 * conf/i386-efi.rmk: Likewise.
43012 * include/grub/efi/api.h: Likewise.
43013 * include/grub/efi/console_control.h: Likewise.
43014 * include/grub/efi/efi.h: Likewise.
43015 * include/grub/efi/pe32.h: Likewise.
43016 * include/grub/i386/efi/time.h: Likewise.
43017 * kern/efi/efi.c: Likewise.
43018 * kern/i386/efi/init.c: Likewise.
43019 * kern/i386/efi/startup.S: Likewise.
43020 * util/i386/efi/grub-mkimage.c: Likewise.
43021
43022 2006-04-17 Marco Gerards <marco@gnu.org>
43023
43024 * include/grub/script.h: Include <grub/parser.h> and
43025 "grub_script.tab.h".
43026 (struct grub_lexer_param): New struct.
43027 (struct grub_parser_param): Likewise.
43028 (grub_script_create_arglist): Pass the state in an argument.
43029 (grub_script_add_arglist): Likewise.
43030 (grub_script_create_cmdline): Likewise.
43031 (grub_script_create_cmdblock): Likewise.
43032 (grub_script_create_cmdif): Likewise.
43033 (grub_script_create_cmdmenu): Likewise.
43034 (grub_script_add_cmd): Likewise.
43035 (grub_script_arg_add): Likewise.
43036 (grub_script_lexer_ref): Likewise.
43037 (grub_script_lexer_deref): Likewise.
43038 (grub_script_lexer_record_start): Likewise.
43039 (grub_script_lexer_record_stop): Likewise.
43040 (grub_script_mem_record): Likewise.
43041 (grub_script_mem_record_stop): Likewise.
43042 (grub_script_malloc): Likewise.
43043 (grub_script_yylex): Likewise.
43044 (grub_script_yyparse): Likewise.
43045 (grub_script_yyerror): Likewise.
43046 (grub_script_yylex): Likewise.
43047 (grub_script_lexer_init): Return the state.
43048
43049 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43050 (grub_script_lexer_done): Likewise.
43051 (grub_script_lexer_getline): Likewise.
43052 (grub_script_lexer_refs): Likewise.
43053 (script): Likewise.
43054 (newscript): Likewise.
43055 (record): Likewise.
43056 (recording): Likewise.
43057 (recordpos): Likewise.
43058 (recordlen): Likewise.
43059 (grub_script_lexer_init): Return the state instead of setting
43060 global variables.
43061 (grub_script_lexer_ref): Use the newly added argument for state
43062 instead of globals.
43063 (grub_script_lexer_deref): Likewise.
43064 (grub_script_lexer_record_start): Likewise.
43065 (grub_script_lexer_record_stop): Likewise.
43066 (recordchar): Likewise.
43067 (nextchar): Likewise.
43068 (grub_script_yylex2): Likewise.
43069 (grub_script_yylex): Likewise.
43070 (grub_script_yyerror): Likewise.
43071
43072 * normal/parser.y (func_mem): Removed variable.
43073 (menu_entry): Likewise.
43074 (err): Likewise.
43075 (%lex-param): New parser option.
43076 (%parse-param): Likewise.
43077 (script): Always return the AST.
43078 (argument): Pass the state around.
43079 (arguments): Likewise.
43080 (grubcmd): Likewise.
43081 (commands): Likewise.
43082 (function): Likewise.
43083 (menuentry): Likewise.
43084 (if_statement): Likewise.
43085 (if): Likewise.
43086
43087 * normal/script.c (grub_script_memused): Removed variable.
43088 (grub_script_parsed): Likewise.
43089 (grub_script_malloc): Added a state argument. Use that instead of
43090 global variables.
43091 (grub_script_mem_record): Likewise.
43092 (grub_script_mem_record_stop): Likewise.
43093 (grub_script_arg_add): Likewise.
43094 (grub_script_add_arglist): Likewise.
43095 (grub_script_create_cmdline): Likewise.
43096 (grub_script_create_cmdif): Likewise.
43097 (grub_script_create_cmdmenu): Likewise.
43098 (grub_script_add_cmd): Likewise.
43099 (grub_script_parse): Setup the state before calling the parser.
43100
43101 2006-04-16 Marco Gerards <marco@gnu.org>
43102
43103 * normal/command.c (grub_command_init): Remove the title command.
43104
43105 * normal/lexer.c (grub_script_yylex): Renamed from this...
43106 (grub_script_yylex2): ... to this.
43107 (grub_script_yylex): New function. Temporary
43108 introduced to filter some tokens.
43109 (grub_script_yyerror): Print a newline.
43110
43111 * normal/main.c (read_config_file): Output information about the
43112 lines that contain errors. Wait for a key after all lines have
43113 been processed. Don't return an empty menu.
43114
43115 * normal/parser.y (func_mem): Don't initialize.
43116 (menu_entry): Likewise.
43117 (err): New variable.
43118 (script): Don't return anything when an error was encountered.
43119 (ws, returns): Removed rules.
43120 (argument): Disabled concatenated variable support.
43121 (arguments): Remove explicit separators.
43122 (grubcmd): Likewise.
43123 (function): Likewise.
43124 (menuentry): Likewise.
43125 (if): Likewise.
43126 (commands): Likewise. Add error handling.
43127
43128 * normal/script.c (grub_script_create_cmdline): If
43129 `grub_script_parsed' is 0, assume the parser encountered an error.
43130
43131 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43132
43133 * configure.ac: Add support for EFI. Fix the typo
43134 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43135
43136 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43137
43138 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43139 foreign multibyte characters should be shown correctly.
43140
43141 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43142
43143 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43144 calculation.
43145 (read_config_file): Made it to close file before returning.
43146
43147 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43148
43149 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43150 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43151 video/i386/pc/vbefill.c.
43152
43153 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43154 video/i386/pc/vbefill.c.
43155
43156 * include/grub/video.h (grub_video_blit_format): New enum.
43157 (grub_video_mode_info): Added new member blit_format.
43158 (grub_video_get_blit_format): New function prototype.
43159
43160 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43161 function prototype.
43162 (grub_video_vbe_map_rgb): Likewise.
43163 (grub_video_vbe_unmap_color): Likewise.
43164
43165 * include/grub/i386/pc/vbeblit.h: New file.
43166
43167 * include/grub/i386/pc/vbefill.h: New file.
43168
43169 * video/video.c (grub_video_get_blit_format): New function.
43170 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43171 (grub_video_vbe_map_rgb): Likewise.
43172 (grub_video_vbe_unmap_color): Likewise.
43173
43174 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43175 optimized fills.
43176 (grub_video_vbe_blit_render_target): Changed to use more optimized
43177 blits.
43178 (grub_video_vbe_setup): Added detection for optimized settings.
43179 (grub_video_vbe_create_render_target): Likewise.
43180
43181 * video/i386/pc/vbeblit.c: New file.
43182
43183 * video/i386/pc/vbefill.c: New file.
43184
43185 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43186
43187 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43188 here...
43189
43190 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43191 parsing to support both hex and dec ranges. If filename was missing
43192 show usage information.
43193
43194 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43195
43196 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43197 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43198
43199 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43200 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43201 (video_mod_SOURCES): Added.
43202 (video_mod_CFLAGS): Likewise.
43203 (video_mod_LDFLAGS): Likewise.
43204 (gfxterm_mod_SOURCES): Likewise.
43205 (gfxterm_mod_CFLAGS): Likewise.
43206 (gfxterm_mod_LDFLAGS): Likewise.
43207 (videotest_mod_SOURCES): Likewise.
43208 (videotest_mod_CFLAGS): Likewise.
43209 (videotest_mod_LDFLAGS): Likewise.
43210 (vesafb_mod_SOURCES): Removed.
43211 (vesafb_mod_CFLAGS): Likewise.
43212 (vesafb_mod_LDFLAGS): Likewise.
43213 (vga_mod_SOURCES): Likewise.
43214 (vga_mod_CFLAGS): Likewise.
43215 (vga_mod_LDFLAGS): Likewise.
43216
43217 * commands/videotest.c: New file.
43218
43219 * font/manager.c (fill_with_default_glyph): Modified to use
43220 grub_font_glyph.
43221 (grub_font_get_glyph): Likewise.
43222 (fontmanager): Renamed from this...
43223 (font_manager): ... to this.
43224
43225 * include/grub/font.h (grub_font_glyph): Added new structure.
43226 (grub_font_get_glyph): Modified to use grub_font_glyph.
43227
43228 * include/grub/misc.h (grub_abs): Added as inline function.
43229
43230 * include/grub/video.h: New file.
43231
43232 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43233 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43234 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43235 (grub_vbe_get_controller_info): Renamed from this...
43236 (grub_vbe_bios_get_controller_info): ... to this.
43237 (grub_vbe_get_mode_info): Renamed from this...
43238 (grub_vbe_bios_get_mode_info): ... to this.
43239 (grub_vbe_set_mode): Renamed from this...
43240 (grub_vbe_bios_set_mode): ... to this.
43241 (grub_vbe_get_mode): Renamed from this...
43242 (grub_vbe_bios_get_mode): ... to this.
43243 (grub_vbe_set_memory_window): Renamed from this...
43244 (grub_vbe_bios_set_memory_window): ... to this.
43245 (grub_vbe_get_memory_window): Renamed from this...
43246 (grub_vbe_bios_get_memory_window): ... to this.
43247 (grub_vbe_set_scanline_length): Renamed from this...
43248 (grub_vbe_set_scanline_length): ... to this.
43249 (grub_vbe_get_scanline_length): Renamed from this...
43250 (grub_vbe_bios_get_scanline_length): ... to this.
43251 (grub_vbe_set_display_start): Renamed from this...
43252 (grub_vbe_bios_set_display_start): ... to this.
43253 (grub_vbe_get_display_start): Renamed from this...
43254 (grub_vbe_bios_get_display_start): ... to this.
43255 (grub_vbe_set_palette_data): Renamed from this...
43256 (grub_vbe_bios_set_palette_data): ... to this.
43257 (grub_vbe_set_pixel_rgb): Removed.
43258 (grub_vbe_set_pixel_index): Likewise.
43259
43260 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43261 from this...
43262 (grub_vbe_bios_get_controller_info): ... to this.
43263 (grub_vbe_get_mode_info): Renamed from this...
43264 (grub_vbe_bios_get_mode_info): ... to this.
43265 (grub_vbe_set_mode): Renamed from this...
43266 (grub_vbe_bios_set_mode): ... to this.
43267 (grub_vbe_get_mode): Renamed from this...
43268 (grub_vbe_bios_get_mode): ... to this.
43269 (grub_vbe_set_memory_window): Renamed from this...
43270 (grub_vbe_bios_set_memory_window): ... to this.
43271 (grub_vbe_get_memory_window): Renamed from this...
43272 (grub_vbe_bios_get_memory_window): ... to this.
43273 (grub_vbe_set_scanline_length): Renamed from this...
43274 (grub_vbe_set_scanline_length): ... to this.
43275 (grub_vbe_get_scanline_length): Renamed from this...
43276 (grub_vbe_bios_get_scanline_length): ... to this.
43277 (grub_vbe_set_display_start): Renamed from this...
43278 (grub_vbe_bios_set_display_start): ... to this.
43279 (grub_vbe_get_display_start): Renamed from this...
43280 (grub_vbe_bios_get_display_start): ... to this.
43281 (grub_vbe_set_palette_data): Renamed from this...
43282 (grub_vbe_bios_set_palette_data): ... to this.
43283 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43284 getting corrupted after calling it. Added more pushes and pops.
43285 (grub_vbe_bios_set_mode): Likewise.
43286 (grub_vbe_bios_get_mode): Likewise.
43287 (grub_vbe_bios_get_memory_window): Likewise.
43288 (grub_vbe_bios_set_scanline_length): Likewise.
43289 (grub_vbe_bios_get_scanline_length): Likewise.
43290 (grub_vbe_bios_get_display_start): Likewise.
43291 (grub_vbe_bios_set_palette_data): Likewise.
43292
43293 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43294 (cl_insert): Likewise.
43295 (cl_delete): Likewise.
43296
43297 * term/gfxterm.c: New file.
43298
43299 * term/i386/pc/vesafb.c: Removed file.
43300
43301 * video/video.c: New file.
43302
43303 * video/i386/pc/vbe.c (real2pm): Added new function.
43304 (grub_video_vbe_draw_pixel): Likewise.
43305 (grub_video_vbe_get_video_ptr): Likewise.
43306 (grub_video_vbe_get_pixel): Likewise
43307 (grub_video_vbe_init): Likewise.
43308 (grub_video_vbe_fini): Likewise.
43309 (grub_video_vbe_setup): Likewise.
43310 (grub_video_vbe_get_info): Likewise.
43311 (grub_video_vbe_set_palette): Likewise.
43312 (grub_video_vbe_get_palette): Likewise.
43313 (grub_video_vbe_set_viewport): Likewise.
43314 (grub_video_vbe_get_viewport): Likewise.
43315 (grub_video_vbe_map_color): Likewise.
43316 (grub_video_vbe_map_rgb): Likewise.
43317 (grub_video_vbe_map_rgba): Likewise.
43318 (grub_video_vbe_unmap_color): Likewise.
43319 (grub_video_vbe_fill_rect): Likewise.
43320 (grub_video_vbe_blit_glyph): Likewise.
43321 (grub_video_vbe_blit_bitmap): Likewise.
43322 (grub_video_vbe_blit_render_target): Likewise.
43323 (grub_video_vbe_scroll): Likewise.
43324 (grub_video_vbe_swap_buffers): Likewise.
43325 (grub_video_vbe_create_render_target): Likewise.
43326 (grub_video_vbe_delete_render_target): Likewise.
43327 (grub_video_vbe_set_active_render_target): Likewise.
43328 (grub_vbe_set_pixel_rgb): Remove function.
43329 (grub_vbe_set_pixel_index): Likewise.
43330 (index_color_mode): Remove static variable.
43331 (active_mode): Likewise.
43332 (framebuffer): Likewise.
43333 (bytes_per_scan_line): Likewise.
43334 (grub_video_vbe_adapter): Added new static variable.
43335 (framebuffer): Likewise.
43336 (render_target): Likewise.
43337 (initial_mode): Likewise.
43338 (mode_in_use): Likewise.
43339 (mode_list): Likewise.
43340
43341 2006-03-10 Marco Gerards <marco@gnu.org>
43342
43343 * configure.ac (AC_INIT): Bumped to 1.93.
43344
43345 * DISTLIST: Added `include/grub/hfs.h'.
43346
43347 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43348
43349 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43350 18H, which might help the BIOS falling back to next boot media.
43351
43352 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43353
43354 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43355 Poe Chen <poe.poechen@gmail.com>.
43356
43357 2006-01-17 Marco Gerards <marco@gnu.org>
43358
43359 * include/grub/normal.h: Include <grub/script.h>.
43360 (grub_command_list): Removed struct.
43361 (grub_command_list_t): Removed type.
43362 (grub_menu_entry): Remove members `num' and `command_list'. Add
43363 members `commands' and `sourcecode'.
43364 * include/grub/script.h: Add inclusion guards.
43365 (grub_script_cmd_menuentry): New struct.
43366 (grub_script_execute_menuentry): New prototype.
43367 (grub_script_lexer_record_start): Likewise.
43368 (grub_script_lexer_record_stop): Likewise.
43369 * normal/execute.c (grub_script_execute_menuentry): New function.
43370 * normal/lexer.c (record, recording, recordpos, recordlen): New
43371 variables.
43372 (grub_script_lexer_record_start): New function.
43373 (grub_script_lexer_record_stop): Likewise.
43374 (recordchar): Likewise.
43375 (nextchar): Likewise.
43376 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43377 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43378 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43379 (current_menu): New variable.
43380 (free_menu): Mainly rewritten.
43381 (grub_normal_menu_addentry): New function.
43382 (read_config_file): Rewritten.
43383 * normal/menu.c (run_menu_entry): Mainly rewritten.
43384 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43385 the menu entry.
43386 (run): Mainly rewritten.
43387 * normal/parser.y (menu_entry): New variable.
43388 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43389 (menuentry): New rule.
43390 (command): Add `menuentry'.
43391 (if_statement): Allow additional returns before `fi'.
43392 * normal/script.c (grub_script_create_cmdmenu): New function.
43393
43394 2006-01-03 Marco Gerards <marco@gnu.org>
43395
43396 * INSTALL: GNU Bison is required.
43397 * configure.ac: Rewritten the test to detect Bison.
43398 * Makefile.in (YACC): New variable. Reported by Xun Sun
43399 <xun.sun.cn@gmail.com>.
43400
43401 2006-01-03 Marco Gerards <marco@gnu.org>
43402
43403 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43404 the HFS+ filesystem to filesystem blocks.
43405 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43406 GCC warning is silenced.
43407
43408 2006-01-03 Marco Gerards <marco@gnu.org>
43409
43410 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43411 read from disk from big endian to host byte order.
43412
43413 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43414
43415 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43416 documentation.
43417 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43418 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43419 embedded HFS+ filesystem.
43420 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43421 (grub_hfs_sblock): Move from here...
43422 * include/grub/hfs.h: To here... New file.
43423 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43424 documentation.
43425 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43426 New macros.
43427 (grub_hfsplus_volheader): Change type of member `magic' to
43428 `grub_uint16_t'.
43429 (grub_hfsplus_data): Add new member `embedded_offset'.
43430 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43431 returned block.
43432 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43433 Calculate the offset.
43434
43435 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43436
43437 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43438 Removed.
43439 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43440
43441 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43442
43443 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43444 ENV->NAME is NULL after allocating ENV->VALUE.
43445
43446 2005-12-25 Marco Gerards <marco@gnu.org>
43447
43448 * kern/env.c (grub_env_set): Rewritten the error handling code.
43449
43450 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43451
43452 * geninit.sh: Made more robust, and more portable.
43453
43454 2005-12-25 Marco Gerards <marco@gnu.org>
43455
43456 Add support for Apple HFS+ filesystems.
43457
43458 * fs/hfsplus.c: New file.
43459
43460 * DISTLIST: Added `fs/hfsplus.c'.
43461
43462 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43463 (hfsplus_mod_SOURCES): New variable.
43464 (hfsplus_mod_CFLAGS): Likewise.
43465 (hfsplus_mod_LDFLAGS): Likewise.
43466 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43467 (grub_setup_SOURCES): Likewise.
43468 (grub_mkdevicemap_SOURCES): Likewise.
43469 (grub_emu_SOURCES): Likewise.
43470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43471
43472 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43473
43474 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43475
43476 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43477
43478 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43479 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43480 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43481 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43482 normal/lexer.c, normal/parser.y, normal/script.c, and
43483 partmap/gpt.c.
43484 Removed kern/sparc64/cache.c.
43485
43486 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43487 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43488 grub_emu_init.c.
43489
43490 * configure.ac (AC_INIT): Bumped to 1.92.
43491
43492 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43493
43494 * kern/err.c (grub_error_push): Added new function to support error
43495 stacks.
43496 (grub_error_pop): Likewise.
43497 (grub_error_stack_items): New local variable to support error stacks.
43498 (grub_error_stack_pos): Likewise.
43499 (grub_error_stack_assert): Likewise.
43500 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43501 stack depth.
43502 (grub_print_error): Added support to print errors from error stack.
43503
43504 * include/grub/err.h (grub_error_push): Added function prototype.
43505 (grub_error_pop): Likewise.
43506
43507 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43508
43509 * configure.ac: Accept `powerpc64' as host_cpu.
43510 (amd64): Rename to `biarch32'.
43511
43512 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43513 non-cacheline-aligned addresses.
43514
43515 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43516 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43517 if `size' is non-zero.
43518
43519 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43520
43521 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43522 and `cd' to make sure the filename is not prefixed with a
43523 directory name.
43524 (pkgdata_MODULES): Add `gpt.mod'.
43525 (gpt_mod_SOURCES): New variable.
43526 (gpt_mod_CFLAGS): Likewise.
43527 (gpt_mod_LDFLAGS): Likewise.
43528
43529 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43530
43531 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43532 New macro.
43533
43534 * partmap/gpt.c: New file.
43535
43536 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43537 GPT partition map is detected.
43538
43539 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43540
43541 * commands/i386/pc/play.c: New file.
43542 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43543 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43544 macros.
43545
43546 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43547
43548 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43549 ((unused))' to silence gcc warning.
43550
43551 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43552
43553 * configure.ac: Correct `AC_PROG_YACC' test.
43554
43555 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43556
43557 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43558 check before installing files.
43559
43560 2005-11-22 Mike Small <smallm@panix.com>
43561
43562 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43563 number regex so multidigit numbers are recognized correctly.
43564
43565 2005-11-22 Mike Small <smallm@panix.com>
43566
43567 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43568 debugging message before attempting to claim memory.
43569 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43570 multiple addresses in case of failure.
43571
43572 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43573
43574 * term/tparm.c (get_space): Remove empty `if' statement.
43575
43576 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43577
43578 * kern/parser.c (check_varstate): Rename `state' to 's'.
43579
43580 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43581
43582 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43583 variable definitions to the beginning of each function. Sort stack
43584 variables by size.
43585 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43586 `buf' argument to `char *'.
43587
43588 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43589
43590 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43591 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43592 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43593 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43594 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43595 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43596 configfile.mod, search.mod, gzio.mod and test.mod.
43597 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43598 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43599 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43600 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43601 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43602 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43603 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43604 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43605 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43606 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43607 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43608 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43609 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43610 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43611 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43612 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43613 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43614 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43615 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43616 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43617 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43618 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43619 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43620
43621 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43622 `grep --include'.
43623 (pkgdata_MODULES): Add test.mod.
43624
43625 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43626
43627 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43628 appending to variables with "+=".
43629 (PModule): Use full pathname to generate *.lst filenames.
43630
43631 * Makefile.in: Fixed list rules moved from genmk.rb.
43632 (.DELETE_ON_ERROR): New special target.
43633 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43634
43635 * conf/i386-pc.rmk: Include conf/common.mk.
43636 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43637 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43638 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43639 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43640 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43641 configfile.mod, search.mod, gzio.mod and test.mod.
43642 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43643 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43644 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43645 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43646 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43647 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43648 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43649 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43650 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43651 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43652 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43653 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43654 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43655 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43656 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43657 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43658 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43659 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43660 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43661 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43662 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43663 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43664 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43665 here...
43666 * conf/common.rmk: ... to here. New file.
43667
43668 * conf/common.mk: New file.
43669
43670 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43671
43672 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43673 (grub_script.tab.c): ... here.
43674
43675 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43676 (grub_script.tab.c): ... here.
43677
43678 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43679 (grub_script.tab.c): ... here.
43680
43681 * normal/command.c (grub_command_find): Fixed a memory leak of
43682 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43683
43684 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43685
43686 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43687 "@" which marks the start of a comment on ARM.
43688 (VARIABLE): Likewise.
43689
43690 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43691
43692 Add support for Linux/ADFS partition tables.
43693
43694 * partmap/acorn.c: New file.
43695
43696 * include/grub/acorn_filecore.h: Likewise.
43697
43698 * DISTLIST: Added `partmap/acorn.c' and
43699 `include/grub/acorn_filecore.h'.
43700
43701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43702 `partmap/acorn.c'.
43703 (pkgdata_MODULES): Add `acorn.mod'.
43704 (acorn_mod_SOURCES): New variable.
43705 (acorn_mod_CFLAGS): Likewise.
43706
43707 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43708 `partmap/acorn.c'.
43709 (pkgdata_MODULES): Add `acorn.mod'.
43710 (acorn_mod_SOURCES): New variable.
43711 (acorn_mod_CFLAGS): Likewise.
43712
43713 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43714 (pkgdata_MODULES): Add `acorn.mod'.
43715 (acorn_mod_SOURCES): New variable.
43716 (acorn_mod_CFLAGS): Likewise.
43717 (acorn_mod_LDFLAGS): Likewise.
43718
43719 * include/types.h (grub_disk_addr_t): New typedef.
43720
43721 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43722
43723 * geninit.sh: New file.
43724
43725 * geninitheader.sh: Likewise.
43726
43727 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43728 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43729 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43730 * commands/configfile.c (grub_configfile_init)
43731 (grub_configfile_fini): Likewise.
43732 * commands/default.c (grub_default_init, grub_default_fini):
43733 Likewise.
43734 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43735 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43736 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43737 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43738 Likewise.
43739 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43740 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43741 Likewise.
43742 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43743 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43744 Likewise.
43745 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43746 Likewise.
43747 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43748 Likewise.
43749 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43750 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43751 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43752 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43753 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43754 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43755 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43756 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43757 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43758 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43759 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43760 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43761 * partmap/amiga.c (grub_amiga_partition_map_init)
43762 (grub_amiga_partition_map_fini): Likewise.
43763 * partmap/apple.c (grub_apple_partition_map_init)
43764 (grub_apple_partition_map_fini): Likewise.
43765 * partmap/pc.c (grub_pc_partition_map_init)
43766 (grub_pc_partition_map_fini): Likewise.
43767 * partmap/sun.c (grub_sun_partition_map_init,
43768 grub_sun_partition_map_fini): Likewise.
43769 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
43770 Likewise.
43771
43772 * util/grub-emu.c: Include <grub_modules_init.h>.
43773 (main): Don't initialize and de-initialize any modules directly,
43774 use `grub_init_all' and `grub_fini_all' instead.
43775
43776 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
43777 `grub_vesafb_mod_init'.
43778 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
43779 all users.
43780 * term/i386/pc/vga.c (grub_vga_init): Renamed to
43781 `grub_vga_mod_init'. Updated all users.
43782 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
43783
43784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
43785 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
43786 rules.
43787
43788 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
43789 Generate a function to initialize the module in utilities.
43790 Updated all callers.
43791 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
43792 initialize the module in utilities. Updated all callers.
43793
43794 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43795
43796 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
43797 escape sequence and a literal ^L to clear the screen.
43798
43799 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
43800 when returning from Open Firmware.
43801
43802 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43803
43804 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
43805 (grub_ofconsole_height): Likewise.
43806 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
43807 manually insert a '\n'.
43808 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
43809 `grub_ofconsole_height'. Return early if these are already set.
43810
43811 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
43812
43813 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43814 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
43815 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
43816 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
43817 and `normal/script.c'.
43818 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43819 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43820 (test_mod_SOURCES): New variable.
43821 (test_mod_CFLAGS): Likewise.
43822 (test_mod_LDFLAGS): Likewise.
43823 (pkgdata_MODULES): Add `test.mod'.
43824 (grub_script.tab.c): New rule.
43825 (grub_script.tab.h): Likewise.
43826
43827 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
43828
43829 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43830 `commands/test.c', `normal/execute.c', `normal/lexer.c',
43831 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43832 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43833 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43834 (test_mod_SOURCES): New variable.
43835 (test_mod_CFLAGS): Likewise.
43836 (pkgdata_MODULES): Add `test.mod'.
43837 (grub_script.tab.c): New rule.
43838 (grub_script.tab.h): Likewise.
43839
43840 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
43841
43842 Add initial scripting support.
43843
43844 * commands/test.c: New file.
43845 * include/grub/script.h: Likewise.
43846 * normal/execute.c: Likewise.
43847 * normal/function.c: Likewise.
43848 * normal/lexer.c: Likewise.
43849 * normal/parser.y: Likewise.
43850 * normal/script.c: Likewise.
43851
43852 * configure.ac: Add `AC_PROG_YACC' test.
43853
43854 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
43855 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
43856 `normal/function.c' and `normal/script.c'.
43857 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43858 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43859 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
43860 variables.
43861 (pkgdata_MODULES): Add `test.mod'.
43862 (grub_script.tab.c): New rule.
43863 (grub_script.tab.h): Likewise.
43864
43865 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
43866
43867 * include/grub/normal.h (grub_test_init): New prototype.
43868 (grub_test_fini): Likewise.
43869
43870 * normal/command.c: Include <grub/script.h>.
43871 (grub_command_execute): Rewritten.
43872
43873 * util/grub-emu.c (main): Call `grub_test_init' and
43874 `grub_test_fini'.
43875
43876 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43877
43878 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
43879 to 0.
43880 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
43881 there are no pending characters.
43882
43883 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43884
43885 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
43886 `grub_strndup' to drop device arguments. Replace unnecessary
43887 `grub_strndup' with `grub_strdup'.
43888
43889 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43890
43891 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
43892 `debug' environment variable has been set.
43893
43894 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
43895
43896 * Makefile.in (install-local): Use $(DATA).
43897 (uninstall): Likewise.
43898 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
43899 (sbin_UTILITIES): ... to here.
43900 (sbin_SCRIPTS): New variable.
43901 (grub_install_SOURCES): New variable.
43902 * util/powerpc/ieee1275/grub-install.in: New file.
43903 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
43904 variable.
43905 (add_segments): Call `grub_util_get_path'.
43906
43907 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43908
43909 From Timothy Baldwin:
43910 * commands/ls.c (grub_ls_list_files): Close FILE with
43911 grub_file_close.
43912 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
43913
43914 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
43915
43916 * include/grub/parser.h: New file.
43917
43918 * kern/parser.c: Likewise.
43919
43920 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
43921 (grub_setup_SOURCES): Likewise.
43922 (grub_probefs_SOURCES): Likewise.
43923 (grub_emu_SOURCES): Likewise.
43924 (kernel_img_HEADERS): Add `parser.h'.
43925
43926 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43927 (grub_emu_SOURCES): Add `kern/parser.c'.
43928 (grubof_SOURCES): Likewise.
43929
43930 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43931 (grubof_SOURCES): Add `kern/parser.c'.
43932
43933 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
43934
43935 * kern/misc.c (grub_split_cmdline): Removed function.
43936
43937 * kern/rescue.c: Include <grub/parser.h>.
43938 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
43939 of `grub_split_cmdline'.
43940
43941 * normal/command.c: Include <grub/parser.h>.
43942 (grub_command_execute): Use `grub_parser_split_cmdline' instead
43943 of `grub_split_cmdline'.
43944
43945 * normal/completion.c: Include <grub/parser.h>.
43946 (cmdline_state): New variable.
43947 (iterate_dir): End the filename with a quote depending on the
43948 command line state.
43949 (get_state): new function.
43950 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
43951 split the arguments and determine the current argument. When the
43952 argument string is not quoted, escape all spaces.
43953
43954 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43955
43956 * normal/sparc64/setjmp.S: New file.
43957
43958 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43959
43960 * include/grub/sparc64/libgcc.h: New file.
43961 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
43962 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
43963 normal/sparc64/setjmp.c.
43964
43965 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43966
43967 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
43968 * kern/sparc64/cache.S: New file.
43969 * kern/sparc64/cache.c: Removed.
43970 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
43971 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
43972 -mtune=ultrasparc.
43973 (COMMON_LDFLAGS): Add -melf64_sparc.
43974 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
43975 (grubof_SOURCES): Use cache.S instead of cache.c.
43976 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
43977 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
43978 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
43979 commented though.
43980 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
43981 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
43982 (linux_mod_CFLAGS): Commented out.
43983 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
43984 out because module isn't built.
43985 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
43986 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
43987 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
43988 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
43989 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
43990 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43991 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43992 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
43993 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
43994 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
43995 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43996 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43997 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
43998 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
43999
44000 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44001
44002 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44003 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44004 longer, because HFS should not be used on PC.
44005
44006 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44007
44008 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44009 consistently within the loop.
44010
44011 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44012
44013 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44014 directory can not be read.
44015
44016 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44017
44018 * configure.ac (AC_INIT): Increase the version number to 1.91.
44019
44020 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44021 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44022 term/i386/pc/serial.c.
44023
44024 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44025
44026 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44027 file size must be permitted.
44028
44029 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44030 between %ah and %al.
44031
44032 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44033
44034 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44035 grub_uint64_t.
44036 Call the hook with a NUL-terminated filename.
44037 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44038 grub_cpu_to_be32.
44039
44040 * kern/term.c (cursor_state): New variable.
44041 (grub_term_set_current): Reset the cursor state on a new
44042 terminal.
44043 (grub_setcursor): Rewritten to use CURSOR_STATE.
44044 (grub_getcursor): New function.
44045
44046 * include/grub/term.h (grub_getcursor): New prototype.
44047
44048 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44049 integers on ARM. Reported by Timothy Baldwin
44050 <T.E.Baldwin99@members.leeds.ac.uk>.
44051
44052 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44053
44054 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44055 allocated.
44056 (grub_sfs_dir): Likewise.
44057
44058 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44059
44060 Add support for the SFS filesystem.
44061
44062 * fs/sfs.c: New file.
44063
44064 * DISTLIST: Added `fs/sfs.c'.
44065
44066 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44067 (grub_probefs_SOURCES): Likewise.
44068 (grub_emu_SOURCES): Likewise.
44069 (pkgdata_MODULES): Add `sfs.mod'.
44070 (sfs_mod_SOURCES): New variable.
44071 (sfs_mod_CFLAGS): Likewise.
44072 (sfs_mod_LDFLAGS): Likewise.
44073
44074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44075 (pkgdata_MODULES): Add `sfs.mod'.
44076 (sfs_mod_SOURCES): New variable.
44077 (sfs_mod_CFLAGS): Likewise.
44078
44079 * util/grub-emu.c (main): Call `grub_sfs_init' and
44080 `grub_sfs_fini'.
44081
44082 * include/grub/fs.h (grub_sfs_init): New prototype.
44083 (grub_sfs_fini): Likewise.
44084
44085 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44086
44087 Add support for the AFFS filesystem.
44088
44089 * fs/affs.c: New file.
44090
44091 * DISTLIST: Added `fs/affs.c'.
44092
44093 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44094 (grub_probefs_SOURCES): Likewise.
44095 (grub_emu_SOURCES): Likewise.
44096 (pkgdata_MODULES): Add `affs.mod'.
44097 (affs_mod_SOURCES): New variable.
44098 (affs_mod_CFLAGS): Likewise.
44099 (affs_mod_LDFLAGS): Likewise.
44100
44101 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44102 (pkgdata_MODULES): Add `affs.mod'.
44103 (affs_mod_SOURCES): New variable.
44104 (affs_mod_CFLAGS): Likewise.
44105
44106 * util/grub-emu.c (main): Call `grub_affs_init' and
44107 `grub_affs_fini'.
44108
44109 * include/grub/fs.h (grub_affs_init): New prototype.
44110 (grub_affs_fini): Likewise.
44111
44112 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44113
44114 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44115
44116 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44117
44118 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44119 `-m32' to CFLAGS.
44120
44121 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44122 linking.
44123
44124 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44125 (COMMON_LDFLAGS): New variable.
44126 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44127 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44128 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44129 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44130 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44131 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44132 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44133 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44134 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44135 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44136 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44137 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44138 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44139 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44140 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44141 variables.
44142 (normal_mod_ASFLAGS): Add `-m32'.
44143
44144 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44145 (grub_host_size_t, grub_host_ssize_t): New types.
44146 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44147 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44148 `GRUB_HOST_SIZEOF_VOID_P'.
44149
44150 * include/grub/kernel.h (struct grub_module_header): Type of
44151 member offset changed to `grub_host_off_t'. Type of member size
44152 changed to `grub_host_size_t'.
44153 (struct grub_module_info): Type of member offset changed to
44154 `grub_host_off_t'. Type of member size changed to
44155 `grub_host_size_t'.
44156
44157 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44158
44159 Make GRUB's kernel compliant to Multiboot Specification.
44160
44161 * kern/i386/pc/startup.S (multiboot_header): New label.
44162 (multiboot_entry): Likewise.
44163 (multiboot_trampoline): Likewise.
44164
44165 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44166 Increased to 0x4A0.
44167
44168 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44169 put parentheses after a question mark.
44170 [!GRUB_UTIL] (my_mod): New variable.
44171
44172 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44173
44174 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44175
44176 Adds support for the XFS filesystem. Btrees are not supported
44177 yet.
44178
44179 * fs/xfs.c: New file.
44180
44181 * DISTLIST: Added `fs/xfs.c'.
44182
44183 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44184 (grub_probefs_SOURCES): Likewise.
44185 (grub_emu_SOURCES): Likewise.
44186 (pkgdata_MODULES): Add `xfs.mod'.
44187 (xfs_mod_SOURCES): New variable.
44188 (xfs_mod_CFLAGS): Likewise.
44189
44190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44191 (pkgdata_MODULES): Add `xfs.mod'.
44192 (xfs_mod_SOURCES): New variable.
44193 (xfs_mod_CFLAGS): Likewise.
44194
44195 * util/grub-emu.c (main): Call `grub_xfs_init' and
44196 `grub_xfs_fini'.
44197
44198 * include/grub/fs.h (grub_xfs_init): New prototype.
44199 (grub_xfs_fini): Likewise.
44200
44201
44202 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44203
44204 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44205 color modes, allow greater than 16 colors to be configured as
44206 a default palette.
44207
44208 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44209
44210 * normal/completion.c (complete_arguments): Add the qualifier
44211 const into OPTIONS.
44212
44213 From Omniflux <omniflux+lists@omniflux.com>:
44214 * include/grub/terminfo.h: New file.
44215 * include/grub/tparm.h: Likewise.
44216 * include/grub/i386/pc/serial.h: Likewise.
44217 * term/terminfo.c: Likewise.
44218 * term/tparm.c: Likewise.
44219 * term/i386/pc/serial.c: Likewise.
44220 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44221 serial.mod.
44222 (terminfo_mod_SOURCES): New variable.
44223 (terminfo_mod_CFLAGS): Likewise.
44224 (serial_mod_SOURCES): Likewise.
44225 (serial_mod_CFLAGS): Likewise.
44226
44227 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44228
44229 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44230 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44231 and kern/powerpc/ieee1275/cmain.c, respectively.
44232
44233 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44234 * kern/powerpc/ieee1275/crt0.S: ... here.
44235
44236 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44237 * kern/powerpc/ieee1275/cmain.c: ... here.
44238
44239 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44240 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44241 instead of boot/powerpc/ieee1275/crt0.S and
44242 boot/powerpc/ieee1275/cmain.c, respectively.
44243
44244 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44245 sectors. It was not used anyway.
44246
44247 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44248
44249 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44250 `unused parameter' warning.
44251
44252 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44253
44254 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44255 function.
44256 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44257 getcharwidth.
44258
44259 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44260
44261 * include/grub/normal.h (enum grub_completion_type): Added
44262 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44263
44264 * normal/cmdline.c (print_completion): Handle
44265 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44266 * normal/menu_entry.c (store_completion): Likewise.
44267
44268 * normal/completion.c (complete_arguments): New function.
44269 (grub_normal_do_completion): Call `complete_arguments' when the
44270 current words start with a dash.
44271
44272 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44273
44274 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44275 `gzio.mod' instead of `io.mod').
44276
44277 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44278
44279 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44280 (DISTDIRS): Added io and video.
44281 Rewrite the search routine to make an output consistently.
44282
44283 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44284 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44285 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44286 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44287 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44288 util/powerpc/ieee1275/misc.c.
44289
44290 * include/grub/gzio.h: New file.
44291 * io/gzio.c: Likewise.
44292
44293 * kern/file.c (grub_file_close): Call grub_device_close only if
44294 FILE->DEVICE is not NULL.
44295
44296 * include/grub/mm.h [!NULL] (NULL): New macro.
44297
44298 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44299
44300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44301 (pkgdata_MODULES): Added gzio.mod.
44302 (gzio_mod_SOURCES): New variable.
44303 (gzio_mod_CFLAGS): Likewise.
44304
44305 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44306 (pkgdata_MODULES): Added gzio.mod.
44307 (gzio_mod_SOURCES): New variable.
44308 (gzio_mod_CFLAGS): Likewise.
44309
44310 * commands/cat.c: Include grub/gzio.h.
44311 (grub_cmd_cat): Use grub_gzfile_open instead of
44312 grub_file_open.
44313
44314 * commands/cmp.c: Include grub/gzio.h.
44315 (grub_cmd_cmp): Use grub_gzfile_open instead of
44316 grub_file_open.
44317
44318 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44319 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44320 grub_file_open.
44321 (grub_rescue_cmd_module): Likewise.
44322
44323 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44324
44325 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44326 kern/sparc64/ieee1275/init.c because it contains _start.
44327 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44328
44329 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44330
44331 * configure.ac: Add support for sparc64 host with ieee1275
44332 firmware.
44333 * configure: Generated from configure.ac.
44334 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44335 instead of int.
44336 (grub_ofdisk_read): Likewise.
44337 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44338 pointers as (void *) to remove a warning.
44339 (grub_ofdisk_close): Likewise.
44340 (grub_ofdisk_read): Likewise.
44341 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44342 returns, so make it return void to remove a warning.
44343 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44344 Corresponding prototype change.
44345 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44346 values, and cast the pointers as (void *) to remove a warning.
44347 (grub_mm_dump): Likewise.
44348 * conf/sparc64-ieee1275.mk: New file.
44349 * conf/sparc64-ieee1275.rmk: Likewise.
44350 * include/grub/sparc64/setjmp.h: Likewise.
44351 * include/grub/sparc64/types.h: Likewise.
44352 * include/grub/sparc64/ieee1275/console.h: Likewise.
44353 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44354 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44355 * include/grub/sparc64/ieee1275/time.h: Likewise.
44356 * kern/sparc64/cache.c: Likewise.
44357 * kern/sparc64/dl.c: Likewise.
44358 * kern/sparc64/ieee1275/init.c: Likewise.
44359 * kern/sparc64/ieee1275/openfw.c: Likewise.
44360
44361 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44362
44363 * util/console.c (grub_ncurses_putchar): If C is greater than
44364 0x7f, set C to a question mark.
44365 (grub_ncurses_getcharwidth): New function.
44366 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44367 getcharwidth.
44368
44369 * normal/menu.c (print_entry): Made aware of Unicode. First,
44370 convert TITLE to UCS-4, and predict the cursor position by
44371 grub_getcharwidth.
44372
44373 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44374 const to SRC.
44375 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44376
44377 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44378
44379 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44380 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44381 grub_strcat.
44382
44383 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44384 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44385 grub_strcpy and grub_strlen. Take it into account that a space
44386 character is inserted as a delimiter.
44387
44388 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44389
44390 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44391 invalid magic in the error.
44392
44393 * commands/search.c: New file.
44394
44395 * util/grub-emu.c (main): Call grub_search_init and
44396 grub_search_fini.
44397
44398 * kern/rescue.c (grub_rescue_print_disks): Removed.
44399 (grub_rescue_print_devices): New function.
44400 (grub_rescue_cmd_ls): Use grub_device_iterate with
44401 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44402 grub_rescue_print_disks.
44403
44404 * kern/partition.c (grub_partition_iterate): Return the result of
44405 PARTMAP->ITERATE instead of GRUB_ERRNO.
44406
44407 * kern/device.c: Include grub/partition.h.
44408 (grub_device_iterate): New function.
44409
44410 * include/grub/partition.h (grub_partition_iterate): Return int
44411 instead of grub_err_t.
44412
44413 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44414 prototype.
44415 [GRUB_UTIL] (grub_search_fini): Likewise.
44416
44417 * include/grub/device.h (grub_device_iterate): New prototype.
44418
44419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44420 commands/search.c.
44421 (pkgdata_MODULES): Added search.mod.
44422 (search_mod_SOURCES): New variable.
44423 (search_mod_CFLAGS): Likewise.
44424
44425 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44426 (pkgdata_MODULES): Added search.mod.
44427 (search_mod_SOURCES): New variable.
44428 (search_mod_CFLAGS): Likewise.
44429
44430 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44431 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44432 All callers changed.
44433
44434 * DISTLIST: Added commands/search.c.
44435
44436 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44437
44438 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44439 conversion.
44440 (grub_getcharwidth): New function.
44441
44442 * kern/misc.c (grub_utf8_to_ucs4): New function.
44443
44444 * include/grub/term.h (struct grub_term): Added a new member
44445 "getcharwidth".
44446 (grub_getcharwidth): New prototype.
44447
44448 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44449
44450 * term/i386/pc/console.c (map_char): New function. Segregated from
44451 grub_console_putchar.
44452 (grub_console_putchar): Use map_char.
44453 (grub_console_getcharwidth): New function.
44454 (grub_console_term): Specified grub_console_getcharwidth as
44455 getcharwidth.
44456
44457 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44458 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44459
44460 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44461 GRUB_ERRNO.
44462 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44463 on grub_strtoul completely.
44464 (write_char): Declare local variables in the beginning of the
44465 function.
44466 (grub_vesafb_getcharwidth): New function.
44467 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44468 getcharwidth.
44469
44470 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44471
44472 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44473 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44474 commands/i386/pc/vbetest.c.
44475
44476 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44477 call grub_vbe_get_controller_info again, because the returned
44478 information is volatile.
44479 (grub_vbe_set_video_mode): Mostly rewritten.
44480 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44481 grub_vbe_status_t correctly.
44482 (grub_vbe_get_video_mode_info): Likewise.
44483 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44484 several if statements.
44485
44486 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44487 * commands/i386/pc/vbeinfo.c: ... this.
44488
44489 * commands/i386/pc/vbe_test.c: Renamed to ...
44490 * commands/i386/pc/vbetest.c: ... this.
44491
44492 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44493 ...
44494 (grub_cmd_vbeinfo): ... this. Save video modes before
44495 iterating. Skip a video mode, if it is not available, not enough
44496 information is given or it is monochrome. Show the memory
44497 model. Leave the interpretation of MODEVAR to grub_strtoul
44498 completely.
44499 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44500 (GRUB_MOD_FINI): Likewise.
44501
44502 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44503 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44504 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44505 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44506 grub_strtoul completely.
44507 (real2pm): Removed.
44508 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44509 (GRUB_MOD_FINI): Likewise.
44510
44511 * normal/misc.c: Include grub/mm.h.
44512
44513 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44514 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44515 (vbe_list_modes_mod_SOURCES): Removed.
44516 (vbe_list_modes_mod_CFLAGS): Likewise.
44517 (vbe_test_mod_SOURCES): Likewise.
44518 (vbe_test_mod_CFLAGS): Likewise.
44519 (vbeinfo_mod_SOURCES): New variable.
44520 (vbeinfo_mod_CFLAGS): Likewise.
44521 (vbetest_mod_SOURCES): Likewise.
44522 (vbetest_mod_CFLAGS): Likewise.
44523
44524 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44525
44526 * normal/misc.c: New file.
44527
44528 * DISTLIST: Added normal/misc.c.
44529
44530 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44531 DISK to HOOK. Call HOOK with DISK.
44532 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44533 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44534 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44535
44536 * normal/menu_entry.c (struct screen): Added a new member
44537 "completion_shown".
44538 (completion_buffer): New global variable.
44539 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44540 (store_completion): New function.
44541 (complete): Likewise.
44542 (clear_completions): Likewise.
44543 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44544 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44545 a tab, call complete.
44546
44547 * normal/completion.c (disk_dev): Removed.
44548 (print_simple_completion): Likewise.
44549 (print_partition_completion): Likewise.
44550 (print_func): New global variable.
44551 (add_completion): Do not take the arguments WHAT or PRINT any
44552 longer. Added a new argument TYPE. Instead of printing directly,
44553 call PRINT_FUNC if not NULL.
44554 All callers changed.
44555 (complete_device): Use a local variable DEV instead of
44556 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44557 (grub_normal_do_completion): Take a new argument HOOK. Do not
44558 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44559 empty string, return NULL instead.
44560 All callers changed.
44561
44562 * normal/cmdline.c (print_completion): New function.
44563
44564 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44565 to HOOK.
44566 All callers changed.
44567
44568 * kern/disk.c (grub_print_partinfo): Removed.
44569
44570 * include/grub/partition.h (struct grub_partition_map): Add a new
44571 argument DISK into HOOK of ITERATE.
44572 (grub_partition_iterate): Add a new argument DISK to HOOK.
44573
44574 * include/grub/normal.h (enum grub_completion_type): New enum.
44575 (grub_completion_type_t): New type.
44576 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44577 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44578 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44579 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44580 (grub_normal_do_completion): Added a new argument HOOK.
44581 (grub_normal_print_device_info): New prototype.
44582
44583 * include/grub/disk.h (grub_print_partinfo): Removed.
44584
44585 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44586 (normal_mod_SOURCES): Likewise.
44587 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44588 (normal_mod_SOURCES): Likewise.
44589
44590 * commands/ls.c (grub_ls_list_disks): Use
44591 grub_normal_print_device_info instead of grub_print_partinfo. Free
44592 PNAME.
44593 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44594 duplicating the code.
44595
44596 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44597
44598 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44599 follow GCS more precisely.
44600 * commands/i386/pc/vbe_test.c: Likewise.
44601 * include/grub/i386/pc/vbe.h: Likewise.
44602 * term/i386/pc/vesafb.c: Likewise.
44603 * video/i386/pc/vbe.c: Likewise.
44604
44605 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44606
44607 * DISTLIST: Added term/i386/pc/vesafb.c
44608 DISTLIST: Added video/i386/pc/vbe.c
44609 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44610 DISTLIST: Added commands/i386/pc/vbe_test.c.
44611 * commands/i386/pc/vbe_list_modes.c: New file.
44612 * commands/i386/pc/vbe_test.c: Likewise.
44613 * term/i386/pc/vesafb.c: Likewise.
44614 * video/i386/pc/vbe.c: Likewise.
44615 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44616 (grub_vbe_probe) Added prototype.
44617 (grub_vbe_set_video_mode) Likewise.
44618 (grub_vbe_get_video_mode) Likewise.
44619 (grub_vbe_get_video_mode_info) Likewise.
44620 (grub_vbe_set_pixel_rgb) Likewise.
44621 (grub_vbe_set_pixel_index) Likewise.
44622 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44623 (pkgdata_MODULES): Added vesafb.mod.
44624 (pkgdata_MODULES): Added vbe_list_modes.mod.
44625 (pkgdata_MODULES): Added vbe_test.mod.
44626 (vbe_mod_SOURCES): Added.
44627 (vbe_mod_CFLAGS): Likewise.
44628 (vesafb_mod_SOURCES): Likewise.
44629 (vesafb_mod_CFLAGS): Likewise.
44630 (vbe_list_modes_mod_SOURCES): Likewise.
44631 (vbe_list_modes_mod_CFLAGS): Likewise.
44632 (vbe_test_mod_SOURCES): Likewise.
44633 (vbe_test_mod_CFLAGS): Likewise.
44634
44635 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44636
44637 * normal/command.c (grub_command_execute): If INTERACTIVE is
44638 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44639 CMDLINE. Disable the pager if INTERACTIVE is true.
44640 All callers are changed.
44641
44642 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44643 before reading a config file.
44644 * normal/main.c (read_config_file): Even if a command is not
44645 found, register it if it is within an entry.
44646
44647 * util/grub-emu.c: Include sys/types.h and unistd.h.
44648 (options): Added --hold.
44649 (struct arguments): Added a new member "hold".
44650 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44651 missing.
44652 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44653 cleared by a debugger, if it is not zero.
44654
44655 * include/grub/normal.h (grub_command_execute): Add an argument
44656 INTERACTIVE.
44657
44658 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44659
44660 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44661
44662 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44663
44664 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44665 program with another one, because the old one didn't detect a bug
44666 in gcc-3.4. Always use regparm 2, because the new test is still
44667 not enough for gcc-4.0. Someone must investigate a simple test
44668 case which detects a bug in gcc-4.0.
44669
44670 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44671
44672 * DISTLIST: Added normal/completion.c.
44673
44674 * normal/completion.c: New file.
44675
44676 * term/i386/pc/console.c (grub_console_getwh): New function.
44677 (grub_console_term): Assign grub_console_getwh to getwh.
44678
44679 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44680 function is defined in normal/completion.c as
44681 grub_normal_do_completion.
44682 (grub_cmdline_get): Use grub_normal_do_completion instead of
44683 grub_tab_complete.
44684
44685 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44686 returns non-zero, otherwise return 0.
44687 (grub_partition_iterate): First, probe the partition map. Then,
44688 call ITERATE only for this partition map.
44689
44690 * kern/misc.c (grub_strncmp): Rewritten.
44691
44692 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44693 returns non-zero. Otherwise return 0.
44694
44695 * include/grub/partition.h (grub_partition_map_iterate): Return
44696 int instead of void.
44697
44698 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44699
44700 * include/grub/misc.h (grub_strncmp): Change the type of N to
44701 grub_size_t.
44702
44703 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44704 of void.
44705
44706 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44707 unsigned explicitly before comparing it with I.
44708
44709 * kern/main.c (grub_env_write_root): Add the attribute unused into
44710 VAR.
44711
44712 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44713 normal/completion.c.
44714 (normal_mod_SOURCES): Likewise.
44715 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44716 (normal_mod_SOURCES): Likewise.
44717
44718 * normal/command.c (grub_iterate_commands): If ITERATE returns
44719 non-zero, return one immediately.
44720
44721 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44722
44723 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44724 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44725 descriptions.
44726 (grub_vbe_get_controller_info): New function.
44727 (grub_vbe_get_mode_info): Likewise.
44728 (grub_vbe_set_mode): Likewise.
44729 (grub_vbe_get_mode): Likewise.
44730 (grub_vbe_set_memory_window): Likewise.
44731 (grub_vbe_get_memory_window): Likewise.
44732 (grub_vbe_set_scanline_length): Likewise.
44733 (grub_vbe_get_scanline_length): Likewise.
44734 (grub_vbe_set_display_start): Likewise.
44735 (grub_vbe_get_display_start): Likewise.
44736 (grub_vbe_set_palette_data): Likewise.
44737 * include/grub/i386/pc/vbe.h: New file.
44738
44739 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44740
44741 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44742 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44743 * DISTLIST: Likewise.
44744 * kern/ieee1275/of.c: Moved to ...
44745 * kern/ieee1275/ieee1275.c: ... here.
44746
44747 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44748
44749 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44750 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44751 Pass 0 as `end' parameter to grub_strtoul().
44752
44753 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44754
44755 * include/grub/powerpc/ieee1275/console.h: Do not include
44756 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44757 ifdef.
44758 (grub_console_cur_color): Remove i386-specific prototype.
44759 (grub_console_real_putchar): Likewise.
44760 (grub_console_checkkey): Likewise.
44761 (grub_console_getkey): Likewise.
44762 (grub_console_getxy): Likewise.
44763 (grub_console_gotoxy): Likewise.
44764 (grub_console_cls): Likewise.
44765 (grub_console_setcursor): Likewise.
44766 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
44767 Include <grub/machine/console.h>.
44768 * term/ieee1275/ofconsole.c: Likewise.
44769
44770 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
44771
44772 * Makefile.in (LIBLZO): New variable.
44773
44774 * configure.ac: Check for LZO version 2.
44775
44776 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
44777 lzo/lzo1x.h instead of lzo1x.h.
44778
44779 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
44780 of -llzo.
44781
44782 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
44783 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
44784
44785 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
44786 copying the data from PARTITION to P.
44787
44788 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44789
44790 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
44791 negative, unload the module.
44792
44793 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
44794 map is "pc_partition_map" but not "pc".
44795 (usage): Fix the description. The options are --boot-image and
44796 --core-image but not --boot-file or --core-file.
44797 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
44798 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
44799 DEFAULT_DIRECTORY.
44800
44801 * util/i386/pc/grub-install.in: Do not specify --boot-file or
44802 --core-file. Specify INSTALL_DEVICE as an argument.
44803
44804 * util/console.c: Include config.h.
44805 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
44806 [HAVE_NCURSES_H]: Include ncurses.h.
44807 [HAVE_CURSES_H]: Include curses.h.
44808 [!A_NORMAL] (A_NORMAL): Defined as zero.
44809 [!A_STANDOUT] (A_STANDOUT): Likewise.
44810
44811 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
44812 -lncurses.
44813 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
44814
44815 * configure.ac: Check for curses libraries and headers.
44816
44817 * Makefile.in (LIBCURSES): New variable.
44818
44819 * genmk.rb (Script::rule): Set the executable bits.
44820
44821 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
44822 name of the PC partition map is "pc_partition_map" but not "pc".
44823
44824 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44825
44826 * util/i386/pc/grub-install.in (grub_probefs): New variable.
44827 (modules): Likewise.
44828 (usage): Added descriptions for --modules and --grub-probefs.
44829 Handle --modules and --grub-probefs. Save the arguments in MODULES
44830 and GRUB_PROBEFS, respectively.
44831 Auto-detect a filesystem module against GRUBDIR. If the result is
44832 empty and modules are not specified explicitly, abort the
44833 installation. Add the result to MODULES.
44834
44835 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
44836 disk/powerpc/ieee1275/ofdisk.c,
44837 include/grub/powerpc/ieee1275/init.h and
44838 term/powerpc/ieee1275/ofconsole.c.
44839 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
44840 term/ieee1275/ofconsole.c.
44841
44842 * include/grub/powerpc/ieee1275/console.h: Resurrected.
44843
44844 * COPYING: Upgraded to the latest version. Only the address of the
44845 FSF office has changed.
44846
44847 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44848
44849 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44850 kern/ieee1275.c with kern/ieee1275/of.c.
44851
44852 * kern/ieee1275.c: Moved to ...
44853 * kern/ieee1275/of.c: ... here.
44854
44855 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
44856
44857 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
44858 readability.
44859
44860 * config.guess: Updated to the latest version from gnulib.
44861 * config.sub: Likewise.
44862 * install.sh: Likewise.
44863 * mkinstalldirs: Likewise.
44864
44865 * include/grub/console.h: Removed. This file is arch-specific. Do
44866 not put this in include/grub.
44867
44868 * include/grub/i386/pc/console.h: Resurrected.
44869
44870 * util/console.c: Include grub/machine/console.h instead of
44871 grub/console.h.
44872 * util/grub-emu.c: Likewise.
44873
44874 2005-08-04 Marco Gerards <metgerards@student.han.nl>
44875
44876 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
44877 hardcoded value.
44878
44879 From Vincent Pelletier <subdino2004@yahoo.fr>
44880 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
44881 Redefined to use grub_getwh.
44882 (grub_term): New member named getwh.
44883 (grub_getwh): New prototype.
44884 * kern/term.c (grub_getwh): New function.
44885 * term/i386/pc/console.c (grub_console_getwh): New function.
44886 (grub_console_term): New member `getwh'.
44887 * term/i386/pc/vga.c (grub_vga_getwh): New function.
44888 (grub_vga_term): New member `getwh'.
44889 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
44890 grub_ssize_t.
44891 (grub_ofconsole_getw): New function.
44892 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
44893 (grub_ofconsole_term): New field named getwh and new initial
44894 value.
44895
44896 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
44897
44898 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
44899 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
44900 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
44901 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
44902 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
44903 of <grub/machine/ieee1275.h>.
44904 * commands/ieee1275/reboot.c: Likewise.
44905 * boot/powerpc/ieee1275/ieee1275.c: Move ...
44906 * kern/ieee1275.c: ... to here. All users updated. Change all
44907 parameter structs to use new type `grub_ieee1275_cell_t'.
44908 * term/powerpc/ieee1275/ofconsole.c: Move ...
44909 * term/ieee1275/ofconsole.c: ... to here. All users updated.
44910 * disk/powerpc/ieee1275/ofdisk.c: Move ...
44911 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
44912 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
44913 to return int.
44914 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
44915 Remove unused prototypes. All users updated.
44916 * include/grub/powerpc/ieee1275/console.h: Removed.
44917 * include/grub/powerpc/ieee1275/ieee1275.h: Define
44918 `grub_ieee1275_cell_t'.
44919 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
44920 Cast comparisons with -1 to the correct type.
44921 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
44922 type to match `grub_ieee1275_entry_fn'.
44923
44924 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
44925
44926 * DISTLIST: Added util/i386/pc/grub-probefs.c.
44927
44928 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
44929 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
44930 partmap/sun.c.
44931 (grub_probefs_SOURCES): New variable.
44932
44933 * util/i386/pc/grub-probefs.c: New file.
44934
44935 * util/i386/pc/grub-setup.c (main): Call
44936 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
44937 grub_hfs_init and grub_jfs_init to initialize the system. Call
44938 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
44939 grub_pc_partition_map_fini to finish the system.
44940
44941 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
44942
44943 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
44944 function.
44945 (grub_multiboot_load_elf32): Likewise.
44946 (grub_multiboot_is_elf64): Likewise.
44947 (grub_multiboot_load_elf64): Likewise.
44948 (grub_multiboot_load_elf): Likewise.
44949 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
44950 an ELF32 or ELF64 file.
44951 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
44952
44953 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
44954 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
44955 NULL before calling FS->LABEL.
44956 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
44957 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
44958 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
44959 before calling FS->LABEL.
44960
44961 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
44962
44963 * util/i386/pc/grub-install.in (datadir): New variable.
44964 (libdir): Removed.
44965 (pkgdatadir): New variable.
44966 (pkglibdir): Removed.
44967
44968 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
44969
44970 * DISTLIST: Added util/i386/pc/grub-install.in.
44971
44972 * util/i386/pc/grub-install.in: New file.
44973
44974 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
44975 (grub_install_SOURCES): Likewise.
44976
44977 * genmk.rb: Added support for scripts.
44978 (Script): New class.
44979 (scripts): New variable.
44980
44981 * Makefile.in (install-local): Install sbin_SCRIPTS by
44982 INSTALL_SCRIPT.
44983 (uninstall): Remove sbin_SCRIPTS.
44984
44985 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
44986 device, try to get a GRUB device by
44987 grub_util_biosdisk_get_grub_dev.
44988 Free DEST_DEV.
44989
44990 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
44991 description for --device-map.
44992
44993 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44994
44995 Change the semantics of variable hooks. They now return strings
44996 instead of error values.
44997
44998 * util/i386/pc/grub-setup.c: Include grub/env.h.
44999 (setup): Use grub_device_set_root instead of grub_env_set.
45000
45001 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45002 grub_env_get instead of grub_device_set_root and
45003 grub_device_get_root, respectively.
45004
45005 * kern/main.c (grub_env_write_root): New function.
45006 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45007 grub_env_set instead of grub_device_set_root.
45008
45009 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45010 many variables.
45011 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45012 rather than calling ENV->WRITE_HOOK afterwards.
45013 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45014 passing a pointer of a pointer.
45015 (grub_register_variable_hook): Change the types of "read_hook" and
45016 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45017 respectively.
45018 Allocate the default empty string on the heap, because this string
45019 may be freed later.
45020
45021 * kern/device.c: Include grub/env.h.
45022 (grub_device_set_root): Removed.
45023 (grub_device_get_root): Likewise.
45024 (grub_device_open): Use grub_env_get instead of
45025 grub_device_get_root.
45026
45027 * include/grub/env.h (grub_env_read_hook_t): New type.
45028 (grub_env_write_hook_t): Likewise.
45029 (grub_env_var): Change the types of "read_hook" and "write_hook"
45030 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45031 (grub_register_variable_hook): Likewise.
45032
45033 * include/grub/device.h (grub_device_set_root): Removed.
45034 (grub_device_set_root): Likewise.
45035
45036 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45037 make sure that DIRNAME terminates with '/', so that
45038 grub_fat_find_dir will fail if PATH is not a directory.
45039
45040 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45041 from DIRNAME.
45042 Use the qualifier auto for print_files and print_files_long.
45043 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45044 as a regular file.
45045 Put a newline only if there is no error.
45046 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45047 used.
45048
45049 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45050
45051 * kern/partition.c (grub_partition_probe): Initialize PART to
45052 NULL. Otherwise, when no partition map is registered, this returns
45053 a garbage.
45054
45055 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45056
45057 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45058 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45059 valid.
45060
45061 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45062
45063 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45064 information on each device, if it does not have partitions. Print
45065 "Device" instead of "Disk", because this function is not specific
45066 to disk devices.
45067
45068 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45069 static to ensure that it is put on the memory rather than a
45070 register.
45071
45072 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45073
45074 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45075 (grub_cat_init): Likewise.
45076 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45077 (options): Likewise.
45078 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45079 (grub_configfile_init): Likewise.
45080 * font/manager.c (GRUB_MOD_INIT): Likewise.
45081 * commands/help.c (GRUB_MOD_INIT): Likewise.
45082 (grub_help_init): Likewise.
45083 * normal/command.c (grub_command_init): Likewise.
45084 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45085 * disk/loopback.c (grub_loop_init): Likewise.
45086 (GRUB_MOD_INIT): Likewise.
45087 * commands/ls.c (grub_ls_init): Likewise.
45088 (GRUB_MOD_INIT): Likewise.
45089 (options): Likewise.
45090 * commands/boot.c (grub_boot_init): Likewise.
45091 (GRUB_MOD_INIT): Likewise.
45092 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45093 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45094 (GRUB_MOD_INIT): Likewise.
45095 * commands/cmp.c (grub_cmp_init): Likewise.
45096 (GRUB_MOD_INIT): Likewise.
45097
45098 * normal/arg.c: Use <> instead of "" to include header files.
45099 (SHORT_ARG_HELP): New macro.
45100 (SHORT_ARG_USAGE): Likewise.
45101 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45102 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45103 descriptions.
45104 (find_short): Check if C is 'h' or 'u' explicitly.
45105 (grub_arg_show_help): Use space characters instead of tabs. Treat
45106 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45107 are shown with --help and --usage only if they are not used for
45108 the command itself.
45109 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45110 'h' and 'u'.
45111
45112 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45113 const into "longarg". Change the type of "shortarg" to int.
45114
45115 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45116
45117 * boot/i386/pc/boot.S (boot_drive_check): New label.
45118
45119 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45120 macro.
45121
45122 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45123 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45124
45125 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45126
45127 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45128 When turning off Gate A20, skip the check and return immediately,
45129 because this is not fatal usually.
45130
45131 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45132
45133 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45134 be 0x7C00 instead of 0x8000.
45135
45136 * boot/i386/pc/pxeboot.S: Rewritten.
45137
45138 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45139 EXT_C.
45140 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45141 result.
45142
45143 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45144
45145 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45146 robustness. This routine now supports a BIOS call and System
45147 Control Port A to modify the gate A20.
45148
45149 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45150 Increased to 0x440.
45151
45152 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45153
45154 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45155 device path and resulting ihandle.
45156 (grub_ofdisk_close): dprintf the ihandle being closed.
45157 (grub_ofdisk_read): dprintf function parameters.
45158 * kern/mm.c (grub_mm_init_region): Likewise.
45159 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45160 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45161 size, and boot arguments.
45162 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45163 before loading into memory.
45164 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45165 before loading into memory.
45166
45167 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45168
45169 * kern/mm.c: Added much documentation.
45170 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45171 8, set to 5 instead of 8.
45172
45173 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45174
45175 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45176
45177 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45178 (grub_mkdevicemap_SOURCES): New variable.
45179
45180 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45181 lib/device.c of GRUB Legacy.
45182
45183 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45184
45185 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45186 instead of PATH is NULL.
45187
45188 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45189
45190 * commands/cmp.c (BUFFER_SIZE): New macro.
45191 (grub_cmd_cmp): Close the right file at the right time. Compare
45192 only data just read. Don't report files of different size as
45193 identical. Dynamically allocate buffers. Move variable
45194 declarations at the beginning of function.
45195
45196 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45197
45198 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45199 reverse.
45200
45201 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45202
45203 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45204 when backspace is pressed at beginning of line.
45205
45206 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45207
45208 * DISTLIST: Added genfslist.sh.
45209
45210 * normal/main.c (fs_module_list): New variable.
45211 (autoload_fs_module): New function.
45212 (read_fs_list): Likewise.
45213 (grub_normal_execute): Call read_fs_list.
45214
45215 * kern/fs.c (grub_fs_autoload_hook): New variable.
45216 (grub_fs_probe): Added support for auto-loading.
45217
45218 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45219 (grub_fs_module_list_t): New type.
45220
45221 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45222 (grub_fs_autoload_hook): New prototype.
45223
45224 * genfslist.sh: New file.
45225
45226 * genmk.rb: Added a rule to generate a filesystem list.
45227
45228 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45229
45230 * configure.ac: Fix the test for cross-compiling.
45231
45232 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45233 define GRUB_UTIL anymore.
45234
45235 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45236 so this function works on other systems than just big endian.
45237 (load_modules): Likewise.
45238 (add_segments): Likewise.
45239
45240 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45241
45242 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45243 contains `l' modifier, get a long from va_arg().
45244
45245 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45246
45247 * kern/mm.c (grub_free): If the next free block which is being
45248 merged is the first free block, set the first block to the block
45249 being freed.
45250 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45251
45252 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45253
45254 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45255 `grub_ieee1275_chosen'.
45256
45257 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45258
45259 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45260 (grub_ieee1275_chosen): New variable.
45261 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45262 `chosen'.
45263 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45264 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45265 Rename first argument to `phandle' for consistency.
45266 (grub_ieee1275_get_property_length): Likewise.
45267 (grub_ieee1275_next_property): Likewise. Change type of first argument
45268 to grub_ieee1275_phandle_t.
45269 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45270 Move export next to declaration.
45271 (grub_ieee1275_chosen): New variable.
45272 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45273 Correct cosmetic typo.
45274 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45275 `grub_ieee1275_chosen'.
45276 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45277 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45278 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45279 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45280 `grub_ieee1275_chosen'.
45281
45282 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45283
45284 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45285 /chosen/bootargs.
45286 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45287 /chosen/bootargs as "variable=value" pairs.
45288
45289 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45290
45291 * include/grub/misc.h (grub_dprintf): New macro.
45292 (grub_real_dprintf): New prototype.
45293 (grub_strword): Likewise.
45294 (grub_iswordseparator): Likewise.
45295 * kern/misc.c (grub_real_dprintf): New function.
45296 (grub_strword): Likewise.
45297 (grub_iswordseparator): Likewise.
45298
45299 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45300
45301 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45302 (roundup): Remove macro.
45303 (grub_ieee1275_flags): Make static.
45304 (grub_ieee1275_realmode): Remove.
45305 (grub_ieee1275_test_flag): New function.
45306 (grub_ieee1275_set_flag): Likewise.
45307 (find_options): Rename to `grub_ieee1275_find_options'; update
45308 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45309 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45310 (cmain): New prototype.
45311 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45312 `grub_ieee1275_flags' directly.
45313 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45314 machine/biosdisk.h.
45315 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45316 Don't include grub/machine/init.h.
45317 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45318 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45319 Remove prototype.
45320 (grub_ieee1275_realmode): Likewise.
45321 (grub_ieee1275_flag): New enum.
45322 (grub_ieee1275_test_flag): New prototype.
45323 (grub_ieee1275_set_flag): New prototype.
45324 * include/grub/powerpc/ieee1275/init.h: Remove file.
45325 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45326 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45327 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45328 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45329 comment.
45330 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45331 `grub_ieee1275_test_flag'.
45332 (grub_ieee1275_encode_devname): Likewise.
45333
45334 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45335
45336 * include/grub/powerpc/ieee1275/ieee1275.h
45337 (grub_ieee1275_encode_devname): New prototype.
45338 (grub_ieee1275_get_filename): Likewise.
45339 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45340 function.
45341 (grub_set_prefix): Likewise.
45342 (grub_machine_init): Call grub_set_prefix.
45343 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45344 (grub_parse_type): New enum.
45345 (grub_ieee1275_get_devargs): New function.
45346 (grub_ieee1275_get_devname): Likewise.
45347 (grub_ieee1275_parse_args): Likewise.
45348 (grub_ieee1275_get_filename): Likewise.
45349 (grub_ieee1275_encode_devname): Likewise.
45350
45351 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45352
45353 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45354 `grub_loader_unset'.
45355
45356 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45357
45358 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45359 instead of grub_ieee1275_interpret.
45360 (grub_halt_init): New function.
45361 (grub_halt_fini): Likewise.
45362 (GRUB_MOD_INIT): Correct message grammar.
45363 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45364 instead of grub_ieee1275_interpret.
45365 (grub_reboot_init): New function.
45366 (grub_reboot_fini): Likewise.
45367 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45368 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45369 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45370 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45371 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45372 function.
45373 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45374 Add prototype.
45375 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45376 prototype.
45377 (grub_halt): Likewise.
45378 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45379 (cmain): Remove __attribute__((unused)).
45380 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45381 (grub_heap_len): Likewise.
45382 (grub_machine_fini): New function.
45383 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45384 (grub_halt): Likewise.
45385 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45386 function.
45387 * util/powerpc/ieee1275/misc.c: New file.
45388
45389 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45390
45391 * DISTLIST: New file.
45392 * gendistlist.sh: Likewise.
45393
45394 * Makefile.in (COMMON_DISTFILES): Removed.
45395 (BOOT_DISTFILES): Likewise.
45396 (CONF_DISTFILES): Likewise.
45397 (DISK_DISTFILES): Likewise.
45398 (FS_DISTFILES): Likewise.
45399 (INCLUDE_DISTFILES): Likewise.
45400 (KERN_DISTFILES): Likewise.
45401 (LOADER_DISTFILES): Likewise.
45402 (TERM_DISTFILES): Likewise.
45403 (UTIL_DISTFILES): Likewise.
45404 (DISTFILES): Likewise.
45405 (uninstall): Uninstall files in $(pkgdata_DATA).
45406 (DISTLIST): New target.
45407 (distdir): Use the contents of the file DISTLIST to get a list of
45408 distributed files.
45409
45410 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45411
45412 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45413 descriptor. This is ported from GRUB Legacy.
45414
45415 * gencmdlist.sh: Added an extra semicolon to make it work with
45416 old sed versions. Reported by Robert Bihlmeyer
45417 <robbe@orcus.priv.at>.
45418
45419 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45420
45421 Automatic loading of commands is supported.
45422
45423 * normal/main.c (read_command_list): New function.
45424 (grub_normal_execute): Call read_command_list.
45425
45426 * normal/command.c (grub_register_command): Return zero or CMD.
45427 Allocate CMD->NAME from the heap.
45428 Initialize CMD->MODULE_NAME to zero.
45429 Find the same name as well. If the same command is found and it is
45430 a dummy command, overwrite members. If it is not a dummy command,
45431 return zero.
45432 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45433 (grub_command_find): If a dummy command is found, load a module
45434 and retry to find a command only once.
45435
45436 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45437 make sure that each command is loaded.
45438
45439 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45440 macro.
45441 (struct grub_command): Remove const from the member `name'.
45442 Add a new member `module_name'.
45443 (grub_register_command): Return grub_command_t.
45444
45445 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45446 sure that each command is loaded.
45447
45448 * genmk.rb (PModule::rule): Specify a module name without the
45449 suffix ".mod" to gencmdlist.sh.
45450
45451 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45452
45453 * gencmdlist.sh: New file.
45454
45455 * genmk.rb (PModule::rule): Generate a rule for a command list.
45456 Clean command.lst.
45457 Generate command.lst from $(COMMANDFILES).
45458
45459 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45460 (DATA): Added $(pkgdata_DATA).
45461 (install-local): Install files in $(pkgdata_DATA).
45462
45463 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45464
45465 * term/i386/pc/vga.c (debug_command): Removed.
45466 (GRUB_MOD_INIT): Do not register the command "debug".
45467
45468 From Hollis Blanchard:
45469 * commands/configfile.c: New file.
45470 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45471 commands/configfile.c.
45472 (pkgdata_MODULES): Added configfile.mod.
45473 (configfile_mod_SOURCES): New variable.
45474 (configfile_mod_CFLAGS): Likewise.
45475 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45476 commands/configfile.c.
45477 (pkgdata_MODULES): Added configfile.mod.
45478 (configfile_mod_SOURCES): New variable.
45479 (configfile_mod_CFLAGS): Likewise.
45480 * util/grub-emu.c (main): Call grub_configfile_init and
45481 grub_configfile_fini.
45482 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45483 prototype.
45484 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45485
45486 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45487
45488 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45489 address.
45490
45491 * commands/help.c (grub_cmd_help): Do not print newlines after
45492 the last command in print_command_help.
45493
45494 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45495
45496 * commands/default.h: New file.
45497 * commands/timeout.h: Likewise.
45498 * normal/context.c: Likewise.
45499
45500 * util/misc.c: Do not include sys/times.h.
45501 Include sys/time.h and grub/machine/time.h.
45502 (grub_get_rtc): Rewritten with gettimeofday.
45503
45504 * util/grub-emu.c (main): Call grub_default_init and
45505 grub_timeout_init before grub_normal_init, and call
45506 grub_timeout_fini and grub_default_fini after grub_main.
45507
45508 * util/console.c (grub_ncurses_checkkey): Return the read
45509 character or -1.
45510
45511 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45512 timeouts.
45513
45514 * normal/main.c (read_config_file): Push MENU. If this fails,
45515 print an error and wait for a user input.
45516 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45517 If a menu is empty or an error occurs, pop MENU.
45518 (grub_normal_execute): Pop and free MENU after grub_menu_run
45519 returns.
45520
45521 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45522
45523 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45524 include time.h.
45525 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45526 without GRUB_UTIL.
45527 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45528 time.h.
45529 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45530 without GRUB_UTIL.
45531
45532 * include/grub/normal.h (struct grub_menu_list): New struct.
45533 (grub_menu_list_t): New type.
45534 (struct grub_context): New struct.
45535 (grub_context_t): New type.
45536 (grub_register_command): Got rid of EXPORT_FUNC.
45537 (grub_unregister_command): Likewise.
45538 (grub_context_get): New prototype.
45539 (grub_context_get_current_menu): Likewise.
45540 (grub_context_push_menu): Likewise.
45541 (grub_context_pop_menu): Likewise.
45542 [GRUB_UTIL] (grub_default_init): Likewise.
45543 [GRUB_UTIL] (grub_default_fini): Likewise.
45544 [GRUB_UTIL] (grub_timeout_init): Likewise.
45545 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45546
45547 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45548 commands/timeout.c and normal/context.c.
45549 (pkgdata_MODULES): Added default.mod and timeout.mod.
45550 (normal_mod_SOURCES): Added normal/context.c.
45551 (default_mod_SOURCES): New variable.
45552 (default_mod_CFLAGS): Likewise.
45553 (timeout_mod_SOURCES): Likewise.
45554 (timeout_mod_CFLAGS): Likewise.
45555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45556 conf/i386-pc.rmk.
45557 (pkgdata_MODULES): Added default.mod and timeout.mod.
45558 (normal_mod_SOURCES): Added normal/context.c.
45559 (default_mod_SOURCES): New variable.
45560 (default_mod_CFLAGS): Likewise.
45561 (timeout_mod_SOURCES): Likewise.
45562 (timeout_mod_CFLAGS): Likewise.
45563
45564 * Makefile.in (all-local): Added $(MKFILES).
45565
45566 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45567
45568 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45569 (grub_emu_SOURCES): Likewise.
45570 (pkgdata_MODULES): Add `sun.mod'.
45571 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45573 `partmap/sun.c'.
45574 (pkgdata_MODULES): Add `sun.mod'.
45575 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45576 * include/grub/partition.h (grub_sun_partition_map_init): New
45577 prototype.
45578 (grub_sun_partition_map_fini): Likewise.
45579 * partmap/sun.c: New file.
45580 * util/grub-emu.c (main): Initialize and de-initialize the sun
45581 partitionmap support.
45582
45583 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45584
45585 This implements an Emacs-like menu entry editor.
45586
45587 * normal/menu_entry.c: New file.
45588
45589 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45590 characters to ASCII.
45591 (saved_char): New variable.
45592 (grub_ncurses_checkkey): Rewritten completely.
45593 (grub_ncurses_getkey): Likewise.
45594 (grub_ncurses_init): Call raw instead of cbreak.
45595
45596 * normal/menu.c (print_entry): Do not put a space.
45597 (init_page): Renamed to ...
45598 (grub_menu_init_page): ... this. All callers changed.
45599 (edit_menu_entry): Removed.
45600 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45601
45602 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45603
45604 * kern/misc.c (grub_vprintf): Call grub_refresh.
45605
45606 * normal/menu.c (DISP_LEFT): Renamed to ...
45607 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45608 * normal/menu.c (DISP_UP): Renamed to ...
45609 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45610 * normal/menu.c (DISP_RIGHT): Renamed to ...
45611 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45612 * normal/menu.c (DISP_DOWN): Renamed to ...
45613 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45614 * normal/menu.c (DISP_HLINE): Renamed to ...
45615 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45616 * normal/menu.c (DISP_VLINE): Renamed to ...
45617 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45618 * normal/menu.c (DISP_UL): Renamed to ...
45619 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45620 * normal/menu.c (DISP_UR): Renamed to ...
45621 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45622 * normal/menu.c (DISP_LL): Renamed to ...
45623 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45624 * normal/menu.c (DISP_LR): Renamed to ...
45625 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45626 * normal/menu.c (TERM_WIDTH): Renamed to ...
45627 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45628 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45629 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45630 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45631 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45632 * normal/menu.c (TERM_MARGIN): Renamed to ...
45633 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45634 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45635 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45636 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45637 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45638 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45639 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45640 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45641 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45642 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45643 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45644 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45645 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45646 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45647 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45648 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45649 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45650 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45651 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45652 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45653 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45654 All callers changed.
45655
45656 * include/grub/normal.h: New prototype.
45657
45658 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45659 normal/menu_entry.c.
45660 (normal_mod_SOURCES): Likewise.
45661 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45662 (normal_mod_SOURCES): Likewise.
45663
45664 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45665
45666 * include/grub/normal.h (grub_halt_init): New prototype.
45667 (grub_halt_fini): Likewise.
45668 (grub_reboot_init): Likewise.
45669 (grub_reboot_fini): Likewise.
45670
45671 * util/grub-emu.c: Include signal.h.
45672 (main_env): New global variable.
45673 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45674 catch C-c.
45675 (grub_machine_fini): New function.
45676 (main): Call grub_halt_init and grub_reboot_init before
45677 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45678 Call setjmp with MAIN_ENV to go back afterwards.
45679 Call grub_machine_fini right before return.
45680
45681 * include/grub/util/misc.h: Include setjmp.h.
45682 (main_env): New prototype.
45683
45684 * include/grub/kernel.h (grub_machine_fini): New prototype.
45685 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45686 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45687
45688 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45689 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45690 * term/i386/pc/console.c (grub_console_fini): Likewise.
45691
45692 * util/i386/pc/misc.c: New file.
45693
45694 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45695 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45696 commands/i386/pc/reboot.c.
45697
45698 2005-02-14 Guillem Jover <guillem@hadrons.org>
45699
45700 * include/grub/dl.h (grub_dl_check_header): New prototype.
45701 (grub_arch_dl_check_header): Change return type to grub_err_t,
45702 remove size parameter and export function. Update all callers.
45703 * kern/dl.c (grub_dl_check_header): New function.
45704 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45705 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45706 are inside the core.
45707 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45708 independent ELF header checks.
45709 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45710 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45711 `grub_dl_check_header' instead of explicit checks. Check for the
45712 ELF type.
45713 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45714 `grub_dl_check_header' instead of explicit checks. Remove arch
45715 specific ELF header checks.
45716
45717 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45718 argument SIZE.
45719
45720 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45721
45722 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45723 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45724
45725 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45726
45727 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45728 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45729 (part_map_iterate): Clear `grub_errno' and return 0 if
45730 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45731 * partmap/amiga.c (amiga_partition_map_iterate): Return
45732 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45733 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45734
45735 2005-02-01 Guillem Jover <guillem@hadrons.org>
45736
45737 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45738 help info.
45739
45740 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45741
45742 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45743 Removed prototype.
45744 (grub_rescue_cmd_linux): New prototype.
45745 (grub_rescue_cmd_initrd): Likewise.
45746 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45747 `bi_rec'.
45748 (grub_linux_release_mem): Release the memory for the initrd.
45749 (grub_load_linux): Renamed from this...
45750 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45751 Changed `entry' not to be static. Loop over memory regions to
45752 find another one when the default fails.
45753 (grub_rescue_cmd_initrd): New function.
45754 (grub_linux_init): Remove function.
45755 (grub_linux_fini): Likewise.
45756 (GRUB_MOD_INIT): Register `initrd'.
45757 (GRUB_MOD_FINI): Unregister `initrd'.
45758 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45759 Function removed.
45760 (grub_linux_normal_fini): Likewise.
45761 (GRUB_MOD_INIT): Register `initrd'.
45762 (GRUB_MOD_FINI): Unregister `initrd'.
45763
45764 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45765
45766 * commands/help.c: New file.
45767 * normal/arg.c (show_help): Renamed to...
45768 (grub_arg_show_help): ... this.
45769 * commands/i386/pc/halt.c: New file.
45770 * commands/i386/pc/reboot.c: Likewise.
45771 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
45772 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
45773 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
45774 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
45775 variables.
45776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45777 `commands/help.c'.
45778 (pkgdata_MODULES): Add `help.mod'.
45779 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
45780 * grub/i386/pc/init.h (grub_reboot): New prototype.
45781 (grub_halt): Likewise.
45782 * include/grub/normal.h (grub_arg_show_help): New prototype.
45783 (grub_help_init): Likewise.
45784 (grub_help_fini): Likewise.
45785 * util/grub-emu.c (main): Initialize and deinitialize the help
45786 command.
45787
45788 * normal/cmdline.c (grub_cmdline_get): Doc fix.
45789
45790 * normal/command.c (grub_command_init): Fixed the description of
45791 the `set' and `unset' commands.
45792
45793 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45794
45795 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
45796 function.
45797 * commands/ieee1275/halt.c: New file.
45798 * commands/ieee1275/reboot.c: Likewise.
45799 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
45800 `__attribute__ ((unused))'. Some GCS related fixed.
45801 (grub_suspend_init) [GRUB_UTIL]: Function removed.
45802 (grub_suspend_fini): Likewise.
45803 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
45804 and `halt.mod'.
45805 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
45806 (halt_mod_CFLAGS): New variables.
45807 * include/grub/powerpc/ieee1275/ieee1275.h
45808 (grub_ieee1275_interpret): New prototype.
45809
45810 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
45811
45812 * include/grub/misc.h (memmove): New prototype.
45813 (memcpy): Likewise.
45814
45815 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
45816
45817 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
45818 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
45819
45820 2005-01-22 Marco Gerards <metgerards@student.han.nl>
45821
45822 * kern/misc.c (grub_strndup): Function rewritten.
45823
45824 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
45825
45826 * normal/menu.c (TERM_WIDTH): Macro redefined.
45827 (TERM_TOP_BORDER_Y): Likewise.
45828 (draw_border): Replaced while-loop by a for-loop. Make the number
45829 of lines consistent with the number of lines displayed in
45830 print_entries. Added a margin below the rectangle.
45831 (print_entry): Make the entry fit in the rectangle.
45832 (print_entries): Display the scroll arrows next to the right
45833 border.
45834
45835 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45836
45837 * fs/minix.c (grub_minix_find_file): Reserve more space for
45838 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
45839 `grub_strncpy' to copy `path' into it.
45840
45841 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45842
45843 Add the loopback device, a device via which files can be accessed
45844 as devices.
45845
45846 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
45847 (pkgdata_MODULES): Add loopback.mod.
45848 (loopback_mod_SOURCES): New variable.
45849 (loopback_mod_CFLAGS): Likewise.
45850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45851 `disk/loopback.c'.
45852 (pkgdata_MODULES): Add loopback.mod.
45853 (loopback_mod_SOURCES): New variable.
45854 (loopback_mod_CFLAGS): Likewise.
45855 * disk/loopback.c: new file.
45856 * include/grub/normal.h (grub_loop_init): New prototype.
45857 (grub_loop_fini): New prototype.
45858 * util/grub-emu.c (main): Initialize and de-initialize loopback
45859 support.
45860 * include/grub/disk.h (grub_disk_dev_id): Add
45861 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
45862
45863 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
45864
45865 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
45866 function.
45867 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
45868 (suspend_mod_SOURCES): New variable.
45869 (suspend_mod_CFLAGS): Likewise.
45870 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
45871 New prototype.
45872 * commands/ieee1275/suspend.c: New file.
45873
45874 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45875
45876 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
45877 ((unused))' to `__attribute__ ((used))'.
45878 (GRUB_MOD_FINI): Likewise.
45879 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
45880 * genmk.rb (PModule): Assign space to common symbols when linking
45881 modules.
45882
45883 2005-01-20 Marco Gerards <metgerards@student.han.nl>
45884
45885 * include/grub/mm.h (grub_mm_init_region): Change the type of the
45886 `unsigned' arguments to `grub_size_t'.
45887 (grub_malloc): Likewise.
45888 (grub_realloc): Likewise.
45889 (grub_memalign): Likewise.
45890 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
45891 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45892 * util/misc.c (grub_malloc): Likewise.
45893 (grub_realloc): Likewise.
45894 * kern/mm.c (get_header_from_pointer): Change the casts to
45895 `unsigned' into a cast to `grub_size_t'.
45896
45897 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
45898 point to `currnode' when `currnode' is changed.
45899
45900 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
45901 Schottelius <nico-linux@schottelius.org>.
45902
45903 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
45904
45905 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
45906 (note_path): Remove variable.
45907 (GRUB_IEEE1275_NOTE_NAME): New macro.
45908 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
45909 (grub_ieee1275_note_hdr): New structure.
45910 (grub_ieee1275_note_desc): Likewise.
45911 (grub_ieee1275_note): Likewise.
45912 (load_note): Remove `dir' argument. All callers updated. Remove
45913 `note_img' and `path'. Do not load a file from `note_path'.
45914 Initialize a struct grub_ieee1275_note and write that to `out'.
45915 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
45916
45917 2005-01-05 Marco Gerards <metgerards@student.han.nl>
45918
45919 * util/misc.c (grub_util_read_image): Revert last change. It
45920 called `grub_util_read_at', which seeks from the beginning of the
45921 file.
45922
45923 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
45924
45925 * TODO: Add note about endianness in grub-mkimage.
45926 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
45927 section.
45928 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
45929 (grub_mkimage_SOURCES): New target.
45930 * include/grub/kernel.h (grub_start_addr): Remove variable.
45931 (grub_end_addr): Likewise.
45932 (grub_total_module_size): Likewise.
45933 (grub_kernel_image_size): Likewise.
45934 (GRUB_MODULE_MAGIC): New constant.
45935 (grub_module_info): New structure.
45936 (grub_arch_modules_addr): New prototype.
45937 (grub_get_end_addr): Remove prototype.
45938 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
45939 * include/grub/powerpc/ieee1275/kernel.h: New file.
45940 * include/grub/util/misc.h (grub_util_get_fp_size): New
45941 prototype.
45942 (grub_util_read_at): Likewise.
45943 (grub_util_write_image_at): Likewise.
45944 * kern/main.c (grub_get_end_addr): Remove function.
45945 (grub_load_modules): Call grub_arch_modules_addr instead of using
45946 grub_end_addr. Look for a grub_module_info struct in memory. Use
45947 the grub_module_info fields instead of calling grub_get_end_addr
45948 as loop conditions. Move grub_add_unused_region code here.
45949 (grub_add_unused_region): Remove function.
45950 * kern/i386/pc/init.c: Include grub/cache.h.
45951 (grub_machine_init): Remove call to grub_get_end_addr. Remove
45952 one call to add_mem_region.
45953 (grub_arch_modules_addr): New function.
45954 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
45955 (grub_total_module_size): Likewise.
45956 Include grub/machine/kernel.h.
45957 (grub_arch_modules_addr): New function.
45958 * util/grub-emu.c (grub_end_addr): Remove variable.
45959 (grub_total_module_size): Likewise.
45960 (grub_arch_modules_addr): New function.
45961 * util/misc.c: Include unistd.h.
45962 (grub_util_get_fp_size): New function.
45963 (grub_util_read_at): Likewise.
45964 (grub_util_write_image_at): Likewise.
45965 (grub_util_read_image): Call grub_util_read_at.
45966 (grub_util_write_image): Call grub_util_write_image_at.
45967 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
45968 additional memory in kernel_img for a struct grub_module_info.
45969 Fill in that grub_module_info.
45970 * util/powerpc/ieee1275/grub-mkimage.c: New file.
45971
45972 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45973
45974 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
45975 New function.
45976 * include/grub/powerpc/ieee1275/ieee1275.h
45977 (grub_ieee1275_milliseconds): New prototype.
45978 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
45979 Change to 1000.
45980 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
45981 grub_ieee1275_milliseconds.
45982
45983 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45984
45985 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
45986 variable.
45987 (find_options): New function.
45988 (cmain): Call find_options.
45989 * include/grub/powerpc/ieee1275/ieee1275.h
45990 (grub_ieee1275_realmode): New extern variable.
45991 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
45992 grub_map if grub_ieee1275_realmode is false.
45993
45994 2004-12-29 Marco Gerards <metgerards@student.han.nl>
45995
45996 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
45997 lines are inserted and make it work like readline. Reported by
45998 Vincent Pelletier <subdino2004@yahoo.fr>.
45999
46000 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46001
46002 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46003
46004 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46005 `kern/powerpc/cache.S'.
46006
46007 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46008
46009 * genmk.rb: Handle the `Program' class in the main loop. Written
46010 by Johan Rydberg <jrydberg@gnu.org>.
46011 (Program): New class.
46012 (programs): New variable.
46013 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46014 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46015 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46016 (help_arch): Function removed.
46017 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46018 `powerpc/libgcc.h' and `loader.h'.
46019 (pkgdata_PROGRAMS): New variable.
46020 (sbin_UTILITIES): Variable removed.
46021 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46022 (grubof_SOURCES): Variable re-defined so it only includes the
46023 core functionality.
46024 (grubof_CFLAGS): Remove `-DGRUBOF'.
46025 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46026 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46027 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46028 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46029 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46030 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46031 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46032 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46033 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46034 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46035 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46036 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46037 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46038 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46039 (pc_mod_CFLAGS): New variables.
46040 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46041 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46042 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46043 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46044 Moved from here...
46045 * include/grub/i386/pc/init.h (grub_os_area_addr)
46046 (rub_os_area_size): ... to here.
46047 * include/grub/powerpc/ieee1275/ieee1275.h
46048 (grub_ieee1275_entry_fn): Export symbol.
46049 * include/grub/powerpc/ieee1275/init.h: New file.
46050 * include/grub/powerpc/libgcc.h: Likewise.
46051 * include/grub/cache.h: Likewise.
46052 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46053 <hollis@penguinppc.org>.
46054 * kern/dl.c: Include <grub/cache.h>.
46055 (grub_dl_flush_cache): New function.
46056 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46057 for this module.
46058 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46059 (grub_console_init): Removed prototypes.
46060 (grub_machine_init): Don't initialize the modules anymore.
46061 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46062 static.
46063 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46064 Macro undef removed.
46065 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46066 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46067 relocation `R_PPC_REL32'. Return an error when the relocation is
46068 unknown.
46069 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46070 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46071 * util/misc.c (grub_arch_sync_caches): Likewise.
46072
46073 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46074
46075 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46076 `symlist.c', add `grubof_symlist.c'.
46077 (symlist.c): Variable removed.
46078 (grubof_HEADERS): Variable added.
46079 (grubof_symlist.c): New target.
46080 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46081 `kernel_img_HEADERS'.
46082 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46083 * kern/powerpc/dl.c: New file.
46084 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46085 Function removed.
46086 (grub_arch_dl_relocate_symbols): Likewise.
46087 (grub_register_exported_symbols): Likewise.
46088
46089 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46090
46091 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46092 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46093 to fail instead. Reported by Vincent Pelletier
46094 <subdino2004@yahoo.fr>.
46095
46096 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46097 it is not allocated. Reported by Vincent Pelletier
46098 <subdino2004@yahoo.fr>.
46099
46100 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46101 output so the output looks better.
46102
46103 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46104
46105 Modulize the partition map support and add support for the amiga
46106 partition map.
46107
46108 * commands/ls.c: Include <grub/partition.h> instead of
46109 <grub/machine/partition.h>.
46110 * kern/disk.c: Likewise.
46111 * kern/rescue.c: Likewise.
46112 * loader/i386/pc/chainloader.c: Likewise.
46113 * normal/cmdline.c: Likewise.
46114 * kern/powerpc/ieee1275/init.c: Likewise.
46115 (grub_machine_init): Call `grub_pc_partition_map_init',
46116 `grub_amiga_partition_map_init' and
46117 `grub_apple_partition_map_init'.
46118 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46119 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46120 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46121 `partition.h' and `pc_partition.h'.
46122 (grub_setup_SOURCES): Remove
46123 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46124 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46125 (grub_emu_SOURCES): Likewise.
46126 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46127 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46128 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46129 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46130 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46131 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46132 (grubof_SOURCES): Likewise.
46133 * disk/i386/pc/partition.c: File removed.
46134 * disk/powerpc/ieee1275/partition.c: Likewise.
46135 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46136 * include/grub/i386/pc/partition.h: Likewise.
46137 * kern/partition.c: New file.
46138 * partmap/amiga.c: Likewise.
46139 * partmap/apple.c: Likewise.
46140 * partmap/pc.c: Likewise.
46141 * include/grub/partition.h: Likewise..
46142 * include/grub/pc_partition.h: Likewise.
46143 * util/grub-emu.c: Include <grub/partition.h> instead of
46144 <grub/machine/partition.h>.
46145 (main): Call `grub_pc_partition_map_init',
46146 `grub_amiga_partition_map_init' and
46147 `grub_apple_partition_map_init' and deinitialize afterwards.
46148 * util/i386/pc/biosdisk.c: Include `#include
46149 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46150 `<grub/machine/partition.h>'.
46151 * util/i386/pc/grub-setup.c: Likewise.
46152 * util/i386/pc/biosdisk.c: Likewise.
46153 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46154 partition information in case of a PC partition.
46155 * util/i386/pc/grub-setup.c: Include `#include
46156 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46157 `<grub/machine/partition.h>'.
46158 (setup): Only access the PC specific partition information in case
46159 of a PC partition.
46160
46161 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46162
46163 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46164 (grub_longjmp): Likewise.
46165 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46166 20.
46167 * normal/powerpc/setjmp.S: New file.
46168 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46169 `normal/powerpc/setjmp.S'.
46170 (grubof_CFLAGS): Add `-DGRUBOF'.
46171 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46172 [GRUB_UTIL && !GRUBOF].
46173
46174 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46175
46176 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46177 property named `name'. Correctly handle the error returned by
46178 `grub_ieee1275_finddevice' if a device can not be opened.
46179
46180 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46181
46182 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46183 `actual' for negativity.
46184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46185 kern/fshelp.c.
46186
46187 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46188
46189 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46190 (PAGE_OFFSET): New macro.
46191 (CRTC_ADDR_PORT): Likewise.
46192 (CRTC_DATA_PORT): Likewise.
46193 (START_ADDR_HIGH_REGISTER): Likewise.
46194 (START_ADDR_LOW_REGISTER): Likewise.
46195 (GRAPHICS_ADDR_PORT): Likewise.
46196 (GRAPHICS_DATA_PORT): Likewise.
46197 (READ_MAP_REGISTER): Likewise.
46198 (INPUT_STATUS1_REGISTER): Likewise.
46199 (INPUT_STATUS1_VERTR_BIT): Likewise.
46200 (page): New variable.
46201 (wait_vretrace): New function.
46202 (set_read_map): Likewise.
46203 (set_start_address): Likewise.
46204 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46205 the right page.
46206 (check_vga_mem): Take the page into account.
46207 (write_char): Likewise.
46208 (write_cursor): Likewise.
46209 (scroll_up): Likewise. Copy the page to the page that is not
46210 shown and switch between both pages.
46211 (grub_vga_putchar): Fix off by one error.
46212 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46213 account.
46214
46215 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46216
46217 Add support for iso9660 (including rockridge).
46218
46219 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46220 (iso9660_mod_SOURCES): New variable.
46221 (iso9660_mod_CFLAGS): Likewise.
46222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46223 * include/grub/fs.h (grub_iso9660_init): New prototype.
46224 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46225 * fs/iso9660.c: New file.
46226
46227 * include/grub/misc.h (grub_strncat): New prototype.
46228 * kern/misc.c (grub_strncat): New function.
46229
46230 * fs/hfs.c (grub_hfs_mount): Translate the error
46231 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46232 * fs/jfs.c (grub_jfs_mount): Likewise.
46233 * fs/ufs.c (grub_ufs_mount): Likewise.
46234
46235 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46236
46237 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46238 which initialized BAT registers.
46239 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46240 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46241 Move from here...
46242 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46243 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46244 ... to here.
46245 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46246 (grub_mapclaim): Likewise.
46247 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46248 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46249 hand.
46250
46251 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46252
46253 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46254 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46255 -ffreestanding and -msoft-float.
46256
46257 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46258
46259 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46260 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46261 set in grub_ieee1275_flags.
46262
46263 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46264
46265 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46266 prototype.
46267 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46268 grub_console_init first.
46269 Change the memory range used for grub_ieee1275_claim and
46270 grub_mm_init_region.
46271 Print an error message if the claim fails.
46272 Include <grub/misc.h>.
46273
46274 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46275
46276 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46277 Call grub_children_iterate for device nodes of type `scsi',
46278 `ide', or `ata'.
46279 (grub_ofdisk_open): Remove manual device alias resolution.
46280 Fix memory leak when device cannot be opened.
46281 * include/grub/powerpc/ieee1275/ieee1275.h
46282 (grub_children_iterate): New prototype.
46283 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46284 New function.
46285 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46286 Return -1 if args.size was -1.
46287
46288 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46289
46290 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46291 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46292 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46293 Open Firmware's memory for it; claim memory from _start to _end.
46294 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46295 (_end): New extern.
46296 (_start): Zero BSS from __bss_start to _end.
46297 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46298 New extern.
46299 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46300
46301 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46302
46303 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46304 -1 if args.base was -1.
46305
46306 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46307
46308 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46309 escape sequence instead of a literal ^L. Also call
46310 grub_ofconsole_gotoxy.
46311
46312 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46313
46314 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46315 void * arguments to grub_addr_t. All callers updated. Also make
46316 the `result' argument optional.
46317 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46318 All callers updated.
46319
46320 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46321
46322 * commands/ls.c (grub_ls_list_files): Use the string following the
46323 initial ')', if present, as the filesystem path.
46324 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46325
46326 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46327
46328 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46329
46330 Make the source code of the menu interface more readable.
46331
46332 * normal/menu.c: Include grub/mm.h.
46333 (TERM_WIDTH): New macro.
46334 (TERM_HEIGHT): Likewise.
46335 (TERM_INFO_HEIGHT): Likewise.
46336 (TERM_MARGIN): Likewise.
46337 (TERM_SCROLL_WIDTH): Likewise.
46338 (TERM_TOP_BORDER_Y): Likewise.
46339 (TERM_LEFT_BORDER_X): Likewise.
46340 (TERM_BORDER_WIDTH): Likewise.
46341 (TERM_MESSAGE_HEIGHT): Likewise.
46342 (TERM_BORDER_HEIGHT): Likewise.
46343 (TERM_NUM_ENTRIES): Likewise.
46344 (TERM_FIRST_ENTRY_Y): Likewise.
46345 (TERM_ENTRY_WIDTH): Likewise.
46346 (TERM_CURSOR_X): Likewise.
46347 (draw_border): Use macros instead of magic numbers.
46348 (print_entry): Likewise.
46349 (print_entries): Likewise.
46350 (run_menu): Likewise. Also, handle the key 'e'.
46351 (run_menu_entry): Ignore empty command lines.
46352 (print_message): Added a new argument EDIT. If EDIT is true,
46353 print a different message.
46354 (init_page): Likewise.
46355 (edit_menu_entry): New function. Not implemented yet.
46356
46357 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46358
46359 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46360 can be loaded from normal mode.
46361
46362 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46363 `multiboot.mod'.
46364 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46365 (multiboot_mod_CFLAGS): New variables.
46366 * loader/i386/pc/linux_normal.c: New file.
46367 * loader/i386/pc/multiboot_normal.c: Likewise.
46368
46369 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46370 attribute `unused'.
46371
46372 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46373 `fdiro' to read the mode information from instead of `diro'.
46374
46375 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46376 looking up a symlink.
46377
46378 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46379 macro.
46380 * normal/command.c (grub_command_execute): Don't parse the
46381 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46382 flags of the command.
46383
46384 * normal/menu.c (grub_menu_run): Fix typo.
46385
46386 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46387
46388 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46389
46390 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46391 `y + 1' instead of `y - 1'.
46392
46393 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46394
46395 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46396
46397 From Hollis Blanchard <hollis@penguinppc.org>:
46398 * kern/misc.c (memmove): New alias for grub_memmove.
46399 (memcmp): New alias for grub_memcmp.
46400 (memset): New alias for grub_memset.
46401 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46402 Change "int handle" to "grub_ieee1275_phandle_t handle".
46403 * include/grub/powerpc/ieee1275/ieee1275.h
46404 (grub_ieee1275_get_property): Likewise.
46405
46406 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46407
46408 Added normal mode command `chainloader' as module chain.mod, which
46409 depends on normal.mod and _chain.mod.
46410
46411 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46412 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46413 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46414 Deleted prototype.
46415 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46416 but arguments parsing moved to ...
46417 (grub_chainloader_cmd): ... here. New function.
46418 * include/grub/i386/pc/chainloader.h: New file.
46419 * loader/i386/pc/chainloader_normal.c: Likewise.
46420
46421 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46422
46423 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46424 (grub_mkimage_LDFLAGS): Likewise.
46425 (grub_emu_SOURCES): Likewise.
46426 (kernel_img_HEADERS): Added fshelp.h.
46427 * fs/ext2.c: Include <grub/fshelp.h>.
46428 (FILETYPE_REG): New macro.
46429 (FILETYPE_INO_REG): Likewise.
46430 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46431 Changed all users.
46432 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46433 all users.
46434 (grub_fshelp_node): New struct.
46435 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46436 to a pointer.
46437 (grub_ext2_get_file_block): Removed function.
46438 (grub_ext2_read_block): New function.
46439 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46440 This function was written.
46441 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46442 (grub_ext2_find_file): Removed function.
46443 (grub_ext2_read_symlink): New function.
46444 (grub_ext2_iterate_dir): Likewise.
46445 (grub_ext2_open): Rewritten.
46446 (grub_ext2_dir): Rewritten.
46447 * include/grub/fshelp.h: New file.
46448 * fs/fshelp.c: Likewise.
46449
46450 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46451
46452 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46453 (print_message): Add a missing newline.
46454 (run_menu): Added timeout support.
46455 (run_menu_entry): New local function.
46456 (grub_menu_run): Added support for booting.
46457
46458 * kern/loader.c (grub_loader_is_loaded): New function.
46459
46460 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46461 (grub_get_rtc): Exported.
46462
46463 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46464 (grub_get_rtc): Exported.
46465
46466 * include/grub/normal.h (struct grub_command_list): Remove
46467 constant from the member `command'.
46468
46469 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46470
46471 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46472
46473 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46474
46475 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46476
46477 Add support for the JFS filesystem.
46478
46479 * fs/jfs.c: New file.
46480 * include/grub/fs.h (grub_jfs_init): New prototype.
46481 (grub_jfs_fini): New prototype.
46482 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46483 (grub_emu_SOURCES): Likewise.
46484 (pkgdata_MODULES): Add jfs.mod.
46485 (jfs_mod_SOURCES): New variable.
46486 (jfs_mod_CFLAGS): Likewise.
46487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46488 (grubof_SOURCES): Likewise.
46489 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46490
46491 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46492 endian to the host endian.
46493 (grub_fat_utf16_to_utf8): Move function from there...
46494 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46495 the endianness of the source string anymore.
46496 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46497
46498 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46499
46500 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46501 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46502 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46503 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46504
46505 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46506 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46507 for `node_found' and `it_dir'.
46508 (grub_hfs_dir): Add prototype for `dir_hook'.
46509
46510 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46511 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46512 and `indir32' to silence a gcc warning.
46513
46514 * include/grub/fs.h (grub_hfs_init): New prototype.
46515 (grub_hfs_fini): Likewise.
46516
46517
46518 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46519
46520 Each disk device has its own id now. This is useful to make use
46521 of multiple disk devices.
46522
46523 * include/grub/disk.h (grub_disk_dev_id): New enum.
46524 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46525 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46526
46527 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46528 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46529
46530 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46531 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46532
46533 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46534 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46535
46536 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46537 "id" which is used by the cache manager.
46538
46539 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46540 of just "GRUB".
46541
46542 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46543
46544 * fs/hfs.c: New file.
46545 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46546 (grub_emu_SOURCES): Likewise.
46547 (pkgdata_MODULES): Add hfs.mod.
46548 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46549 (grubof_SOURCES): Likewise.
46550 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46551
46552 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46553 * kern/misc.c (grub_strncasecmp): Add function.
46554
46555 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46556
46557 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46558 with parentheses.
46559
46560 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46561 (grub_ext2_dir): In case the directory entry type is unknown, read
46562 it from the inode.
46563
46564 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46565
46566 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46567 grub_load_linux instead of grub_rescue_cmd_linux as second
46568 argument of grub_rescue_register_command.
46569
46570 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46571
46572 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46573
46574 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46575 function.
46576 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46577 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46578 `loader/powerpc/ieee1275/linux.c',
46579 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46580 * include/grub/powerpc/ieee1275/ieee1275.h
46581 (grub_ieee1275_release): New prototype.
46582 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46583 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46584 normal, boot, linux and linux_normal.
46585 * loader/powerpc/ieee1275/linux.c: New file.
46586 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46587
46588 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46589
46590 * normal/arg.c (grub_arg_parse): Correct error handling after
46591 reallocating the argumentlist (check if `argl' is not null instead
46592 of checking if `args' is not null).
46593 * kern/mm.c (grub_realloc): Return the same pointer when using the
46594 same region, instead of returning the header address.
46595
46596 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46597
46598 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46599 one block instead of two when looking for the initial partition.
46600 (grub_partition_probe): Initialize the local variable `p' with 0.
46601 Use base 10 for the grub_strtoul call.
46602 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46603 need for one local variable.
46604 (grub_strtoul): Don't add the new value to `num', instead of that
46605 just assign it.
46606
46607 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46608
46609 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46610 (pxeboot_img_SOURCES): New variable.
46611 (pxeboot_img_ASFLAGS): Likewise.
46612 (pxeboot_img_LDFLAGS): Likewise.
46613 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46614 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46615 <lode_leroy@hotmail.com>.
46616
46617 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46618
46619 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46620 there was no input.
46621
46622 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46623
46624 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46625 the history buffer logic.
46626
46627 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46628
46629 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46630 (FILETYPE_INO_SYMLINK): New macros.
46631 (grub_ext2_find_file): Check if the node is a directory using the
46632 inode stat information instead of using the filetype in the
46633 dirent. Exclude the first character of an absolute symlink.
46634 (grub_ext2_dir): Mask out the filetype part of the mode member of
46635 the inode.
46636
46637 2004-05-24 Marco Gerards <metgerards@student.han.nl>
46638
46639 Add support for UFS version 1 and 2. Add support for the minix
46640 filesystem version 1 and 2, both the variants with 14 and 30 long
46641 filenames.
46642
46643 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46644 fs/minix.c.
46645 (grub_emu_SOURCES): Likewise.
46646 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46647 (ufs_mod_SOURCES): New variable.
46648 (ufs_mod_CFLAGS): Likewise.
46649 (minix_mod_SOURCES): Likewise.
46650 (minix_mod_CFLAGS): Likewise.
46651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46652 fs/minix.c.
46653 (grubof_SOURCES): Likewise.
46654 * fs/ufs.c: New file.
46655 * fs/minix.c: New file.
46656 * include/grub/fs.h (grub_ufs_init): New prototype.
46657 (grub_ufs_fini): Likewise.
46658 (grub_minix_init): Likewise.
46659 (grub_minix_fini): Likewise.
46660 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46661 minix fs.
46662
46663 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46664
46665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46666 commands/ls.c, commands/terminal.c, commands/boot.c,
46667 commands/cmp.c and commands/cat.c.
46668 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46669
46670 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46671 "env.h"
46672
46673 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46674
46675 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46676 and grub_, respectively. Because the conversion is trivial and
46677 mechanical, I omit the details here. Please refer to the CVS
46678 if you need more information.
46679
46680 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46681
46682 * include/pupa: Renamed to ...
46683 * include/grub: ... this.
46684 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46685 * util/i386/pc/grub-mkimage.c: ... this.
46686 * util/i386/pc/pupa-setup.c: Renamed to ...
46687 * util/i386/pc/grub-setup.c: ... this.
46688 * util/pupa-emu.c: Renamed to ...
46689 * util/grub-emu.c: ... this.
46690
46691 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46692
46693 Add support for the newworld apple macintosh (PPC). This has been
46694 tested on the powerbook 2000 only. It only adds support for
46695 generic ieee1275 functions, console and disk support. This should
46696 be easy to port to other architectures with support for Open
46697 Firmware.
46698
46699 * configure.ac: Accept the powerpc as host_cpu. In the case of
46700 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46701 specific tests are only executed while building for the i386.
46702 Inverse test for crosscompile.
46703 * genmk.rb (Utility): Allow assembler files.
46704 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46705 * conf/powerpc-ieee1275.rmk: New file.
46706 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46707 * disk/powerpc/ieee1275/partition.c: Likewise.
46708 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46709 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46710 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46711 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46712 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46713 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46714 * include/pupa/powerpc/ieee1275/loader.h
46715 * include/pupa/powerpc/setjmp.h: Likewise.
46716 * include/pupa/powerpc/types.h: Likewise.
46717 * kern/powerpc/ieee1275/init.c: Likewise.
46718 * kern/powerpc/ieee1275/openfw.c: Likewise.
46719 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46720
46721 These files were written by Johan Rydberg
46722 (jrydberg@night.trouble.net) and I only modified them slightly.
46723
46724 * boot/powerpc/ieee1275/cmain.c: New file.
46725 * boot/powerpc/ieee1275/crt0.S: Likewise.
46726 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46727 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46728
46729 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46730
46731 * Makefile.in: Update copyright.
46732 * genmodsrc.sh: Likewise.
46733 * gensymlist.sh: Likewise.
46734 * term/i386/pc/vga.c: Indent correctly.
46735
46736 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46737 bugreporting address.
46738 * util/i386/pc/pupa-setup.c (usage): Likewise,
46739 (main): Call pupa_ext2_init and pupa_ext2_fini.
46740
46741 * fs/fat.c (log2): Renamed to ...
46742 (fat_log2): ... this.
46743 All callers changed.
46744 * kern/misc.c (memcpy): Alias to pupa_memmove.
46745 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46746 lvalue cast.
46747 * util/console.c (pupa_ncurses_fini): Return 0.
46748
46749 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46750 Move fail label here.
46751 [__GNU__]: Don't warn when using stat.
46752 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46753 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46754 long int. Use strtol instead of strtoul.
46755
46756 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46757
46758 * commands/boot.c: New file.
46759 * commands/cat.c: Likewise.
46760 * commands/cmp.c: Likewise.
46761 * commands/ls.c: Likewise.
46762 * commands/terminal.c: Likewise.
46763 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46764 (pupa_register_command): Changed interface to match the new
46765 argument parser.
46766 (pupa_command_execute): Changed (almost rewritten) so it uses
46767 pupa_split_command. Added support for setting variables using the
46768 syntax `foo=bar'.
46769 (rescue_command): Changed to work with the new argument parser.
46770 (terminal_command): Moved from here to commands/terminal.c.
46771 (set_command): New function.
46772 (unset_command): New function.
46773 (insmod_command): New function.
46774 (rmmod_command): New function.
46775 (lsmod_command): New function.
46776 (pupa_command_init): Don't initialize the command terminal
46777 anymore. Initialize the commands set, unset, insmod, rmmod and
46778 lsmod.
46779 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
46780 (kernel_img_HEADERS): Add arg.h and env.h.
46781 (pupa_mkimage_LDFLAGS): Add kern/env.c.
46782 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
46783 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
46784 normal/arg.c.
46785 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
46786 terminal.mod.
46787 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
46788 (boot_mod_SOURCES): New variable.
46789 (terminal_mod_SOURCES): Likewise.
46790 (ls_mod_SOURCES): Likewise.
46791 (cmp_mod_SOURCES): Likewise.
46792 (cat_mod_SOURCES): Likewise.
46793
46794 * normal/arg.c: New file.
46795 * kern/env.c: Likewise.
46796 * include/pupa/arg.h: Likewise.
46797 * include/pupa/env.h: Likewise.
46798 * font/manager.c (font_command): Changed to match argument parsing
46799 interface changes.
46800 (PUPA_MOD_INIT): Likewise.
46801 * hello/hello.c (pupa_cmd_hello): Likewise.
46802 (PUPA_MOD_INIT): Likewise.
46803 * include/pupa/disk.h: Include <pupa/device.h>.
46804 (pupa_print_partinfo): New prototype.
46805 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
46806 (pupa_dl_get_prefix): Likewise.
46807 * include/pupa/misc.h: Include <pupa/err.h>.
46808 (pupa_isgraph): New prototype.
46809 (pupa_isdigit): Likewise.
46810 (pupa_split_cmdline): Likewise.
46811 * include/pupa/normal.h: Include <pupa/arg.h>.
46812 (pupa_command): Changed the prototype of the member `func' to
46813 match the argument parsing interface. Added member `options'.
46814 (pupa_register_command): Updated to match function.
46815 (pupa_arg_parse): New prototype.
46816 (pupa_hello_init) [PUPA_UTIL]: New prototype.
46817 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
46818 (pupa_ls_init) [PUPA_UTIL]: Likewise.
46819 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
46820 (pupa_cat_init) [PUPA_UTIL]: Likewise.
46821 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
46822 (pupa_boot_init) [PUPA_UTIL]: Likewise.
46823 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
46824 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
46825 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
46826 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
46827 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
46828 * kern/disk.c: Include <pupa/file.h>.
46829 (pupa_print_partinfo): New function.
46830 * kern/dl.c: Include <pupa/env.h>.
46831 (pupa_dl_dir): Variable removed.
46832 (pupa_dl_load): Use the environment variable `prefix' instead of
46833 the variable pupa_dl_dir.
46834 (pupa_dl_set_prefix): Function removed.
46835 (pupa_dl_get_prefix): Likewise.
46836 * kern/i386/pc/init.c: Include <pupa/env.h>.
46837 (pupa_machine_init): Use the environment variable `prefix' instead of
46838 using pupa_dl_set_prefix to set the prefix.
46839 * kern/main.c: Include <pupa/env.h>.
46840 (pupa_set_root_dev): Use the environment variable `prefix' instead of
46841 using pupa_dl_get_prefix to get the prefix.
46842 * kern/misc.c: Include <pupa/env.h>.
46843 (pupa_isdigit): New function.
46844 (pupa_isgraph): Likewise.
46845 (pupa_ftoa): Likewise.
46846 (pupa_vsprintf): Added support for printing values of the type
46847 `double'. Make it possible to format variable output when using
46848 formatting like `%1.2%f'.
46849 (pupa_split_cmdline): New function.
46850 * kern/rescue.c: Include <pupa/env.h>.
46851 (next_word): Removed function.
46852 (pupa_rescue_cmd_prefix): Likewise.
46853 (pupa_rescue_cmd_set): New function.
46854 (pupa_rescue_cmd_unset): New function.
46855 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
46856 split the command line instead of splitting it here. Added
46857 support for setting variables using the syntax `foo=bar'. Don't
46858 initialize the prefix command anymore. Initialized the set and
46859 unset commands.
46860 * normal/cmdline.c: Include <pupa/env.h>.
46861 (pupa_tab_complete): Added prototypes for print_simple_completion,
46862 print_partition_completion, add_completion, iterate_commands,
46863 iterate_dev, iterate_part and iterate_dir. Moved code to print
46864 partition information from here to kern/disk.c.
46865 (pupa_cmdline_run): Don't check if the function exists anymore.
46866 * normal/main.c: Include <pupa/env.h>.
46867 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
46868 instead of using pupa_dl_get_prefix to get the prefix.
46869 * term/i386/pc/vga.c: Include <pupa/arg.h>.
46870 (check_vga_mem): Cast pointers to `void *' to silence a gcc
46871 warning.
46872 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
46873 (pupa_vga_setcolor): Declare unused variables with `__attribute__
46874 ((unused))' to silence a gcc warning.
46875 (pupa_vga_setcolor): Likewise.
46876 (debug_command): Changed to match argument parsing
46877 interface changes.
46878 * util/pupa-emu.c: Include <pupa/env.h>.
46879 (options): Added 0's for unused fields to silence a gcc warning.
46880 (argp): Likewise.
46881 (main): Use the environment variable `prefix' instead of using
46882 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
46883 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
46884 and terminal.
46885
46886 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
46887 * util/misc.c: Include <malloc.h>.
46888 (pupa_malloc): Rewritten so errors are correctly reported.
46889 (pupa_realloc): Likewise.
46890 (pupa_memalign): Likewise.
46891 (pupa_mm_init_region): Declare unused variables with
46892 `__attribute__ ((unused))' to silence a gcc warning.
46893 * normal/i386/setjmp.S: Remove tab at the end of the file to
46894 silence a gcc warning.
46895 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
46896 variables with `__attribute__ ((unused))' to silence a gcc
46897 warning.
46898 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
46899 local variable i unsigned to silence a gcc warning.
46900
46901 * kern/term.c: Include <pupa/misc.h>.
46902 (pupa_more_lines): New variable.
46903 (pupa_more): Likewise.
46904 (pupa_putcode): When the pager is active pause at the end of every
46905 screen.
46906 (pupa_set_more): New function.
46907 * include/pupa/term.h (pupa_set_more): New prototype.
46908
46909
46910 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
46911
46912 Now this project is GRUB 2 rather than PUPA. The location of
46913 the CVS repository was moved to GRUB's.
46914
46915 * configure.ac: Use bug-grub as the reporting address.
46916 Use GRUB instead of PUPA.
46917 Change the version number to 1.90.
46918
46919 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
46920
46921 * genkernsyms.sh: Updated copyright information.
46922 * genmk.rb: Likewise.
46923 * genmodsrc.sh: Likewise.
46924 * gensymlist.sh: Likewise.
46925 * boot/i386/pc/boot.S: Likewise.
46926 * boot/i386/pc/diskboot.S: Likewise.
46927 * disk/i386/pc/biosdisk.c: Likewise.
46928 * disk/i386/pc/partition.c: Likewise.
46929 * font/manager.c: Likewise.
46930 * fs/ext2.c: Likewise.
46931 * fs/fat.c: Likewise.
46932 * include/pupa/boot.h: Likewise.
46933 * include/pupa/device.h: Likewise.
46934 * include/pupa/disk.h: Likewise.
46935 * include/pupa/dl.h: Likewise.
46936 * include/pupa/elf.h: Likewise.
46937 * include/pupa/err.h: Likewise.
46938 * include/pupa/file.h: Likewise.
46939 * include/pupa/font.h: Likewise.
46940 * include/pupa/fs.h: Likewise.
46941 * include/pupa/kernel.h: Likewise.
46942 * include/pupa/loader.h: Likewise.
46943 * include/pupa/misc.h: Likewise.
46944 * include/pupa/mm.h: Likewise.
46945 * include/pupa/net.h: Likewise.
46946 * include/pupa/normal.h: Likewise.
46947 * include/pupa/rescue.h: Likewise.
46948 * include/pupa/setjmp.h: Likewise.
46949 * include/pupa/symbol.h: Likewise.
46950 * include/pupa/term.h: Likewise.
46951 * include/pupa/types.h: Likewise.
46952 * include/pupa/i386/setjmp.h: Likewise.
46953 * include/pupa/i386/types.h: Likewise.
46954 * include/pupa/i386/pc/biosdisk.h: Likewise.
46955 * include/pupa/i386/pc/boot.h: Likewise.
46956 * include/pupa/i386/pc/console.h: Likewise.
46957 * include/pupa/i386/pc/init.h: Likewise.
46958 * include/pupa/i386/pc/kernel.h: Likewise.
46959 * include/pupa/i386/pc/linux.h: Likewise.
46960 * include/pupa/i386/pc/loader.h: Likewise.
46961 * include/pupa/i386/pc/memory.h: Likewise.
46962 * include/pupa/i386/pc/multiboot.h: Likewise.
46963 * include/pupa/i386/pc/partition.h: Likewise.
46964 * include/pupa/i386/pc/time.h: Likewise.
46965 * include/pupa/i386/pc/vga.h: Likewise.
46966 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
46967 * include/pupa/util/getroot.h: Likewise.
46968 * include/pupa/util/misc.h: Likewise.
46969 * include/pupa/util/resolve.h: Likewise.
46970 * kern/device.c: Likewise.
46971 * kern/disk.c: Likewise.
46972 * kern/dl.c: Likewise.
46973 * kern/err.c: Likewise.
46974 * kern/file.c: Likewise.
46975 * kern/fs.c: Likewise.
46976 * kern/loader.c: Likewise.
46977 * kern/main.c: Likewise.
46978 * kern/misc.c: Likewise.
46979 * kern/mm.c: Likewise.
46980 * kern/rescue.c: Likewise.
46981 * kern/term.c: Likewise.
46982 * kern/i386/dl.c: Likewise.
46983 * kern/i386/pc/init.c: Likewise.
46984 * kern/i386/pc/lzo1x.S: Likewise.
46985 * kern/i386/pc/startup.S: Likewise.
46986 * loader/i386/pc/chainloader.c: Likewise.
46987 * loader/i386/pc/linux.c: Likewise.
46988 * loader/i386/pc/multiboot.c: Likewise.
46989 * normal/cmdline.c: Likewise.
46990 * normal/command.c: Likewise.
46991 * normal/main.c: Likewise.
46992 * normal/menu.c: Likewise.
46993 * normal/i386/setjmp.S: Likewise.
46994 * term/i386/pc/console.c: Likewise.
46995 * term/i386/pc/vga.c: Likewise.
46996 * util/console.c: Likewise.
46997 * util/genmoddep.c: Likewise.
46998 * util/misc.c: Likewise.
46999 * util/pupa-emu.c: Likewise.
47000 * util/resolve.c: Likewise.
47001 * util/unifont2pff.rb: Likewise.
47002 * util/i386/pc/biosdisk.c: Likewise.
47003 * util/i386/pc/getroot.c: Likewise.
47004 * util/i386/pc/pupa-mkimage.c: Likewise.
47005 * util/i386/pc/pupa-setup.c: Likewise.
47006
47007 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47008
47009 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47010 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47011 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47012 reading and reset it after reading.
47013 (pupa_ext2_close): Return PUPA_ERR_NONE.
47014
47015 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47016 Correct value.
47017 (struct linux_kernel_header): Add kernel_version and
47018 initrd_addr_max.
47019 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47020 pupa_file_read succeeds.
47021 (pupa_rescue_cmd_initrd): Implement.
47022
47023 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47024
47025 * fs/ext2.c (pupa_ext2_label): New function.
47026 (pupa_ext2_fs): Added label.
47027 * fs/fat.c (pupa_fat_label): New function.
47028 (pupa_fat_fs): Added label.
47029 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47030
47031 * kern/misc.c (pupa_strndup): New function.
47032 * include/pupa/misc.h (pupa_strndup): New prototype.
47033
47034 * include/pupa/normal.h: Include <pupa/err.h>.
47035 (pupa_set_history): New prototype.
47036 (pupa_iterate_commands): New prototype.
47037 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47038 <pupa/disk.h>, <pupa/file.h>.
47039 (hist_size): New variable.
47040 (hist_lines): Likewise.
47041 (hist_end): Likewise.
47042 (hist_used): Likewise.
47043 (pupa_set_history): New function.
47044 (pupa_history_get): Likewise.
47045 (pupa_history_add): Likewise.
47046 (pupa_history_replace): Likewise.
47047 (pupa_tab_complete): Likewise.
47048 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47049 completion shows partitionnames while completing partitions, this
47050 feature was suggested by Jeff Bailey.
47051 * normal/command.c (pupa_iterate_commands): New function.
47052 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47053 (pupa_normal_init): Initialize history buffer.
47054 (PUPA_MOD_INIT): Likewise.
47055 (pupa_normal_fini): Free the history buffer.
47056 (PUPA_MOD_FINI): Likewise.
47057
47058 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47059 key.
47060
47061 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47062 * configure.ac [i386]: Check for regparam bug.
47063 (NESTED_FUNC_ATTR) [! i386]: Defined.
47064
47065 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47066
47067 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47068 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47069 (pupa_emu_SOURCES): New variable.
47070 (pupa_emu_LDFLAGS): Likewise.
47071 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47072 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47073 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47074 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47075 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47076 (pupa_jmp_buf): New typedef.
47077 (pupa_setjmp) [PUPA_UTIL]: New macro.
47078 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47079 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47080 (pupa_refresh): New prototype.
47081 * include/pupa/util/getroot.h: New file.
47082 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47083 it.
47084 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47085 (pupa_rescue_cmd_cat): Likewise.
47086 (pupa_rescue_cmd_ls): Likewise.
47087 (pupa_rescue_cmd_testload): Likewise.
47088 (pupa_rescue_cmd_lsmod): Likewise.
47089 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47090 * normal/menu.c (run_menu): Likewise.
47091 * kern/term.c (pupa_cls): Likewise.
47092 (pupa_refresh): New function.
47093 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47094 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47095 * util/console.c: New file.
47096
47097 * util/i386/pc/getroot.c: New file.
47098 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47099 (pupa_putchar): New function.
47100 (pupa_refresh): Likewise.
47101 (xgetcwd): Function moved to ...
47102 (strip_extra_slashes): Likewise.
47103 (get_prefix): Likewise.
47104 * util/i386/pc/getroot.c: ... here.
47105 (find_root_device): Function moved and renamed to...
47106 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47107 Changed all callers.
47108 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47109 and renamed to...
47110 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47111 Changed all callers.
47112 * util/misc.c (pupa_memalign): New function.
47113 (pupa_mm_init_region): Likewise.
47114 (pupa_register_exported_symbols): Likewise.
47115 (pupa_putchar): Function removed.
47116 * util/pupa-emu.c: New file.
47117
47118 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47119
47120 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47121 (_multiboot_mod_SOURCES): New variable.
47122 (_multiboot_mod_CFLAGS): Likewise.
47123 * loader/i386/pc/multiboot.c: New file.
47124 * include/pupa/i386/pc/multiboot.h: Likewise.
47125 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47126 (pupa_multiboot_real_boot): New function.
47127 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47128 (pupa_multiboot_real_boot): New prototype.
47129 (pupa_rescue_cmd_multiboot): Likewise
47130 (pupa_rescue_cmd_module): Likewise.
47131
47132 * kern/loader.c (pupa_loader_set): Continue when
47133 pupa_loader_unload_func() fails.
47134 (pupa_loader_unset): New function.
47135 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47136
47137 * kern/misc.c (pupa_stpcpy): New function.
47138 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47139
47140 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47141
47142 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47143 for available extensions.
47144
47145 * include/pupa/i386/pc/time.h: New file.
47146 * kern/disk.c: Include <pupa/machine/time.h>.
47147 (PUPA_CACHE_TIMEOUT): New macro.
47148 (pupa_last_time): New variable.
47149 (pupa_disk_open): Flush the cache when there was a timeout.
47150 (pupa_disk_close): Reset the timer.
47151 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47152 pupa_currticks.
47153 * util/misc.c: Include <sys/times.h>
47154 (pupa_get_rtc): New function.
47155
47156 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47157
47158 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47159 as blocks.
47160 (pupa_ext2_get_file_block): Use blocks member.
47161
47162 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47163 first block. Return -1 instead of pupa_errno on error.
47164
47165 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47166
47167 * README: In the pupa-mkimage example use _chain instead of chain
47168 and ext2 instead of fat.
47169 * TODO: Replace ext2fs with jfs as an example. Add an item for
47170 adding journal playback for ext2fs.
47171 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47172 (pkgdata_MODULES): Added ext2.mod.
47173 (ext2_mod_SOURCES): New variable.
47174 (ext2_mod_CFLAGS): Likewise.
47175 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47176 * include/pupa/misc.h (pupa_strncpy): New prototype.
47177 (pupa_strcat): Likewise.
47178 (pupa_strncmp): Likewise.
47179 * kern/misc.c (pupa_strcat): Enable function.
47180 (pupa_strncpy): New function.
47181 (pupa_strncmp): Likewise.
47182 * fs/ext2.c: New file.
47183
47184 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47185 when the read failed before retrying.
47186 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47187 (_FILE_OFFSET_BITS): Likewise.
47188 * configure.ac: Added AC_SYS_LARGEFILE.
47189
47190 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47191
47192 * genmk.rb (PModule#rule): Make sure to get only symbol names
47193 from the output of nm.
47194 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47195
47196 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47197
47198 I forgot to check in these changes for a long time. This adds
47199 incomplete support for VGA console, and this is still very
47200 buggy. Also, a lot of consideration is required for I18N,
47201 UNICODE, and VGA font issues. Therefore, assume that this is
47202 such that "better than nothing".
47203
47204 * font/manager.c: New file.
47205 * include/pupa/font.h: Likewise.
47206 * include/pupa/i386/pc/vga.h: Likewise.
47207 * term/i386/pc/vga.c: Likewise.
47208 * util/unifont2pff.rb: Likewise.
47209
47210 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47211 (pkgdata_MODULES): Added vga.mod and font.mod.
47212 (vga_mod_SOURCES): New variables.
47213 (vga_mod_CFLAGS): Likewise.
47214 (font_mod_SOURCES): Likewise.
47215 (font_mod_CFLAGS): Likewise.
47216
47217 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47218
47219 * include/pupa/term.h: Include pupa/err.h.
47220 (struct pupa_term): Added init and fini.
47221 Changed the argument of putchar to pupa_uint32_t.
47222
47223 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47224 (pupa_console_real_putchar): New prototype.
47225 (pupa_console_putchar): Removed.
47226 (pupa_console_checkkey): Exported.
47227 (pupa_console_getkey): Likewise.
47228
47229 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47230 characters.
47231
47232 * kern/term.c (pupa_term_set_current): Rewritten.
47233 (pupa_putchar): Likewise.
47234 (pupa_putcode): New function.
47235
47236 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47237 (pupa_console_real_putchar): ... this.
47238 (pupa_vga_set_mode): New function.
47239 (pupa_vga_get_font): Likewise.
47240
47241 * normal/command.c: Include pupa/term.h.
47242 (terminal_command): New function.
47243 (pupa_command_init): Register the command "terminal".
47244
47245 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47246 (DISP_UP): Likewise.
47247 (DISP_RIGHT): Likewise.
47248 (DISP_DOWN): Likewise.
47249 (DISP_HLINE): Likewise.
47250 (DISP_VLINE): Likewise.
47251 (DISP_UL): Likewise.
47252 (DISP_UR): Likewise.
47253 (DISP_LL): Likewise.
47254 (DISP_LR): Likewise.
47255
47256 * term/i386/pc/console.c (pupa_console_putchar): New function.
47257
47258 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47259
47260 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47261 FIX. Reverse the path_list.
47262
47263 * include/pupa/normal.h: Export pupa_register_command and
47264 pupa_unregister_command.
47265
47266 * hello/hello.c (pupa_cmd_hello): New module.
47267 * conf/i386-pc.rmk: Added hello.mod.
47268
47269 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47270
47271 * kern/i386/pc/lzo1x.S: New file.
47272
47273 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47274 (compress_kernel): New variable.
47275 (generate_image): Heavily modified to support compressing a
47276 large part of the core image.
47277
47278 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47279 leak.
47280 (pupa_util_load_image): New function.
47281
47282 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47283 (pupa_compressed_size): New variable.
47284 (codestart): Enable Gate A20 here.
47285 Decompress the compressed part of the core image.
47286 Rearrange the code to put functions and variables which are
47287 required for initialization in the non-compressed part.
47288 Include lzo1x.S.
47289
47290 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47291 here.
47292
47293 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47294
47295 * include/pupa/i386/pc/kernel.h
47296 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47297 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47298 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47299 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47300 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47301
47302 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47303
47304 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47305 (Utility#rule): Likewise.
47306
47307 * configure.ac: Check if LZO is available.
47308
47309 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47310
47311 * include/pupa/normal.h: New file.
47312 * include/pupa/setjmp.h: Likewise.
47313 * include/pupa/i386/setjmp.h: Likewise.
47314 * normal/cmdline.c: Likewise.
47315 * normal/command.c: Likewise.
47316 * normal/main.c: Likewise.
47317 * normal/menu.c: Likewise.
47318 * normal/i386/setjmp.S: Likewise.
47319
47320 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47321 (pupa_rescue_cmd_initrd): Likewise.
47322
47323 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47324 Likewise.
47325
47326 * kern/i386/pc/startup.S (translation_table): New variable.
47327 (translate_keycode): New function.
47328 (pupa_console_getkey): Call translate_keycode.
47329
47330 * kern/rescue.c (attempt_normal_mode): New function.
47331 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47332 it failed, print a message.
47333
47334 * kern/mm.c (pupa_real_malloc): Print more information when a
47335 free magic is broken.
47336 (pupa_free): If the first free header is not free actually, set
47337 it to P.
47338
47339 * kern/main.c (pupa_load_normal_mode): Just load the module
47340 "normal".
47341 (pupa_main): Don't print the message
47342 "Entering into rescue mode..." here.
47343
47344 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47345 Declared.
47346 (pupa_rescue_cmd_initrd): Likewise.
47347 (pupa_rescue_cmd_initrd): Likewise.
47348
47349 * include/pupa/symbol.h (FUNCTION): Specify the type.
47350 (VARIABLE): Likewise.
47351
47352 * include/pupa/err.h (pupa_err_t): Added
47353 PUPA_ERR_UNKNOWN_COMMAND.
47354
47355 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47356 (pupa_dl_get_prefix): Likewise.
47357
47358 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47359 Added _chain.mod and _linux.mod instead of chain.mod and
47360 linux.mod.
47361 (chain_mod_SOURCES): Renamed to ...
47362 (_chain_mod_SOURCES): ... this.
47363 (chain_mod_CFLAGS): Renamed to ...
47364 (_chain_mod_CFLAGS): ... this.
47365 (linux_mod_SOURCES): Renamed to ...
47366 (_linux_mod_SOURCES): ... this.
47367 (linux_mod_CFLAGS): Renamed to ...
47368 (_linux_mod_CFLAGS): ... this.
47369 (normal_mod_SOURCES): New variable.
47370 (normal_mod_CFLAGS): Likewise.
47371 (normal_mod_ASFLAGS): Likewise.
47372
47373 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47374
47375 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47376 possible.
47377
47378 * kern/dl.c (pupa_dl_ref): Refer depending modules
47379 recursively.
47380 (pupa_dl_unref): Unrefer depending modules recursively.
47381 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47382 a module is unloaded before one depending on that module is
47383 unloaded.
47384 (pupa_dl_unload): Unload depending modules explicitly,
47385 if possible.
47386
47387 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47388
47389 * include/pupa/i386/pc/linux.h: New file.
47390 * loader/i386/pc/linux.c: Likewise.
47391
47392 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47393 Removed.
47394 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47395 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47396 of PUPA_CHAINLOADER_BOOT_SECTOR.
47397
47398 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47399 (pupa_linux_prot_size): New variable.
47400 (pupa_linux_tmp_addr): Likewise.
47401 (pupa_linux_real_addr): Likewise.
47402 (pupa_linux_boot_zimage): New function.
47403 (pupa_linux_boot_bzimage): Likewise.
47404
47405 * kern/i386/pc/init.c (struct mem_region): New structure.
47406 (MAX_REGIONS): New macro.
47407 (mem_regions): New variable.
47408 (num_regions): Likewise.
47409 (pupa_os_area_addr): Likewise.
47410 (pupa_os_area_size): Likewise.
47411 (pupa_lower_mem): Likewise.
47412 (pupa_upper_mem): Likewise.
47413 (add_mem_region): New function.
47414 (compact_mem_regions): Likewise.
47415 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47416 the size of the conventional memory and that of so-called upper
47417 memory (before the first memory hole).
47418 Instead of adding each found region to free memory, use
47419 add_mem_region and add them after removing overlaps.
47420 Also, add only 1/4 of the upper memory to free memory. The rest
47421 is used for loading OS images. Maybe this is ad hoc, but this
47422 makes it much easier to relocate OS images when booting.
47423
47424 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47425 (pupa_enter_rescue_mode): Don't register initrd and module.
47426
47427 * kern/mm.c: Include pupa/dl.h.
47428
47429 * kern/main.c: Include pupa/file.h and pupa/device.h.
47430
47431 * kern/loader.c (pupa_loader_load_module_func): Removed.
47432 (pupa_loader_load_module): Likewise.
47433
47434 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47435 ``.o''.
47436
47437 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47438 (pupa_linux_tmp_addr): Likewise.
47439 (pupa_linux_real_addr): Likewise.
47440 (pupa_linux_boot_zimage): Likewise.
47441 (pupa_linux_boot_bzimage): Likewise.
47442
47443 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47444 (pupa_upper_mem): Likewise.
47445 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47446 module is too dangerous.
47447
47448 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47449 (pupa_os_area_size): Likewise.
47450 (pupa_loader_set): Remove the first argument. Loader doesn't
47451 manage modules or initrd any longer.
47452 (pupa_loader_load_module): Removed.
47453
47454 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47455 (linux_mod_SOURCES): New variable.
47456 (linux_mod_CFLAGS): Likewise.
47457
47458 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47459
47460 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47461 the length of a blocklist correctly.
47462
47463 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47464 Use ioctl only if the OS file is a block device.
47465 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47466 not very useful for normal files.
47467
47468 * kern/main.c (pupa_set_root_dev): New function.
47469 (pupa_load_normal_mode): Likewise.
47470 (pupa_main): Call those above.
47471
47472 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47473 pupa_uint16_t.
47474
47475 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47476
47477 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47478
47479 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47480 (setup): Configure the installed partition information and the
47481 dl prefix.
47482
47483 * loader/i386/pc/chainloader.c (my_mod): New variable.
47484 (pupa_chainloader_unload): New function.
47485 (pupa_rescue_cmd_chainloader): Refer itself.
47486 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47487
47488 * kern/i386/pc/startup.S (install_partition): Removed.
47489 (version_string): Likewise.
47490 (config_file): Likewise.
47491 (pupa_install_dos_part): New variable.
47492 (pupa_install_bsd_part): Likewise.
47493 (pupa_prefix): Likewise.
47494 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47495
47496 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47497 and pupa/misc.h.
47498 (make_install_device): New function.
47499 (pupa_machine_init): Set the dl prefix.
47500
47501 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47502 (buf): Renamed to ...
47503 (linebuf): ... this.
47504 (pupa_rescue_cmd_prefix): New function.
47505 (pupa_rescue_cmd_insmod): Likewise.
47506 (pupa_rescue_cmd_rmmod): Likewise.
47507 (pupa_rescue_cmd_lsmod): Likewise.
47508 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47509 rmmod and lsmod.
47510
47511 * kern/mm.c (pupa_memalign): If failed even after invalidating
47512 disk caches, unload unneeded modules and retry.
47513
47514 * kern/misc.c (pupa_memmove): New function.
47515 (pupa_memcpy): Removed.
47516 (pupa_strcpy): New function.
47517 (pupa_itoa): Made static.
47518
47519 * kern/dl.c (pupa_dl_iterate): New function.
47520 (pupa_dl_ref): Likewise.
47521 (pupa_dl_unref): Likewise.
47522 (pupa_dl_unload): Return if succeeded or not.
47523 (pupa_dl_unload_unneeded): New function.
47524 (pupa_dl_unload_all): Likewise.
47525 (pupa_dl_init): Renamed to ...
47526 (pupa_dl_set_prefix): ... this.
47527 (pupa_dl_get_prefix): New function.
47528
47529 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47530 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47531 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47532 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47533 (pupa_install_dos_part): Declared.
47534 (pupa_install_bsd_part): Likewise.
47535 (pupa_prefix): Likewise.
47536 (pupa_boot_drive): Likewise.
47537
47538 * include/pupa/types.h: Fix a typo.
47539
47540 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47541 pupa_memmove.
47542 (pupa_memmove): Declared.
47543 (pupa_strcpy): Likewise.
47544
47545 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47546 pupa_mod_init takes one argument, its own module.
47547 (pupa_dl_unload_unneeded): Declared.
47548 (pupa_dl_unload_all): Likewise.
47549 (pupa_dl_ref): Likewise.
47550 (pupa_dl_unref): Likewise.
47551 (pupa_dl_iterate): Likewise.
47552 (pupa_dl_init): Renamed to ...
47553 (pupa_dl_set_prefix): ... this.
47554 (pupa_dl_get_prefix): Declared.
47555
47556 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47557 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47558 unloaded.
47559 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47560 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47561
47562 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47563 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47564
47565 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47566
47567 * util/i386/pc/pupa-setup.c (setup): Define the internal
47568 function find_first_partition_start at the top level, because GCC
47569 3.0.x cannot compile internal functions in deeper scopes
47570 correctly.
47571 (find_root_device): Use lstat instead of stat.
47572 Don't follow symbolic links.
47573 Fix the path-constructing code.
47574
47575 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47576 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47577 by a BLKGETSIZE ioctl first, because block devices don't fill
47578 the member st_mode of the structure stat on Linux.
47579 [__linux__] (linux_find_partition): Use a temporary buffer
47580 REAL_DEV for the working space. Copy it to DEV before returning.
47581 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47582 buffer cache consistent.
47583 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47584 strncmp. The previous value was merely wrong.
47585 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47586
47587 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47588 FAT size is 12. The previous value was merely wrong.
47589
47590 * kern/main.c (pupa_main): Don't split the starting message from
47591 newlines.
47592
47593 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47594 LF, because BIOS goes crazy about character attributes in this
47595 case.
47596
47597 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47598
47599 * include/i386/pc/util/biosdisk.h: New file.
47600 * util/i386/pc/biosdisk.c: Likewise.
47601 * util/i386/pc/pupa-setup.c: Likewise.
47602
47603 * Makefile.in (INCLUDE_DISTFILES): Added
47604 include/pupa/i386/pc/util/biosdisk.h.
47605 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47606 directory util/i386/pc.
47607 (install-local): Added a rule for sbin_UTILITIES.
47608 (uninstall): Likewise.
47609
47610 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47611
47612 * util/misc.c (xrealloc): New function.
47613 (pupa_malloc): Likewise.
47614 (pupa_free): Likewise.
47615 (pupa_realloc): Likewise.
47616 (pupa_stop): Likewise.
47617 (pupa_putchar): Likewise.
47618
47619 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47620
47621 * include/pupa/util/misc.h (xrealloc): Declared.
47622
47623 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47624 macro.
47625 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47626 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47627
47628 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47629 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47630
47631 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47632 way should be implemented.
47633 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47634
47635 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47636 the size of NAME for safety.
47637 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47638 0x88.
47639
47640 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47641 (pupa_setup_SOURCES): Likewise.
47642
47643 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47644
47645 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47646
47647 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47648 bunch of pushl's from pusha, because this destroys the return
47649 value.
47650
47651 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47652
47653 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47654 This means that any missing prototypes could be fatal. Also, you
47655 must take care when writing assembly code. See the comments at
47656 the beginning of startup.S, for more details.
47657
47658 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47659 compilation mechanism.
47660 (pupa_chainloader_real_boot): Likewise.
47661 (pupa_biosdisk_rw_int13_extensions): Likewise.
47662 (pupa_biosdisk_rw_standard): Likewise.
47663 (pupa_biosdisk_check_int13_extensions): Likewise.
47664 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47665 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47666 (pupa_get_memsize): Likewise.
47667 (pupa_get_mmap_entry): Likewise.
47668 (pupa_console_putchar): Likewise.
47669 (pupa_console_setcursor): Likewise.
47670 (pupa_getrtsecs): Use pushl instead of push.
47671
47672 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47673 memory instead of the stack for a mmap entry, because some
47674 BIOSes may ignore the maximum size and overflow.
47675
47676 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47677
47678 * genmk.rb (PModule#rule): Compile automatically generated
47679 sources with module-specific CFLAGS as well as other sources.
47680
47681 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47682
47683 * configure.ac: Check ld.
47684 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47685 respectively, before checking endianness and sizes.
47686
47687 * Makefile.in (LD): New variable.
47688
47689 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47690
47691 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47692
47693 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47694
47695 * Changelog: New file.
47696