]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* include/grub/cmos.h: Handle high CMOS addresses on sparc64.
[grub2.git] / ChangeLog
1 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
4
5 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
8
9 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10
11 Move to more hookless approach in IEEE1275 devices handling.
12
13 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
14
15 * grub-core/kern/term.c (grub_term_normal_color),
16 (grub_term_highlight_color): Add back lost defaults.
17
18 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
19
20 Make elfload not use hooks. Opt for flags and iterators instead.
21
22 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
23
24 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
25 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
26
27 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
28
29 * grub-core/script/execute.c (gettext_append): Remove nested functions.
30
31 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
32
33 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
34 hook pass-through parameter. All users updated and unnested.
35
36 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
37
38 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
39 out of its parent.
40
41 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
42
43 * grub-core/fs/hfs.c: Remove nested functions.
44
45 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
46
47 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
48 the context through.
49 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
50
51 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
52
53 * util/grub-editenv.c (list_variables): Move print_var out of its
54 parent.
55
56 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
57
58 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
59 function.
60
61 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
62
63 * grub-core/gentrigtables.c: Make tables const.
64
65 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
66
67 Remove nested functions from videoinfo iterators.
68
69 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
72 for 64-bit platforms.
73
74 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
77 a FOR_CHILDREN macro.
78
79 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
82 platform from firmware path.
83
84 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
85
86 Enable linux16 on non-BIOS systems for i.a. memtest.
87
88 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
89 correctly.
90 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
91
92 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
93
94 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
95 Fix end of table condition.
96
97 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
98
99 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
100 out of its parent.
101
102 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
103
104 * grub-core/fs/jfs.c: Remove nested functions.
105
106 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
107
108 * grub-core/fs/minix.c: Remove nested functions.
109
110 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
111
112 * grub-core/fs/iso9660.c: Remove nested functions.
113
114 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
115
116 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
117 of parent function.
118
119 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
120
121 * util/grub-fstest.c: Remove nested functions.
122
123 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
124
125 * grub-core/loader/machoXX.c: Remove nested functions.
126
127 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
128
129 Remove nested functions from disk and file read hooks.
130
131 * include/grub/disk.h (grub_disk_read_hook_t): New type.
132 (struct grub_disk): Add read_hook_data member.
133 * include/grub/file.h (struct grub_file): Likewise.
134 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
135 argument.
136
137 Update all callers.
138
139 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
140
141 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
142 Fix off by one error in enumerating extended partitions.
143
144 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
145
146 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
147 memory leak if device name is not found.
148
149 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
150
151 * grub-core/normal/menu_entry.c (update_screen): remove
152 unused variable `off' which caused scroll down arrow to be always shown.
153
154 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
155
156 * grub-core/normal/menu_entry.c (insert_string): fix off by one
157 access to unallocated memory.
158
159 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
160
161 * Makefile.util.def: Add partmap/msdos.c to common library.
162 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
163 * grub-core/disk/ldm.c: Check for existence of
164 GRUB_PC_PARTITION_TYPE_LDM.
165
166 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
169 sizes and display sector size.
170
171 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
172
173 Implement new command cmosdump.
174
175 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
176
177 Support Openfirmware disks with non-512B sectors.
178
179 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
180 size of the disk.
181 * (grub_ofdisk_get_block_size): New function.
182 * (grub_ofdisk_prepare): Use the correct block size.
183 * (grub_ofdisk_read): Likewise.
184 * (grub_ofdisk_write): Likewise.
185 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
186 New proto.
187
188 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
189
190 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
191
192 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
193
194 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
195 on first error.
196
197 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
198
199 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
200 freeing it.
201
202 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
203
204 Implement USBDebug (full USB stack variant).
205
206 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
209 unless they have unexpected values.
210
211 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
214 grub_print_error.
215
216 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
217
218 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
219 zero-out of port structure.
220
221 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
224 of extended attributes.
225
226 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
227
228 * util/grub-install.in: change misleading comment about
229 device.map creation
230
231 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
232
233 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
234 when menu highlight color isn't set.
235
236 2013-01-27 C. Masloch <pushbx@38.de>
237
238 Improve FreeDOS direct loading support compatibility.
239
240 * include/grub/i386/relocator.h (grub_relocator16_state):
241 New member ebp.
242 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
243 variable.
244 (grub_relocator16_boot): Handle %ebp.
245 * grub-core/lib/i386/relocator16.S: Likewise.
246 * grub-core/loader/i386/pc/freedos.c:
247 Load BPB to pass kernel which partition to load from.
248 Check that kernel file is not too large.
249 Set register dl to BIOS unit number as well.
250
251 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
252
253 * util/grub-reboot.in (usage): Document the need for
254 GRUB_DEFAULT=saved.
255 * util/grub-set-default.in (usage): Likewise.
256 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
257
258 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
259
260 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
261 than defining WORDS_BIGENDIAN manually.
262
263 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
264
265 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
266 invariants.
267
268 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
269
270 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
271 nested.
272 (blit_comb: add_device_width): Likewise.
273
274 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
275
276 Remove nested functions from USB iterators.
277
278 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
279 (grub_usb_controller_iterate_hook_t): Likewise.
280 (grub_usb_iterate): Add hook_data argument.
281 (grub_usb_controller_iterate): Likewise.
282 (struct grub_usb_controller_dev.iterate): Likewise.
283
284 Update all implementations and callers.
285
286 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
287
288 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
289 margin when not needed.
290
291 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
292
293 Make color variables global instead of it being per-terminal.
294
295 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
298 asterisk.
299
300 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
301
302 Fix powerpc and sparc64 build failures caused by un-nesting memory
303 map iterators.
304
305 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
306
307 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
308 parameter declarations.
309
310 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
313
314 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
315
316 Improve spkmomdem reliability by adding a separator between bytes.
317
318 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
319
320 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
321 an Acer registration utility with several sightings in the wild.
322 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
323
324 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
325
326 Remove nested functions from filesystem directory iterators.
327
328 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
329 (struct grub_fs.dir): Add hook_data argument.
330
331 Update all implementations and callers.
332
333 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
334
335 * docs/grub.texi (Multi-boot manual config): Fix typo for
336 "recommended".
337
338 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
339
340 * util/grub-mkimage.c (main): Postpone freeing arguments.output
341 until after its use in generate_image.
342
343 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
344
345 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
346 initrd size to addr_min, since the initrd will be allocated after
347 this address.
348
349 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
350
351 * conf/Makefile.common: Fix autogen rules to pass definition
352 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
353
354 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
355
356 * include/grub/elf.h: Update ARM definitions based on binutils.
357
358 2013-01-20 Aleš Nesrsta <starous@volny.cz>
359
360 Split long USB transfers into short ones.
361
362 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
363
364 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
365 is interrupted by ESC.
366
367 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
368
369 * util/grub-script-check.c (main): Uniform the error message.
370
371 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
372
373 Remove nested functions from ELF iterators.
374
375 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
376
377 Remove nested functions from device iterators.
378
379 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
380 (grub_arc_iterate_devs): Add hook_data argument.
381 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
382 (struct grub_ata_dev.iterate): Add hook_data argument.
383 * include/grub/device.h (grub_device_iterate_hook_t): New type.
384 (grub_device_iterate): Add hook_data argument.
385 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
386 (struct grub_disk_dev.iterate): Add hook_data argument.
387 (grub_disk_dev_iterate): Likewise.
388 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
389 Likewise.
390 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
391 Likewise.
392 * include/grub/partition.h (grub_partition_iterate_hook_t): New
393 type.
394 (struct grub_partition_map.iterate): Add hook_data argument.
395 (grub_partition_iterate): Likewise.
396 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
397 (struct grub_scsi_dev.iterate): Add hook_data argument.
398
399 Update all callers.
400
401 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
402
403 Fix typos for "developer" and "development".
404
405 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
406
407 Add license header to spkmodem-recv.c.
408
409 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
410
411 Rewrite spkmodem to use PIT for timing. Double the speed.
412
413 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
414
415 Add new command pcidump.
416
417 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
418
419 New terminal outputs using serial: morse and spkmodem.
420
421 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
422
423 Improve bidi handling in entry editor.
424
425 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
428 argument to prevent name collision.
429
430 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
431
432 Remove nested functions from script reading and parsing.
433
434 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
435 getline_data argument, passed to getline.
436 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
437 getline_data argument, passed to grub_parser_split_cmdline.
438 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
439 lexerstate->getline_data to lexerstate->getline.
440 (grub_script_lexer_init): Add getline_data argument, saved in
441 lexerstate->getline_data.
442 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
443 argument, passed to grub_script_parse.
444 * grub-core/script/script.c (grub_script_parse): Add getline_data
445 argument, passed to grub_script_lexer_init.
446 * include/grub/parser.h (grub_parser_split_cmdline): Update
447 prototype. Update all callers to pass appropriate getline data.
448 (struct grub_parser.parse_line): Likewise.
449 (grub_rescue_parse_line): Likewise.
450 * include/grub/reader.h (grub_reader_getline_t): Add void *
451 argument.
452 * include/grub/script_sh.h (struct grub_lexer_param): Add
453 getline_data member.
454 (grub_script_parse): Update prototype. Update all callers to pass
455 appropriate getline data.
456 (grub_script_lexer_init): Likewise.
457 (grub_normal_parse_line): Likewise.
458
459 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
460 data argument.
461 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
462 static instead of nested. Rename to ...
463 (grub_parser_execute_getline): ... this.
464 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
465 data argument.
466 * grub-core/normal/main.c (read_config_file: getline): Make static
467 instead of nested. Rename to ...
468 (read_config_file_getline): ... this.
469 (grub_normal_read_line): Add unused data argument.
470 * grub-core/script/execute.c (grub_script_execute_sourcecode:
471 getline): Make static instead of nested. Rename to ...
472 (grub_script_execute_sourcecode_getline): ... this.
473 * util/grub-script-check.c (main: get_config_line): Make static
474 instead of nested.
475
476 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
477
478 Remove nested functions from memory map iterators.
479
480 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
481 argument, passed to hook.
482 * grub-core/kern/i386/coreboot/mmap.c
483 (grub_linuxbios_table_iterate): Likewise.
484 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
485 instead of nested.
486 (grub_machine_mmap_iterate): Add hook_data argument.
487 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
488 Add hook_data argument, passed to hook.
489 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
490 Likewise.
491 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
492 Likewise.
493 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
494 Likewise.
495 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
496 Likewise.
497 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
498 Likewise.
499 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
500 Likewise.
501 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
502 (grub_machine_mmap_iterate): Likewise.
503 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
504 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
505 prototype.
506 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
507 Remove NESTED_FUNC_ATTR from here and from all users.
508 (grub_mmap_iterate): Update prototype.
509 (grub_efi_mmap_iterate): Update prototype. Update all callers to
510 pass appropriate hook data.
511 (grub_machine_mmap_iterate): Likewise.
512
513 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
514 static instead of nested.
515 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
516 Rename to ...
517 (lsmmap_hook): ... this.
518 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
519 Likewise.
520 (grub_efiemu_mmap_fill: fill_hook): Likewise.
521 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
522 heap_init): Likewise.
523 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
524 Rename to ...
525 (mmap_iterate_hook): ... this.
526 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
527 Likewise.
528 * grub-core/lib/ieee1275/relocator.c
529 (grub_relocator_firmware_get_max_events: count): Likewise.
530 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
531 to ...
532 (grub_relocator_firmware_fill_events_iter): ... this.
533 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
534 hook): Likewise. Rename to ...
535 (grub_relocator_alloc_chunk_align_iter): ... this.
536 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
537 Rename to ...
538 (generate_e820_mmap_iter): ... this.
539 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
540 Rename to ...
541 (count_hook): ... this.
542 (grub_linux_boot: hook): Likewise. Rename to ...
543 (grub_linux_boot_mmap_find): ... this.
544 (grub_linux_boot: hook_fill): Likewise. Rename to ...
545 (grub_linux_boot_mmap_fill): ... this.
546 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
547 hook): Likewise. Rename to ...
548 (grub_fill_multiboot_mmap_iter): ... this.
549 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
550 hook): Likewise. Rename to ...
551 (count_hook): ... this.
552 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
553 hook): Likewise. Rename to ...
554 (grub_fill_multiboot_mmap_iter): ... this.
555 * grub-core/loader/powerpc/ieee1275/linux.c
556 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
557 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
558 Likewise. Rename to ...
559 (alloc_phys_choose): ... this.
560 (determine_phys_base: get_physbase): Likewise.
561 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
562 find_hook): Likewise.
563 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
564 (malloc_hook: count_hook): Likewise.
565 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
566 Likewise. Rename to ...
567 (lower_hook): ... this.
568 (grub_mmap_get_upper: hook): Likewise. Rename to ...
569 (upper_hook): ... this.
570 (grub_mmap_get_post64: hook): Likewise. Rename to ...
571 (post64_hook): ... this.
572 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
573 Likewise. Rename to ...
574 (lower_hook): ... this.
575 (grub_mmap_get_upper: hook): Likewise. Rename to ...
576 (upper_hook): ... this.
577 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
578 (grub_mmap_iterate: fill_hook): Likewise.
579 (fill_mask): Pass addr and mask within a single struct.
580 (grub_cmd_badram: hook): Make static instead of nested. Rename
581 to ...
582 (badram_iter): ... this.
583 (grub_cmd_cutmem: hook): Likewise. Rename to ...
584 (cutmem_iter): ... this.
585
586 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
589 delimit path in strings using quotes.
590 * util/getroot.c (grub_guess_root_devices): Likewise.
591 (grub_make_system_path_relative_to_its_root): Likewise.
592 * util/grub-probe.c (probe): Likewise.
593 * util/ieee1275/ofpath.c (find_obppath): Likewise.
594 (xrealpath): Likewise.
595
596 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
597
598 Fix compilation with older compilers.
599
600 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
601 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
602 declarations.
603 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
604 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
605 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
606 identifier with b.
607 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
608 * include/grub/crypto.h: Add type defines.
609 * util/import_gcrypth.sed: Remove duplicate type defines.
610
611 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
612
613 New command list_trusted.
614
615 * grub-core/commands/verify.c (grub_cmd_list): New function.
616
617 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
618
619 * util/grub-mkimage.c (generate_image): Fix "size of public key"
620 info message.
621
622 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
623
624 Remove nested functions from PCI iterators.
625
626 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
627 passed to hook. Update all callers to pass appropriate hook data.
628 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
629 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
630 Remove NESTED_FUNC_ATTR from here and from all users.
631 (grub_pci_iterate): Update prototype.
632 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
633 instead of nested. Rename to ...
634 (grub_cs5536_find_iter): ... this.
635 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
636 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
637 Likewise.
638 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
639 Likewise.
640 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
641 Likewise.
642 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
643 Likewise.
644 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
645 * grub-core/video/radeon_fuloong2e.c
646 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
647 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
648 find_card): Likewise.
649 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
650 Likewise.
651
652 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
653
654 * grub-core/commands/verify.c: Mark messages for translating.
655
656 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
659 fatal.
660
661 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
662
663 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
664 fatal.
665
666 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * autogen.sh: Do not try to delete nonexistant files.
669 * util/import_gcrypth.sed: Add some missing header removals.
670
671 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
672
673 Clean up dangling references to grub-setup.
674 Fixes Ubuntu bug #1082045.
675
676 * docs/grub.texi (Images): Refer generally to grub-install rather
677 than directly to grub-setup.
678 (Installing GRUB using grub-install): Remove direct reference to
679 grub-setup.
680 (Device map) Likewise.
681 (Invoking grub-install): Likewise.
682 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
683 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
684 * util/grub-install.in (usage): Likewise.
685
686 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
687 Apply to grub-bios-setup and grub-sparc64-setup rather than to
688 grub-setup.
689 * configure.ac: Remove grub_setup output variable.
690
691 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
692 to grub-bios-setup.
693 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
694 grub-setup to grub-sparc64-setup.
695
696 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
697
698 Import gcrypt public-key cryptography and implement signature checking.
699
700 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
701
702 * grub-core/fs/ntfs.c: Ue more appropriate types.
703 * grub-core/fs/ntfscomp.c: Likewise.
704 * include/grub/ntfs.h: Likewise.
705
706 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
707
708 Support Apple FAT binaries on non-Apple platforms.
709
710 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
711 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
712 Likewise.
713 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
714 Apple FAT binaries.
715
716 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
717
718 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
719 sector devices.
720
721 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
722
723 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
724 explicitly zeroing elements.
725 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
726 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
727 of elements in a structure already allocated using grub_zalloc.
728 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
729
730 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
731
732 * docs/grub.texi (grub_cpu): New subsection.
733 (grub_platform): Likewise.
734
735 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
736
737 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
738
739 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
740
741 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
742 divisions.
743
744 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
745
746 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
747 * grub-core/fs/ntfscomp.c: Likewise.
748 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
749 (grub_ntfs_comp): Likewise.
750
751 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
752
753 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
754 Rename to ...
755 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
756 of groups_per_block. All users updated.
757
758 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
759
760 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
761 grub_error properly.
762 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
763 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
764
765 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
768 always in /boot/zfs.
769 Reported by: Yuta Satoh.
770
771 2013-01-03 Yuta Satoh <nigoro>
772
773 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
774 ${grub_probe}
775
776 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
777
778 * configure.ac: Extend -Wno-trampolines to host.
779
780 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
781
782 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
783 entry->len = 0.
784
785 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
786
787 * docs/grub.texi (Invoking grub-mkrelpath): New section.
788 (Invoking grub-script-check): Likewise.
789
790 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
791
792 * docs/grub.texi (Invoking grub-mount): New section.
793 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
794
795 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
796
797 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
798 test failures, so that a failing unit test correctly causes 'make
799 check' to fail.
800
801 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
802
803 Fix failing printf test.
804
805 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
806 '$' in the correct order when collecting type information.
807
808 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
809
810 * docs/grub.texi (configfile): Explain environment variable
811 handling.
812 (source): New section.
813 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
814
815 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
816
817 Remove several trivially-unnecessary uses of nested functions.
818
819 * grub-core/commands/i386/pc/sendkey.c
820 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
821 instead of nested.
822 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
823 Rename to ...
824 (legacy_file_getline): ... this.
825 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
826 Likewise.
827 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
828 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
829 to ...
830 (probe_dummy_iter): ... this.
831 * grub-core/kern/i386/coreboot/mmap.c
832 (grub_linuxbios_table_iterate: check_signature): Likewise.
833 * grub-core/kern/parser.c (grub_parser_split_cmdline:
834 check_varstate): Likewise. Mark inline.
835 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
836 an additional parameter.
837 (find_long: fnd_long): Likewise. Pass two additional parameters.
838 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
839 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
840 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
841 Likewise. Rename to ...
842 (grub_cmos_find_port_iter): ... this.
843 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
844 Rename to ...
845 (find_rtc_iter): ... this.
846
847 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
848 function directly into the function body, since it is only called
849 once.
850
851 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
852
853 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
854 __attribute__ ((unused)).
855 * grub-core/video/bochs.c (find_card): Likewise.
856 * grub-core/video/cirrus.c (find_card): Likewise.
857 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
858 * grub-core/video/sis315pro.c (find_card): Likewise.
859 * grub-core/video/sm712.c (find_card): Likewise.
860
861 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
862
863 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
864 Fixes Savannah bug #37821.
865
866 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
867
868 Apply program name transformations at build-time rather than at
869 run-time. Fixes Debian bug #696465.
870
871 * acinclude.m4 (grub_TRANSFORM): New macro.
872 * configure.ac: Create output variables with transformed names for
873 most programs.
874 * util/bash-completion.d/grub-completion.bash.in: Use
875 pre-transformed variables for program names.
876 * util/grub-install.in: Likewise.
877 * util/grub-kbdcomp.in: Likewise.
878 * util/grub-mkconfig.in: Likewise.
879 * util/grub-mkconfig_lib.in: Likewise.
880 * util/grub-mknetdir.in: Likewise.
881 * util/grub-mkrescue.in: Likewise.
882 * util/grub-mkstandalone.in: Likewise.
883 * util/grub-reboot.in: Likewise.
884 * util/grub-set-default.in: Likewise.
885 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
886 * tests/util/grub-shell-tester.in: Remove unused assignment.
887 * tests/util/grub-shell.in: Likewise.
888 * util/grub.d/00_header.in: Likewise.
889
890 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
891
892 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
893
894 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
895 HAVE_RAW_DECL_GETS.
896 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
897
898 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
899
900 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
901 Reported by: Eriks Latosheks <foresterlv>.
902
903 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
904
905 * docs/grub.texi (Network): Update instructions on generating netboot
906 image.
907
908 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
909
910 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
911 around device name if necessarry.
912
913 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
914
915 * util/grub-install.in: Follow the symbolic link parameter added
916 to the file command.
917
918 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
919
920 * util/grub-install.in: Remove stale TODO.
921
922 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
923
924 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
925 dynamic allocation for the bootpath buffer.
926
927 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
928
929 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
930 window too small.
931
932 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
933
934 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
935 argument rather than font name. All users updated.
936 (grub_gfxterm_set_window): Likewise.
937
938 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
939
940 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
941 from working.
942
943 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
944
945 * util/getroot.c (convert_system_partition_to_system_disk): Support
946 nbd disks.
947
948 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
949
950 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
951 infinite loop on corrupted FS.
952
953 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
954
955 Fix big-endian mtime.
956
957 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
958 together sec and usec.
959 (grub_ufs_dir): Use correct byteswapping for UFS time.
960
961 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
962
963 Support big-endian UFS1.
964
965 * Makefile.util.def (libgrubmods): Add ufs_be.c
966 * grub-core/Makefile.core.def (ufs1_be): New module.
967 * grub-core/fs/ufs_be.c: New file.
968 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
969 the file.
970
971 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
972
973 * include/grub/types.h: Fix functionality unaffecting typo in
974 GRUB_TARGET_WORDSIZE conditional macro.
975
976 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
977
978 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
979
980 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
981
982 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
983 that /netbsd appears first (when it exists).
984
985 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
986
987 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
988 Fixes Savannah bug #37558.
989
990 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
991
992 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
993 description of extract_entries_configfile.
994
995 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
996
997 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
998 preferred_address.
999 (grub_cmd_linux): Likewise.
1000 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1001 preferred_lifetime. Update all users.
1002
1003 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1004
1005 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1006 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1007
1008 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1009
1010 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1011 errors from grub-probe to /dev/null, not stdout.
1012
1013 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1016 sector 1.
1017
1018 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1019
1020 * util/grub-install.in: Make the error message if $source_dir
1021 doesn't exist more useful.
1022
1023 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1024
1025 Fix grub-emu build on FreeBSD.
1026
1027 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1028 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1029 headers on Linux.
1030 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1031 implementation is currently Linux-specific.
1032 * util/getroot.c (exec_pipe): Define only on Linux or when either
1033 libzfs or libnvpair is unavailable.
1034 (find_root_devices_from_poolname): Remove unused path variable.
1035
1036 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1037
1038 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1039 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1040 should fit before end == 63.
1041
1042 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1043
1044 * util/grub-setup.c (write_rootdev): Remove unused core_img
1045 parameter. Update all callers.
1046 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1047 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1048 GRUB_SETUP_BIOS.
1049
1050 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1053 (grub_add_tab): New function.
1054 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1055 * util/grub.d/10_illumos.in: Likewise.
1056 * util/grub.d/10_kfreebsd.in: Likewise.
1057 * util/grub.d/10_linux.in: Likewise.
1058 * util/grub.d/10_netbsd.in: Likewise.
1059 * util/grub.d/10_windows.in: Likewise.
1060 * util/grub.d/10_xnu.in: Likewise.
1061 * util/grub.d/20_linux_xen.in: Likewise.
1062 * util/grub.d/30_os-prober.in: Likewise.
1063
1064 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1065
1066 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1067 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1068 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1069 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1070 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1071 ieee1275-nocursor.
1072 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1073 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1074
1075 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1078 le-conversion.
1079 Reported by: BURETTE, Bernard.
1080
1081 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1082
1083 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1084 from comment.
1085
1086 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1087
1088 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1089 IEEE1275 machines. Fixes powerpc-emu compilation.
1090 * include/grub/terminfo.h: Likewise.
1091
1092 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1095 a const pointer.
1096 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1097 const pointer.
1098 (efiemu_set_variable): Make vendor_guid a const pointer.
1099
1100 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 Don't require grub-mkconfig_lib to generate manpages for programs.
1103
1104 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1105 dependencies, don't add grub-mkconfig_lib.
1106 (program): Pass empty adddeps.
1107 (script): Pass grub-mkconfig_lib as adddeps.
1108
1109 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1112 * util/getroot.c (grub_find_device): Likewise.
1113 (get_mdadm_uuid): Likewise.
1114 (grub_util_is_imsm): Likewise.
1115 (grub_util_pull_device): Likewise.
1116 * util/grub-probe.c (probe): Likewise.
1117
1118 2012-09-10 Benoit Gschwind <gschwind>
1119
1120 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1121 (devs): Add devpath_8.
1122
1123 2012-09-08 Peter Jones <pjones@redhat.com>
1124
1125 * grub-core/Makefile.core.def (efifwsetup): New module.
1126 * grub-core/commands/efi/efifwsetup.c: New file.
1127 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1128 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1129 New define.
1130 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1131
1132 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1133
1134 * configure.ac: Add SuSe path.
1135
1136 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1137
1138 * NEWS: Fix typo.
1139
1140 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1141
1142 * util/import_gcry.py: Sort cipher_files, to make build system
1143 generation more deterministic.
1144
1145 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1146
1147 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1148 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1149 (grub_set_datetime): Likewise.
1150
1151 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1154 warnings.
1155
1156 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1159
1160 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1163
1164 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1165
1166 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1167 required for checkouts from bzr, but it may be useful for users or
1168 distributors wishing to update translations against a tarball
1169 distribution, and it can be helpful for the tarball to be a superset
1170 of what's in bzr.
1171
1172 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1173
1174 * Makefile.am (EXTRA_DIST): Add
1175 grub-core/tests/boot/linux.init-mips.S,
1176 grub-core/tests/boot/linux.init-ppc.S, and
1177 grub-core/tests/boot/linux-ppc.cfg.
1178
1179 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1180
1181 * grub-core/mmap/mips/loongson: Remove empty directory.
1182
1183 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1184
1185 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1186 gone.
1187
1188 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1189
1190 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1191 grub-sparc64-setup.
1192
1193 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1194
1195 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1196
1197 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1198
1199 * po/POTFILES.in: Regenerated.
1200
1201 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1202
1203 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1204 (NetBSD): New subsection.
1205
1206 2012-07-22 Ales Nesrsta <starous@volny.cz>
1207
1208 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1209 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1210
1211 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1212
1213 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1214 * util/grub.d/10_hurd.in: Add missing quoting.
1215 * util/grub.d/10_illumos.in: Likewise.
1216 * util/grub.d/10_kfreebsd.in: Likewise.
1217 * util/grub.d/10_linux.in: Likewise.
1218 * util/grub.d/20_linux_xen.in: Likewise.
1219
1220 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 New command `lsefi'.
1223
1224 * grub-core/Makefile.core.def (lsefi): New module.
1225 * grub-core/commands/efi/lsefi.c: New file.
1226 * include/grub/efi/api.h: Add more GUIDs.
1227
1228 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1229
1230 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1231 (grub_bsd_elf32_hook): Likewise.
1232 (grub_bsd_elf64_size_hook): Likewise.
1233 (grub_bsd_elf64_hook): Likewise.
1234 (grub_bsd_load_elf): Likewise.
1235
1236 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1239 if hash function is unavailable.
1240 (dec_stream_header): Likewise.
1241
1242 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1245 filter state.
1246
1247 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 Fix coreboot compilation.
1250
1251 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1252 (grub_vga_text_init_real): ... this.
1253 (grub_vga_text_fini): Rename to ...
1254 (grub_vga_text_fini_real): ... this.
1255
1256 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1259
1260 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 * grub-core/lib/legacy_parse.c: Support clear and testload.
1263
1264 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1267
1268 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1271
1272 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 * grub-core/net/tftp.c (ack): Fix endianness problem.
1275 (tftp_receive): Likewise.
1276 Reported by: Michael Davidsaver.
1277
1278 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1279
1280 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1281
1282 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1285 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1286 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1287
1288 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1291 efi_mmap_size.
1292 Reported by: Stuart Hayes.
1293
1294 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1297
1298 * grub-core/Makefile.core.def (mda_text): New module.
1299 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1300 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1301 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1302 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1303 here.
1304 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1305 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1306 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1307 here.
1308 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1309 to ..
1310 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1311 ... here
1312 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1313 here.
1314 * grub-core/term/i386/vga_common.c: Removed.
1315 * include/grub/i386/vga_common.h: Likewise.
1316 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1317 (grub_vga_cr_bw_read): Likewise.
1318 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1319 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1320 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1321 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1322 grub_vga_cr_read/grub_vga_cr_write.
1323 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1324
1325 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * configure.ac: Bump version to 2.00.
1328 * grub-core/normal/main.c (features): Add feature_200_final.
1329
1330 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1331 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1332
1333 * NEWS: Fix unclarity and language mistakes.
1334
1335 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1336
1337 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1338 additional size to 3 pages.
1339 Reported by: Stuart Hayes.
1340
1341 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 * NEWS: Add 2.00 entry.
1344
1345 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1348 put explicit "/" for empty path.
1349 (wildcard_expand): Improve dprintf.
1350
1351 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1354 it's equal to currnode. This can happen with "" symlink.
1355
1356 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1357
1358 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1359 echo shell command by printf command.
1360
1361 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1364 the value returned by firmware is the maximal position, not diumension.
1365 (grub_terminfo_output_state): Use a more sane fallback.
1366
1367 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1368
1369 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1370
1371 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1372
1373 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1374 frequency to 150 MHz.
1375
1376 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 Apple fixes.
1379
1380 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1381 __APPLE_
1382 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1383 definition.
1384 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1385
1386 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 Handle slash in HFS label.
1389
1390 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1391 (grub_hfs_dir): Tanslate slash.
1392 (grub_hfs_label): Don't translate slash.
1393
1394 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1397 network protocol listing since it introduces problematic dependency on
1398 net module.
1399
1400 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1403
1404 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 Init video early on yeeloong to avoid being rebooted by watchdog.
1407
1408 * grub-core/Makefile.am (gensm712): New target.
1409 (sm712_start.S): Likewise.
1410 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1411 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1412 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1413 description.
1414 * include/grub/vga.h: Move registry definitions to...
1415 * include/grub/vgaregs.h: ... here.
1416
1417 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1420 signedness.
1421
1422 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1423
1424 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1425 platforms with firmware disk drivers in the core.
1426
1427 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1428
1429 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1430 informative verbose message.
1431 (read_lv): Handle 64-bit segment size.
1432
1433 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1434
1435 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1436
1437 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1438
1439 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1440 character but still remove trainling spaces.
1441 (grub_fat_label): Ignore archive flag.
1442
1443 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1446 cast between linux_kernel_header and linux_kernel_params.
1447
1448 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1451 type for size.
1452 (grub_raid6_recover_func_t): Likewise.
1453 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1454 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1455
1456 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1457
1458 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1459
1460 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1461
1462 Fix overflow.
1463
1464 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1465 [__NetBSD__]: Add explicit cast before bitshift.
1466
1467 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1468
1469 * configure.ac: Bump to 2.00~rc1.
1470
1471 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1474 half of $a0.
1475
1476 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1477 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1478
1479 * docs/grub.texi: Fix search syntax.
1480 (Multi-boot manual config): Put msdos rather than GPT example.
1481 Grammar corrections.
1482
1483 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1486
1487 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1488
1489 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1490
1491 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1494 message on double free. Put the value of magic in case of mismatch.
1495
1496 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1497
1498 Speed-up video on yeeloong.
1499
1500 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1501 add cached_ptr.
1502 (grub_video_sm712_video_fini): Unmap cached_ptr.
1503 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1504 (grub_video_sm712_set_active_render_target): Removed.
1505 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1506 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1507 sync caches.
1508
1509 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 Avoid flushing the same line multiple times on loongson.
1512
1513 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1514 Step in 32 bytes and not 1 byte.
1515 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1516 Likewise.
1517
1518 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1521 subvolumes.
1522
1523 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 Implement flow control for http.
1526
1527 * grub-core/net/http.c (parse_line): Handle response 206.
1528 (http_receive): Stall if too many packets are in the queue.
1529 (http_establish): Fix range header.
1530 (http_seek): Fix double free.
1531 (http_close): Likewise.
1532 (http_packets_pulled): New function.
1533 (grub_http_protocol): Set http_seek
1534 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1535 (ack_real): Set window depending on i_stall.
1536 (grub_net_send_tcp_packet): Likewise.
1537 (grub_net_tcp_stall): New function.
1538 (grub_net_tcp_unstall): Likewise.
1539 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1540 (grub_net_tcp_unstall): Likewise.
1541
1542 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1545
1546 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1549
1550 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * tests/util/grub-shell.in: Fix a typo.
1553
1554 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1555
1556 Implement flow control for tftp.
1557
1558 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1559 packets but stop only if stop condition is satisfied.
1560 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1561 `stall' instead of `eof' as stop condition.
1562 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1563 (http_err): Likewise.
1564 * grub-core/net/tftp.c (ack): Replace the first argument with data
1565 instead of socket.
1566 (tftp_receive): Stall if too many packets are in wait queue.
1567 (tftp_packets_pulled): New function.
1568 (grub_tftp_protocol): Set packets_pulled.
1569 * include/grub/net.h (grub_net_packets): New field count.
1570 (grub_net_put_packet): Increment count.
1571 (grub_net_remove_packet): Likewise.
1572 (grub_net_app_protocol): New field `packets_pulled'.
1573 (grub_net): New field `stall'.
1574
1575 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1576
1577 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1578 sync part to handle them.
1579
1580 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1583 * grub-core/net/drivers/ieee1275/ofnet.c
1584 (grub_ieee1275_net_config_real): Likewise.
1585
1586 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1589 the direct route for server/gateway.
1590
1591 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1594 IP address to server name since we may not hame the DNS.
1595
1596 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1599 freeing random buffer on failure.
1600 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1601
1602 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1605
1606 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1609 reserved bytes.
1610 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1611 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1612 Handle malloc error correctly.
1613
1614 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1617 blocks.
1618
1619 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1622 increment.
1623
1624 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1625
1626 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1627 none is explicitly specified.
1628
1629 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1632 while reallocating.
1633
1634 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 Respect netmask from bootp/dhcp.
1637
1638 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1639 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1640 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1641 into ...
1642 (grub_net_add_ipv4_local): ... this.
1643 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1644 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1645 (grub_net_add_ipv4_local): New proto.
1646
1647 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1650 determining EFI memory map size.
1651
1652 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1655
1656 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1659 when looking for partition separator.
1660
1661 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1664 Escape commas.
1665
1666 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 Restructure FAT driver to avoid hook in label reading as it hits a
1669 GCC bug.
1670
1671 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1672 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1673 (grub_fat_iterate_dir): Split into ...
1674 (grub_fat_iterate_init): ... this, ...
1675 (grub_fat_iterate_fini): ... this, ...
1676 (grub_fat_iterate_dir_next): ... and this. All users updated.
1677
1678 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1681 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1682 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1683 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1684 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1685 New fields last_key and last_key_time.
1686 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1687 extended key-esc into extended key-extended key.
1688
1689 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 Avoid unnecessary memcpy of whole video buffer.
1692
1693 * grub-core/video/fb/video_fb.c (dirty): New struct.
1694 (framebuffer): Add members current_dirty and previous_dirty.
1695 (dirty): New function.
1696 (grub_video_fb_fill_rect): Update dirty.
1697 (common_blitter): Likewise.
1698 (grub_video_fb_scroll): Likewise.
1699 (doublebuf_blit_update_screen): Copy only dirty part.
1700 (doublebuf_pageflipping_update_screen): Likewise.
1701 (grub_video_fb_doublebuf_blit_init): Init dirty.
1702 (doublebuf_pageflipping_init): Likewise.
1703 (grub_video_fb_setup): Likewise.
1704
1705 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1706
1707 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1708 poll rate.
1709
1710 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 Fix wildcard regexp dot and other special characters handling.
1713 Reported by: Robert Mabee.
1714
1715 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1716 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1717 (split_path): Trigger expansion on '?'.
1718 (unescape): New function.
1719 (wildcard_expand): Unescape parts copied without globbing.
1720 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1721 (grub_script_arglist_to_argv): Don't unescape expansions.
1722
1723 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * include/grub/net.h (grub_net_card): New member txbufsize.
1726 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1727 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1728 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1729 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1730 txbufsize.
1731 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1732 compatible property to check for macs. Set
1733 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1734 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1735 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1736 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1737 (send_card_buffer): Use txbuf.
1738 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1739 nested function out of the parent while on it.
1740
1741 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1744 presence check.
1745 (grub_ieee1275_net_config_real): Fix config pointer.
1746
1747 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1748
1749 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1750 filename parsing to non-block devices.
1751
1752 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1753
1754 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1755
1756 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1757
1758 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1759 All users updated.
1760
1761 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1762
1763 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1764 UUID search command even if hints probing failed.
1765
1766 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 * po/POTFILES.in: Regenerated.
1769
1770 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 Speed-up video on fuloong.
1773
1774 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1775 New function.
1776 (grub_pci_device_unmap_range): Handle non-cached address.
1777 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1778 add direct_ptr.
1779 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1780 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1781 (grub_video_sis315pro_set_active_render_target): Removed.
1782 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1783 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1784 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1785 sync caches.
1786 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1787 New proto.
1788
1789 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1790
1791 * docs/grub.texi (Multi-boot manual config): New section.
1792
1793 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1794
1795 Avoid slow read-back from VRAM.
1796
1797 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1798 Move from here ...
1799 * grub-core/video/fb/video_fb.c
1800 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1801 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1802 (front_target): Remove front_target. Add pages.
1803 (grub_video_fb_init): Skip setting front_pages.
1804 (grub_video_fb_fini): Likewise.
1805 (doublebuf_blit_update_screen): Use pages.
1806 (grub_video_fb_doublebuf_blit_init): Likewise.
1807 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1808 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1809 (grub_video_fb_setup): Prefer doublebuffing.
1810
1811 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1814 gzio.
1815
1816 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 Add loongson tests.
1819
1820 * tests/util/grub-shell.in: Handle loongson.
1821 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1822 drivers.
1823 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1824 Reboot instead of shutdown if REBOOT is defined.
1825
1826 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1827
1828 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1829 sized ports since unlike on real hardware qemu supports only 32-bit
1830 regs.
1831
1832 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1835 * util/grub-mkrescue.in: Handle loongson.
1836
1837 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1840 Set is_part appropriately.
1841 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1842 names. Canonicalize partition without full disk.
1843
1844 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 Revert usb-quiesce since it's wrong.
1847
1848 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1849 (grub_ofdisk_init): Don't do quiesce.
1850
1851 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1852
1853 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1854 PowerMac workaround to Xserves as well.
1855 Information supplied by: Benjamin Herrenschmidt.
1856
1857 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 Don't assume that beginning address is also the entry point on ppc.
1860
1861 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1862 (grub_linux_boot): Use linux_entry.
1863 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1864 (grub_linux_load64): Likewise.
1865
1866 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1867
1868 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1869
1870 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1873 needlessly lose the console.
1874
1875 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1878 space.
1879
1880 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1883 than current grub_get_rtc() not implemented when booted with
1884 coreboot without TSC.
1885
1886 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
1887 Add machine/time.h to kernel headers on loongson.
1888 * grub-core/Makefile.core.def (kernel): Remove
1889 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
1890 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
1891 (grub_get_rtc): Likewise.
1892 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
1893 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
1894 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
1895 * grub-core/kern/i386/tsc.c (grub_tsc_init)
1896 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
1897 rather than installing known non-working time source.
1898 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
1899 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
1900 * include/grub/time.h: Don't include machine/time.h.
1901 * include/grub/efi/time.h: Removed.
1902 * include/grub/i386/efi/time.h: Likewise.
1903 * include/grub/i386/ieee1275/time.h: Likewise.
1904 * include/grub/powerpc/ieee1275/time.h: Likewise.
1905 * include/grub/sparc64/ieee1275/time.h: Likewise.
1906 * include/grub/x86_64/efi/time.h: Likewise.
1907
1908 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 Remove dot on i and j when combining with above diacritics.
1911
1912 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
1913 value.
1914 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
1915 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
1916 with dotless variants when any combining above is present.
1917
1918 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
1921 text and not binary.
1922
1923 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 Stop polling as soon as we have the packet we were waiting for.
1926
1927 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
1928 All users updated.
1929 * grub-core/net/arp.c (have_pending): New var.
1930 (pending_req): Likewise.
1931 (grub_net_arp_send_request): Fill pending_req and use have_pending as
1932 stop indicator.
1933 (grub_net_arp_receive): Set have_pending.
1934 * grub-core/net/dns.c (recv_data): New field stop.
1935 (recv_hook): Set stop.
1936 (grub_net_dns_lookup): Init stop and use as stop condition.
1937 * grub-core/net/http.c (http_establish): Use headers_recv as stop
1938 condition.
1939 * grub-core/net/net.c (grub_net_poll_cards): New argument
1940 stop_condition. Stop when it goes true.
1941 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
1942 indicator.
1943 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
1944
1945 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 Keep TX and RX buffers on EFI rather than always allocate new ones.
1948
1949 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
1950 card. All users updated.
1951 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
1952 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
1953 (get_card_packet): Likewise.
1954 (grub_efinet_findcards): Init new fields.
1955
1956 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1957
1958 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
1959 compilation error on sparc64.
1960
1961 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 Use ITC on IA64 rather than broken routine based on daytime.
1964
1965 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
1966 ia64.
1967 (grub_get_rtc) [__ia64__]: Likewise.
1968 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
1969 (get_itc): New function.
1970 (grub_rtc_get_time_ms): Likewise.
1971 (grub_machine_init): Calibrate ITC.
1972 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
1973 Keep only on non-ia64. Don't export since it's broken and used only
1974 if TSC is unavailable.
1975
1976 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
1979 even if it's used.
1980 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
1981 Skip if parent is unused.
1982
1983 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
1986
1987 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1988
1989 Fix wildcard escaping.
1990
1991 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
1992 * grub-core/script/execute.c (wildcard_escape): .. to here.
1993 Don't escape dot.
1994 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
1995 * grub-core/script/execute.c (wildcard_unescape): .. to here.
1996 Don't escape dot.
1997 * grub-core/script/execute.c (gettext_append): Always escape.
1998 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
1999 * grub-core/script/yylex.l: Don't cut away the escaping.
2000 * tests/grub_script_echo1.in: Add tests with wildcard.
2001
2002 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2003
2004 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2005 (ftdi_hw_configure): Likewise.
2006 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2007 define.
2008 (real_config): Handle 1.5 stop bits.
2009 (pl2303_hw_configure): Likewise.
2010
2011 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * Makefile.am: Add ppc linux bootcheck.
2014 * grub-core/tests/boot/linux-ppc.cfg: New file.
2015 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2016
2017 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2018
2019 * tests/grub_script_expansion.in: Skip network protocols.
2020
2021 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2024
2025 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2028 --rom-directory.
2029 Add -graft-points.
2030
2031 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 ESCC serial driver for conducting sautomated tests in qemu.
2034 Not tested on real hardware.
2035
2036 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2037 * grub-core/term/ieee1275/escc.c: New file.
2038 * grub-core/Makefile.core.def (escc): New module.
2039
2040 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2043 invalid on error.
2044 (serial_hw_fetch): Don't read invalid handle.
2045 (serial_hw_put): Don't write into invalid handle.
2046
2047 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 Add a 1.5 stop bits value.
2050
2051 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2052 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2053 GRUB_SERIAL_STOP_BITS_1_5.
2054
2055 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2056
2057 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2058 value rather than let it uninited.
2059
2060 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 * grub-core/commands/wildcard.c (+check_file): New function.
2063 (wildcard_expand): Don't expand to non-existing files, expand with
2064 suffix and not attempt to expand if not needed.
2065
2066 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2069 out of partitions containing other partitions.
2070
2071 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2072
2073 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2074 on some qemu versions with GRUB.
2075
2076 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2077 define.
2078 (grub_openbsd_bootarg_pcibios): New struct.
2079 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2080 Add PCIINFO.
2081
2082 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * tests/util/grub-shell.in: Trim firmware output on EFI.
2085
2086 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2089 and coreboot since it's already in kernel.
2090
2091 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2092
2093 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2094 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2095 to here. New return value start. All users updated.
2096 Recursively scan linear mappings.
2097 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2098 proto.
2099 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2100 Use grub_util_get_dm_node_linear_info.
2101 * util/getroot.c (convert_system_partition_to_system_disk): Use
2102 grub_util_info rather than grub_dprintf.
2103 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2104
2105 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2106
2107 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2108
2109 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2110 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2111
2112 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * include/grub/types.h (grub_set_unaligned64): New function.
2115 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2116 (setup): Likewise.
2117
2118 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2121 (grub_ofdisk_fini): Quiesce USB devices.
2122
2123 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2126 caches.
2127
2128 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2131
2132 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * grub-core/disk/pata.c (grub_pata_pio_read)
2135 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2136 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2137
2138 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 Extend automated tests to qemu-mips.
2141
2142 * Makefile.am: reorganise tests and enable qemu-mips.
2143 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2144 * grub-core/tests/boot/linux.init-mips.S: New file.
2145 * tests/partmap_test.in: Handle ata0 disks.
2146 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2147 non-pc i386.
2148
2149 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2152 ia64.
2153 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2154 quotes while on it.
2155
2156 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2159 (grub_halt): Likewise.
2160 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2161
2162 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 * grub-core/term/serial.c (grub_serial_register)
2165 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2166 the behaviour in line with x86 platforms.
2167
2168 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2171 (grub_ata_strncpy): Likewise.
2172 (grub_ata_identify): Add missing byteswaps.
2173
2174 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2177 byte-swap.
2178 (screen_read_char): Likewise.
2179 (grub_vga_text_cls): Likewise.
2180
2181 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2182
2183 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2184 filenames.
2185 (make_file_path): Likewise.
2186
2187 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2190 machines.
2191 Tested by: Paulo Flabiano Smorigo.
2192 Crucial information about API supplied by: Coleen <Last name unknown>.
2193 Reviewed by: Coleen <Last name unknown>.
2194
2195 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * util/grub-mkimage.c: Disable -Wcast-align.
2198
2199 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2202 as they are fatal.
2203
2204 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2207
2208 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * util/grub-probe.c (escape_of_path): Fix double free.
2211
2212 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2213
2214 * grub-core/commands/videoinfo.c (hook): Show pitch.
2215
2216 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2219
2220 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2223 (probe): Add ieee1275 to OFW devices.
2224
2225 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2228
2229 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2230
2231 Handle IBM OFW path.
2232
2233 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2234 available.
2235 (of_path_of_scsi): Handle vdevice.
2236
2237 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2240 Allocate in multiples of 16 to avoid adding a few bytes free region the
2241 windows bugs upon.
2242
2243 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2246 Allocate in multiples of 16 to avoid adding a few bytes free region the
2247 windows bugs upon.
2248 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2249
2250 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2253 resolutions.
2254 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2255 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2256
2257 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2258
2259 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2260
2261 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2264 resulted in \\ at the end of the line.
2265
2266 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2269 (grub_parser_cmdline_state): Likewise.
2270 (grub_parser_split_cmdline): Likewise.
2271
2272 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2273
2274 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2275 /dev/root and /dev/dm-*.
2276
2277 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2280 fix partially stale display.
2281
2282 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2285 substraction.
2286
2287 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2290 Fix MBR remapping workaround.
2291 (grub_util_biosdisk_read) [__linux__]: Likewise.
2292
2293 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2296
2297 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2298
2299 * configure.ac: Bump to beta6.
2300
2301 2012-05-31 Christer Weinigel <christer@weinigel.se>
2302
2303 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2304
2305 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2308 (grub_cmd_linux): Likewise.
2309
2310 2012-05-31 Christer Weinigel <christer@weinigel.se>
2311
2312 Fix EHCI low-speed.
2313
2314 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2315 (GRUB_EHCI_MULT_TWO): Likewise.
2316 (GRUB_EHCI_MULT_THREE): Likewise.
2317 (GRUB_EHCI_CMASK_MASK): New enum value.
2318 (GRUB_EHCI_SMASK_MASK): Likewise.
2319 (GRUB_EHCI_CMASK_OFF): Likewise.
2320 (GRUB_EHCI_SMASK_OFF): Likewise.
2321 (grub_ehci_pci_iter): Enable periodic schedule.
2322 (grub_ehci_parse_notrun): Likewise.
2323 (grub_ehci_restore_hw): Likewise.
2324 (grub_ehci_setup_qh): Set flags for low speed transfers.
2325 (grub_ehci_find_qh): Use periodic list for low speed.
2326 (grub_ehci_setup_transfer): Check periodic queue as well.
2327 (grub_ehci_check_transfer): Likewise.
2328 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2329
2330 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2331
2332 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2333 parameter is used.
2334
2335 2012-05-31 Peter Jones <pjones@redhat.com>
2336
2337 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2338 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2339 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2340
2341 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2344 uninited variable. Allocate at least setup_sects.
2345
2346 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 Fix handling of EFI with big memory maps.
2349
2350 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2351 (real_mode_mem): Likewise.
2352 (real_mode_target): Likewise.
2353 (real_mode_pages): Likewise.
2354 (prot_mode_pages): Likewise.
2355 (linux_params): New var.
2356 (linux_cmdline): Likewise.
2357 (free_pages): Don't set real mode variables.
2358 (allocate_pages): Don't allocate real mode memory.
2359 (grub_e820_add_region): Remove the limit.
2360 (grub_linux_boot): Allocate and copy real mode memory.
2361 (grub_linux_unload): Free linux_cmdline.
2362 (grub_cmd_linux): Use temporary storage for parameters.
2363 (grub_cmd_initrd): Likewise.
2364 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2365 (linux_kernel_params): Make it 1K big.
2366
2367 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2368
2369 * Makefile.util.def: Remove -Wno-format.
2370 * grub-core/Makefile.core.def: Likewise.
2371
2372 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 * tests/cmp_unit_test.c: Add missing failure message.
2375 * tests/example_unit_test.c: Likewise.
2376 * tests/printf_unit_test.c: Likewise.
2377
2378 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2381 relaxation of protective MBR requirements.
2382
2383 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2384
2385 * configure.ac: Add condition for COND_HOST_XNU.
2386 * Makefile.util.def (10_xnu): New script.
2387 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2388
2389 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2392 objconv bug.
2393
2394 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2395
2396 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2397 Binary on other platforms stays identical.
2398
2399 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2402 Apple.
2403
2404 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2407
2408 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2409
2410 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2411 rather than defining size_t ourselves to avoid conflict.
2412
2413 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2414
2415 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2416 initialisation to avoid __bzero reference.
2417
2418 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2421 version.
2422 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2423 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2424 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2425 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2426 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2427
2428 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2431 * grub-core/kern/misc.c: Likewise.
2432 * grub-core/loader/i386/xnu.c: Likewise.
2433 * include/grub/i386/tsc.h: Likewise.
2434 * include/grub/symbol.h: Likewise.
2435
2436 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2437
2438 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2439 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2440 on older compiler.
2441
2442 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2445 Implement Apple flavour.
2446 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2447
2448 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2449
2450 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2451 (memmove) [__APPLE__]: Likewise.
2452 (memcpy) [__APPLE__]: Likewise.
2453 (memset) [__APPLE__]: Likewise.
2454 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2455 (memmove) [__APPLE__]: Likewise.
2456 (memcpy) [__APPLE__]: Likewise.
2457 (memset) [__APPLE__]: Likewise.
2458
2459 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2462 dependency discard.
2463
2464 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 * grub-core/normal/main.c (read_config_file): Provide config_file and
2467 config_directory.
2468 * util/grub.d/41_custom.in: Use config_directoy when available.
2469
2470 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2473 (grub_bfs_dir): Likewise.
2474
2475 2012-05-27 Peter Jones <pjones@redhat.com>
2476
2477 The old code gives arguments to a printf function which can't work
2478 correctly, and the compiler complains.
2479
2480 * grub-core/tests/example_functional_test.c (example_test): Add
2481 missing text.
2482 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2483 * include/grub/test.h (grub_test_assert_helper): New declaration.
2484 (grub_test_assert): Use grub_test_assert_helper.
2485
2486 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2487
2488 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2489 (exfctest): ... this to avoid overlong filenames.
2490 All users updated.
2491
2492 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2493
2494 Handle "." and ".." on squashfs.
2495
2496 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2497 Make inode numbers into stack.
2498 (grub_squash_read_symlink): Use stack.
2499 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2500 (make_root_node): Fill stack.
2501 (grub_squash_open): Use stack.
2502
2503 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2506 freeing.
2507
2508 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2511 stderr on test calls.
2512
2513 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2514
2515 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2516
2517 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2520
2521 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2524 "..".
2525
2526 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2529 (grub_hfsplus_iterate_dir): Add "." and "..".
2530
2531 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2534 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2535
2536 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2537
2538 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2539 (find_path): Handle "." and "..".
2540
2541 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2544 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2545 (grub_affs_iterate_dir): Handle hardlinks.
2546
2547 2012-05-26 Matthew Garrett <mjg@redhat.com>
2548
2549 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2550 (grub_efi_console_fini): Likewise.
2551 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2552 (grub_video_gop_fill_mode_info): Rename to ...
2553 (grub_video_gop_fill_real_mode_info): ... this.
2554 (grub_video_gop_fill_mode_info): New function.
2555 (grub_video_gop_setup): Setup double framebuffer.
2556 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2557 Free offscreen.
2558 (grub_video_gop_swap_buffers): Copy framebuffer.
2559 (grub_video_gop_fini): Free offscreen buffer.
2560 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2561 New enum.
2562 (grub_efi_gop_blt_pixel): New struct.
2563
2564 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * gentpl.py: Remove error disabling for objconv.
2567
2568 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 * configure.ac: Remove -Wunitialized as it's not available on older
2571 compilers.
2572
2573 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 Fix extent overflow comparator.
2576
2577 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2578 (grub_hfsplus_read_block): Set type.
2579 (grub_hfsplus_cmp_extkey): Compare type.
2580
2581 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2584
2585 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2588 than 0.
2589
2590 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2593 (dejavu_bold_14.pf2): New target.
2594
2595 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 * configure.ac: Fix djvu font detection.
2598
2599 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2602 ext* instead of ext2.
2603
2604 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2607 name with \0.
2608
2609 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2610
2611 * docs/grub-dev.texi: Remove dot from .png.
2612
2613 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2616 protective entry in any slot.
2617 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2618 if protective entry is found in any slot.
2619
2620 Protective entry in non-first slot make no sense but is a widespread
2621 brain damage.
2622
2623 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2626
2627 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2630 with old reiserfs.
2631 (grub_reiserfs_open): Don't free root.
2632
2633 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2636 after freeing for safety.
2637
2638 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2641 Reported by: Jordan Uggla.
2642
2643 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2644
2645 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2646 actual implementation. Specifically, clarify that the grub menu will
2647 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2648 passed.
2649
2650 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2651
2652 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2653 of r0.
2654
2655 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 Remove unjustified hard dependency of normal.mod on gfxterm.
2658
2659 * include/grub/term.h (grub_term_output): New member fullscreen.
2660 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2661 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2662 (grub_gfxterm): Set .fullscreen.
2663 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2664 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2665
2666 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2669 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2670 Mention case-insensitive AFFS, SFS and JFS.
2671
2672 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2675
2676 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2679 a bad FS.
2680
2681 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2684 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2685
2686 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2689 (grub_jfs_mount): Fill caseins.
2690 (grub_jfs_find_file): Respect caseins.
2691
2692 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2695 through UTF-16.
2696
2697 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2700 New argument origpath. All users updated.
2701
2702 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2703
2704 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2705 (read_attr): Ensure that we read start of possibly compressed block.
2706
2707 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2710 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2711 All users updated.
2712
2713 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2714
2715 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2716 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2717 (dejavu.pf2): Replace with ...
2718 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2719 this.
2720
2721 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 * util/grub.d/20_linux_xen.in: Add missing line.
2724
2725 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2728 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2729 (grub_utf16_to_utf8): Likewise.
2730
2731 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2734 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2735 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2736 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2737 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2738 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2739
2740 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2743 a bad FS.
2744
2745 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2748 (grub_udf_read_symlink): Handle read_string failure.
2749
2750 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2753 comment.
2754
2755 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 Fix handling of UDF symlinks.
2758
2759 * grub-core/fs/udf.c (read_string): New argument outbuf.
2760 All users updated.
2761 (grub_ufs_read_symlink): Rename to ...
2762 (grub_udf_read_symlink): ... this. All users updated.
2763 Handle symlinks with more than one component.
2764
2765 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2768 symlinks. Replace leading colon with a slash.
2769
2770 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2771
2772 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2773 filename.
2774
2775 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2776
2777 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2778 match in inner node.
2779
2780 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2783 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2784 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2785 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2786 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2787 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2788 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2789 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2790 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2791
2792 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 Use grub-probe and not cmp to check that disk is empty.
2795
2796 * util/grub-install.in: Use grub-probe for zero-check.
2797 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2798 (probe): Handle PRINT_ZERO_CHECK.
2799 (argp_parser): Handle -t zero_check.
2800
2801 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 Flush block cache on adding disk to device map.
2804
2805 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2806 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2807 adding.
2808 (read_device_map): Likewise.
2809 (open_device): Flush on opening.
2810
2811 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2814 (handle_symlink): Fix off-by-one error.
2815 Canonicalize the target.
2816 (grub_cpio_dir): Canonicalize the name.
2817 Fix memory leak.
2818 Set directory.
2819 (grub_cpio_open): Canonicalize the name.
2820
2821 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2824 handling.
2825
2826 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2829 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2830
2831 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2834 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2835 All users updated.
2836
2837 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2840 counterpart.
2841
2842 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 Fix UFS1 big file support.
2845
2846 * grub-core/fs/ufs.c (INODE): Removed.
2847 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2848 64-bit.
2849 (INODE_MODE): Simplify.
2850 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2851 (grub_ufs_lookup_symlink): Don't use INODE.
2852
2853 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2856
2857 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2858 (grub_minix_data): Replace log_block_size with block_size.
2859 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2860 (grub_minix_mount): Fill block_size.
2861
2862 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2863
2864 * configure.ac: Bump to beta5.
2865
2866 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 Fix wrapped HFS+ handling.
2869
2870 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2871 blocks_start. All users updated.
2872 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2873 wrapping offset.
2874 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2875
2876 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 Fix long symlinks on reiserfs.
2879
2880 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2881 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2882 (grub_reiserfs_iterate_dir): Save size for non-directories.
2883 (grub_reiserfs_open): Don't reread stat block as we already know the
2884 size.
2885 (grub_reiserfs_read): Split into...
2886 (grub_reiserfs_read_real): ... and ...
2887 (grub_reiserfs_read): ...this.
2888
2889 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 Fix non-indexed JFS.
2892
2893 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
2894 (grub_jfs_data): New field namecomponentlen.
2895 (grub_jfs_mount): Fill namecomponentlen.
2896 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2897
2898 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
2901 * tests/grub_script_echo1.in: Add tests.
2902
2903 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * util/grub-install.in: Ignore empty devicetree directory.
2906
2907 2012-05-08 Bean <bean123ch@gmail.com>
2908
2909 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
2910 All users updated.
2911 (free_rsm): Free header as well.
2912 (free_old_fragments): Fix memory leak.
2913 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
2914 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
2915 (destroy_pq): Likewise.
2916 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2917
2918 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2919
2920 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
2921 resulting hash as a precaution.
2922
2923 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2924
2925 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
2926 '_' in variable names.
2927 * grub-core/net/net.c (grub_net_network_level_interface_register):
2928 Likewise.
2929
2930 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2931
2932 Fix AFFS with non-512B blocks.
2933
2934 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
2935 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
2936 (grub_affs_data): Replace blocksize with log_blocksize.
2937 (grub_affs_read_block): Fix non-512B blocks.
2938 (grub_affs_read_symlink): Likewise.
2939 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
2940 (grub_affs_read): Fix non-512B blocks.
2941 (grub_affs_label): Likewise.
2942 (grub_affs_mtime): Likewise.
2943 (grub_affs_mount): Fix block detection routine.
2944
2945 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 Add filesystem mtime to AFFS.
2948
2949 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
2950 (aftime2ctime): New function.
2951 (grub_affs_dir): Use aftime2ctime.
2952 (grub_affs_label): Fix return value.
2953 (grub_affs_mtime): New function.
2954 (grub_affs_fs): Add mtime.
2955
2956 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
2959 UTF-8.
2960
2961 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
2964 UTF-8.
2965
2966 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2969
2970 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
2973 flags.
2974 (FLAGS_CASE_SENSITIVE): New enum value.
2975 (cache_entry): New struct.
2976 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
2977 cache_size and cache.
2978 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
2979 Add log_blocksize and fshelp_flags.
2980 (grub_sfs_read_extent): Handle non-512 blocks.
2981 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
2982 (grub_sfs_read_file): Handle non-512 blocks.
2983 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
2984 fshelp_flags.
2985 (grub_sfs_read_symlink): Handle non-512 blocks.
2986 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
2987 (grub_sfs_dir): Free cache.
2988 (grub_sfs_close): Likewise.
2989
2990 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
2993 filesystems.
2994
2995 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
2998
2999 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3002
3003 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3006 (grub_sfs_read_extent): Likewise.
3007 (grub_sfs_read_block): Likewise.
3008 (grub_sfs_mount): Likewise.
3009 (grub_sfs_iterate_dir): Likewise.
3010 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3011 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3012
3013 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 Fix errors on compressed NTFS with 512B clusters.
3016
3017 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3018 types.
3019 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3020 not 0.
3021 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3022 Relax check for inline extents.
3023 (ntfscomp): Return correct -1 on error and not 0.
3024
3025 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * util/grub-install.in: Fix handling of prefix containing spaces.
3028
3029 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3030
3031 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3032 (grub_squash_read_data): Fix offset byte-swapping.
3033
3034 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3037 per common usage and preffered in several parts of code.
3038 (grub_memcmp): Likewise.
3039 (grub_strncmp): Likewise.
3040 * include/grub/misc.h (grub_strcasecmp): Likewise.
3041 (grub_strncasecmp): Likewise.
3042 * Makefile.util.def (cmp_test): New test.
3043 (grub_script_strcmp): Likewise.
3044 * tests/cmp_unit_test.c: New file.
3045 * tests/grub_script_strcmp.in: Likewise.
3046 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3047
3048 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 * include/grub/pci.h: Move enums into no-asm part.
3051
3052 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3055
3056 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3057
3058 * util/getroot.c (find_hurd_root_device): Try to make error message
3059 and comments to translators clearer.
3060
3061 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3064
3065 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3068 btrfs.
3069
3070 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * docs/grub.cfg: Update.
3073
3074 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 * docs/grub.texi (PXE): Remove not present variables.
3077
3078 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/net/net.c (defserver_set_env): New function.
3081 (defserver_get_env): Likewise.
3082 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3083
3084 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3087 entries.
3088
3089 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3090
3091 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3092 * grub-core/kern/emu/hostdisk.c: Likewise.
3093
3094 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3095
3096 Handle hurd userspace partitions.
3097
3098 * util/getroot.c (find_hurd_root_device): New function.
3099 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3100
3101 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3104 names.
3105 Reported by: Bastian Blank.
3106
3107 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3110 crossing page boundary.
3111
3112 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 Fix B-tree search in BFS, especially in presence of non-ASCII
3115 characters.
3116
3117 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3118 (find_in_b_tree): Use standard bsearch + btree algorithm.
3119
3120 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3123 and so on.
3124
3125 2012-05-03 Matthew Garrett <mjg@redhat.com>
3126 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 Suspend broadcom cards in order to stop their DMA.
3129
3130 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3131 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3132 (pci): Don't build on x86 EFI.
3133 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3134 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3135 New function.
3136 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3137 stop_broadcom if running on EFI.
3138 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3139 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3140 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3141 (grub_pci_find_capability): New proto.
3142
3143 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3144
3145 * docs/grub.texi: Remove dot from the extension as it apparently
3146 doesn't work with some makeinfo versions.
3147
3148 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3151 with GRUB expectance.
3152
3153 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3156
3157 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3158
3159 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3160 zero after directory block since last entry may be not 0-terminated if
3161 it ends on block boundary. Use continue instead of if spanning whole
3162 loop.
3163
3164 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 Support 4K sectors UDF inline files.
3167
3168 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3169 (grub_udf_extended_file_entry): Likewise.
3170 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3171 All users updated.
3172 (get_fshelp_size): New function.
3173 (grub_udf_read_icb): Read whole block.
3174 (grub_udf_iterate_dir): Likewise.
3175 (grub_udf_dir): Likewise.
3176 (grub_udf_open): Likewise.
3177
3178 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3181
3182 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3183
3184 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3185 inline symlinks in addition to workaround.
3186
3187 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3190
3191 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3194
3195 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3198
3199 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 Fix reiserfs big seek times.
3202
3203 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3204 exact. All users updated.
3205 (grub_reiserfs_read): Use nearest btree search for seeking.
3206 Fix return value on error.
3207
3208 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3209
3210 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3211 entries.
3212 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3213 * docs/grub.texi: Update menuentry description.
3214
3215 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3218 crash when embedding onto filesystem.
3219
3220 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3223 name.
3224
3225 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3228
3229 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3232 commit.
3233
3234 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3235 2012-05-01 Bean <bean123ch@gmail.com>
3236
3237 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3238
3239 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3242 Special behaviour for len = 0 to read whole file isn't used anywhere and
3243 can cause buffer ovewrflows in several places.
3244
3245 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3248
3249 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 Handle RAIDZ on non-512B sectors.
3252
3253 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3254 max_children_ashift.
3255 (fill_vdev_info_real): Fill max_children_ashift.
3256 (read_device): Use max_children_ashift.
3257
3258 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3261
3262 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3263
3264 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3265 disk names.
3266 * docs/grub.texi: Update device.map parts.
3267
3268 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 Don't scan into non-diskfilter devices having diskfilter names.
3271
3272 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3273 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3274 handling.
3275 (scan_disk_hook): New function.
3276
3277 2012-04-29 Bean <bean123ch@gmail.com>
3278
3279 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3280 allocation.
3281
3282 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3283
3284 * configure.ac: Detect starfield theme font path
3285 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3286
3287 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3290 geometry on serial consoles.
3291
3292 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3295 because of network consoles.
3296
3297 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3298
3299 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3300 handling.
3301
3302 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3305 falls on Q syndrom.
3306
3307 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3310 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3311
3312 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3315 Allocate at lest 8192 for temporary buffer as required for lzo.
3316
3317 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3320 to cluster_bits, since it's already added in.
3321 (grub_fat_read_data): Likewise.
3322
3323 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3326 as long as cluster size is multiple of 512 bytes.
3327
3328 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * util/grub-mkrescue.in: Fix locale directory.
3331
3332 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * grub-core/kern/emu/hostdisk.c (map): Make static.
3335
3336 2012-04-23 Bean <bean123ch@gmail.com>
3337
3338 * util/grub-fstest.c (fstest): Add missing break.
3339
3340 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3341
3342 Fix hurd build.
3343
3344 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3345 not define nr variable.
3346 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3347 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3348 grub_find_device): Do not define.
3349
3350 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 Fix kfreebsd compile and behaviour.
3353
3354 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3355 format-security.
3356 * util/getroot.c: Fix wait.h include.
3357 (grub_guess_root_devices): Error if grub_find_device fails.
3358 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3359 (grub_util_get_dev_abstraction): Likewise.
3360 (grub_util_pull_device): Likewise.
3361 (grub_util_get_grub_dev): Likewise.
3362 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3363
3364 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 Fix and unify wholedisk detection.
3367
3368 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3369 is_part. All users updated.
3370 (device_is_wholedisk): Removed.
3371 (grub_util_biosdisk_get_grub_dev): Use is_part.
3372
3373 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3376 mode.
3377
3378 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 * configure.ac: Bump to beta4.
3381
3382 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3385 --fs-uuid --set UUID syntax.
3386
3387 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3390 disunification.
3391
3392 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3395
3396 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3397
3398 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3399
3400 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3401
3402 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3403
3404 2012-04-18 Bean <bean123ch@gmail.com>
3405
3406 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3407 place.
3408
3409 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3412 users updated.
3413 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3414 corresponding to GRUB partitions.
3415 (grub_util_biosdisk_write): Likewise.
3416
3417 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 Scan mdraid before LVM.
3420
3421 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3422 (grub_diskfilter_register_front): ... this.
3423 (grub_diskfilter_register_back): New function.
3424 All users of grub_diskfilter_register updated.
3425
3426 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3427
3428 * util/grub-install.in: Fix an automatic target detection bug.
3429
3430 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 * util/grub-install.in: New option --efi-directory.
3433
3434 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3435
3436 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3437 boot services if we have no other choice.
3438
3439 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3442 document it.
3443 * tests/util/grub-shell.in: Update to --directory.
3444
3445 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3448
3449 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3452 (grub_minix_read_file): Likewise.
3453 (grub_minix_read_inode): Likewise.
3454 (grub_minix_find_file): Likewise.
3455 (grub_minix_dir): Likewise.
3456
3457 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * util/grub-setup.c (setup): Fix partition handling and blocklist
3460 check.
3461
3462 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3465 redundant buggy overlap check.
3466
3467 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3470 and grub-mknetdir.
3471
3472 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3475 kh.loadflags on pre-2.00 kernels.
3476
3477 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 Terminate UNDI and PXE before launching the payload to avoid problems
3480 with DMA.
3481
3482 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3483 (grub_loader_flags): ... this. All users updated.
3484 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3485 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3486 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3487 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3488 function.
3489 (grub_pxe_restore): Likewise.
3490 (fini_hnd): New var.
3491 (GRUB_MOD_INIT): Register shutdown hook.
3492 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3493 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3494 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3495 (grub_loader_set): Rename second argument to flags.
3496
3497 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3500 written bytes.
3501 (grub_get_num_of_utf8_bytes): New function.
3502 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3503 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3504 executing it.
3505 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3506 (grub_ucs4_to_utf8): Change return type.
3507
3508 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3511 warning.
3512 * grub-core/fs/bfs.c (hop_level): Likewise.
3513 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3514
3515 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 * grub-core/lib/adler32.c: Recode due to license unclearness.
3518
3519 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3522 (test_header): Likewise.
3523
3524 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3525
3526 Fix --help formatting.
3527
3528 * util/grub-mkconfig_lib.in (print_option_help): New function.
3529 (grub_fmt): Likewise.
3530 * util/grub-install.in: Use print_option_help and grub_fmt.
3531 * util/grub-kbdcomp.in: Likewise.
3532 * util/grub-mkconfig.in: Likewise.
3533 * util/grub-mknetdir.in: Likewise.
3534 * util/grub-mkrescue.in: Likewise.
3535 * util/grub-mkstandalone.in: Likewise.
3536 * util/grub-reboot.in: Likewise.
3537 * util/grub-set-default.in: Likewise.
3538 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3539
3540 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * linguas.sh: Remove autogenerated *.po.
3543
3544 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * po/README: Move language fetcing to ...
3547 * linguas.sh: ... here.
3548 * po/README: Point to linguas.sh.
3549
3550 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * po/README: Exclude ko.po due to disclaimer problems.
3553
3554 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3557 len = 0.
3558 (grub_gettext_translate_real): Handle 0th string.
3559 (grub_gettext_translate): Ensure that "" isn't translated.
3560
3561 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3564 TRANSLATORS comment.
3565 (grub_diskfilter_print_partmap): Propagate changing of error into
3566 warning.
3567
3568 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3569
3570 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3571 to uint64_t to prevent overflow.
3572 (grub_diskfilter_lv): Increase start_extent and extent_count
3573 to uint64_t to prevent overflow.
3574
3575 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * configure.ac: Increase version.
3578
3579 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3582
3583 * po/Rules-translit: New file.
3584 * po/arabic.sed: Likewise.
3585 * po/cyrillic.sed: Likewise.
3586 * po/greek.sed: Likewise.
3587 * po/hebrew.sed: Likewise.
3588 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3589 * po/Makefile.in.in: Add extra_dist4.
3590
3591 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3594
3595 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3596 modify names. Introduce MODE_BIGENDIAN.
3597 * grub-core/fs/minix_be.c: New file.
3598 * grub-core/fs/minix2_be.c: Likewise
3599 * grub-core/fs/minix3_be.c: Likewise.
3600 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3601 minix3_be.
3602 * grub-core/Makefile.core.def (minix_be): New module.
3603 (minix2_be): Likewise.
3604 (minix3_be): Likewise.
3605
3606 2012-04-01 Felix <email@hamburg.de>
3607
3608 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3609 (devs): Add MBP 2011.
3610
3611 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3614
3615 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * grub-core/normal/cmdline.c (print_completion): New field
3618 prompt_len.
3619 (grub_cmdline_get): Handle width properly.
3620
3621 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3624
3625 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3628 after 29th of February.
3629
3630 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 Fix exfat endianness handling.
3633
3634 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3635 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3636 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3637 Byte-swap utf16 when necessary.
3638 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3639
3640 2012-03-31 Anton Blanchard <anton@samba.org>
3641 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 Fix btrfs endianness handling.
3644
3645 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3646 (lower_bound): Make root uint64_t. Use root in le.
3647 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3648 (find_path): Fix template key init.
3649 (grub_btrfs_dir): Fix mtime byteswap.
3650 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3651
3652 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3655 recursion_depth. Break infinite resursions. All users updated.
3656
3657 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3658
3659 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3660 after free.
3661 Reported by: Peter Jones.
3662
3663 2012-03-31 Anton Blanchard <anton@samba.org>
3664
3665 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3666 8 bit values.
3667
3668 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * util/grub-install.in: Fix nvram call for PreP.
3671
3672 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3673
3674 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3675 the error when some elements are missing into a warning.
3676
3677 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3680
3681 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3682
3683 * docs/grub.texi (Invoking grub-probe): New section.
3684 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3685
3686 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 Fix tab and wide character handling in editor and menu.
3689
3690 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3691 agglomerate control characters with combining marks.
3692 (bidi_line_wrap): Allow break on tab.
3693 (grub_unicode_get_comb_start): New function.
3694 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3695 and tab correctly.
3696 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3697 with a space.
3698 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3699 fixed_tab_size. All users updated.
3700 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3701 (grub_term_getcharwidth): Handle \t.
3702 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3703 and copy.
3704
3705 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3706
3707 Handle big-endian mdraid.
3708
3709 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3710 * grub-core/Makefile.core.def (mdraid09_be): New module.
3711 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3712 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3713 * grub-core/disk/mdraid_linux_be.c: New file.
3714
3715 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3718
3719 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3722 missing quotes which caused confusion among translators.
3723
3724 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3725
3726 * util/grub-mkconfig_lib.in: Fix typo.
3727
3728 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3731 spaces.
3732 * tests/grub_script_leading_whitespace.in: New file.
3733 * Makefile.util.def (grub_script_leading_whitespace): New test.
3734
3735 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3738 to work.
3739
3740 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3743 starts with control character.
3744
3745 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3748 overflow.
3749 (grub_gdb_outbuf): Likewise.
3750
3751 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3754 zero terminator. Fixes a crash.
3755
3756 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3759 beyond 4 GiB.
3760 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3761 images independently of preffered adderss field.
3762
3763 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3766 * grub-core/commands/regexp.c: Likewise.
3767 * grub-core/loader/i386/linux.c: Likewise.
3768 * grub-core/partmap/msdos.c: Likewise.
3769 * grub-core/script/execute.c: Likewise.
3770 * grub-core/term/gfxterm.c: Likewise.
3771
3772 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 Add variable parsing in $"..." and fix several mismatches with bash.
3775
3776 * Makefile.util.def (grub_script_gettext): New test.
3777 * grub-core/script/execute.c (parse_string): New function.
3778 (gettext_append): Likewise.
3779 (grub_script_arglist_to_argv): Use gettext_append.
3780 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3781 * tests/grub_script_gettext.in: New file.
3782
3783 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 Fix handling of leading spaces in scripts.
3786
3787 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3788 spaces.
3789 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3790 other than skipping \r. All users updated.
3791 * tests/grub_script_echo1.in: Add space-related tests.
3792 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3793
3794 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3795
3796 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3797
3798 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3799
3800 * configure.ac: Bump up the version to beta2.
3801
3802 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3803
3804 Fix gettext reload bugs (e.g. inability to disable gettext
3805 once enabled).
3806
3807 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3808 main_context and secondary_context. All functions updated.
3809 (grub_gettext_translate): Rename to ...
3810 (grub_gettext_translate_real): ... this. Return NULL on failed
3811 translate.
3812 (grub_gettext_translate): Handle secondary context.
3813 (grub_gettext_delete_list): Close file and zero-out the context.
3814 (grub_mofile_open): Don't call grub_gettext_delete_list.
3815 Don't close file.
3816 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3817 if locale="" to avoid pointless error message.
3818 (grub_gettext_env_write_lang): Update lang even if load fails.
3819 Handle secondary context.
3820 (grub_gettext_reread_prefix): New function.
3821 (read_main): Likewise.
3822 (read_secondary): Likewise.
3823 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3824 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3825 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3826 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3827
3828 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * configure.ac: Decrease warning level to avoid spurious warnings and
3831 to be able to compile with GCC 4.2.
3832 * Makefile.util.def: Remove -Wno-error=logical-op.
3833
3834 2012-03-10 William Bittner <william.bittner@gmail.com>
3835
3836 * util/import_unicode.py: Add missing brackets around string for
3837 python 3 support.
3838
3839 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 Fix efi chainloader on network root.
3842
3843 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3844 network devices.
3845 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3846 New function.
3847
3848 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3851 unused show_text member.
3852 * docs/grub.texi: Document "text" property.
3853
3854 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3857 in dprintf.
3858
3859 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 Fix IMSM handling on Fedora.
3862
3863 * util/getroot.c (grub_util_is_imsm): New function.
3864 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3865
3866 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * Makefile.am: Strip gold section.
3869 * conf/Makefile.common: Likewise.
3870 * gentpl.py: Likewise.
3871 * grub-core/Makefile.core.def: Likewise.
3872 * grub-core/genmod.sh.in: Likewise.
3873
3874 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3877 * util/grub.d/20_linux_xen.in: Likewise.
3878 Based on Debian patch.
3879
3880 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * util/grub.d/10_linux.in: Fix syntax error resulting in
3883 Richard Laager's patch.
3884 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3885
3886 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3887
3888 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
3889 dependencies.
3890
3891 2012-03-10 Richard Laager <rlaager@wiktel.com>
3892
3893 * util/grub.d/10_linux.in: Fix ZFS root passing.
3894
3895 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3896
3897 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3898 * grub-core/commands/xnu_uuid.c: Likewise.
3899 * grub-core/loader/efi/appleloader.c: Likewise.
3900 * grub-core/script/execute.c: Likewise.
3901 * grub-core/script/main.c: Likewise.
3902 * util/grub-mkfont.c: Likewise.
3903
3904 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * util/grub-mkfont.c (options): Use more appropriate "select" that
3907 "set" for face index.
3908
3909 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * util/grub-editenv.c (options): Gettextize command summaries.
3912
3913 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
3916 "out of memory" error messagge.
3917
3918 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
3921 of diskfilter for diskfilter on diskfilter support.
3922
3923 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
3926
3927 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * util/grub-install.in: Check for themes/starfield/theme.txt and not
3930 themes/starfield.
3931
3932 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
3935
3936 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3937
3938 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
3939
3940 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
3943 of error message.
3944
3945 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3946
3947 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
3948
3949 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
3952 message.
3953 * util/grub-install.in: Fix and gettextize error message.
3954
3955 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3956
3957 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
3958 Gettextize.
3959 * util/grub-mount.c (options): Likewise.
3960
3961 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3962
3963 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
3964 gettextize.
3965 * grub-core/commands/search_wrap.c (options): Likewise.
3966
3967 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
3970
3971 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
3974 size calculation.
3975 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
3976 none is known.
3977
3978 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3979
3980 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
3981 "temporary" since it's used in identifier and is limited in space.
3982
3983 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * po/POTFILES.in: Regenerate. Include *.h since they contain
3986 translatable strings as well.
3987
3988 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3991 byte-swap on big-endian.
3992 Reported by: Lennart Sorensen
3993
3994 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
3997 (allocate_pages): Improve dprintf.
3998 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
3999 code32_start. Fill code32_start and kernel_alignment in params.
4000 (grub_cmd_initrd): Use prot_init_space.
4001
4002 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4005
4006 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4007
4008 * util/grub-install.in: Add missing dot at the end of sentence.
4009
4010 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4013 * grub-core/commands/videotest.c: Likewise.
4014 * grub-core/loader/i386/linux.c: Likewise.
4015
4016 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4019 sentence.
4020 Reported by: Milo Casagrande.
4021
4022 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4025 * grub-core/commands/gptsync.c: Likewise.
4026 * grub-core/commands/hashsum.c: Likewise.
4027 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4028 * grub-core/commands/legacycfg.c: Likewise.
4029 * grub-core/io/gzio.c: Likewise.
4030 * grub-core/net/net.c: Likewise.
4031 * grub-core/term/gfxterm.c: Likewise.
4032 * grub-core/term/terminfo.c: Likewise.
4033 * grub-core/tests/test_blockarg.c: Likewise.
4034 * grub-core/video/video.c: Likewise.
4035 * util/grub-install.in: Likewise.
4036 * util/grub-mkfont.c: Likewise.
4037
4038 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4039
4040 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4041
4042 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4043
4044 * grub-core/commands/search_wrap.c (options): Fix a typo.
4045 Reported by: David Prévot.
4046
4047 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4048
4049 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4050 description.
4051
4052 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 * util/grub-script-check.c (main): Fix a syntax error message which was
4055 unclear.
4056
4057 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4060
4061 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4062
4063 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4064 messages.
4065
4066 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4069 without argument.
4070 * util/grub-mount.c (options): Likewise.
4071
4072 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4075
4076 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4077
4078 * grub-core/net/http.c: Add TRANSLATORS comments.
4079 * grub-core/normal/cmdline.c: Likewise.
4080 * grub-core/normal/misc.c: Likewise.
4081 * grub-core/partmap/msdos.c: Likewise.
4082 * grub-core/parttool/msdospart.c: Likewise.
4083 * grub-core/script/execute.c: Likewise.
4084 * grub-core/script/main.c: Likewise.
4085 * grub-core/term/terminfo.c: Likewise.
4086 * grub-core/video/bitmap.c: Likewise.
4087 * util/grub-install.in: Likewise.
4088 * util/grub-mkimage.c: Likewise.
4089 * util/grub-mklayout.c: Likewise.
4090 * util/grub-setup.c: Likewise.
4091
4092 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4095 with similar messages in grub-fstest.
4096
4097 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * util/grub-install.in: Unify "option requires an argument" message
4100 with similar messages in other files.
4101 * util/grub-mkconfig.in: Likewise.
4102
4103 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * util/grub-set-default.in: Replace printf with gettext_printf (the
4106 string in in question is already translated from grub-reboot)
4107
4108 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 * configure.ac: Bump up the version to beta1.
4111
4112 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4115 case when min_align = 0.
4116
4117 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4118
4119 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4120 and fix a case when line_start overflows.
4121
4122 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 * util/grub-reboot.in (usage): Mention id posibility.
4125 * util/grub-set-default.in (usage): Likewise.
4126
4127 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4130 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4131 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4132 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4133 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4134 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4135 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4136
4137 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/commands/menuentry.c (options): Remove
4140 GRUB_ARG_OPTION_REPEATABLE.
4141 Reported by: Andreas Vogel
4142
4143 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4144
4145 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4146
4147 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4148
4149 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4150 error.
4151
4152 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 Use sort -V by the idea of Georgi Georgiev.
4155
4156 * util/grub-mkconfig_lib.in (version_sort): New function.
4157 (version_test_numeric): Use version_sort.
4158
4159 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 Use submenus in grub-mkconfig.
4162
4163 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4164 * util/grub-mkconfig_lib.in (grub_quote): New function.
4165 (gettext_printf): Use gettext and not gettext_quoted to fix several
4166 messages.
4167 * util/grub.d/10_hurd.in: Use submenus.
4168 * util/grub.d/10_kfreebsd.in: Likewise.
4169 * util/grub.d/10_linux.in: Likewise.
4170 * util/grub.d/10_netbsd.in: Likewise.
4171 * util/grub.d/20_linux_xen.in: Likewise.
4172 * util/grub.d/30_os-prober.in: Likewise.
4173 * util/grub.d/10_illumos.in: Add missing quoting.
4174 * util/grub.d/10_windows.in: Likewise.
4175
4176 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 Fix menu title instability bug.
4179
4180 * grub-core/commands/menuentry.c (options): New option --id.
4181 (grub_normal_add_menu_entry): New argument id. All users updated.
4182 (grub_cmd_menuentry): Handle --id.
4183 (grub_menu_init): Accept unknown arguments.
4184 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4185 feature_menuentry_options.
4186 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4187 saved_entry.
4188 (get_entry_number): Match with id as well.
4189 * include/grub/menu.h (grub_menu_entry): New member id.
4190 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4191 * util/grub.d/00_header.in: Define menuentry_id_option.
4192 * util/grub.d/10_hurd.in: Define id.
4193 * util/grub.d/10_illumos.in: Likewise.
4194 * util/grub.d/10_kfreebsd.in: Likewise.
4195 * util/grub.d/10_linux.in: Likewise.
4196 * util/grub.d/10_netbsd.in: Likewise.
4197 * util/grub.d/10_windows.in: Likewise.
4198 * util/grub.d/20_linux_xen.in: Likewise.
4199 * util/grub.d/30_os-prober.in: Likewise.
4200
4201 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4204 "scope" with "body".
4205
4206 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4209 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4210 prot_size and prot_file_size.
4211
4212 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4215 All users updated. If easily=1 require raid-5/-6 to be full.
4216 (is_node_readable): Likewise.
4217 (scan_devices): Scan incomplete but readable LVs at the end.
4218 (grub_diskfilter_memberlist): Pull missing devices.
4219 (insert_array): Skip scanning until device is complete or scan is
4220 done otherwise.
4221 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4222 check.
4223 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4224 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4225
4226 2012-03-03 Matthew Garrett <mjg@redhat.com>
4227 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4228
4229 Avoid EFI boot services when loading Linux.
4230
4231 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4232 avoid_efi_bootservices. All users updated.
4233 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4234 argument avoid_efi_bootservices. All users updated.
4235 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4236 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4237 align, min_align, relocatable, prefered_address. All users updated.
4238 Allocate avoiding boot services if kernel is relocatable.
4239 (grub_cmd_linux): Check if kernel is relocatable.
4240 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4241 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4242 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4243 avoid_efi_boot_services.
4244 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4245 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4246 (linux_kernel_params): Likewise.
4247
4248 2012-03-03 Matthew Garrett <mjg@redhat.com>
4249 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 Use EDID on EFI.
4252
4253 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4254 datasize_out.
4255 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4256 modes. Set gop_handle.
4257 (grub_video_gop_get_edid): New function.
4258 (grub_gop_get_preferred_mode): Likewise.
4259 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4260 (grub_video_efi_gop_adapter): Set .get_edid.
4261 * include/grub/efi/edid.h: New file.
4262 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4263
4264 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4265
4266 * util/grub-install.in: Load efivars unconditionally.
4267
4268 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4269
4270 * po/Rules-piglatin: Change suffix from .po-update-en to
4271 .po-update-en-piglatin.
4272
4273 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4274
4275 Add a pig farm.
4276
4277 * po/piglatin.sed: New file.
4278 * po/en@piglatin.header: Likewise.
4279 * po/Rules-piglatin: Likewise.
4280 * po/README: Add en@piglatin to autogenerated languages.
4281
4282 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4283
4284 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4285 "Command for ...".
4286 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4287 "Check" since we don't check anything.
4288 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4289 is 64-bit one.
4290 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4291 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4292 (grub_md_sha512_real): Likewise.
4293
4294 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * grub-core/commands/gptsync.c: Fix typographic quoting.
4297 * grub-core/commands/ieee1275/suspend.c: Likewise.
4298 * grub-core/commands/parttool.c: Likewise.
4299 * grub-core/commands/search_wrap.c: Likewise.
4300 * grub-core/commands/videoinfo.c: Likewise.
4301 * grub-core/gfxmenu/gui_label.c: Likewise.
4302 * grub-core/hello/hello.c: Likewise.
4303 * grub-core/kern/emu/main.c: Likewise.
4304 * grub-core/net/net.c: Likewise.
4305 * grub-core/normal/menu.c: Likewise.
4306 * grub-core/normal/menu_text.c: Likewise.
4307 * grub-core/normal/misc.c: Likewise.
4308 * util/grub-editenv.c: Likewise.
4309 * util/grub-install.in: Likewise.
4310 * util/grub-kbdcomp.in: Likewise.
4311 * util/grub-mkconfig.in: Likewise.
4312 * util/grub-mknetdir.in: Likewise.
4313 * util/grub-mkrescue.in: Likewise.
4314 * util/grub-mkstandalone.in: Likewise.
4315 * util/grub-reboot.in: Likewise.
4316 * util/grub-set-default.in: Likewise.
4317 * util/grub-setup.c: Likewise.
4318 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4319
4320 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4321
4322 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4323 * grub-core/commands/keystatus.c: Likewise.
4324 * grub-core/commands/loadenv.c: Likewise.
4325 * grub-core/commands/probe.c: Likewise.
4326 * grub-core/commands/regexp.c: Likewise.
4327 * grub-core/commands/true.c: Likewise.
4328 * grub-core/commands/videoinfo.c: Likewise.
4329 * grub-core/disk/cryptodisk.c: Likewise.
4330 * grub-core/disk/ldm.c: Likewise.
4331 * grub-core/disk/loopback.c: Likewise.
4332 * grub-core/disk/luks.c: Likewise.
4333 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4334 * grub-core/kern/disk.c: Likewise.
4335 * grub-core/kern/emu/hostdisk.c: Likewise.
4336
4337 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4340 * util/grub-install.in: Add missing quote in the comment.
4341
4342 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4343
4344 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4345 * grub-core/commands/lsmmap.c: Likewise.
4346 * grub-core/commands/minicmd.c: Likewise.
4347 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4348 * grub-core/commands/regexp.c: Likewise.
4349 * grub-core/gdb/gdb.c: Likewise.
4350 * grub-core/term/gfxterm.c: Likewise.
4351 * util/grub-mkconfig.in: Likewise.
4352 * util/grub-mkfont.c: Likewise.
4353 * util/grub-mklayout.c: Likewise.
4354 * util/grub-mknetdir.in: Likewise.
4355 * util/grub-mkrescue.in: Likewise.
4356 * util/grub.d/30_os-prober.in: Likewise.
4357
4358 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4361 with "Direct color" and "Packed" with "Packed pixel".
4362 (grub_cmd_videoinfo): Simplify legend.
4363
4364 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4367 absolutely unclear error message.
4368
4369 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4370
4371 * util/grub-mkstandalone.in: Remove confusing leftover print.
4372
4373 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4374
4375 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4376 comments.
4377 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4378 (GRUB_MOD_INIT): Likewise.
4379 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4380 VGA mode.
4381 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4382 comments.
4383 * util/grub-install.in (usage): Likewise.
4384 Spell ID in whole letters.
4385 Add missing ending dot.
4386 Quote variables.
4387 * util/grub-reboot.in: Fix capitalisation.
4388 * util/grub-set-default.in: Likewise.
4389
4390 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4393 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4394 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4395 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4396 Disable -Werror for -Wdeprecated-declarations.
4397 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4398 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4399 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4400 (grub_util_get_grub_dev): Make luks handling dependent on
4401 HAVE_DEVICE_MAPPER and not __linux__.
4402 (get_win32_path): Fix format security.
4403 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4404 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4405 Don't try grub_find_zpool_from_dir.
4406 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4407 #ifdef-out paresdir.
4408
4409 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 * util/grub-pe2elf.c (usage): Add missing noreturn.
4412 (write_section_data): Rename name to shname to avoid shadowing.
4413 (write_symbol_table): Rename name to symname to avoid shadowing.
4414 Fix write_reloc_section call.
4415
4416 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4419 to ensure that it's after the last byte of .text.
4420
4421 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 * util/ieee1275/ofpath.c (my_isdigit): New function.
4424 (trailing_digits): Use my_isdigit.
4425 (strip_trailing_digits): Likewise.
4426
4427 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4428
4429 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4430 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4431
4432 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * grub-core/kern/i386/pc/startup.S: Define __start.
4435
4436 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4439 strip already transforms he format.
4440
4441 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4444
4445 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 * util/grub-install.in: Add missing gettext init.
4448 * util/grub-kbdcomp.in: Likewise.
4449 * util/grub-mkconfig.in: Likewise.
4450 * util/grub-mknetdir.in: Likewise.
4451 * util/grub-mkrescue.in: Likewise.
4452 * util/grub-mkstandalone.in: Likewise.
4453 * util/grub-reboot.in: Likewise.
4454 * util/grub-set-default.in: Likewise.
4455 * util/grub.d/00_header.in: Likewise.
4456 * util/grub.d/10_hurd.in: Likewise.
4457 * util/grub.d/10_windows.in: Likewise.
4458 * util/grub.d/30_os-prober.in: Likewise.
4459 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4460
4461 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * po/Rules-swiss: Fix header comment.
4464
4465 2012-02-29 Andreas Vogel <anvoit>
4466
4467 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4468 resulted in leak of arguments.
4469
4470 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4473 reed_solomon_size const definition instead of computing it since
4474 Apple assembler doesn't support the later.
4475
4476 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 * gentpl.py (kernel): Rewrite Apple part.
4479
4480 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4483
4484 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4485
4486 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4487 ELF section gap.
4488 (load_image): Likewise.
4489
4490 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * configure.ac: Fix a typo in previous commit.
4493
4494 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 Don't add -Wl,-N on Apple platform.
4497
4498 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4499 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4500
4501 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 * grub-core/Makefile.core.def (lzma_decompress): Use
4504 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4505
4506 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * grub-core/genmod.sh.in: Rewrite the Apple part.
4509
4510 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4513 comparison.
4514
4515 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * acinclude.m4 (grub_CHECK_PIC): New test.
4518 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4519
4520 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4523 to avoid the warning.
4524
4525 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4526
4527 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4528 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4529 after. All users updated.
4530
4531 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4532
4533 Use the common size routine in hostfs so we can read disks as well.
4534
4535 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4536 (grub_util_get_fd_size): ... this. Return size in bytes.
4537 All users updated.
4538 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4539 grub_util_get_fd_size.
4540
4541 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4544 Add blocksize retrieval.
4545
4546 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 * configure.ac: Restore CFLAGS after efiemu check.
4549
4550 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4551
4552 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4553 Apple bug.
4554
4555 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4556
4557 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4558
4559 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4562 (grub_cmd_halt): Likewise.
4563
4564 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4565
4566 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4567 for local arithmetics.
4568 Break %sp init into 2 instructions.
4569 Add 0 byte at the end.
4570
4571 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4572
4573 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4574 before loops.
4575
4576 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4577
4578 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4579 for context.
4580
4581 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4582
4583 * grub-core/disk/ldm.c (make_vg): Init part.name.
4584 (grub_ldm_detect): Silence spurious warning.
4585 (grub_util_is_ldm): Likewise.
4586
4587 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4588
4589 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4590 sane value to avoid a spurious warning.
4591
4592 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4593
4594 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4595 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4596
4597 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4600 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4601
4602 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4605 hardcoding the relevant info.
4606
4607 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4608
4609 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4610 missing const qualifiers.
4611 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4612
4613 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * util/getroot.c [__APPLE__]: Add missing includes.
4616 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4617
4618 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4619
4620 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4621
4622 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4623
4624 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4625 avoid conflicts.
4626
4627 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4630
4631 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4634 and grub_file_close call.
4635
4636 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 Add LZSS Mach-O support (needed for new xnu kernelcache).
4639
4640 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4641 * grub-core/loader/lzss.c: New file.
4642 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4643 on Mach-O open failure.
4644 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4645 Don't free cmdsXX in uncompressedXX is set.
4646 (grub_macho_file): Init new fields.
4647 New argument is_64bit. All users updated.
4648 Handle compressed. Error out if no suitable architecture is found.
4649 Don't close file.
4650 (grub_macho_open): New argument is_64bit. All users updated.
4651 * grub-core/loader/macho32.c: Add defines for new fields.
4652 * grub-core/loader/macho64.c: Likewise.
4653 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4654 (grub_macho_parse): Handle compressed.
4655 Defer actual processing if compressed.
4656 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4657 "filename". All users updated.
4658 (grub_macho_size): New argument "filename". All users updated.
4659 (grub_macho_get_entry_point): Likewise.
4660 (grub_macho_load): Handle compressed.
4661 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4662 (GRUB_MACHO_LZSS_OFFSET): New define.
4663 (grub_decompress_lzss): New proto.
4664 * include/grub/machoload.h (grub_macho_file): New fields to handle
4665 compressed.
4666 (grub_macho_contains_macho64): Remove proto.
4667 (grub_macho_contains_macho32): Likewise.
4668 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4669
4670 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4673
4674 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4675
4676 Fix make dist.
4677
4678 * Makefile.am (starfield_theme_files): New var.
4679 (starfield_DATA): Use starfield_theme_files.
4680 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4681 Add bootcheck-related files.
4682 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4683 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4684 and font_char_metrics.txt.
4685 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4686 (setjmp): Add lib/ia64/longjmp.S.
4687 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4688 * po/POTFILES.in: Regenerate.
4689 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4690 DISTFILES.common.extra1.
4691 * util/devicemap.c: Removed.
4692 * grub-core/lib/i386/relocator_backward.S: Likewise.
4693 * util/import_gcry.py: Remove unused files. Add extra_dist for
4694 ChangeLog.
4695
4696 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4699 grub_gettext_delete_list before changing grub_gettext_max to avoid
4700 running out of array bounds.
4701
4702 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4703
4704 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4705 grub_vga_text_init/grub_vga_text_fini.
4706
4707 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4708
4709 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4710
4711 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * configure.ac: Bump to 2.00~beta0.
4714
4715 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4718 missing initialisation.
4719
4720 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4721
4722 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4723
4724 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4725
4726 Support v2 xnu boot arguments.
4727
4728 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4729 New argument fsbfreq_out.
4730 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4731 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4732 be used.
4733 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4734 darwin_version.
4735 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4736 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4737 (grub_xnu_boot_params): Rename to ...
4738 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4739 (grub_xnu_boot_params_v2): New struct.
4740
4741 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4744 zeroing of CRC field before computing CRC.
4745
4746 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4749 Change order of allocations to decrease fragmentation.
4750
4751 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4752
4753 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4754
4755 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4756
4757 Use write-combining MTRR to speed up video with buggy BIOSes.
4758
4759 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4760 (cpuid): New define.
4761 (rdmsr): Likewise.
4762 (wrmsr): Likewise.
4763 (mtrr_base): Likewise.
4764 (mtrr_mask): Likewise.
4765 (grub_vbe_enable_mtrr_entry): New function.
4766 (grub_vbe_enable_mtrr): Likewise.
4767 (grub_vbe_disable_mtrr): Likewise.
4768 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4769 control off to BIOS.
4770 (grub_video_vbe_init): Fill mtrr.
4771 (grub_video_vbe_fini): Disable mtrr.
4772 (grub_video_vbe_get_info_and_fini): Likewise.
4773 (grub_video_vbe_setup): Enable mtrr.
4774
4775 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4776
4777 * include/grub/partition.h (grub_partition_map): Change prototype of
4778 embed to take a maximum value for nsectors.
4779 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4780 * include/grub/fs.h (grub_fs): Likewise.
4781 * grub-core/partmap/msdos.c (embed_signatures): New array.
4782 (pc_partition_map_embed): Check for and avoid sectors matching any
4783 of the signatures in embed_signatures, up to max_nsectors.
4784 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4785 returned sector map to max_nsectors.
4786 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4787 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4788 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4789 * util/grub-setup.c (setup): Allow for the embedding area being
4790 split into multiple blocklists. Tell dest_partmap->embed the
4791 maximum number of sectors we care about.
4792
4793 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4796 Specify blocklist_install and reserver_first_sector for all fs.
4797 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4798 blocklists.
4799
4800 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * util/grub-install.in: Clarify strings.
4803 Fix source dir check.
4804
4805 2012-02-27 Richard Laager <rlaager@wiktel.com>
4806
4807 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4808 "zfs" and "fuse.zfs" as synonyms.
4809
4810 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 * configure.ac: Put platform and target_cpu substitutions back since
4813 they are used for directories.
4814
4815 2012-02-27 Richard Laager <rlaager@wiktel.com>
4816 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4817
4818 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4819 * util/grub.d/20_linux_xen.in: Likewise.
4820
4821 2012-02-27 Richard Laager <rlaager@wiktel.com>
4822
4823 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4824 with full paths.
4825
4826 2012-02-27 Richard Laager <rlaager@wiktel.com>
4827
4828 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4829 unescape.
4830
4831 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4832
4833 Don't use insecure popen in getroot.
4834
4835 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4836 (exec_pipe): ... here.
4837 (find_root_devices_from_poolname): Use exec_pipe.
4838
4839 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4840
4841 Remove platform and target_cpu replacement.
4842
4843 * configure.ac: Remove platform and target_cpu substitutions.
4844 * tests/util/grub-shell.in: Use modinfo.
4845 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4846 explicitly.
4847
4848 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4849
4850 Autodetect platform in grub-install but allow override.
4851
4852 * util/grub-install.in: Autodetect platform. Support --target and
4853 --directory. Read platform from modinfo.sh.
4854
4855 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4856
4857 Support btrfs multi-volume probe.
4858
4859 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4860 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4861 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4862 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4863 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4864 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4865 grub_find_root_devices_from_btrfs if on btrfs.
4866
4867 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 Remove any awareness of *.c util files about target.
4870
4871 * Makefile.util.def (grub-setup): Split to ...
4872 (grub-bios-setup): ... and this.
4873 (grub-sparc64-setup): ... and this.
4874 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4875 * docs/man/grub-setup.h2m: Split into ...
4876 * docs/man/grub-sparc64-setup.h2m: ... this.
4877 * docs/man/grub-bios-setup.h2m: ... and this.
4878 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4879 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4880 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4881 (grub_target_addr_t): Remove.
4882 (grub_target_size_t): Remove.
4883 (grub_target_ssize_t): Remove.
4884 * util/grub-install.in: Use new grub-*-setup.
4885 * util/grub-mkimagexx.c (Elf_Word): New define.
4886 (Elf_Half): Likewise.
4887 (Elf_Section): Likewise.
4888 (ELF_ST_TYPE): Likewise.
4889 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
4890 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
4891
4892 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4893
4894 Replace grub_target_addr with more appropriate types.
4895
4896 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
4897 grub_target_addr with grub_addr.
4898 * grub-core/commands/iorw.c (grub_cmd_read): Replace
4899 grub_target_addr with grub_port.
4900 (grub_cmd_write): Likewise.
4901 * grub-core/commands/memrw.c (grub_cmd_read): Replace
4902 grub_target_addr with grub_addr.
4903 (grub_cmd_write): Likewise.
4904 * grub-core/video/efi_uga.c (find_line_len): Likewise.
4905
4906 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
4909 const qualifier for vendor_guid.
4910
4911 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4912
4913 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4914 const qualifier.
4915 (efiemu_memequal): Likewise.
4916 (find_variable): Likewise.
4917
4918 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 Fix missing console prototype on qemu-mips.
4921
4922 * include/grub/mips/qemu_mips/console.h: New file.
4923
4924 2012-02-27 Matthew Garrett <mjg@redhat.com>
4925 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
4928 * include/grub/efi/efi.h: Likewise.
4929 * include/grub/efi/api.h: Add guid for EFI-specified variables.
4930 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
4931 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
4932 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
4933 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
4934 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
4935
4936 2012-02-27 Matthew Garrett <mjg@redhat.com>
4937
4938 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
4939
4940 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4941
4942 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
4943 error.
4944
4945 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4946
4947 * configure.ac: Remove inappropriate use of program_transform_name
4948 on grubdir and bootdir but allow explicit specification of those
4949 variables.
4950
4951 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 * util/grub-mknetdir.in (grub_prefix): Removed.
4954 (subdir): Use @bootdirname@ and @grubdirname@.
4955
4956 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
4959
4960 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * po/POTFILES.in: Regenerated.
4963
4964 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4965
4966 Remove improper use of program_transform_name on pkglibrootdir.
4967
4968 * configure.ac (pkglibrootdir): Removed.
4969 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
4970 * util/grub-mkimage.c: Likewise.
4971
4972 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4973
4974 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
4975 warning.
4976
4977 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * util/grub-install.in: Use file identifier if no UUID is available
4980 or user explicitly prompted for it.
4981
4982 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
4983
4984 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
4985 (freebsd_get_zfs): New function.
4986 (grub_freebsd_boot): Pass zfs UUID.
4987 (grub_cmd_freebsd): Set zfs UUID.
4988
4989 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * conf/Makefile.common (platformdir): Base on pkglibdir and not
4992 pkglibrootdir.
4993
4994 2012-02-27 Mike Gilbert <floppym@gentoo.org>
4995
4996 Add configure flag to control libzfs integration.
4997
4998 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
4999
5000 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5003 device.
5004 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5005 small devices.
5006
5007 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5008
5009 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5010 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5011 be used on non-modules.
5012
5013 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5014 Rename to grub_boot_init.
5015 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5016 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5017 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5018 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5019 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5020 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5021 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5022 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5023 includes.
5024 (grub_machine_init): Remove empty inits.
5025 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5026 includes.
5027 (grub_machine_init): Remove empty inits.
5028 * grub-core/term/arc/console.c: Remove explicit proto.
5029 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5030 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5031 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5032 grub_at_keyboard_fini.
5033 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5034 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5035 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5036 grub_gfxterm_fini.
5037 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5038 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5039 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5040 grub_vgatext_fini.
5041 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5042 * grub-core/term/serial.c (GRUB_MOD_INIT)
5043 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5044 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5045 grub_serial_fini.
5046 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5047 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5048 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5049 grub_terminfo_fini.
5050 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5051 (GRUB_MOD_FINI): Likewise.
5052 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5053 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5054 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5055 grub_video_radeon_fuloong2e_fini.
5056 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5057 [LOONGSON]: Rename to grub_video_sis315pro_init.
5058 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5059 grub_video_sis315pro_fini.
5060 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5061 [LOONGSON]: Rename to grub_video_sm712_init.
5062 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5063 grub_video_sm712_fini.
5064 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5065 (grub_at_keyboard_fini): Likewise.
5066 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5067 Don't declare grub_{modname}_init.
5068 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5069 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5070 New proto.
5071 (grub_keylayouts_fini) [!EMU]: Likewise.
5072 * include/grub/serial.h (grub_serial_init) [!EMU]:
5073 New proto.
5074 (grub_serial_fini) [!EMU]: Likewise.
5075 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5076 New proto.
5077 (grub_terminfo_fini) [!EMU]: Likewise.
5078 * include/grub/video.h (grub_font_init) [!EMU]:
5079 New proto.
5080 (grub_font_fini) [!EMU]: Likewise.
5081 (grub_gfxterm_init) [!EMU]: Likewise.
5082 (grub_gfxterm_fini) [!EMU]: Likewise.
5083 (grub_video_sm712_init) [!EMU]: Likewise.
5084 (grub_video_sm712_fini) [!EMU]: Likewise.
5085 (grub_video_sis315pro_init) [!EMU]: Likewise.
5086 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5087 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5088 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5089
5090 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 Make nand a prefix for nand devices.
5093
5094 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5095
5096 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5097
5098 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5099 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5100
5101 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5102
5103 * include/grub/env.h (grub_env_find): Remove prototype.
5104 * grub-core/kern/env.c (grub_env_find): Make static.
5105 (grub_env_set): Remove useless set.
5106
5107 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5108
5109 * grub-core/kern/i386/realmode.S: Remove useless align.
5110
5111 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * include/grub/dl.h (grub_dl_load_file): Don't export.
5114
5115 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5116
5117 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5118 grub_dprintf.
5119
5120 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5121
5122 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5123 grub_errors.
5124 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5125 not reloading whole superblock but only the part which is really needed.
5126 Remove useless grub_errors.
5127 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5128 grub_errors.
5129
5130 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 Don't export grub_get_rtc.
5133
5134 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5135 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5136
5137 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5138
5139 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5140
5141 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5144 argument since it can be deduced from diskfilter. All users updated.
5145
5146 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 Remove prio_list.
5149
5150 * include/grub/list.h (grub_prio_list): Removed.
5151 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5152 GRUB_COMMAND_PRIO_MASK.
5153 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5154 GRUB_COMMAND_FLAG_ACTIVE.
5155 (grub_prio_list_insert): Removed.
5156 (grub_prio_list_remove): Likewise.
5157 (GRUB_AS_PRIO_LIST): Likewise.
5158 (GRUB_AS_PRIO_LIST_P): Likewise.
5159 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5160 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5161 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5162 * grub-core/kern/command.c (grub_register_command_prio): Inline
5163 the prio_list code.
5164 (grub_unregister_command): Likewise.
5165
5166 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5167
5168 Fix interrupt mixup from previous commit.
5169
5170 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5171 (grub_realidt): New var.
5172 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5173 Load idt.
5174 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5175 New declaration.
5176 (grub_relocator16_boot): Set grub_relocator16_idt.
5177 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5178 (LOCAL(realidt)): ... this.
5179 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5180 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5181 (grub_realidt): New variable.
5182
5183 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5184
5185 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5186 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5187 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5188 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5189 Gettextize.
5190 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5191 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5192 * po/POTFILES.in: Regenerate.
5193
5194 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5197 errors.
5198
5199 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5202 \0.
5203 (add_length): Likewise.
5204
5205 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5206 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5207
5208 GDB serial and backtrace support.
5209
5210 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5211 (prot_to_real): Likewise.
5212 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5213 * grub-core/Makefile.core.def (backtrace): New module.
5214 (gdb): Likewise.
5215 * grub-core/gdb/cstub.c: New file.
5216 * grub-core/gdb/gdb.c: Likewise.
5217 * grub-core/gdb/i386/idt.c: Likewise.
5218 * grub-core/gdb/i386/machdep.S: Likewise.
5219 * grub-core/gdb/i386/signal.c: Likewise.
5220 * grub-core/lib/i386/backtrace.c: Likewise.
5221 * grub-core/lib/backtrace.c: Likewise.
5222 * include/grub/backtrace.h: Likewise.
5223 * include/grub/gdb.h: Likewise.
5224 * include/grub/i386/gdb.h: Likewise.
5225
5226 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5227
5228 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5229 New function.
5230 (add_length): Likewise.
5231 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5232 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5233 proto.
5234 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5235 __argp_get_display_len.
5236
5237 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5238
5239 $"..." support in scripts.
5240
5241 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5242 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5243 * grub-core/script/yylex.l: Likewise.
5244 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5245 value.
5246
5247 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5248
5249 * gentpl.py: Remove obsolete pkglib_DATA handling.
5250
5251 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5254 mailing list.
5255
5256 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5257 * util/grub-kbdcomp.in: Likewise.
5258 * util/grub-mkconfig.in: Likewise.
5259 * util/grub-mkconfig_lib.in: Likewise.
5260 * util/grub-mknetdir.in: Likewise.
5261 * util/grub-mkrescue.in: Likewise.
5262 * util/grub-mkstandalone.in: Likewise.
5263 * util/grub-reboot.in: Likewise.
5264 * util/grub-set-default.in: Likewise.
5265 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5266
5267 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5268
5269 Remove GRUB_PREFIX.
5270
5271 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5272 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5273 used for backward compatibility.
5274
5275 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 Add new all_video module.
5278
5279 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5280 * grub-core/Makefile.core.def (all_video): New module.
5281 * grub-core/genmoddep.awk: Generate dependency of all_video from
5282 video.lst.
5283 * grub-core/lib/fake_module.c: New file.
5284 * grub-core/normal/main.c (features): Add feature_all_video_module.
5285 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5286 don't do explicit search again.
5287 insmod all_video in load_video if available.
5288
5289 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 Another round of string clarification and adding TRANSLATORS comments.
5292
5293 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5294
5295 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5296
5297 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5298
5299 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5300 to grub_ssize_t.
5301 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5302 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5303
5304 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5305
5306 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5307 trailing newline implicitly. All users updated.
5308
5309 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5310
5311 Implement serial on IEEE1275 and EFI.
5312
5313 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5314 on emu. Mention arc and emu as the only platforms without serial
5315 support.
5316 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5317 ieee1275 platforms.
5318 * grub-core/term/efi/serial.c: New file.
5319 * grub-core/term/ieee1275/serial.c: Likewise.
5320 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5321 specification if no ns8250 driver is available.
5322 (grub_cmd_serial): Likewise.
5323 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5324 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5325 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5326 (grub_efi_parity_type_t): New type.
5327 (grub_efi_stop_bits_t): Likewise.
5328 (grub_efi_serial_io_interface): New struct.
5329 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5330 available for all interfaces.
5331 Add EFI and IEEE1275 fields.
5332 (grub_ofserial_init): New proto.
5333 (grub_efiserial_init): Likeiwse.
5334 * util/grub.d/00_header.in: Don't check for the presence of serial
5335 module.
5336
5337 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5338
5339 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5340 name as if it was an alias.
5341
5342 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5343
5344 * grub-core/commands/lsacpi.c (options): Fix typo.
5345
5346 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 Convert grub-emu to argp.
5349
5350 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5351 emu.
5352 * util/argp_common.c: Rename to ...
5353 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5354 Add missing includes.
5355 * grub-core/kern/emu/main.c: Convert to argp.
5356 * po/POTFILES.in: Regenerate.
5357 * util/grub-install.in (usage): Make first letter lowcase in messages
5358 for uniformity.
5359 * util/grub-setup.c (options): Likewise.
5360
5361 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5362
5363 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5364 Put back accidently commented-out code.
5365
5366 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5369 loop check using Brent algorithm.
5370 (grub_hfsplus_btree_search): Likewise.
5371
5372 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5373
5374 * util/grub-install.in: Fix usage of wrong device for PreP install.
5375
5376 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5377
5378 * conf/Makefile.common (CFLAGS_GNULIB): Add
5379 -Wno-unsafe-loop-optimizations.
5380 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5381 on tools.
5382 * grub-core/commands/legacycfg.c: Add pragma to skip
5383 -Wunsafe-loop-optimizations.
5384 (check_password_md5_real): Fix loop counter type.
5385 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5386 reading.
5387 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5388 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5389 loop condition.
5390 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5391 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5392 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5393 condition.
5394 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5395 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5396 avoid possible infinite loops.
5397 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5398 and -Wunsafe-loop-optimizations.
5399 * grub-core/script/yylex.l: Likewise.
5400 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5401 (print_glyphs): Avoid infinite loops.
5402 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5403
5404 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5405
5406 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5407 to avoid infinite loop.
5408 (disp_acpi_rsdt_table): Likewise.
5409
5410 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5411
5412 * grub-core/font/font.c (grub_font_load): Add support for default
5413 path for fonts ($prefix/fonts).
5414 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5415 for checking if string is a path.
5416 * grub-core/normal/main.c (features): Add feature_default_font_path.
5417 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5418 * util/grub.d/00_header.in: Use default directory if possible.
5419 * util/grub-install.in: Install unicode.pf2.
5420
5421 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5422
5423 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5424 * po/Rules-swiss: New file.
5425 * po/swiss.sed: Likewise.
5426
5427 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5428
5429 * grub-core/fs/btrfs.c (find_device): Fix typos.
5430 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5431 * util/grub-mkrelpath.c (argp_parser): Likewise.
5432 Reported by: Yuri Chornoivan.
5433
5434 2012-02-23 Dalet Omega <daletomega@gmail.com>
5435
5436 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5437 for usual informative messages.
5438
5439 2012-02-23 Dalet Omega <daletomega@gmail.com>
5440
5441 Starfield theme.
5442
5443 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5444 * conf/Makefile.common: Define starfielddir.
5445 * configure.ac: Configure starfield.
5446 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5447 * themes/starfield/README: Likewise.
5448 * themes/starfield/blob_w.png: Likewise.
5449 * themes/starfield/boot_menu_c.png: Likewise.
5450 * themes/starfield/boot_menu_e.png: Likewise.
5451 * themes/starfield/boot_menu_n.png: Likewise.
5452 * themes/starfield/boot_menu_ne.png: Likewise.
5453 * themes/starfield/boot_menu_nw.png: Likewise.
5454 * themes/starfield/boot_menu_s.png: Likewise.
5455 * themes/starfield/boot_menu_se.png: Likewise.
5456 * themes/starfield/boot_menu_sw.png: Likewise.
5457 * themes/starfield/boot_menu_w.png: Likewise.
5458 * themes/starfield/slider_c.png: Likewise.
5459 * themes/starfield/slider_n.png: Likewise.
5460 * themes/starfield/slider_s.png: Likewise.
5461 * themes/starfield/src/blob_nw.xcf: Likewise.
5462 * themes/starfield/src/bootmenu/: Likewise.
5463 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5464 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5465 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5466 * themes/starfield/src/slider_c.xcf: Likewise.
5467 * themes/starfield/src/slider_n.xcf: Likewise.
5468 * themes/starfield/src/slider_s.xcf: Likewise.
5469 * themes/starfield/src/terminalbox/: Likewise.
5470 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5471 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5472 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5473 * themes/starfield/starfield.png: Likewise.
5474 * themes/starfield/terminal_box_c.png: Likewise.
5475 * themes/starfield/terminal_box_e.png: Likewise.
5476 * themes/starfield/terminal_box_n.png: Likewise.
5477 * themes/starfield/terminal_box_ne.png: Likewise.
5478 * themes/starfield/terminal_box_nw.png: Likewise.
5479 * themes/starfield/terminal_box_s.png: Likewise.
5480 * themes/starfield/terminal_box_se.png: Likewise.
5481 * themes/starfield/terminal_box_sw.png: Likewise.
5482 * themes/starfield/terminal_box_w.png: Likewise.
5483 * themes/starfield/theme.txt: Likewise.
5484
5485 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5486
5487 * util/grub.d/00_header.in: Add missing export theme.
5488
5489 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5490
5491 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5492 already included.
5493 Reported by: Eren D.
5494
5495 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 * conf/Makefile.common (grubdatadir): Removed.
5498 (Makefile.am): Move eveything grubdata to pkgdata.
5499
5500 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5501
5502 * grub-core/commands/acpihalt.c (get_sleep_type):
5503 Remove unused variable.
5504
5505 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5506
5507 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5508 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5509 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5510 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5511 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5512 i18n with gettext no-op.
5513 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5514 GRUB_ACPI_OPCODE_STRING_CONST.
5515 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5516 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5517
5518 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 * po/POTFILES.in: Regenerate.
5521
5522 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5525 -Wno-error=missing-noreturn.
5526
5527 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5530 condition to avoid possibly infinite loops.
5531 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5532 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5533
5534 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5537 condition to avoid possibly infinite loops.
5538
5539 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5540
5541 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5542 on show_error.
5543
5544 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5547
5548 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5549
5550 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5551
5552 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5553
5554 * util/bin2h.c (usage): Add missing attribute noreturn.
5555
5556 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5557
5558 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5559 if the size isn't divisible by 512.
5560
5561 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5562
5563 Make list_push and list_remove functions rather than inline functions
5564 to decrease size and avoid aliasing violations.
5565
5566 * include/grub/list.h (grub_list_push): Move to ...
5567 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5568 * include/grub/list.h (grub_list_remove): Move to ...
5569 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5570
5571 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5572
5573 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5574 and -Wunused-result.
5575
5576 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5577
5578 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5579 Reported by: Seth Goldberg
5580
5581 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5582
5583 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5584
5585 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5586
5587 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5588 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5589 command line.
5590 * docs/grub.texi (Simple configuration): Document
5591 GRUB_CMDLINE_GNUMACH.
5592
5593 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5594
5595 * conf/Makefile.common (platform_SCRIPTS): New variable.
5596 (platform_PROGRAMS): Likewise.
5597 * gentpl.py: Mark *,module and *.image for install.
5598 * grub-core/gdb_grub.in: Add a notice of expected environment.
5599 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5600 (gmodule.pl): Likewise.
5601
5602 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5603
5604 Replace grub_checkkey with grub_getkey_noblock.
5605
5606 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5607 (grub_getkey_noblock): ... this. All users updated.
5608
5609 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * grub-core/kern/emu/console.c: Move to ...
5612 * grub-core/term/emu/console.c: ...here.
5613 (grub_ncurses_getkey): Fix return value if no key is detected.
5614
5615 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5618 (grub_unit_test_fini): Likewise.
5619 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5620
5621 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5622
5623 * include/grub/test.h (GRUB_UNIT_TEST)
5624
5625 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5626
5627 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5628 Better error handling.
5629 (grub_script_return): Likewise.
5630 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5631
5632 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5633
5634 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5635 rimplicit redifinition.
5636
5637 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5640 GRUB.
5641
5642 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5643
5644 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5645 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5646 prompt here.
5647
5648 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5649
5650 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5651 as GRUB_ERR_BUG. Don't malloc if no device is available.
5652
5653 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5654
5655 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5656 Mark calling with invalid term as GRUB_ERR_BUG.
5657
5658 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5661 packets rather than raising an error.
5662
5663 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5666 in if.
5667
5668 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5671 diagnostic to dprintf.
5672 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5673
5674 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5675
5676 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5677 device name.
5678
5679 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5680
5681 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5682 (grub_ntfs_iterate_dir): Likewise.
5683
5684 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5685
5686 Efiemu stylistic fixes and gettext.
5687
5688 * grub-core/efiemu/i386/loadcore32.c
5689 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5690 * grub-core/efiemu/i386/loadcore64.c
5691 (grub_arch_efiemu_relocate_symbols64): Likewise.
5692 * grub-core/efiemu/i386/pc/cfgtables.c
5693 (grub_machine_efiemu_init_tables): Likewise.
5694 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5695 (grub_efiemu_loadcore_initXX): Add a filename argument.
5696 All users updated.
5697 Improved error message.
5698 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5699 Add a filename argument.
5700 All users updated.
5701 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5702 Reclassify double relocation as GRUB_ERR_BUG.
5703
5704 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5705
5706 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5707 handling.
5708
5709 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5712 on partition.
5713
5714 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5715
5716 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5717
5718 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 Improve string. Gettextize.
5721
5722 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5725 utils.
5726 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5727
5728 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5731 [GRUB_UTIL]: New function.
5732 (insert_array) [GRUB_UTIL]: Store partmaps.
5733 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5734 partmaps.
5735 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5736 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5737 (probe_abstraction): Print diskfilter and not raid.
5738 Reported by: Lennart Sorensen
5739
5740 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5743 * util/grub-mkimagexx.c (MASK3): New define.
5744 (add_value_to_slot_20b): Use MASK3.
5745 (add_value_to_slot_21): Likewise.
5746 (relocate_addresses): Fix format specification.
5747 (load_image): Explicitly init symtab_section.
5748
5749 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5752 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5753
5754 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5755
5756 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5757 on powerpc.
5758 Reported by: Lennart Sorensen
5759
5760 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 * gentpl.py: Add missing license header.
5763 * docs/grub.texi: Update copyright year.
5764
5765 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5766
5767 Source grub-mkconfig_lib from the build directory at build time.
5768 Suggested by: Vladimir Serbinenko.
5769
5770 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5771 * util/grub-install.in: Define pkgdatadir if not already set, and source
5772 grub-mkconfig_lib from there.
5773 * util/grub-kbdcomp.in: Likewise.
5774 * util/grub-mkconfig.in: Likewise.
5775 * util/grub-mknetdir.in: Likewise.
5776 * util/grub-mkrescue.in: Likewise.
5777 * util/grub-mkstandalone.in: Likewise.
5778 * util/grub-reboot.in: Likewise.
5779 * util/grub-set-default.in: Likewise.
5780 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5781
5782 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5783
5784 Increase warning level.
5785
5786 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5787 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5788 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5789 (TARGET_CFLAGS): Likewise.
5790 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5791 * grub-core/Makefile.core.def (decompressor_xz): Add
5792 -Wno-unreachable-code.
5793 (normal): Add -Wno-redundant-decls.
5794 (xzio): Add -Wno-unreachable-code.
5795 (lzopio): Add -Wno-redundant-decls -Wno-error.
5796 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5797 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5798 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5799 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5800 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5801 * grub-core/kern/i386/coreboot/init.c: Add exception to
5802 -Wsuggest-attribute=noreturn.
5803 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5804 * grub-core/kern/ia64/dl_helper.c: Likewise.
5805 * grub-core/kern/mips/dl.c: Likewise.
5806 * grub-core/kern/sparc64/dl.c: Likewise.
5807 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5808 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5809 (memcmp): Likewise.
5810 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5811 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5812 * grub-core/loader/mips/linux.c: Likewise.
5813 * grub-core/loader/multiboot_elfxx.c: Likewise.
5814 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5815 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5816 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5817 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5818 fixme.
5819 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5820 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5821 Fix prototype.
5822
5823 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5824
5825 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5826 address.
5827
5828 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5831 Avoid improper use of strings.
5832 (grub_cmd_legacy_initrdnounzip): Likewise.
5833
5834 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5835
5836 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5837 attribute.
5838 (grub_util_info): Likewise.
5839 (grub_util_error): Likewise.
5840
5841 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5842
5843 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5844 * util/grub-fstest.c (fstest): Likewise.
5845
5846 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5847
5848 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5849 (grub_md_sha512_real): Likewise.
5850 (grub_util_get_geli_uuid): Likewise.
5851 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5852 (grub_util_biosdisk_open): Fix format specification.
5853 Respect format security.
5854 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5855 (xrealloc): Likewise.
5856 (xasprintf): Likewise.
5857
5858 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5859
5860 * util/import_gcry.py: Include grub/crypto.h in init.c.
5861
5862 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5865 (generate_image): Make prefix a const char *.
5866 Fix format specifications. Respect format security.
5867 Avoid void * arithmetics.
5868 Avoid shadowing.
5869 (argp_parser): Remove unused variable. Respect format security.
5870 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5871 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5872 (count_funcs): Remove unused variable.
5873 (relocate_addresses): Fix format specification.
5874 Disable x86-64 with elf32. Remove unused variables.
5875 (add_fixup_entry): Avoid shadowing.
5876 (make_reloc_section): Fix format specification.
5877 Use assert.
5878 (locate_sections): Fix format specifications.
5879 (load_image): Avoid shadowing.
5880
5881 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5882
5883 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5884 Fix format specifications. Respect format security.
5885 Don't translate already translated grub_errmsg.
5886 (argp_parser): Remove unused variable
5887
5888 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
5891
5892 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5893
5894 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
5895 (main): Likewise. Use xmalloc. Respect format security.
5896
5897 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
5900 a const char *.
5901 (argp_parser): Remove unused variable.
5902
5903 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5904
5905 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
5906 (add_pixel): Make static.
5907 (add_font): Likewise.
5908 (write_string_section): Make name and str a const char *.
5909 (write_be16_section): Make name a const char *.
5910 (print_glyphs): Make static.
5911 (write_font_ascii_bitmap): Likewise.
5912 (write_font_width_spec): Likewise.
5913 (write_font_pf2): Likewise.
5914 (argp_parser): Remove unused variable.
5915 Respect format security.
5916 (main): Avoid shadowing. Respect format security.
5917
5918 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5919
5920 * util/grub-editenv.c (argp_parser): Make static.
5921 (create_envblk_file): Use xmalloc.
5922 (open_envblk_file): Likewise.
5923 Resepect format security.
5924 (set_variables): Respect format security.
5925
5926 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5927
5928 * util/getroot.c (grub_find_device): Respect format security.
5929 (get_mdadm_uuid): Remove unused variable.
5930 (grub_util_pull_device): Dont call gettext on already translated
5931 grub_errmsg.
5932 (find_system_device): Remove unused variable.
5933 (grub_util_get_grub_dev): Likewise.
5934 (grub_make_system_path_relative_to_its_root): Respect format security.
5935
5936 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5937
5938 * util/grub-fstest.c (execute_command): Make first argument
5939 a const char *.
5940 (read_file): Avoid shadowing.
5941 Reuse underlying error message if device open fails.
5942 (cmd_cmp): Respect format security.
5943 (root): Make const char *.
5944 (fstest): Remove args argument and use global copy.
5945 Respect format security.
5946 (argp_parser): Make static.
5947 (main): Make default_root const char *.
5948
5949 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5950
5951 * util/grub-mount.c (root): Make const char *.
5952 (execute_command): Make first argument a const char *.
5953 (fuse_init): Respect format security.
5954 (argp_parser): Make static. Remove unused variable.
5955 (main): Make default_root a const char *.
5956 Respect format security.
5957
5958 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * util/grub-probe.c (probe): Don't call gettext on already translated
5961 grub_errmsg.
5962 Remove unused variables.
5963 (argp_parser): Remove unused variable.
5964
5965 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 * util/grub-script-check.c (argp_parser): Remove unused variable.
5968 (main): Rename read to curread to avoid shadowing.
5969
5970 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5971
5972 * util/misc.c (grub_util_write_image_at): Fix format specification.
5973 (grub_util_write_image): Likewise.
5974 (grub_script_execute_argument_to_string): Removed (unused).
5975 (grub_script_execute_menuentry): Likewise.
5976 (grub_putchar): Likewise.
5977
5978 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
5981 (FUNCTION) [GRUB_UTIL]: Likewise.
5982 (VARIABLE) [GRUB_UTIL]: Likewise.
5983
5984 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
5987 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
5988
5989 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5990
5991 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
5992 buffer.
5993
5994 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5995
5996 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
5997 (LzmaEnc_SaveState): Removed (unused).
5998 (LzmaEnc_RestoreState): Likewise.
5999 (LzmaEnc_InitPriceTables): Made static.
6000 (LzmaEnc_Construct): Likewise.
6001 (LzmaEnc_FreeLits): Likewise.
6002 (LzmaEnc_Destruct): Likewise.
6003 (LzmaEnc_Init): Likewise.
6004 (LzmaEnc_InitPrices): Likewise.
6005 (LzmaEnc_Finish): Likewise.
6006 (LzmaEnc_PrepareForLzma2): Removed (unused).
6007 (LzmaEnc_MemPrepare): Likewise.
6008 (LzmaEnc_GetNumAvailableBytes): Likewise.
6009 (LzmaEnc_GetCurBuf): Likewise.
6010 (LzmaEnc_CodeOneMemBlock): Likewise.
6011
6012 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6013
6014 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6015 (grub_util_ldm_embed): Likewise.
6016
6017 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6018
6019 * util/grub-editenv.c (print_var): Rename name to varname to
6020 avoid shadowing.
6021 (main): Rename index to curindex to avoid shadowing.
6022 Make filename a const char *.
6023
6024 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6025
6026 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6027 to arg_getline to avoid shadowing.
6028
6029 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6032 disk_ to avoid shadowing.
6033
6034 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6035
6036 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6037 curindex to avoid shadowing.
6038 Make static.
6039 (MatchFinder_GetNumAvailableBytes): Make static.
6040
6041 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6042
6043 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6044 avoid shadowing.
6045
6046 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6047
6048 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6049 argument from encrypt to do_encrypt to avoid shadowing.
6050
6051 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6054 incorrect nesting of #if's.
6055
6056 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6059 checks which are always false on some platforms.
6060 (grub_cmd_lsacpi): Likewise.
6061 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6062 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6063 Likewise.
6064
6065 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6068 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6069
6070 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6073 re_dfa_t to avoid breaking alignment invariants.
6074 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6075 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6076
6077 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6078
6079 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6080 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6081
6082 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6085 Fix declaration.
6086
6087 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6090 conserve alignment invariants.
6091 (grub_ehci_ehcc_read16): Likewise.
6092 (grub_ehci_oper_read32): Likewise.
6093 (grub_ehci_oper_write32): Likewise.
6094 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6095 Conserve alignment invariants.
6096
6097 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6100 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6101 declarations.
6102
6103 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6106 Remove unused variable.
6107
6108 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6111 Remove set in if.
6112
6113 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * include/grub/net.h: Remove double declarations.
6116
6117 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 Remove "payload" command in ia64 Linux loader since I couldn't
6120 find any evidence of it being used for anything.
6121 Replace "relocate" command with an environment variable
6122
6123 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6124 fields.
6125 (ia64_boot_payload): Removed.
6126 (last_payload): Likewise.
6127 (RELOCATE_OFF): Likewise.
6128 (RELOCATE_ON): Likewise.
6129 (RELOCATE_FORCE): Likewise.
6130 (relocate): Likewise.
6131 (free_pages): Don't free payloads.
6132 (grub_load_elf64): Use common error messages.
6133 Use "linux_relocate" variable.
6134 Increase the space after boot_params.
6135 (grub_cmd_payload): Removed.
6136 (grub_cmd_relocate): Likewise.
6137 (grub_cmd_fpswa): Improve messages.
6138 (cmd_payload): Removed.
6139 (cmd_relocate): Likewise.
6140 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6141 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6142
6143 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 Convert UHCI to DMA framework.
6146
6147 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6148 (grub_uhci_pci_iter): Fill new members
6149 (grub_alloc_td): Use P2V and V2P functions.
6150 (grub_free_queue): Likewise.
6151 (grub_alloc_qh): Likewise.
6152 (grub_uhci_setup_transfer): Likewise.
6153 (grub_uhci_check_transfer): Likewise.
6154
6155 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6156
6157 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6158 Remove assignment in if while on it.
6159
6160 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6161
6162 * util/grub-mkstandalone.in: Fix modules directory.
6163
6164 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6167 on i386-pc target.
6168 (argp_parser): Accept "auto" as compression specification.
6169
6170 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6171
6172 Fix `help' with unloaded modules.
6173
6174 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6175 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6176 (grub_dyncmd_dispatcher): Small stylistic fix.
6177 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6178 explicit help is requested.
6179
6180 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6181
6182 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6183 Explicitly init restart while on it.
6184
6185 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6188 uninited variable.
6189
6190 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6191
6192 * util/grub-mknetdir.in: Use . rather than source for POSIX
6193 compatibility.
6194
6195 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6196
6197 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6198
6199 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6202 variable.
6203
6204 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6205
6206 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6207 without quotes.
6208
6209 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6210
6211 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6212
6213 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6216 iteration of partitions.
6217
6218 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 Improve gettext support. Stylistic fixes and error handling fixes while
6221 on it.
6222
6223 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6226 part. Instead setup the correct stack in RM.
6227 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6228 for stack.
6229 * include/grub/i386/relocator_private.h: New file.
6230
6231 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6234 argument.
6235 * util/grub-fstest.c (options): Add missing DEVICE part.
6236
6237 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6238
6239 Clarify and unify messages.
6240
6241 * grub-core/commands/hashsum.c (options): Unify messages.
6242 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6243 literal-only message as translatable.
6244 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6245 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6246 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6247 commands.
6248 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6249 key, not the key used to unlock. Clarify what it's used for.
6250 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6251 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6252 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6253 * util/grub-editenv.c (options): Unify "verbose" message.
6254 * util/grub-fstest.c (read_file): Unify error message.
6255 (fstest): Add quotes around commands.
6256 (options): Unify "verbose" message.
6257 * util/grub-install.in: Add quotes around variable name.
6258 * util/grub-kbdcomp.in: Unify error message.
6259 * util/grub-mkfont.c (main): Likewise.
6260 * util/grub-mkrescue.in: Likewise.
6261 * util/grub-mklayout.c (options): Unify "verbose" message.
6262 * util/grub-mkstandalone.in: Unify help and verbose messages.
6263 * util/grub-mount.c (options): Unify "verbose" message.
6264 * util/grub-probe.c (options): Likewise.
6265 * util/grub-script-check.c (options): Likewise.
6266 * util/grub-setup.c (setup): Unify no-terminator message.
6267 (options): Use DEVICE and not DEV.
6268 Unify "verbose" message.
6269 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6270
6271 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 Improve and unify messages.
6274
6275 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6276 name. All users updated.
6277 Print filename in error.
6278 (read_device_map): Print filename in error.
6279 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6280 (grub_util_get_os_disk): Likewise.
6281 (grub_util_biosdisk_get_grub_dev): Likewise.
6282 (grub_util_check_block_device): Likewise.
6283 (grub_util_check_char_device): Likewise.
6284 (grub_make_system_path_relative_to_its_root): Likewise.
6285 * util/grub-editenv.c (create_envblk_file): Likewise.
6286 (open_envblk_file): Likewise.
6287 (write_envblk): Likewise.
6288 * util/grub-fstest.c (cmd_cp): Likewise.
6289 (cmd_cat): Likewise.
6290 (cmd_cmp): Likewise.
6291 * util/grub-menulst2cfg.c (main): Likewise.
6292 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6293 (write_font_width_spec): Likewise.
6294 (write_font_pf2): Likewise.
6295 * util/grub-mkimage.c (generate_image): New argument outname.
6296 All users updated.
6297 Remove unreacheable message.
6298 (options): Unify messages.
6299 (help_filter): Likewise.
6300 * util/grub-mklayout.c (usage): Removed (unused).
6301 (main): Print filename in error.
6302 * util/grub-mkrescue.in: Fix wrong quoting.
6303 * util/grub-setup.c (setup): Print filename in error.
6304 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6305 (check_sas): Likewise.
6306 * util/misc.c (grub_util_get_fp_size): Removed.
6307 (grub_util_get_image_size): Print filename in error.
6308 (grub_util_read_at): Removed.
6309 (grub_util_read_image): Print filename in error.
6310 (grub_util_load_image): Likewise.
6311 (grub_util_write_image_at): New argument filename. All users updated.
6312 Print filename in error.
6313 (grub_util_write_image): New argument filename. All users updated.
6314 Print filename in error.
6315 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6316 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6317
6318 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6319
6320 * grub-core/Makefile.core.def (pxechain): New module.
6321 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6322 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6323 function.
6324 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6325 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6326
6327 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6330 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6331 * include/grub/err.h (grub_error_saved): New struct.
6332 (grub_errmsg): Make array size explicit.
6333 * include/grub/misc.h (grub_error_save): New function.
6334 (grub_error_load): Likewise.
6335 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6336 (grub_error_push): Update `errno' member name.
6337 (grub_error_pop): Likewise
6338 * grub-core/net/tftp.c (tftp_data): New member save_err.
6339 (tftp_receive): Save error.
6340 (tftp_open): Restore error.
6341
6342 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6345 to real mode down to execute A20-related code in protected mode as
6346 intended.
6347
6348 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6349
6350 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6351 NULL when the argument `level' has an unexpected value.
6352
6353 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 Move platform-dependent files from $prefix to $prefix/$platform.
6356
6357 * config.h.in (GRUB_TARGET_CPU): New definition.
6358 (GRUB_PLATFORM): Likewise.
6359 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6360 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6361 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6362 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6363 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6364 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6365 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6366 * grub-core/normal/term.c (read_terminal_list): Likewise.
6367 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6368 $prefix/locale.
6369 (grub_gettext_init_ext): Likewise.
6370 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6371 grub_platform.
6372 * util/grub-install.in: Update directories.
6373 * util/grub-mknetdir.in: Likewise.
6374 * util/grub-mkrescue.in: Likewise.
6375
6376 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6377
6378 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6379 grub_error framework. All users updated.
6380
6381 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6382
6383 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6384 lists (by always binsearching), improve caching (cache strings
6385 used for binsearch, not only results), improve
6386 maintainability (by using more structured binary search) and correct
6387 error handling.
6388
6389 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * grub-core/script/execute.c (grub_script_return): Fix warning.
6392
6393 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6394
6395 * grub-core/script/execute.c (grub_script_return): Fix potential
6396 NULL-dereference.
6397 Reported by: Jim Meyering.
6398
6399 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * po/POTFILES.in: Regenerate.
6402 * util/grub-install.in: Gettextize the strings missed in first pass.
6403
6404 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 * Makefile.util.def (grub-mkdevicemap): Removed.
6407 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6408 * include/grub/util/deviceiter.h: Removed.
6409 * util/deviceiter.c: Likewise.
6410 * util/getroot.c (grub_util_get_os_disk): New function.
6411 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6412 replacement for EFI.
6413 * util/grub-mkdevicemap.c: Removed.
6414 * util/grub-probe.c (probe): Handle PRINT_DISK.
6415 (argp_parser): Handle -t disk.
6416
6417 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * util/grub-mkfont.c: Migrate to argp.
6420 * util/grub-mklayout.c: Likewise.
6421 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6422 * util/grub-mkrelpath.c: Likewise.
6423 * util/grub-probe.c: Likewise.
6424 * util/grub-script-check.c: Likewise.
6425
6426 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6427
6428 * util/grub-reboot.in: Add missing datarootdir.
6429 Add missing newline.
6430 * util/grub-set-default.in: Add missing datarootdir.
6431 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6432 * util/grub-mkrescue.in: Likewise.
6433
6434 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6437
6438 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 * util/grub-kbdcomp.in: Add decent help and gettextize.
6441 * docs/man/grub-kbdcomp.h2m: New file.
6442
6443 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 Migrate grub-mkimage.c to argp.
6446
6447 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6448 (grub-setup): Likewise.
6449 * util/grub-setup.c (print_version): Move to ...
6450 * util/argp_common.c (print_version): ... here.
6451 * util/grub-setup.c (argp_program_version_hook): Move to ...
6452 * util/argp_common.c (argp_program_version_hook): ... here.
6453 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6454 safety.
6455 * util/grub-mkimage.c (main): Migrate to argp.
6456
6457 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 * util/grub-mkrescue.in: Use same message as
6460 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6461 for better translations.
6462
6463 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6464
6465 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6466 options with generic grub-mkrescue.in with the goal of future
6467 merge.
6468
6469 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6470
6471 * grub-core/kern/mm.c: Add missing include of i18n.h
6472 * grub-core/lib/relocator.c: Likewise.
6473
6474 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6477 error.
6478 (allocate_pages): Check return value.
6479 Replace fatal with error.
6480 (grub_linux_boot): Replace printf with dprintf.
6481 Check find_mmap_size return value.
6482 Replace fatal with error.
6483 Don't call grub_machine_fini.
6484 (grub_load_elf64): Replace printf with dprintf.
6485 (grub_cmd_linux): Likewise.
6486 (grub_cmd_initrd): Likewise.
6487 (grub_cmd_payload): Likewise.
6488
6489 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6490
6491 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6492 message.
6493 * grub-core/video/radeon_fuloong2e.c
6494 (grub_video_radeon_fuloong2e_setup): Likewise.
6495 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6496 * grub-core/video/video.c (grub_video_set_mode): Don't override
6497 standard out of memory message.
6498
6499 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6500
6501 NetBSD disk wedge support.
6502
6503 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6504 [__NetBSD__]: Handle NetBSD disk wedges.
6505 * util/getroot.c (convert_system_partition_to_system_disk)
6506 [__NetBSD__]: Likewise.
6507
6508 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6509
6510 * util/grub-mkconfig.in: Use umask rather than chmod to create
6511 grub.cfg.new to avoid insecure grub.cfg.
6512
6513 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 * grub-core/commands/ls.c: Gettextize.
6516 * grub-core/commands/setpci.c: Likewise.
6517 * grub-core/commands/videotest.c: Likewise.
6518 * grub-core/disk/geli.c: Likewise.
6519 * grub-core/kern/mm.c: Likewise.
6520 * grub-core/lib/relocator.c: Likewise.
6521 * grub-core/loader/efi/appleloader.c: Likewise.
6522 * grub-core/loader/i386/xnu.c: Likewise.
6523 * grub-core/loader/ia64/efi/linux.c: Likewise.
6524 * grub-core/loader/xnu.c: Likewise.
6525 * grub-core/net/dns.c: Likewise.
6526 * grub-core/net/net.c: Likewise.
6527 * grub-core/script/lexer.c: Likewise.
6528 * grub-core/script/parser.y: Likewise.
6529 * grub-core/script/yylex.l: Likewise.
6530 * util/getroot.c: Likewise.
6531 * util/grub-setup.c: Likewise.
6532
6533 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6534
6535 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6536 number.
6537
6538 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6541
6542 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6545 macro.
6546 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6547 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6548
6549 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6550
6551 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6552 * util/grub-install.in: Gettextize.
6553 * util/grub-mkconfig.in: Likewise.
6554 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6555 if not available.
6556 (grub_warn): Gettextize.
6557 * util/grub-mknetdir.in: Gettextize.
6558 * util/grub-mkrescue.in: Likewise.
6559 * util/grub-mkstandalone.in: Likewise.
6560 * util/grub-reboot.in: Likewise.
6561 * util/grub-set-default.in: Likewise.
6562 * util/grub.d/00_header.in: Likewise.
6563 * util/grub.d/10_hurd.in: Likewise.
6564 * util/grub.d/10_kfreebsd.in: Likewise.
6565 * util/grub.d/10_linux.in: Likewise.
6566 * util/grub.d/10_netbsd.in: Likewise.
6567 * util/grub.d/10_windows.in: Likewise.
6568 * util/grub.d/20_linux_xen.in: Likewise.
6569 * util/grub.d/30_os-prober.in: Likewise.
6570 * po/POTFILES-shell.in: Regenerate.
6571
6572 2012-02-03 Richard Laager <rlaager@wiktel.com>
6573
6574 * util/grub-mkimage.c (main): Fix format-security warning.
6575 * util/grub-mkrelpath.c (main): Likewise.
6576 * util/grub-probe.c (main): Likewise.
6577
6578 2012-02-03 Richard Laager <rlaager@wiktel.com>
6579
6580 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6581 failure.
6582 Put back lost PRINT_DRIVE.
6583
6584 2012-02-03 Richard Laager <rlaager@wiktel.com>
6585
6586 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6587 (grub_guess_root_devices): Replace strlen with sizeof.
6588 Avoid crash.
6589 (find_root_devices_from_poolname): Remove unused variable.
6590 Handle raidzN.
6591
6592 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 Support install on multi-device filesystems.
6595
6596 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6597 (grub_guess_root_devices): ...this. Return char **. All users updated.
6598 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6599 Removed.
6600 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6601 (find_root_devices_from_poolname): ... here.
6602 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6603 Support zfs-fuse.
6604 (grub_guess_root_device): Rename to ...
6605 (grub_guess_root_devices): ... this. Return char **. All users updated.
6606 * util/grub-install.in: Handle multi-device filesystems.
6607 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6608 argument. All users updated.
6609 Handle multi-device filesystems.
6610 Use 'delim' as separator.
6611 Remove device check to allow filesystems on file.
6612 (main): Support -0 argument. Handle multi-device.
6613 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6614 Fix a cross-device check while on it.
6615 (arguments): Remove root_dev.
6616 (argp_parser): Remove -r.
6617 (main): Remove root_dev.
6618
6619 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6620
6621 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6622
6623 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6624
6625 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6626 symbol.
6627 Reported by: NODA, Kai <nodakai>.
6628
6629 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6630
6631 Fix ehci on amd64.
6632
6633 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6634 pointers.
6635 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6636 (grub_ehci_setup_qh): Likewise.
6637 (grub_ehci_find_qh): Likewise.
6638 (grub_ehci_transaction): Likewise.
6639 (grub_ehci_setup_transfer): Likewise.
6640 (grub_ehci_check_transfer): Likewise.
6641 (grub_ehci_portstatus): Likewise.
6642 (grub_ehci_detect_dev): Likewise.
6643 (grub_ehci_transfer_controller_data): New field td_last_phys.
6644 (grub_ehci_setup_transfer): Fill td_last_phys.
6645 (grub_ehci_check_transfer): Use td_last_phys.
6646
6647 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6648
6649 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6650 if no submenu is present.
6651
6652 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6653
6654 CBI support.
6655
6656 * include/grub/usb.h (grub_usbms_protocol_t): New values
6657 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6658 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6659 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6660 (grub_usbms_dev): Add subclass, protocol and intrpt.
6661 Remove in_maxsz and out_maxsz.
6662 (grub_usbms_reset): Rename to ...
6663 (grub_usbms_bo_reset): .. this.
6664 (grub_usbms_cbi_cmd): New function.
6665 (grub_usbms_cbi_reset): Likewise.
6666 (grub_usbms_reset): Likewise.
6667 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6668 (grub_usbms_transfer): Rename to ...
6669 (grub_usbms_transfer_bo): ... this.
6670 (grub_usbms_transfer_cbi): Likewise.
6671 (grub_usbms_transfer): Likewise.
6672
6673 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6674 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6675
6676 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6677 the support for the CS5536 modification thereos and few bugfixes.
6678
6679 * grub-core/Makefile.core.def (ehci): New module.
6680 * grub-core/bus/usb/ehci.c: New file.
6681 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6682 port and hubaddr. All users updated.
6683 Save port and hubaddr into dev structure.
6684 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6685 define.
6686 * include/grub/pci.h (grub_dma_phys2virt): New function.
6687 (grub_dma_virt2phys): Likewise.
6688 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6689
6690 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6693 check as some mkfs implementations omit it.
6694
6695 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6696
6697 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6698
6699 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6700
6701 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6702 Add new member volname2.
6703 (grub_jfs_label): Use volname2 if available.
6704
6705 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6708 over last_mounted as seen in image generated by mkfs.nilfs2.
6709 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6710
6711 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6714 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6715 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6716
6717 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6718
6719 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6720 over the sector.
6721
6722 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6725 subvolume name (by removing a bogus and useless check).
6726
6727 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6730 sizeof while on it.
6731
6732 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6735 (grub_scsi_read_capacity10): ... this.
6736 (grub_scsi_read_capacity16): New function.
6737 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6738 0xffffffff.
6739 Fix off-by-one error.
6740 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6741 64-bit unsigned.
6742 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6743 (grub_scsi_read_capacity10): ... this.
6744 (grub_scsi_read_capacity_data): Rename to ...
6745 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6746 (grub_scsi_read_capacity16): New struct.
6747 (grub_scsi_read_capacity16_data): Likewise.
6748 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6749 grub_scsi_cmd_read_capacity10.
6750 New command grub_scsi_cmd_read_capacity16.
6751
6752 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 SCSI >2TiB support.
6755
6756 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6757 (grub_scsi_write16): Likewise.
6758 (grub_scsi_read): Use read16 when necessary.
6759 (grub_scsi_write): Likewise.
6760 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6761 (grub_scsi_write16): Likewise.
6762 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6763
6764 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 SCSI write support (for usbms mainly).
6767
6768 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6769 a const pointer.
6770 (grub_scsi_write): Implement.
6771 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6772
6773 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6774
6775 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6776 variable.
6777
6778 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6781
6782 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 * po/POTFILES.in: Regenerate.
6785
6786 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6787
6788 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6789 with grub_printf to avoid unnecessary fatal failure.
6790
6791 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6792
6793 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6794 (INT_MAX): Likewise.
6795 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6796 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6797 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6798 (strcpy): Likewise.
6799 (strstr): Likewise.
6800 (strchr): Likewise.
6801 (strncpy): Likewise.
6802 (strcat): Likewise.
6803 (strncat): Likewise.
6804 (strcoll): Likewise.
6805 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6806 (GRUB_INT_MAX): Likewise.
6807
6808 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6811 unexpected error.
6812 (optimize_utf8): Likewise.
6813 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6814
6815 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 * grub-core/boot/i386/pc/lnxboot.S: Use
6818 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6819 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6820 location.
6821 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6822 definition.
6823 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6824
6825 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6828 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6829 now to avoid double free.
6830 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6831 hostdisk.
6832 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6833 * util/grub-probe.c (escape_of_path): Always return a new copy.
6834 (print_full_name): Escape path.
6835 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6836 Fix hints on abstractions.
6837
6838 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6841 Don't add "root" line if no compatibility hont is available.
6842 Suggested by: Seth Goldberg.
6843
6844 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6847 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6848 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6849 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6850
6851 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6854
6855 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6856
6857 * util/grub-pe2elf.c (ehdr): Make static.
6858 (shdr): Likewise.
6859 (num_sections): Likewise.
6860 (offset): Likewise.
6861
6862 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6863
6864 Eliminate ofpath limits and possible overflows.
6865
6866 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6867 (OF_PATH_MAX): Removed.
6868 (MAX_DISK_CAT): New const.
6869 (find_obppath): Use allocated rather than preallocated buffer.
6870 Return result. Argument of_path removed. All users updated.
6871 Add missing fdstat.
6872 (xrealpath): New function.
6873 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6874 Allocate rather than use preallocated buffer. All users updated.
6875 (__of_path_common): Use allocated rather than preallocatecd buffer.
6876 Return result. Argument of_path removed. All users updated.
6877 (vendor_is_ATA): Read only needed part form the file.
6878 (check_sas): Allocate depending on contents rather than fixed.
6879 (main) [STANDALONE]: Handle NULL result.
6880
6881 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6884
6885 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6886
6887 Cryptodisk write support.
6888
6889 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
6890 (grub_cryptodisk_decrypt): Moved logic to ...
6891 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
6892 (grub_cryptodisk_write): Implement.
6893 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
6894 (grub_util_fd_write): ... this. Make global.
6895 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
6896
6897 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6898
6899 * include/grub/list.h (grub_list_remove): Don't crash if element is
6900 removed twice.
6901
6902 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6903
6904 Rename ofconsole to console.
6905
6906 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
6907 as sysnonym to console.
6908 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
6909 * grub-core/term/ieee1275/console.c: ... this. All users updated.
6910 Rename grub_ofconsole_ to grub_console_. All users updated
6911 (grub_console_term_output): Rename "ofconsole" to "console".
6912 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
6913 as "console".
6914
6915 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6916
6917 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
6918 handling.
6919 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
6920 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
6921 GRUB_DISK_DEVICE_FILE_ID.
6922
6923 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6924
6925 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
6926 and improve performance.
6927
6928 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
6931 missing ieee1275/ prefix on whole disk.
6932
6933 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6934
6935 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
6936 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
6937
6938 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
6941
6942 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 Merge common RAID and LVM logic to an abstract diskfilter.
6945 Add LDM support using the same framework.
6946
6947 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
6948 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
6949 (libgrubmods): Remove grub-core/disk/raid.c and
6950 grub-core/partmap/gpt.c.
6951 * grub-core/Makefile.core.def (ldm): New module.
6952 (raid): Renamed to diskfilter. All users updated.
6953 * grub-core/disk/raid.c: Moved to ...
6954 * grub-core/disk/diskfilter.c: ... here.
6955 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
6956 (lv_num): New var.
6957 (find_array): Renamed to ...
6958 (find_lv): ... this. Support multi-LV. Skip nameless LVs
6959 (grub_is_array_readable): Renamed to ...
6960 (grub_is_lv_readable): ... this. Support multinode hierarchy.
6961 (insert_array): New argument id.
6962 (is_node_readable): New function.
6963 (scan_device): Rename to ...
6964 (scan_disk): .. this. Restrict to one disk.
6965 (scan_devices): New function.
6966 (grub_diskfilter_iterate): Support multi-LV.
6967 Skip invisible and nameless LVs.
6968 (grub_diskfilter_memberlist): Support multi-LV.
6969 (grub_diskfilter_read_node): New function.
6970 (grub_raid_read): Most of logic moved to ...
6971 (read_segment): ... here
6972 (read_lv): New function.
6973 (grub_diskfilter_get_vg_by_uuid): New function.
6974 (grub_diskfilter_make_raid): Likewise.
6975 * grub-core/disk/ldm.c: New file.
6976 * grub-core/disk/lvm.c (vg_list): Removed.
6977 (lv_count): Likewise.
6978 (scan_depth): Likewise.
6979 (is_lv_readable): Likewise.
6980 (grub_lvm_getvalue): Advance pointer past the number.
6981 (find_lv): Removed.
6982 (do_lvm_scan): Refactored into ...
6983 (grub_lvm_detect): ... this. Support raid.
6984 (grub_lvm_iterate): Removed.
6985 (grub_lvm_memberlist): Likewise.
6986 (grub_lvm_open): Likewise.
6987 (grub_lvm_close): Likewise.
6988 (read_lv): Likewise.
6989 (read_node): Likewise.
6990 (is_node_readable): Likewise.
6991 (is_lv_readable): Likewise.
6992 (grub_lvm_read): Likewise.
6993 (grub_lvm_write): Likewise.
6994 (grub_lvm_dev): Use diskfilter
6995 (GRUB_MOD_INIT): Likewise.
6996 (GRUB_MOD_FINI): Likewise.
6997 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
6998 new interface.
6999 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7000 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7001 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7002 grub_diskfilter_read_node.
7003 Fix a bug with xor.
7004 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7005 grub_diskfilter_read_node.
7006 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7007 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7008 (grub_disk_dev_iterate): Move from here...
7009 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7010 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7011 Make global.
7012 (grub_hostdisk_find_partition_start): Likewise.
7013 (grub_hostdisk_os_dev_to_grub_drive): New function.
7014 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7015 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7016 * util/getroot.c (make_device_name): ... here.
7017 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7018 Move to ...
7019 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7020 * grub-core/kern/emu/hostdisk.c
7021 (convert_system_partition_to_system_disk): Move to ...
7022 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7023 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7024 * util/getroot.c (device_is_wholedisk): ... here.
7025 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7026 * util/getroot.c (find_system_device): ... here.
7027 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7028 Move to ...
7029 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7030 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7031 Move to ...
7032 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7033 Handle LDM.
7034 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7035 Move to ...
7036 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7037 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7038 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7039 DISKFILTER.
7040 * include/grub/raid.h: Renamed to ...
7041 * include/grub/diskfilter.h: ... this.
7042 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7043 (GRUB_RAID_LAYOUT_*): Make into array.
7044 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7045 (grub_diskfilter_vg): New struct.
7046 (grub_diskfilter_pv_id): Likewise.
7047 (grub_raid_member): Removed.
7048 (grub_raid_array): Likewise.
7049 (grub_diskfilter_pv): New struct.
7050 (grub_diskfilter_lv): Likewise.
7051 (grub_diskfilter_segment): Likewise.
7052 (grub_diskfilter_node): Likewise.
7053 (grub_diskfilter_get_vg_by_uuid): New proto.
7054 (grub_raid_register): Inline.
7055 (grub_diskfilter_unregister): Likewise.
7056 (grub_diskfilter_make_raid): New proto.
7057 (grub_diskfilter_vg_register): Likewise.
7058 (grub_diskfilter_read_node): Likewise.
7059 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7060 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7061 (grub_util_is_ldm): Likewise.
7062 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7063 (grub_hostdisk_find_partition_start): Likewise.
7064 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7065 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7066 New definition.
7067 (grub_gpt_partition_map_iterate): New proto.
7068 * include/grub/lvm.h (grub_lvm_vg): Removed.
7069 (grub_lvm_pv): Likewise.
7070 (grub_lvm_lv): Likewise.
7071 (grub_lvm_segment): Likewise.
7072 (grub_lvm_node): Likewise.
7073 * util/getroot.c [...]
7074 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7075 (probe_abstraction): Likewise.
7076 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7077 (main): Remove dead logic.
7078
7079 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7080
7081 Simplify root device discover and don't fail when trying to open
7082 incorrect devices.
7083
7084 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7085 function.
7086 (get_diskname_from_path): Likewise.
7087 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7088 of iterating.
7089
7090 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7091
7092 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7093
7094 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7097 pastthe end.
7098
7099 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7100
7101 * util/grub-install.in: Add missing \.
7102 Reported by: gentoofan
7103
7104 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7105
7106 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7107 (direct_read): Use correct compressed size.
7108 (grub_squash_read_data): Likewise.
7109
7110 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7111
7112 * docs/grub.texi (Platform limitations): New section.
7113 (Platform-specific operations): Likewise.
7114 * docs/grub-dev.texi (Porting): Likewise.
7115
7116 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 IEEE1275 disk write support.
7119
7120 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7121 const void *.
7122 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7123 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7124 and seek loginc to ...
7125 (grub_ofdisk_prepare): ... here.
7126 (grub_ofdisk_write): Implement.
7127
7128 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 ARC disk write support.
7131
7132 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7133 (reopen): New argument writable. All users updated.
7134 Handle required access mode.
7135 (grub_arcdisk_write): Implement.
7136 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7137 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7138
7139 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7140
7141 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7142 (read_sblock): Don't attempt to read superblocks outside the disk size.
7143
7144 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7147 first superblock to find the second one when possible.
7148
7149 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * util/grub-install.in: Fix an ARC bug.
7152 Print a warning if no platform-specific setup is available.
7153
7154 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 Use static allocation rather than scratch pointer in reed_solomon.
7157 It decreases its size significantly and avoids a variable in .text.
7158
7159 * grub-core/lib/reed_solomon.c (scratch): Removed.
7160 (chosenstat): New const or static array.
7161 (sigma): Likewise.
7162 (errpot): Likewise.
7163 (errpos): Likewise.
7164 (sy): Likewise.
7165 (mstat): Likewise.
7166 (errvals): Likewise.
7167 (eqstat): Likewise.
7168 (pol_evaluate): Replace x with log_x argument. All users updated.
7169 (syndroms): Removed.
7170 (gauss_solve): Use statically allocated arrays.
7171 (rs_recover): Likewise.
7172 Calculate syndroms directly.
7173 (decode_block): Use statically allocated arrays.
7174 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7175 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7176
7177 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7178
7179 Eliminate fixed limit on reed solomon decoder length.
7180
7181 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7182 rather than hardcoding the address.
7183 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7184 no_reed_solomon_length.
7185 Move gate_a20 to no-reed-solomon part.
7186 Don't force a particular size of no reed-solomon part.
7187 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7188 Removed.
7189 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7190 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7191
7192 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * grub-core/commands/wildcard.c (match_files): Handle filenames
7195 without explicit device.
7196 (wildcard_expand): Don't add explicit device if not already present.
7197 * tests/grub_script_echo1.in: Add a new expansion test.
7198
7199 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 Replace single-linked with double-linked lists. It results in more
7202 compact and more efficient code.
7203
7204 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7205 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7206 (grub_list_remove): Moved from here ...
7207 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7208 (grub_prio_list_insert): Set prev.
7209 * include/grub/list.h (grub_list): Add prev. All users updated.
7210
7211 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 Handle newer autotools. Add some missing quotes while on it.
7214
7215 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7216 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7217 (pkgdata_DATA): ... here.
7218 * Makefile.util.def (update-grub_lib): Removed.
7219 * conf/Makefile.common (pkglib_DATA): Removed.
7220 (pkglib_SCRIPTS): Likewise.
7221 (pkgdata_DATA): New variable.
7222 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7223 needed.
7224 Add missing quotes.
7225 Remove unused variable while on it.
7226 * tests/util/grub-shell.in: Likewise.
7227 * util/grub-install.in: Likewise.
7228 * util/grub-mkconfig.in: Likewise.
7229 * util/grub-mknetdir.in: Likewise.
7230 * util/grub-mkrescue.in: Likewise.
7231 * util/grub-mkstandalone.in: Likewise.
7232 * util/grub.d/00_header.in: Likewise.
7233 * util/grub.d/10_hurd.in: Likewise.
7234 * util/grub.d/10_illumos.in: Likewise.
7235 * util/grub.d/10_kfreebsd.in: Likewise.
7236 * util/grub.d/10_linux.in: Likewise.
7237 * util/grub.d/10_netbsd.in: Likewise.
7238 * util/grub.d/10_windows.in: Likewise.
7239 * util/grub.d/20_linux_xen.in: Likewise.
7240 * util/grub.d/30_os-prober.in: Likewise.
7241 * util/update-grub_lib.in: Removed.
7242
7243 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7244
7245 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7246 a workaround for intel problem.
7247
7248 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7249 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7250 2012-01-23 pfsmorigo
7251
7252 * util/grub-install.in: Support dd'in into PreP partition.
7253 * util/grub-probe.c (probe): Support discovering partition type.
7254 (main): Support -t msdos_parttype.
7255
7256 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7257
7258 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7259 infinite recursion using counter.
7260 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7261 init to skip it if the magic check fails.
7262 (dec_stream_header): Init s->crc32.
7263
7264 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7265 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7266 2012-01-22 Richard Laager <rlaager@wiktel.com>
7267
7268 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7269 All users updated.
7270 (find_bestub): Determine correct size.
7271 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7272 (scan_disk): Align the size down.
7273 Call check pool before find_bestub to have ashift.
7274
7275 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7278 dprintf in no-malloc zone.
7279
7280 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7281
7282 * configure.ac: Add back in test for limits.h.
7283
7284 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7285
7286 Support 4K-sector NTFS.
7287
7288 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7289 (grub_ntfs_data): Remove blocksize.
7290 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7291 Remove data argument. All users updated.
7292
7293 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7294
7295 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7296 being in .text to avoid dprel references.
7297 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7298 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7299 (grub_arch_highmemsize): Likewise.
7300 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7301 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7302 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7303
7304 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7307
7308 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7309 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7310
7311 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7312
7313 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7314 GRUB_UTIL.
7315 (grub_set_datetime_cmos): Likewise.
7316
7317 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 Make XZ compression parameters dependent on target and not host CPU.
7320
7321 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7322 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7323
7324 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7327 set but not used variable.
7328
7329 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7330
7331 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7332 created when no uuid support is compiled into mkfs.reiser.
7333
7334 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7337 (utf8_to_macroman): Do the opposite.
7338 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7339
7340 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 * configure.ac: Refise build qemu_mips w/o unifont.
7343
7344 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 Eliminate grub_min/grub_max prone to overflow usage.
7347
7348 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7349 (poll_nonroot_hub): Likewise.
7350 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7351 (grub_affs_label): Likewise.
7352 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7353 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7354 (grub_hfs_label): Likewise.
7355 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7356 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7357 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7358 (zap_leaf_array_get): Likewise.
7359 (dnode_get_path): Likewise.
7360 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7361 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7362 * grub-core/script/execute.c (grub_script_break): Likewise.
7363 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7364 grub_max.
7365 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7366 * include/grub/misc.h (grub_min): Removed.
7367 (grub_max): Likewise.
7368
7369 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7370
7371 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7372 direct.inode = 0.
7373
7374 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7375
7376 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7377
7378 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7381
7382 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7385 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7386
7387 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7388
7389 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7390 rather than a hack for grub_strncasemap.
7391
7392 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7393
7394 Support multiple initrds
7395 Note: part of this was accidently committed in r3739.
7396
7397 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7398 initrd.
7399 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7400 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7401 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7402 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7403 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7404
7405 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7408 disks with unknown size.
7409 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7410
7411 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7412
7413 Remove defines pertaining to arbitrary limits not affecting GRUB
7414 anymore.
7415
7416 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7417 (EXT2_MAX_SYMLINKCNT): Likewise.
7418 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7419 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7420 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7421 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7422 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7423 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7424 (DN_MAX_OBJECT_SHIFT): Likewise.
7425 (DN_MAX_OFFSET_SHIFT): Likewise.
7426 (DN_MAX_OBJECT): Likewise.
7427 (DNODES_PER_LEVEL_SHIFT): Likewise.
7428 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7429 (SPA_MAXBLOCKSIZE): Likewise.
7430 (SPA_BLOCKSIZES): Likewise.
7431 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7432 (MZAP_MAX_BLKSZ): Likewise.
7433
7434 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7435
7436 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7437 handle NULL appropriately.
7438 Remove MIN.
7439
7440 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7441
7442 Fix efiemu.
7443
7444 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7445 cpu/types.h.
7446 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7447 * configure.ac: Fix efiemu check.
7448
7449 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7452 grub_probe.
7453 Reported by: adamwill
7454
7455 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7456
7457 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7458
7459 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 Fix handling of wide characters in gfxterm.
7462
7463 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7464 (clear_char): Likewise.
7465 (paint_char): Skip code == NULL chars.
7466 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7467
7468 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7469
7470 * grub-core/normal/charset.c: Move comment to right place.
7471
7472 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7475 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7476 (grub_affs_mount): Revert the correct version checking.
7477
7478 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * docs/grub.texi (Unicode): Mention several other unsupported features.
7481
7482 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7483
7484 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7485 case statements as compile-time one.
7486 (direct_read): Prevent spurious warnings.
7487 (grub_squash_read_data): Likewise.
7488
7489 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 Various squash4 fixes and LZO and XZ support.
7492
7493 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7494 Add xzembed source files.
7495 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7496 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7497 (grub_squash_inode): New subtype long_dir.
7498 (SQUASH_TYPE_LONG_DIR): New inode type.
7499 (COMPRESSION): New enum.
7500 (XZBUFSIZ): New const.
7501 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7502 (read_chunk): Use data->decompress.
7503 (zlib_decompress): New function.
7504 (lzo_decompress): Likewise.
7505 (xz_decompress): Likewise.
7506 (squash_mount): Set new data fields.
7507 (grub_squash_iterate_dir): Handle long dir.
7508 (squash_unmount): Free xzdec and xzbuf.
7509 (grub_squash_open): Check ino type.
7510 (direct_read): Stylistic fixes. Use data->decompress.
7511 (grub_squash_read_data): Likewise.
7512 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7513 (get_byte): Likewise.
7514 (grub_zlib_disk_read): Removed.
7515 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7516 (GRUB_POSIX_BOOL_DEFINED): New define.
7517 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7518 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7519 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7520 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7521
7522 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7523
7524 Don't override more informative errors.
7525
7526 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7527 * grub-core/font/font.c (open_section): Likewise.
7528 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7529 filename. Don't override errors.
7530 (grub_cmd_openbsd_ramdisk): Don't override errors.
7531 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7532 (grub_cmd_initrd): Likewise.
7533 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7534 (grub_cmd_initrd): Likewise.
7535 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7536 (grub_cmd_linux): Likewise.
7537 (grub_cmd_initrd): Likewise.
7538 (grub_cmd_payload): Likewise.
7539 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7540 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7541 (grub_cmd_module): Likewise.
7542 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7543 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7544 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7545 (grub_cmd_xnu_mkext): Likewise.
7546 (grub_cmd_xnu_ramdisk): Likewise.
7547 (grub_xnu_check_os_bundle_required): Likewise.
7548 (grub_xnu_load_kext_from_dir): Likewise.
7549 (grub_cmd_xnu_kextdir): Likewise.
7550 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7551
7552 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7553
7554 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7555 as 1024 in block size field. Found on one of my test images.
7556 Small optimisation while on it.
7557
7558 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7559
7560 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7561 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7562 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7563 performance fixes while on it.
7564 (grub_sfs_close): Fix memory leak while on it.
7565 (grub_sfs_label): Convert Latin1 to UTF-8.
7566
7567 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7568
7569 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7570 space to avoid overflows.
7571 (grub_hfs_label): Convert from macroman to UTF-8.
7572
7573 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7574
7575 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7576
7577 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7578
7579 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7580
7581 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 * unicode: Import Unicode 6.0 data.
7584
7585 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7588 outside of range.
7589
7590 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7591
7592 Avoid cutting in the middle of UTF-8 character.
7593
7594 * include/grub/charset.h (grub_getend): New function.
7595 * grub-core/script/function.c (grub_script_function_find): Use
7596 grub_getend.
7597 * grub-core/normal/completion.c (add_completion): Likewise.
7598
7599 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7602 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7603 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7604 (GRUB_UNICODE_TAG_END): Likewise.
7605 (GRUB_UNICODE_LAST_VALID): Likewise.
7606
7607 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7610 len and make it smaller. All users updated.
7611 * util/import_unicode.py: Put length and not end character.
7612 Check length.
7613
7614 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 Make better Unicode-compliant and unify some UTF-8 code pathes.
7617
7618 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7619 valid character.
7620 (grub_is_valid_utf8): Use grub_utf8_process.
7621 Check resulting code range.
7622 (grub_utf8_to_ucs4): Use grub_utf8_process.
7623 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7624 valid character.
7625
7626 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7627
7628 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7629
7630 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * docs/grub.texi (Filesystems): Mention AFS.
7633
7634 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7635
7636 * docs/grub.texi (Filesystems): Clarify restrictions.
7637 (Regexp): Mention non-Unicode regexp behaviour.
7638 (Other): Mention non-Unicode matching behaviour.
7639
7640 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 Make HFS implementation use MacRoman.
7643
7644 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7645 (macroman): New const array.
7646 (macroman_to_utf8): New function.
7647 (utf8_to_macroman): Likewise.
7648 (grub_hfs_find_dir): Use utf8_to_macroman.
7649 (grub_hfs_dir): Use macroman_to_utf8.
7650 Set case_insensitive.
7651
7652 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7653
7654 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7655
7656 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 Integrate hints into autogeneration scripts.
7659
7660 * docs/grub.texi (Filesystems): Add a hostdisk example.
7661 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7662 (grub-probe): Add ofpath.
7663 * gentpl.py: Remove group nosparc64.
7664 * grub-core/commands/search.c (cache_entry): New struct.
7665 (cache): New var.
7666 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7667 * grub-core/commands/search_wrap.c (options): Add platform-specific
7668 hint options.
7669 (grub_cmd_search): Handle platform-specific hints.
7670 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7671 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7672 (grub_util_biosdisk_data): Likewise.
7673 (grub_util_biosdisk_open): Set device_map.
7674 (read_device_map): Handle "" as indication of no map.
7675 Set device_map.
7676 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7677 (grub_util_biosdisk_get_compatibility_hint): New function.
7678 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7679 * include/grub/emu/hostdisk.h
7680 (grub_util_biosdisk_get_compatibility_hint): New proto.
7681 * util/grub-install.in: Don't call grub-mkdevicemap.
7682 Add platform-specific hint to load.cfg.
7683 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7684 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7685 hints. Set root preliminary to compatibility hint, not to OS name.
7686 * util/grub-probe.c (PRINT_*): Add hints.
7687 (print): Make static.
7688 (escape_of_path): New function.
7689 (guess_bios_drive): Likewise.
7690 (guess_efi_drive): Likewise.
7691 (guess_baremetal_drive): Likewise.
7692 (print_full_name): Likewise.
7693 (probe): Handle hints.
7694 (main): Likewise.
7695 * util/ieee1275/devicemap.c: Removed.
7696 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7697 updated.
7698 (grub_util_devname_to_ofpath): Return NULL on failure.
7699
7700 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7701 resource leak.
7702 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7703
7704 * po/POTFILES.in: Regenerated.
7705
7706 Allow purely long options
7707
7708 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7709 (SHORT_ARG_USAGE): Likewise.
7710 (grub_arg_show_help): Compare opt with help_options.
7711 (parse_option): Receive opt as argument. If makes big simplificatons.
7712 All users updated
7713
7714 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7715
7716 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7717 Restructure to avoid warning.
7718
7719 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * util/grub-install.in: Account for possible escaped comma in device
7722 name.
7723
7724 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7727 channel.
7728
7729 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7730
7731 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7732 allocation and zero-setting.
7733 (grub_ieee1275_get_devname): Check that alias is complete.
7734
7735 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7736
7737 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7738 unaligned segments.
7739
7740 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7741
7742 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7743 prefix.
7744 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7745 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7746 Add ieee1275 prefix.
7747
7748 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7749
7750 * docs/grub.texi (Filesystems): Update.
7751
7752 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 Support odc, newc and bigendian cpio formats.
7755
7756 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7757 * grub-core/Makefile.core.def (newc): New module.
7758 (odc): Likewise.
7759 (cpio_be): Likewise.
7760 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7761 (MAGIC): Likewise.
7762 (MAGIC2): Likewise.
7763 (head) [MODE_ODC]: Adapt for the format.
7764 (head) [MODE_NEWC]: Likewise.
7765 (head) [!MODE_*]: Write fields of interest as arrays.
7766 (MAGIC_USTAR): Removed.
7767 (read_number) [MODE_NEWC]: Change to hex.
7768 (read_number) [!MODE_*]: Parse binary arrays.
7769 (grub_cpio_find_file): Factor out the code for better structure and
7770 always use read_number.
7771 (grub_cpio_mount): Use MAGIC and MAGIC2.
7772 (grub_cpio_dir): Exit on first hook non-0 return.
7773 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7774 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7775 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7776 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7777 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7778 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7779 * grub-core/fs/newc.c: New file.
7780 * grub-core/fs/odc.c: Likewise.
7781 * grub-core/fs/cpio_be.c: Likewise.
7782
7783 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7784
7785 Fix handling of tar numbers occupying the whole field.
7786
7787 * grub-core/fs/cpio.c (read_number): New function.
7788 (grub_cpio_find_file): Use read_number instead of strtoull.
7789
7790 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7791
7792 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7793 occupying the whole field size.
7794
7795 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7796
7797 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7798
7799 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7800
7801 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7802
7803 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7804
7805 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7806 TARGET_IMG_LDFLAGS.
7807
7808 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7809
7810 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7811 (mountinfo_entry): Increase the field size to take escaping into
7812 account.
7813 (find_root_device_from_libzfs): Add one byte to size of strings for
7814 security.
7815
7816 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7817
7818 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7819 an assert.
7820 * util/grub-setup.c (setup): Likewise.
7821
7822 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7823
7824 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7825 _LzmaDecodeA.
7826
7827 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7828
7829 * docs/grub.texi (Internationalisation): New section.
7830
7831 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7832
7833 * docs/grub.texi (Loopback booting): New section.
7834
7835 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7836
7837 * util/grub-mkstandalone.in: Fix minor typo errors.
7838
7839 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7840
7841 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7842
7843 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7844 net/icmp.c and net/icmp6.c.
7845 (http): New module.
7846 (priority_queue): Likewise.
7847 * grub-core/io/bufio.c: Rewritten.
7848 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7849 TYPE_WITH_CONFIGFILE_OPTION.
7850 (legacy_commands): Add bootp and dhcp.
7851 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7852 (grub_legacy_parse): Likewise.
7853 * grub-core/lib/priority_queue.c: New file.
7854 * grub-core/net/arp.c: Add missing license header.
7855 (arp_find_entry): Removed.
7856 (arp_find_entry): Likewise.
7857 (grub_net_arp_resolve): Rename to ...
7858 (grub_net_arp_send_request): ...this.
7859 (grub_net_arp_receive): New card argument.
7860 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7861 Set router and DNS server.
7862 (grub_net_configure_by_dhcp_ack): Handle routing information.
7863 (grub_cmd_bootp): Set checksum.
7864 (grub_bootp_init): Remove net_dhcp.
7865 * grub-core/net/dns.c: New file.
7866 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7867 completion.
7868 (get_card_packet): Handle allocation.
7869 (grub_efinet_findcards): Set mtu.
7870 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7871 (get_card_packet): Handle allocation.
7872 (emucard): Set mtu.
7873 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7874 (GRUB_MOD_INIT): Set mtu.
7875 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7876 mtu.
7877 (get_card_packet): Handle allocation.
7878 (grub_ofnet_findcards): Set mtu.
7879 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7880 assert.
7881 (grub_net_recv_ethernet_packet): Handle IPv6.
7882 * grub-core/net/http.c: New file.
7883 * grub-core/net/icmp.c: Likewise.
7884 * grub-core/net/icmp6.c: Likewise.
7885 * grub-core/net/ip.c (ip6addr): New type.
7886 (ip6hdr): Likewise.
7887 (reassemble): Likewise.
7888 (cmp): New function.
7889 (reassembles): New variable.
7890 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
7891 (id): New variable.
7892 (send_fragmented): New function.
7893 (grub_net_send_ip_packet): Rename to ...
7894 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
7895 Handle non-UDP.
7896 (grub_net_recv_ip_packets): Rename to ...
7897 (handle_dgram): ... this. Check checksum. Handle non-UDP.
7898 (free_rsm): New function.
7899 (free_old_fragments): Likewise.
7900 (grub_net_recv_ip4_packets): New function.
7901 (grub_net_send_ip6_packet): Likewise.
7902 (grub_net_send_ip_packet): Likewise.
7903 (grub_net_recv_ip6_packets): Likewise.
7904 (grub_net_recv_ip_packets): Likewise.
7905 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
7906 (LINK_LAYER_CACHE_SIZE): New const.
7907 (link_layer_find_entry): New function.
7908 (grub_net_link_layer_add_address): Likewise.
7909 (grub_net_link_layer_resolve_check): Likewise.
7910 (grub_net_link_layer_resolve): Likewise.
7911 (grub_net_ipv6_get_slaac): Likewise.
7912 (grub_net_ipv6_get_link_local): Likewise.
7913 (grub_cmd_ipv6_autoconf): Likewise.
7914 (parse_ip): Handle one number representation.
7915 (parse_ip6): New functoion.
7916 (match_net): Handle IPv6.
7917 (grub_net_resolve_address): Handle IPv6 and DNS.
7918 (grub_net_resolve_net_address): Handle IPv6.
7919 (route_cmp): New function.
7920 (grub_net_route_address): Find best route.
7921 (grub_net_addr_to_str): Handle IPv6.
7922 (grub_net_addr_cmp): New function.
7923 (grub_net_add_addr): Register local route.
7924 (print_net_address): Handle net address.
7925 (grub_net_poll_cards): Retransmit TCP.
7926 (grub_net_poll_cards_idle_real): Likewise.
7927 (have_ahead): New function.
7928 (grub_net_seek_real): Use underlying seek.
7929 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
7930 * grub-core/net/tcp.c: New file.
7931 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
7932 (cmp): New function.
7933 (ack): Likewise.
7934 (tftp_receive): Handle unordered input.
7935 (destroy_pq): New function.
7936 (tftp_close): Close pq.
7937 * grub-core/net/udp.c: Put missing license header.
7938 (grub_net_udp_socket): New function.
7939 (udp_socket_register): Likewise.
7940 (grub_net_udp_close): Likewise.
7941 (grub_net_recv_udp_packet): Check checksum.
7942 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
7943 * include/grub/misc.h (grub_memchr): New function.
7944 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
7945 (grub_net_card_driver): Return buf in recv.
7946 (grub_net_slaac_mac_list): New struct.
7947 (grub_network_level_protocol_id): Add ipv6.
7948 (grub_net_network_level_addr): Likewise.
7949 (grub_net_network_level_net_addr): Likewise.
7950 (grub_net_app_protocol): Add seek.
7951 (grub_net_socket): Removed.
7952 (grub_net_sockets): Likewise.
7953 (grub_net_socket_register): Likewise.
7954 (grub_net_socket_unregister): Likewise.
7955 (FOR_NET_SOCKETS): Likewise.
7956 (grub_net_add_addr): Add const.
7957 (GRUB_NET_BOOTP_*): New enum.
7958 (grub_net_addr_cmp): New proto.
7959 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
7960 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
7961 (grub_net_hwaddr_to_str): NEw proto.
7962 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
7963 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
7964 (grub_dns_init): New proto.
7965 (grub_dns_fini): Likewise.
7966 (grub_net_tcp_retransmit): Likewise.
7967 (grub_net_link_layer_add_address): Likewise.
7968 (grub_net_link_layer_resolve_check): Likewise.
7969 (grub_net_link_layer_resolve): Likewise.
7970 (grub_net_dns_lookup): Likewise.
7971 (grub_net_add_dns_server): Likewise.
7972 (grub_net_remove_dns_server): Likewise.
7973 (GRUB_NET_TRIES): New const.
7974 (GRUB_NET_INTERVAL): Likewise.
7975 * include/grub/net/arp.h: Mostly rewritten.
7976 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
7977 * include/grub/net/ip.h: Mostly rewritten.
7978 * include/grub/net/netbuff.h: Indent.
7979 * include/grub/net/tcp.h: New file.
7980 * include/grub/net/udp.h: Mostly rewritten.
7981 * include/grub/priority_queue.h: New file.
7982 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
7983 (grub_swap_bytes64_compile_time): Likewise.
7984 (grub_cpu_to_be16_compile_time): Likewise.
7985 (grub_cpu_to_be32_compile_time): Likewise.
7986 (grub_cpu_to_be64_compile_time): Likewise.
7987 (grub_be_to_cpu64_compile_time): Likewise.
7988
7989 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7990
7991 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
7992 UINT_TO_PTR with cast.
7993
7994 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7995
7996 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
7997 don't use them.
7998
7999 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8000
8001 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8002 already there.
8003
8004 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8007 confusing ipxe.
8008
8009 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8012 Add missing const attribute.
8013 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8014 Likewise.
8015 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8016 Likewise.
8017
8018 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8019
8020 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8021 misaligned access.
8022 (serpent_setkey): Likewise.
8023 (serpent_encrypt_internal): Likewise.
8024 (serpent_decrypt_internal): Likewise.
8025 (serpent_encrypt): Don't put an alignment-increasing cast.
8026 (serpent_decrypt): Likewise.
8027 (serpent_test): Likewise.
8028
8029 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8032
8033 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8034
8035 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8036
8037 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8038 grub_addr_t casts.
8039 (PTR_TO_UINT64): Likewise.
8040 (PTR_TO_UINT32): Likewise.
8041
8042 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8043
8044 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8045 because of stack.
8046 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8047 limit.
8048
8049 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8052 text_width > available width a bit more gracefully.
8053
8054 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8055
8056 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8057 current address calculation.
8058
8059 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8062 stack.
8063 (encode_block): Likewise.
8064
8065 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8066
8067 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8068 certainety.
8069
8070 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8071
8072 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8073 non-RS part to avoid RS messing with GDT.
8074 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8075 Increase to suit in realmode routines.
8076
8077 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8078
8079 * grub-core/kern/i386/realmode.S: Increase alignment.
8080 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8081
8082 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8083
8084 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8085 be deterministic.
8086 (syndroms): Compute 0 syndrom.
8087 (rs_recover): Use 0 syndrom.
8088
8089 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8090
8091 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8092
8093 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8094
8095 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8096 brackets.
8097
8098 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8099
8100 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8101 account.
8102 (get_top_pad): Likewise.
8103 (get_right_pad): Likewise.
8104 (get_bottom_pad): Likewise.
8105
8106 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8107
8108 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8109
8110 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8111
8112 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8113 attribute as the structure isn't guaranteed to be properly aligned.
8114 (grub_efi_pci_device_path): Likewise.
8115 (grub_efi_pccard_device_path): Likewise.
8116 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8117 specify the size of `memory_type'.
8118 (grub_efi_vendor_device_path): Likewise.
8119 (grub_efi_controller_device_path): Likewise.
8120 (grub_efi_acpi_device_path): Likewise.
8121 (grub_efi_expanded_acpi_device_path): Likewise.
8122 (grub_efi_atapi_device_path): Likewise.
8123 (grub_efi_scsi_device_path): Likewise.
8124 (grub_efi_fibre_channel_device_path): Likewise.
8125 (grub_efi_1394_device_path): Likewise.
8126 (grub_efi_usb_device_path): Likewise.
8127 (grub_efi_usb_class_device_path): Likewise.
8128 (grub_efi_i2o_device_path): Likewise.
8129 (grub_efi_mac_address_device_path): Likewise.
8130 (grub_efi_ipv4_device_path): Likewise.
8131 (grub_efi_ipv6_device_path): Likewise.
8132 (grub_efi_infiniband_device_path): Likewise.
8133 (grub_efi_uart_device_path): Likewise.
8134 (grub_efi_vendor_messaging_device_path): Likewise.
8135 (grub_efi_hard_drive_device_path): Likewise.
8136 (grub_efi_cdrom_device_path): Likewise.
8137 (grub_efi_vendor_media_device_path): Likewise.
8138 (grub_efi_file_path_device_path): Likewise.
8139 (grub_efi_protocol_device_path): Likewise.
8140 (grub_efi_piwg_device_path): Likewise.
8141 (grub_efi_bios_device_path): Likewise.
8142
8143 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8146 (grub_ucs4_to_utf8_alloc): Likewise.
8147 (grub_ucs4_to_utf8): Likewise.
8148 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8149 (grub_ucs4_to_utf8_alloc): Likewise.
8150
8151 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8152
8153 AFFS never uses unicode.
8154
8155 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8156 (grub_latin1_to_utf8): New inline function.
8157 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8158
8159 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8160
8161 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8162 overflow.
8163
8164 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8165
8166 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8167 (grub_squash_dirent_header): Likewise.
8168 (read_chunk): Don't double swap.
8169 (grub_squash_iterate_dir): Fix swap sizes.
8170
8171 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8172
8173 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8174
8175 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8176
8177 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8178 (grub_hfs_iterate_dir): Likewise.
8179
8180 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8181
8182 Fix video on platforms where unaligned access is forbidden.
8183 Make several optimisations while on it.
8184
8185 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8186 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8187 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8188 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8189 Disable.
8190 (grub_video_fbblit_replace_16bit_1bit):
8191 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8192 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8193 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8194 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8195 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8196 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8197 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8198 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8199 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8200 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8201 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8202 (grub_video_fbblit_replace_index_RGB888): Likewise.
8203 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8204 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8205 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8206 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8207 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8208 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8209 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8210 Disable.
8211 (grub_video_fbblit_blend_XXX565_1bit):
8212 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8213 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8214 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8215 void *.
8216 * grub-core/video/fb/video_fb.c (common_blitter)
8217 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8218 (grub_video_fb_create_render_target_from_pointer)
8219 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8220 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8221 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8222 definition.
8223 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8224
8225 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8226
8227 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8228 HH22 and HM10 relocations.
8229
8230 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8233
8234 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8235
8236 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8237 allocation succeeded.
8238
8239 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8240
8241 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8242 argument a u8 pointer. All users updated.
8243 Handle unaligned buffers.
8244
8245 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8248 add_part to workaround compiler bug.
8249
8250 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8251
8252 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8253
8254 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8257 Reserve alignment invariants.
8258 (grub_multiboot_load): Likewise.
8259 (retrieve_video_parameters): Likewise.
8260 (grub_multiboot_make_mbi): Likewise.
8261
8262 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8263
8264 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8265 incorrect pointer.
8266
8267 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8268
8269 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8270 (grub_pata_pio_write): Likewise.
8271
8272 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8273
8274 Add noreturn attributes and remove unreachable code.
8275
8276 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8277 code.
8278 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8279 code. Mark as noreturn.
8280 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8281 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8282 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8283 unreachable code.
8284 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8285 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8286 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8287 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8288 * include/grub/kernel.h (grub_main): Mark as noreturn.
8289 * include/grub/reader.h (grub_rescue_run): Likewise.
8290
8291 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8292
8293 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8294 redundant declaration.
8295
8296 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8297
8298 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8299 redundant declaration.
8300 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8301
8302 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8303
8304 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8305 to ensure alignment.
8306 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8307 alignment. Ensure tmp alignment.
8308 (grub_cmd_hdparm): Ensure buf alignment.
8309 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8310 to ensure alignment.
8311 (grub_ata_dumpinfo): Ensure text alignment.
8312 (grub_atapi_identify): Preserve alignment invariant.
8313 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8314
8315 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8318 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8319 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8320 * include/grub/misc.h (grub_reboot)
8321 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8322 (grub_halt) [__mips__]: Likewise.
8323
8324 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8327 Remove redundant declaration.
8328 (grub_mmap_get_post64): Likewise.
8329 (grub_mmap_get_upper): Likewise.
8330 (grub_mmap_get_lower): Likewise.
8331
8332 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8333
8334 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8335 uint32_t * to ensure alignment.
8336 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8337
8338 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8339
8340 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8341 uint16_t * to ensure alignment.
8342 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8343 alignment.
8344
8345 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8346
8347 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8348 to ensure alignment.
8349 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8350
8351 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8352
8353 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8354 Handle unaligned pointers.
8355 (u32at): Likewise.
8356 (u64at): Likewise.
8357 (fixup): Use byte access instead of v16at.
8358 (find_attr): Fix imporper usage of v32at.
8359 (read_data): Likewise.
8360 (list_file): Handle byte-swapping and unaligned strings.
8361 (grub_ntfs_label): Likewise.
8362
8363 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8364
8365 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8366 as it's not necessarily aligned.
8367
8368 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8371 redundant declaration.
8372 (grub_serial_init): Likewise.
8373 (grub_terminfo_init): Likewise.
8374
8375 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8376
8377 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8378 function.
8379 (ZAP_HASH_IDX): Likewise.
8380 (ZAP_LEAF_HASH_SHIFT): Likewise.
8381 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8382 (LEAF_HASH): Likewise.
8383 (ZAP_LEAF_NUMCHUNKS): Likewise.
8384 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8385 alignment invariants. Return pointer. All users updated.
8386 (ZAP_LEAF_ENTRY): Make into inline function.
8387 (NBBY): Removed.
8388 (xor): LIkewise.
8389 (xor_out): Use grub_crypto_xor.
8390 (dnode_get_path): Use grub_get_unaligned.
8391 (nvlist_find_value): Likewise.
8392 (grub_zfs_nvlist_lookup_uint64): Likewise.
8393 (grub_zfs_nvlist_lookup_string): Likewise.
8394 (get_nvlist_size): Likewise.
8395 (grub_zfs_open): Likewise.
8396 (fill_fs_info): Likewise.
8397 (grub_zfs_dir): Likewise.
8398 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8399 alignment invariants.
8400 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8401 necessarily aligned.
8402
8403 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8404
8405 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8406
8407 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8408
8409 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8410 arithmetic to conserve alignment invariants.
8411
8412 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8413
8414 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8415 redundant declaration.
8416 (grub_efiemu_mm_obtain_request): Likewise.
8417 (grub_efiemu_prepare): Likewise.
8418
8419 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8420
8421 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8422 to match types.
8423
8424 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8425
8426 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8427 case of aunaligned recptr.
8428 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8429 alignment.
8430 (grub_hfsplus_btree_search): Handle unaligned index.
8431
8432 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8435 to get freetag and skip.
8436
8437 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8438
8439 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8440 array.
8441 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8442 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8443
8444 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8445
8446 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8447 name for checksum and fix allocation algorithm.
8448
8449 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 * include/grub/types.h (grub_properly_aligned_t): New type.
8452 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8453 (grub_get_unaligned16): Add explicit casts.
8454 (grub_get_unaligned32): Likewise.
8455 (grub_get_unaligned64): Likewise.
8456 (grub_set_unaligned16): New function.
8457 (grub_set_unaligned32): Likewise.
8458
8459 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8460
8461 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8462
8463 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8464
8465 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8466 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8467 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8468
8469 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8470
8471 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8472 conditionals.
8473
8474 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8475
8476 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8477 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8478
8479 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8480
8481 Unify and improve RAID and crypto xor.
8482
8483 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8484 changed to grub_crypto_xor
8485 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8486 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8487 Use bigger types when possible.
8488
8489 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * grub-core/disk/raid.c (scan_devices): Fix condition.
8492
8493 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8494
8495 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8496 Make name a const ptr.
8497
8498 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8499
8500 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8501 first argument a const pointer.
8502 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8503 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8504 proto.
8505 (grub_children_iterate): Likewise.
8506 (grub_machine_mmap_iterate): Remove redundant declaration.
8507
8508 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8509
8510 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8511 (grub_cmd_acpi) [!x86]: Disable EBDA.
8512
8513 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8514
8515 Enable UTF8 in gnulib regexp.
8516
8517 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8518 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8519 (isupper): Use grub_isupper.
8520 (isascii): New inline function.
8521 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8522 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8523 * grub-core/normal/charset.c (grub_utf8_process): New function.
8524 (grub_utf8_to_utf16): Use grub_utf8_process.
8525 (grub_encode_utf8_character): New function.
8526 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8527 * include/grub/charset.h (grub_utf8_process): New declaration.
8528 (grub_encode_utf8_character): Likewise.
8529 * include/grub/misc.h (grub_islower): New inline function.
8530 (grub_isupper): Likewise.
8531 (grub_strchrsub): Moved down to fix the definitions.
8532
8533 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8536 specification.
8537
8538 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8539
8540 * include/grub/loader.h (grub_loader_register_preboot_hook):
8541 Use struct preboot * and not void * for handle. All users updated.
8542 (grub_loader_unregister_preboot_hook): Likewise.
8543
8544 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8545
8546 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8547 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8548 UTF-16-BE. All users updated.
8549 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8550 (grub_hfsplus_iterate_dir): Likewise.
8551 (grub_hfsplus_label): Likewise.
8552
8553 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8556
8557 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 Add missing const qualifiers.
8560
8561 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8562 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8563 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8564 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8565 (grub_lvm_check_flag): Likewise.
8566 * grub-core/efiemu/i386/coredetect.c
8567 (grub_efiemu_get_default_core_name): Likewise
8568 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8569 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8570 * grub-core/fs/ntfs.c (fixup): Likewise.
8571 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8572 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8573 (fzap_lookup): Likewise.
8574 (zap_lookup): Likewise.
8575 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8576 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8577 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8578 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8579 (grub_freebsd_add_meta_module): Likewise.
8580 (grub_cmd_freebsd_module): Likewise.
8581 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8582 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8583 (grub_xnu_writetree_get_size): Likewise.
8584 (grub_xnu_writetree_toheap_real): Likewise.
8585 (grub_xnu_find_key): Likewise.
8586 (grub_xnu_create_key): Likewise.
8587 (grub_xnu_create_value): Likewise.
8588 (grub_xnu_register_memory): Likewise.
8589 (grub_xnu_check_os_bundle_required): Likewise.
8590 (grub_xnu_scan_dir_for_kexts): Likewise.
8591 (grub_xnu_load_kext_from_dir): Likewise.
8592 * grub-core/normal/color.c (color_list): Likewise.
8593 * grub-core/normal/completion.c (current_word): Likewise.
8594 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8595 * grub-core/term/serial.c (grub_serial_find): Likewise.
8596 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8597 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8598 Likewise.
8599 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8600 (grub_freebsd_add_meta_module): Likewise.
8601 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8602 * include/grub/net.h (grub_net_card_driver): Likewise.
8603 (grub_net_card): Likewise.
8604 (grub_net_app_protocol): Likewise.
8605 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8606 * include/grub/serial.h (grub_serial_find): Likewise.
8607 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8608 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8609 (grub_xnu_create_value): Likewise.
8610 (grub_xnu_find_key): Likewise.
8611 (grub_xnu_scan_dir_for_kexts): Likewise.
8612 (grub_xnu_load_kext_from_dir): Likewise.
8613
8614 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8615 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8616 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8617 Moved from here ...
8618 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8619
8620 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8621
8622 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8623
8624 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8625
8626 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8627 (read_device): Fix size calculation.
8628
8629 2011-11-25 Robert Millan <rmh@gnu.org>
8630
8631 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8632 (find_root_device_from_libzfs): Add zpool output parser to be used
8633 as fallback when libzfs isn't available.
8634
8635 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8636
8637 * po/Makefile.in.in: Add missing escape-continuation.
8638
8639 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8640
8641 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8642
8643 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8644
8645 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8646
8647 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8648
8649 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8650
8651 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8652
8653 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8654
8655 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8656
8657 * grub-core/lib/adler32.c: Add missing license specification.
8658 * grub-core/lib/crc64.c: Likewise.
8659 * grub-core/loader/i386/pc/plan9.c: Likewise.
8660 * grub-core/partmap/plan.c: Likewise.
8661
8662 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8663
8664 Add facility to debug GRUB with gdb under qemu.
8665
8666 * grub-core/gdb_grub.in: New file.
8667 * grub-core/gmodule.pl.in: Likewise.
8668 * grub-core/Makefile.core.def (gmodule.pl): New script.
8669 (gdb_grub): Likewise.
8670
8671 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8672
8673 * util/grub-mount.c (argp_parser): Accept relative pathes.
8674 * util/grub-fstest.c (argp_parser): Likewise.
8675
8676 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8677
8678 Plan9 support.
8679
8680 * Makefile.util.def (libgrubmods): Add
8681 grub-core/partmap/plan.c.
8682 * docs/grub.texi: Notice Plan9 support.
8683 * grub-core/Makefile.core.def (plan9): New module.
8684 (part_plan): Likewise.
8685 * grub-core/loader/i386/pc/plan9.c: New file.
8686 * grub-core/partmap/plan.c: Likewise.
8687 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8688 define.
8689 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8690 * include/grub/mm.h (grub_extend_alloc): New inline function.
8691
8692 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8693
8694 Make Reed-Solomon faster by using power of generator representation of
8695 GF(256)*.
8696
8697 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8698 (gf_double_t): Likewise.
8699 (gf_invert): Removed.
8700 (gf_powx): New array.
8701 (gf_powx_inv): Likewise.
8702 (scratch): Move higher.
8703 (gf_reduce): Removed.
8704 (gf_mul): Use powx.
8705 (gf_invert): Likewise.
8706 (init_inverts): Replaced with ...
8707 (init_powx): ...this. All users updated.
8708 (pol_evaluate): Replace multiplications with additions.
8709 (rs_encode): Likewise.
8710 (gauss_eliminate): Call gf_invert.
8711 (grub_reed_solomon_add_redundancy): Call init_powx.
8712 (grub_reed_solomon_recover): Call init_powx unconditionally.
8713
8714 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8717
8718 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8721 disk->partiton for safety.
8722
8723 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8724
8725 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8726 Fix a memory leak.
8727 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8728
8729 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8730
8731 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8732
8733 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8734
8735 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8736
8737 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8738
8739 Fix spaces handling in proc/self/mountinfo.
8740
8741 * util/getroot.c (unescape): New function.
8742 (grub_find_root_device_from_mountinfo): Use unescape.
8743
8744 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8745
8746 Support ZFS embedding.
8747
8748 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8749 (grub_zfs_fs): Register grub_zfs_embed.
8750
8751 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8752
8753 Fix MIPS compilation.
8754
8755 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8756 * include/grub/offsets.h: Rename decompressor fields from
8757 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8758 * util/grub-mkimage.c (image_targets): Use new names.
8759
8760 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8761
8762 Defer multiboot device parsing until we're in compressed part.
8763
8764 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8765 bsd_part. setdevice has fallen into disuse.
8766 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8767 (bsd_part): Likewise.
8768 (boot_dev): New variable.
8769 (multiboot_trampoline): Don't parse multiboot device.
8770 Pass multiboot device in %edx.
8771 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8772 grub_boot_device.
8773 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8774 Likewise.
8775 * grub-core/kern/i386/pc/startup.S: Save edx.
8776 (grub_boot_drive): Removed.
8777 (grub_install_dos_part): Likewise.
8778 (grub_install_bsd_part): Likewise.
8779 (grub_boot_device): New variable.
8780 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8781 (grub_install_bsd_part): Likewise.
8782 (grub_boot_drive): Likewise.
8783 (grub_boot_device): New variable.
8784 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8785 Removed.
8786 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8787 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8788 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8789 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8790 * util/grub-install.in: Remove redundant condition.
8791
8792 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8793
8794 Fix bug introduced by previous commit.
8795
8796 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8797
8798 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 Use decompressors framework on i386-pc. It increases core size
8801 by 46 bytes but improves compatibility and maintainability.
8802
8803 * grub-core/Makefile.core.def (lzma_decompress): New image.
8804 (kernel): Add i386_pc_ldflags.
8805 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8806 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8807 to real_to_prot, prot_to_real and device info.
8808 * include/grub/offsets.h: Renamed decompressor offsets.
8809 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8810 (image_target_desc): Remove raw_size and rename decompressor fields.
8811 (compress_kernel): Handle lzma.
8812 (generate_image): Handle decompressors on i386-pc.
8813
8814 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8815
8816 * configure.ac: Add -fno-asynchronous-unwind-tables.
8817
8818 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8819
8820 Move assembly code to C by using intwrap. It increases core size
8821 by 88 bytes but improves compatibility and maintainability.
8822
8823 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8824 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8825 ... here. Translated to C.
8826 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8827 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8828 ... here. Translated to C.
8829 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8830 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8831 ... here. Translated to C.
8832 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8833 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8834 ... here. Translated to C.
8835 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8836 * grub-core/term/i386/pc/console.c (grub_console_cls):
8837 ... here. Translated to C.
8838 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8839 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8840 ... here. Translated to C.
8841 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8842 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8843 Translated to C.
8844 * grub-core/term/i386/pc/console.c (int10_9): New function.
8845 (grub_console_putchar): Likewise.
8846 * include/grub/i386/pc/console.h: Removed the not anymore shared
8847 functions.
8848
8849 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8850
8851 Move grub_chainloader_real_boot out of the kernel.
8852
8853 * grub-core/Makefile.am: Remove machine/loader.h.
8854 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8855 Removed.
8856 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8857 variable.
8858 (grub_relocator16_keep_a20_enabled): Likewise.
8859 (grub_relocator16_boot): Fill new variables.
8860 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8861 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8862 relocator.
8863 (grub_chainloader_unload): Likewise.
8864 (grub_chainloader_cmd): Likewise.
8865 * include/grub/i386/pc/loader.h: Removed.
8866 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8867 and esi. All initialisers updated.
8868
8869 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8870 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8871
8872 * Makefile.util.def (grub-mount): New util.
8873 * .bzrignore: Add grub-mount.
8874 * configure.ac: Check for fuse and enable grub-mount if available.
8875 * docs/man/grub-mount.h2m: New file.
8876 * util/grub-mount.c: Likewise.
8877
8878 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8879
8880 * grub-core/commands/efi/fixvideo.c: Gettextize.
8881 * grub-core/commands/hashsum.c: Likewise.
8882 * grub-core/commands/i386/cmostest.c: Likewise.
8883 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8884 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8885 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8886 * grub-core/commands/lsmmap.c: Likewise.
8887 * grub-core/commands/menuentry.c: Likewise.
8888 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8889 * grub-core/commands/setpci.c: Likewise.
8890 * grub-core/loader/i386/bsd.c: Likewise.
8891 * grub-core/loader/i386/linux.c: Likewise.
8892 * util/getroot.c: Likewise.
8893 * util/grub-editenv.c: Likewise.
8894 * util/grub-fstest.c: Likewise.
8895 * util/grub-mkfont.c: Likewise.
8896 * util/grub-mkimage.c: Likewise.
8897 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8898 * util/grub-pe2elf.c: Likewise.
8899 * util/grub-probe.c: Likewise.
8900 * util/grub-setup.c: Likewise.
8901 * util/ieee1275/ofpath.c: Likewise.
8902 * util/misc.c: Likewise.
8903 * util/raid.c: Likewise.
8904
8905 2011-11-11 Robert Millan <rmh@gnu.org>
8906
8907 * util/getroot.c (grub_util_get_geom_abstraction): Remove
8908 __attribute__((unused)) from `os_dev', which *is* being used.
8909
8910 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
8913 forgotten define.
8914 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
8915 GRUB_IA64_DL_GOT_ALIGN.
8916 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
8917 GRUB_IA64_DL_TRAMP_ALIGN.
8918
8919 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8920
8921 Replace grub_fatal with normal errors in i386 linux loader.
8922
8923 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
8924 (allocate_pages): Check find_efi_mmap_size return value.
8925 (grub_e820_add_region): Return error.
8926 (grub_linux_boot): Check mmap return value.
8927
8928 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 * grub-core/commands/acpihalt.c: Gettextized.
8931 * grub-core/commands/cacheinfo.c: Likewise.
8932 * grub-core/commands/cmp.c: Likewise.
8933 * grub-core/commands/efi/loadbios.c: Likewise.
8934 * grub-core/commands/gptsync.c: Likewise.
8935 * grub-core/commands/ieee1275/suspend.c: Likewise.
8936 * grub-core/commands/legacycfg.c: Likewise.
8937 * grub-core/commands/memrw.c: Likewise.
8938 * grub-core/commands/minicmd.c: Likewise.
8939 * grub-core/commands/parttool.c: Likewise.
8940 * grub-core/commands/time.c: Likewise.
8941 * grub-core/commands/videoinfo.c: Likewise.
8942 * grub-core/disk/geli.c: Likewise.
8943 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
8944 * grub-core/disk/luks.c: Likewise.
8945 * grub-core/disk/lvm.c: Likewise.
8946 * grub-core/font/font_cmd.c: Likewise.
8947 * grub-core/fs/zfs/zfscrypt.c: Likewise.
8948 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8949 * grub-core/gfxmenu/view.c: Likewise.
8950 * grub-core/kern/emu/hostdisk.c: Likewise.
8951 * grub-core/kern/emu/main.c: Likewise.
8952 * grub-core/kern/emu/misc.c: Likewise.
8953 * grub-core/kern/emu/mm.c: Likewise.
8954 * grub-core/kern/mips/arc/init.c: Likewise.
8955 * grub-core/kern/mips/loongson/init.c: Likewise.
8956 * grub-core/kern/partition.c: Likewise.
8957 * grub-core/lib/i386/halt.c: Likewise.
8958 * grub-core/lib/mips/arc/reboot.c: Likewise.
8959 * grub-core/lib/mips/loongson/reboot.c: Likewise.
8960 * grub-core/loader/i386/pc/chainloader.c: Likewise.
8961 * grub-core/loader/i386/xnu.c: Likewise.
8962 * grub-core/loader/multiboot.c: Likewise.
8963 * grub-core/net/bootp.c: Likewise.
8964 * grub-core/net/net.c: Likewise.
8965 * grub-core/normal/term.c: Likewise.
8966 * grub-core/partmap/bsdlabel.c: Likewise.
8967 * grub-core/parttool/msdospart.c: Likewise.
8968 * grub-core/term/gfxterm.c: Likewise.
8969 * grub-core/term/terminfo.c: Likewise.
8970 * grub-core/video/i386/pc/vbe.c: Likewise.
8971 * util/grub-menulst2cfg.c: Likewise.
8972 * util/grub-mkdevicemap.c: Likewise.
8973 * util/grub-mklayout.c: Likewise.
8974 * util/grub-mkrelpath.c: Likewise.
8975 * util/grub-script-check.c: Likewise.
8976 * util/ieee1275/grub-ofpathname.c: Likewise.
8977 * util/resolve.c: Likewise.
8978
8979 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8980
8981 Support %1$d syntax.
8982
8983 * tests/printf_unit_test.c: New file.
8984 * Makefile.util.def (printf_test): New test.
8985 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
8986
8987 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8988
8989 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
8990 fix.
8991
8992 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8993
8994 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
8995 dprintf.
8996 * grub-core/font/font.c (grub_font_load): Likewise.
8997
8998 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 * util/grub-macho2img.c: Add comment concerning gettext.
9001 * grub-core/lib/legacy_parse.c: Likewise.
9002
9003 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9004
9005 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9006 (grub_xvasprintf): Likewise.
9007
9008 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 Add const keyword to grub_env_get and gettextize week days.
9011
9012 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9013 (grub_read_hook_datetime): Return const char *.
9014 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9015 updated.
9016 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9017 Mark for gettext.
9018 (grub_get_weekday_name): Return const char *. Call gettext.
9019 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9020 char * and len as the argument. All users updated.
9021 (grub_script_argv_split_append): Receive const char *.
9022 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9023 * include/grub/env.h (grub_env_get): Likewise.
9024 (grub_env_read_hook_t): Return const char *.
9025 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9026 (grub_script_argv_split_append): Likewise.
9027
9028 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9029
9030 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9031
9032 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9035 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9036
9037 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9038
9039 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9040 Fix prototype.
9041
9042 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 Fix mips compilation.
9045
9046 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9047 normal decoder.
9048 (hashes): Use in embed decoder as well (for sizes).
9049 (dec_stream_header): Fix embed decompressor logic.
9050 (dec_stream_footer): Likewise.
9051
9052 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9053
9054 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9055 an error and not a fatal on unrecognised relocation types.
9056
9057 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9058
9059 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9060 Issue error rather than printf on unknown arguments.
9061
9062 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9065 Make buf a const.
9066
9067 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9068
9069 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9070 Fix module name.
9071
9072 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9075 leftover debug printf.
9076
9077 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9080
9081 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9082
9083 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9084 A stylistic fix.
9085
9086 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9087
9088 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9089
9090 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9091
9092 Allow all modules to perform serial IO
9093
9094 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9095 * include/grub/serial.h (grub_serial_port_configure): New inline
9096 function.
9097 (grub_serial_port_fetch): Likewise.
9098 (grub_serial_port_put): Likewise.
9099 (grub_serial_port_fini): Likewise.
9100 (grub_serial_find): New proto.
9101
9102 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9103
9104 Put symlink at the end of the node and fix a potential
9105 memory corruption.
9106
9107 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9108 Make symlink into an array.
9109 (set_rockridge): Set have_symlink and alloc_dirents.
9110 (grub_iso9660_read_symlink): Use new layout.
9111 (grub_iso9660_iterate_dir): Fix memory corruption.
9112 Use new layout.
9113 (grub_iso9660_dir): Set have_symlink.
9114 (grub_iso9660_open): Likewise.
9115
9116 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9117
9118 Remove local keyword.
9119
9120 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9121 (version_test_gt): Likewise.
9122 (version_find_latest): Likewise.
9123 (gettext_printf): Likewise.
9124 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9125
9126 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9127
9128 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9129
9130 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9131
9132 Fix ZFS memory and resource leaks.
9133
9134 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9135 All users updated.
9136 Free type on exit.
9137 (fill_vdev_info): New parameter inserted. All users updated.
9138 (check_pool_label): Likewise.
9139 (scan_disk): Likewise.
9140 (scan_devices): Close non-inserted disks.
9141 (fzap_iterate): Free l.
9142 (unmount_device): Free children descripto memory.
9143
9144 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9145
9146 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9147 argument (access out of bounds).
9148
9149 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9152 >= 6 drives.
9153
9154 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9155
9156 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9157 Fix declaration.
9158
9159 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9160
9161 Fix several memory leaks.
9162
9163 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9164 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9165 (grub_cpio_dir): Likewise.
9166 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9167 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9168 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9169 (grub_romfs_label): Likewise.
9170 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9171 (squash_unmount): New function.
9172 (grub_squash_dir): Fix memory leak.
9173 (grub_squash_open): Likewise.
9174 (grub_squash_read): Likewise.
9175 (grub_squash_mtime): Likewise.
9176 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9177 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9178 * util/grub-fstest.c (fstest): Likewise.
9179
9180 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9183 avoid accessing beyond the array.
9184
9185 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9188
9189 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9190
9191 Several AFFS fixes.
9192
9193 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9194 (GRUB_AFFS_FLAG_FFS): Removed.
9195 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9196 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9197 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9198 (grub_fshelp_node): Make block 32-bit.
9199 Add block_cache and last_block_cache.
9200 (grub_affs_read_block): Fill and use block cache.
9201 (grub_affs_read_file): Removed.
9202 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9203 boot block.
9204 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9205 safety.
9206 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9207 space.
9208 (grub_affs_close): Free block cache.
9209 (grub_affs_read): Use grub_fshelp_read_file directly.
9210
9211 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9212
9213 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9214 with no error set.
9215
9216 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9217
9218 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9219 used variable.
9220 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9221 Likewise.
9222
9223 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9224
9225 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9226
9227 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9228 byteswap when needed.
9229
9230 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9231
9232 Fix FreeBSD compilation.
9233
9234 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9235 to avoid circular dependency.
9236 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9237 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9238 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9239
9240 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9241
9242 Fix ZFS crypto error types.
9243
9244 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9245 (grub_gcm_decrypt): Likewise.
9246 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9247 from PBKDF2.
9248
9249 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9250
9251 Illumos support.
9252
9253 * Makefile.util.def (10_illumos): New script.
9254 * configure.ac: Set COND_HOST_ILLUMOS.
9255 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9256 Support Illumos calls.
9257 (find_partition_start) [__sun__]: Likewise.
9258 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9259 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9260 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9261 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9262 device.
9263 * util/grub-probe.c (probe) [__sun__]: Do character check.
9264 * util/grub.d/10_illumos.in: New file.
9265
9266 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9267
9268 Support escaped commas in hostdisk.
9269
9270 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9271 (find_grub_drive): Use unescape_cmp.
9272 (make_device_name): Escape commas.
9273
9274 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9275
9276 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9277
9278 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9281 variable.
9282
9283 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 Support trampoline jumps on powerpc.
9286
9287 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9288 __ia64__ path.
9289 (grub_dl_load_segments): Set mod->sz.
9290 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9291 segments.
9292 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9293 (jump): Likewise.
9294 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9295 function.
9296 (trampoline): New struct.
9297 (trampoline_template): New const.
9298 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9299 * include/grub/dl.h (grub_dl): Add sz element.
9300 [__powerpc__]: Follow __ia64__.
9301 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9302 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9303 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9304 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9305
9306 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 ZFS crypto support.
9309
9310 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9311 * grub-core/Makefile.core.def (zfscrypt): New module.
9312 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9313 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9314 it. All users updated.
9315 (grub_zfs_decrypt): New var.
9316 (grub_zfs_load_key): Likewise.
9317 (zio_checksum_functions): Add SHA256+MAC.
9318 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9319 (zio_read): Handle encrypted blocks.
9320 (zap_verify): Remove incorrect check.
9321 (fzap_iterate): Handle non-standard fzap.
9322 (zap_iterate): Likewise.
9323 (zap_iterate_u64): New function.
9324 (dnode_get_fullpath): Load keys.
9325 * grub-core/fs/zfs/zfscrypt.c: New file.
9326 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9327 (grub_crypto_ecb_encrypt): Make input const.
9328 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9329 (grub_crypto_ecb_encrypt): Make input const.
9330 (GRUB_CIPHER_AES): New macro.
9331 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9332 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9333 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9334 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9335 prefix. All users updated.
9336 (grub_zfs_add_key): New proto.
9337 (grub_zfs_decrypt): Likewise.
9338 (grub_zfs_load_key): Likewise.
9339 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9340 * util/grub-fstest.c (options): Add -K option.
9341 (argp_parser): Likewise.
9342
9343 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9344
9345 Support zle compression on ZFS.
9346
9347 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9348 (decomp_table): Add zle.
9349 * include/grub/zfs/zio.h (zio_compress): Add zle.
9350
9351 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9352
9353 Support BtrFS embedding.
9354
9355 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9356 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9357 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9358 * util/grub-setup.c (setup): Use fs embedding if available.
9359 Add additional sanity check.
9360
9361 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9362
9363 * util/grub-install.in: Fix condition for config_opt.
9364
9365 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9366
9367 Support third redundancy strip on raidz3.
9368
9369 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9370 Return error on singularity. All users updated.
9371 (read_device): Don't stop on 3rd failure on raidz3.
9372
9373 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9374
9375 Support case-insensitive ZFS subvolumes.
9376
9377 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9378 All users updated.
9379 (zap_hash): Likewise.
9380 (name_cmp): New function.
9381 (zap_leaf_array_equal): New parameter case_insensitive.
9382 All users updated.
9383 (zap_leaf_lookup): Likewise.
9384 (fzap_lookup): Likewise.
9385 (zap_lookup): Likewise.
9386 (dnode_get_path): New parameter case_insensitive. Retrieve case
9387 sensitiviness of a volume. All users updated.
9388 (dnode_get_fullpath): New parameter case_insensitive.
9389 All users updated.
9390 (grub_zfs_dir): Set info.case_insensitiveness.
9391
9392 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 Support second redundancy strip on raidz(2,3).
9395
9396 * grub-core/fs/zfs/zfs.c (powx): New array.
9397 (powx_inv): Likewise.
9398 (poly): New const.
9399 (xor_out): New function.
9400 (gf_mul): Likewise.
9401 (recovery): Likewise.
9402 (read_device): Use second redundancy strip.
9403
9404 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9405
9406 Use a power of generator representation of GF(256) multiplication group
9407 to save space time and complexity.
9408
9409 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9410 (raid6_table2): Likewise.
9411 (powx): New array.
9412 (powx_inv): Likewise.
9413 (poly): New const.
9414 (grub_raid_block_mul): Replace with ...
9415 (grub_raid_block_mulx): ...this.
9416 (grub_raid6_init_table): Rewritten.
9417 (grub_raid6_recover): Use power of generator representation.
9418
9419 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9420
9421 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9422 for the right device.
9423
9424 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9425
9426 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9427 expected by grub-mkimage and it's more clear since there is no implicit
9428 padding.
9429
9430 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9433 disk.
9434 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9435
9436 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9437
9438 * util/grub-mkrescue.in: Fix handling xorriso option.
9439
9440 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9441
9442 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9443 NULL.
9444
9445 2011-11-03 crocket <crockabiscuit@gmail.com>
9446
9447 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9448
9449 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 XZ CRC64 and SHA256 support.
9452
9453 * Makefile.util.def (libgrubmods): Add crc64.c.
9454 * grub-core/Makefile.core.def (crc64): New module.
9455 * grub-core/lib/crc64.c: New file.
9456 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9457 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9458 Fix the type.
9459 (MAX_HASH_SIZE): New define.
9460 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9461 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9462 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9463 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9464 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9465 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9466 Handle non-crc32 hashes.
9467 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9468 (dec_stream_header): Handle non-crc32 hashes.
9469 (dec_stream_footer): Likewise.
9470 (dec_block_header): Likewise.
9471 (dec_main): Likewise.
9472 (xz_dec_init): Likewise.
9473 (xz_dec_reset): Likewise.
9474 (xz_dec_end): Likewise.
9475 * util/import_gcry.py: Add CRC64 line.
9476
9477 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9478
9479 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9480 as well.
9481
9482 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9483
9484 Make reiserfs label retrieval similar to other *_label functions.
9485
9486 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9487 (REISERFS_MAX_LABEL_LENGTH): Removed.
9488 (REISERFS_LABEL_OFFSET): Likewise.
9489 (grub_reiserfs_label): Rewritten.
9490
9491 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9492
9493 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9494 field.
9495
9496 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9497
9498 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9499
9500 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9501
9502 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9503 drive failure on both raidz and raidz2.
9504
9505 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9506
9507 Fix RAIDZ(2) for >= 5 devices.
9508
9509 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9510 asize argument. All users updated.
9511
9512 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 Fix RAIDZ(2).
9515
9516 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9517 (fill_vdev_info_real): Set ashift.
9518 (read_device): Rewrite RAIDZ part based on reverse engineering.
9519
9520 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9521
9522 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9523 don't report potentially unavialiable fields in debug output.
9524 (find_path): Fix double-free and memory leak.
9525
9526 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 Read label on UFS1.
9529
9530 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9531 (grub_ufs_fs): Always set .label.
9532
9533 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9534
9535 Use shifts in UFS.
9536
9537 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9538 (grub_ufs_data): New field log2_blksz.
9539 (grub_ufs_read_file): Use shifts.
9540 (grub_ufs_mount): Check block size and logarithm it.
9541
9542 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9545 long symlinks.
9546
9547 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 Handle symlinks and long names on tar and cpio.
9550
9551 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9552 (ATTR_FILE): Likewise.
9553 (ATTR_DIR): Likewise.
9554 (ATTR_LNK): Likewise.
9555 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9556 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9557 L and K entries.
9558 (grub_cpio_mount): Zero-fill data.
9559 (handle_symlink): New function.
9560 (grub_cpio_dir): Handle symlinks.
9561 (grub_cpio_open): Likewise.
9562 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9563
9564 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 Fix iso9660 filename limitations and fix memory leaks.
9567
9568 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9569 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9570
9571 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9572
9573 Fix JFS file name length limitations.
9574
9575 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9576 (grub_jfs_diropen): Fix maximum filename length.
9577 (grub_jfs_getent): Fix filename length.
9578 (grub_jfs_lookup_symlink): Fix size checks.
9579
9580 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9583 string.
9584
9585 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9586
9587 Leverage BFS implementation to read AFS.
9588
9589 * Makefile.util.def (libgrubmods): Add afs.c.
9590 * grub-core/Makefile.core.def (afs): New module
9591 * grub-core/fs/afs.c: New file.
9592 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9593
9594 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9597
9598 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9599
9600 * grub-core/fs/bfs.c: Run indent.
9601
9602 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9603
9604 BFS implementation based on the specification.
9605
9606 * grub-core/fs/bfs.c: New file.
9607 * Makefile.util.def (libgrubmods): Add bfs.c.
9608 * grub-core/Makefile.core.def (bfs): New module.
9609
9610 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9611
9612 * util/grub-fstest.c (cmd_cp): Clarify error message.
9613 (cmd_cmp): Likewise.
9614
9615 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9616
9617 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9618 and befs_be.
9619
9620 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 Remove afs and befs because of copyright problem.
9623
9624 * grub-core/fs/afs.c: Removed.
9625 * grub-core/fs/afs_be.c: Removed.
9626 * grub-core/fs/befs.c: Removed.
9627 * grub-core/fs/befs_be.c: Removed.
9628 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9629 * grub-core/Makefile.core.def (afs): Removed.
9630 (afs_be): Likewise.
9631 (befs): Likewise.
9632 (befs_be): Likewise.
9633
9634 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 Prefer rockridge over Joliet.
9637
9638 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9639 to ...
9640 (set_rockridge): ... here.
9641 (grub_iso9660_mount): Check rockridge on the primary label when
9642 discovering. Ignore Joliet if Rockridge is present.
9643
9644 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9645
9646 Use shifts in nilfs2.
9647
9648 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9649 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9650 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9651 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9652 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9653 (grub_nilfs2_entries_per_block): Replaced with ...
9654 (grub_nilfs2_log_entries_per_block_log): ... this.
9655 (grub_nilfs2_blocks_per_group): Replaced with ...
9656 (grub_nilfs2_blocks_per_group_log): ... this.
9657 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9658 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9659 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9660 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9661 (grub_nilfs2_palloc_entry_offset): Replaced ...
9662 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9663 (grub_nilfs2_dat_translate): Use shifts.
9664 (grub_nilfs2_read_inode): Likewise.
9665 (GRUB_MOD_INIT): Ensure that logs are correct.
9666
9667 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9668
9669 Use shifts in minix filesystem.
9670
9671 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9672 (GRUB_MINIX_ZONE2SECT): Likewise.
9673 (grub_minix_data): Replace block_size with log_block_size.
9674 (grub_minix_read_file): Use shifts.
9675 (grub_minix_mount): Check block size and take a logarithm.
9676
9677 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 Use shifts in squash4.
9680
9681 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9682 (squash_mount): Check block size and take logarithm.
9683 (direct_read): Use shifts.
9684
9685 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 Correct befs block counting logic.
9688
9689 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9690 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9691 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9692 (grub_afs_read_inode): Use block_shift.
9693 (RANGE_SHIFT): New definition.
9694 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9695 unexpected conditions, use shifts and appropriate types.
9696 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9697
9698 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9699
9700 * grub-core/disk/raid.c (scan_devices): Check partition.
9701 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9702
9703 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 Support BFS (befs) UUID.
9706
9707 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9708 (grub_afs_small_data_element_header): New struct.
9709 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9710 (grub_afs_read_attribute) [MODE_BFS]: New function.
9711 (grub_afs_iterate_dir): Allocate for complete inode.
9712 (grub_afs_mount): Likewise.
9713 (grub_afs_uuid) [MODE_BFS]: New function.
9714 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9715
9716 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9717
9718 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9719 (zfs_unmount): Fix memory leak.
9720
9721 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 Support NTFS reparse points.
9724
9725 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9726 (symlink_descriptor): New struct.
9727 (grub_ntfs_read_symlink): New function.
9728 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9729 (grub_ntfs_open): Likewise.
9730
9731 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9732
9733 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9734
9735 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 fstest xnu_uuid subcommand.
9738
9739 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9740 grub-core/commands/xnu_uuid.c.
9741 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9742 (fstest): Handle xnu_uuid.
9743 (options): Document xnu_uuid.
9744 (argp_parser): Parse xnu_uuid.
9745
9746 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9747
9748 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9749 -l argument. Add newline at the end if printing.
9750 (GRUB_MOD_INIT): Document -l.
9751
9752 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9753
9754 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9755
9756 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 ZFS multi-device and version 33 support.
9759
9760 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9761 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9762 (grub_zfs_data): Add multidev-ice-related fields.
9763 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9764 (dva_get_offset): Make dva const.
9765 (zfs_fetch_nvlist): New function.
9766 (fill_vdev_info_real): Likewise.
9767 (fill_vdev_info): Likewise.
9768 (check_pool_label): Likewise.
9769 (scan_disk): Likewise.
9770 (scan_devices): Likewise.
9771 (read_device): Likewise.
9772 (read_dva): Likewise.
9773 (zio_read_gang): Use read_dva.
9774 (zio_read_data): Likewise.
9775 (zap_leaf_lookup): Add missing endian conversion.
9776 (zap_verify): Add missing endian conversion. All users updated.
9777 (fzap_lookup): Likewise.
9778 (fzap_iterate): Likewise.
9779 (dnode_get_path): Handle SA bonus.
9780 (nvlist_find_value): Make input const. All users updated.
9781 (unmount_device): New function.
9782 (zfs_unmount): Use unmount_device.
9783 (zfs_mount): Use scan_disk.
9784 (zfs_mtime): New function.
9785 (grub_zfs_open): Handle system attributes.
9786 (fill_fs_info): Likewise.
9787 (grub_zfs_dir): Likewise.
9788 (grub_zfs_fs): Add mtime.
9789 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9790 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9791 (SA_MTIME_OFFSET): Likewise.
9792 (SA_SYMLINK_OFFSET): Likewise.
9793 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9794 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9795 (fstest): Support zfsinfo.
9796 (argp_parser): Likewise.
9797
9798 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9801 error.
9802
9803 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 ZFS fixes.
9806
9807 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9808 sharing the same block. Iterate over correct number of indices.
9809 (dnode_get_path): Handle symlinks correctly.
9810
9811 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9814
9815 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 Read label on HFS+.
9818
9819 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9820 (grub_hfsplus_btree_search): Fix types.
9821 (grub_hfsplus_label): Implement.
9822
9823 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9824
9825 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9826
9827 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9828
9829 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9830
9831 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9832
9833 Fix symlink handling on iso9660.
9834
9835 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9836 All users updated.
9837 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9838 (grub_iso9660_read_symlink): Moved most of code ...
9839 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9840
9841 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9842
9843 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9844 Use union to avoid breaking strict-aliasing rules.
9845
9846 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9847
9848 Support multi-extent iso files.
9849
9850 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9851 Add node.
9852 (grub_fshelp_node): Revamp. All users updated.
9853 (FLAG_*): New enum.
9854 (read_node): New function.
9855 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9856 All users updated.
9857 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9858 (get_node_size): New function.
9859 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9860 entries.
9861 Fix memory leak on . and ..
9862 (grub_iso9660_read): Use read_node.
9863 (grub_iso9660_close): Free node.
9864
9865 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9866
9867 Fix tar 4G limit and handle paths containing dot.
9868
9869 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9870 (canonicalize): New function.
9871 (grub_cpio_find_file): Use canonicalize. Store offs in
9872 grub_disk_addr_t.
9873 (grub_cpio_dir): Use grub_disk_addr_t.
9874 (grub_cpio_open): Likewise.
9875
9876 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9877
9878 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9879
9880 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9881 unused flags.
9882 (grub_squash_inode): Add long_file and block_size.
9883 (grub_squash_cache_inode): New struct.
9884 (grub_squash_dirent): Make types into enum.
9885 (SQUASH_TYPE_LONG_REGULAR): New type.
9886 (grub_squash_frag_desc): Add field size.
9887 (SQUASH_BLOCK_FLAGS): New enum.
9888 (grub_squash_data): Use grub_squash_cache_inode.
9889 (grub_fshelp_node): Make ino_chunk 64-bit.
9890 (read_chunk): Minor argument change. All users updated.
9891 (squash_mount): Use correct le_to_cpu.
9892 (grub_squash_open): Handle LONG_REGULAR.
9893 (direct_read): New function.
9894 (grub_squash_read_data): Handle blocks correctly.
9895
9896 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
9899
9900 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
9903
9904 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9905
9906 Fix 2G limit on ZFS.
9907
9908 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
9909 types.
9910 (uberblock_verify): Likewise.
9911 (dmu_read): Likewise.
9912 (grub_zfs_read): Likewise. Remove invalid cast.
9913
9914 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9915
9916 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
9917 (grub_jfs_blkno): Fix incorrect shift.
9918 (grub_jfs_read_file): Use more appropriate types.
9919
9920 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9921
9922 Support triple indirect on minix2 and minix3.
9923
9924 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
9925 Declare triple_indir_zone.
9926 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
9927 indirect.
9928
9929 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 Minix FS fixes.
9932
9933 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
9934 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
9935 Rename ctime to mtime. All users updated.
9936 (grub_minix_get_file_block): Fix types and double indirect computations.
9937
9938 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9939
9940 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
9941 if no label is found.
9942 (grub_fat_iterate_dir): Fix file size type.
9943 (grub_fat_iterate_dir): Likewise.
9944
9945 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9946
9947 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
9948 save some space.
9949 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9950 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9951
9952 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9953
9954 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
9955
9956 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 * util/import_gcry.py: Accept space between # and include.
9959
9960 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9961
9962 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
9963
9964 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 Fine grainely disable warnings on lexer. Remove Wno-error on it.
9967
9968 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
9969 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
9970 yylex_strncpy.
9971 * grub-core/script/yylex.l: Add fine-grained #pragma.
9972
9973 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9974
9975 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
9976 New inline function.
9977 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
9978 Likewise.
9979 (memset) [GRUB_UTIL]: Likewise.
9980 (memcmp) [GRUB_UTIL]: Likewise.
9981
9982 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9983
9984 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
9985 inline function rather than a define.
9986
9987 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9988
9989 * util/grub-setup.c: Add missing include.
9990
9991 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9992
9993 * util/ieee1275/grub-ofpathname.c: Add missing include.
9994
9995 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9996
9997 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
9998 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
9999 Likewise.
10000
10001 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10002
10003 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10004 grub_memcmp usage.
10005
10006 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10007
10008 * util/grub-install.in: Add datarootdir as per automake manual
10009 suggestion.
10010 * util/grub-mknetdir.in: Likewise.
10011
10012 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10013
10014 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10015 suggestion.
10016 * util/grub.d/10_kfreebsd.in: Likewise.
10017 * util/grub.d/10_linux.in: Likewise.
10018 * util/grub.d/10_netbsd.in: Likewise.
10019 * util/grub.d/10_windows.in: Likewise.
10020 * util/grub.d/20_linux_xen.in: Likewise.
10021
10022 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10023
10024 Remove redundant grub_kernel_image_size.
10025
10026 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10027 _edata and _start.
10028 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10029 the small code. It moves it only by few bytes but simplifies the code.
10030 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10031 _start.
10032 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10033 (grub_kernel_image_size): Removed.
10034 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10035 (grub_kernel_image_size): Removed.
10036 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10037 compiled with Apple toolchain.
10038 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10039 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10040 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10041 (grub_total_module_size): Likewise.
10042 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10043 Removed.
10044 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10045 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10046 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10047 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10048 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10049 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10050 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10051 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10052 Removed.
10053 (grub_total_module_size): Removed.
10054 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10055 (image_targets): Likewise.
10056 Set .compressed_size to no field on sparc.
10057 (generate_image): Remove kernel_image_size handling.
10058
10059 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10060
10061 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10062 NULL pointer dereference.
10063
10064 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10067 done with a dedicated section.
10068
10069 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10070 Ensure the correct position of boot_path.
10071 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10072 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10073 other fields.
10074 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10075 * include/grub/boot.h: Removed. All references removed.
10076 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10077 Removed.
10078 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10079
10080 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10081
10082 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10083 name.
10084
10085 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10088
10089 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10090
10091 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10092 Don't add the bogus brackets.
10093
10094 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10095
10096 ExFAT support.
10097
10098 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10099 * grub-core/Makefile.core.def (exfat): New module.
10100 * grub-core/fs/exfat.c: New file.
10101 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10102 (GRUB_FAT_ATTR_*): Make into an enum.
10103 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10104 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10105 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10106 (GRUB_FAT_MAXFILE): Removed.
10107 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10108 (grub_current_fat_bpb_t): New type.
10109 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10110 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10111 (grub_fat_dir_node_t): New type.
10112 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10113 (fat_log2) [MODE_EXFAT]: Removed.
10114 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10115 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10116 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10117 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10118 (grub_fat_label) [MODE_EXFAT]: New function.
10119 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10120 reserved_first_sector to 0.
10121
10122 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10123
10124 Move grub_reboot out of the kernel.
10125
10126 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10127 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10128 * grub-core/lib/efi/reboot.c: ... here.
10129 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10130 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10131 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10132 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10133 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10134 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10135 * grub-core/lib/ieee1275/reboot.c: ... here.
10136 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10137 * grub-core/lib/mips/arc/reboot.c: ... here.
10138 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10139 * grub-core/lib/mips/loongson/reboot.c: ...here.
10140 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10141 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10142 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10143 * include/grub/i386/reboot.h: New file.
10144 * include/grub/mips/loongson/ec.h: Fix includes.
10145 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10146 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10147 * grub-core/lib/i386/reboot.c: New file.
10148
10149 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10150
10151 Make grub_prefix into module to fix the arbitrary limit and save
10152 some space.
10153
10154 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10155 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10156 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10157 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10158 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10159 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10160 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10161 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10162 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10163 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10164 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10165 * include/grub/ia64/efi/kernel.h: Removed.
10166 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10167 (grub_prefix): Removed.
10168 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10169 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10170 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10171 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10172 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10173 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10174 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10175 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10176 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10177 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10178 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10179 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10180 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10181 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10182 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10183 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10184 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10185 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10186 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10187 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10188 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10189 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10190 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10191 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10192 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10193 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10194 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10195 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10196 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10197 from module.
10198 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10199 prefix_end.
10200 (image_targets): Likewise.
10201 (generate_image): Put prefix as a module.
10202
10203 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10204
10205 Replace grub_module_iterate with FOR_MODULES.
10206
10207 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10208 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10209 (grub_efi_modules_addr): ...this.
10210 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10211 (grub_efi_init): Set grub_modbase.
10212 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10213 (grub_modbase): New variable.
10214 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10215 (grub_modbase): New variable.
10216 (grub_machine_init): Set grub_modbase.
10217 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10218 (grub_modbase): New variable.
10219 (grub_machine_init): Set grub_modbase.
10220 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10221 (grub_modbase): New variable.
10222 (grub_machine_init): Set grub_modbase.
10223 * grub-core/kern/main.c (grub_module_iterate): Remove.
10224 (grub_modules_get_end): Use grub_modbase.
10225 (grub_load_modules): Use FOR_MODULES.
10226 (grub_load_config): Likewise.
10227 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10228 (grub_modbase): New variable.
10229 (grub_machine_init): Set grub_modbase.
10230 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10231 (grub_modbase): New variable.
10232 (grub_machine_init): Set grub_modbase.
10233 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10234 Removed.
10235 (grub_modbase): New variable.
10236 (grub_machine_init): Set grub_modbase.
10237 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10238 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10239 (grub_module_iterate): Likewise.
10240 (grub_modbase): New variable declaration.
10241 (FOR_MODULES): New macro.
10242
10243 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10244
10245 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10246 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10247
10248 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10249
10250 Fix few obvious type discrepancies.
10251
10252 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10253 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10254 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10255 variable.
10256 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10257 and connected types.
10258 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10259 offset.
10260 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10261 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10262 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10263 and connected types.
10264
10265 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10266
10267 Fix python 3.x incompatibilities.
10268
10269 * gentpl.py: Put brackets around print strings.
10270 * util/import_gcry.py: Open explicitly as utf-8.
10271 Use in instead of has_key.
10272
10273 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10274
10275 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10276 (GRUB_XFS_INO_AGBITS): Make into inline function.
10277 (GRUB_XFS_INO_INOINAG): Likewise.
10278 (GRUB_XFS_INO_AG): Likewise.
10279 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10280 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10281 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10282 (GRUB_XFS_EXTENT_SIZE): Likewise.
10283 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10284 (GRUB_XFS_NEXT_DIRENT): Likewise.
10285 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10286 (grub_xfs_read_file): Fix offset type.
10287
10288 2011-10-15 Robert Millan <rmh@gnu.org>
10289
10290 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10291
10292 2011-10-15 Robert Millan <rmh@gnu.org>
10293
10294 Fix build problem on FreeBSD and GNU/kFreeBSD.
10295
10296 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10297
10298 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10299
10300 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10301
10302 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10303 types.
10304 (grub_hfsplus_btree_recoffset): Likewise.
10305 (grub_hfsplus_btree_recptr): Likewise.
10306 (grub_hfsplus_find_block): Likewise.
10307 (grub_hfsplus_btree_search): Likewise.
10308 (grub_hfsplus_read_block): Likewise.
10309 (grub_hfsplus_read_file): Likewise.
10310 (grub_hfsplus_mount): Likewise.
10311 (grub_hfsplus_btree_iterate_node): Likewise.
10312 (grub_hfsplus_btree_search): Likewise.
10313 (grub_hfsplus_iterate_dir): Likewise.
10314 (grub_hfsplus_read): A small code simplification.
10315
10316 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10317
10318 * grub-core/kern/emu/hostdisk.c
10319 (convert_system_partition_to_system_disk): Don't assume that children
10320 of mapper nodes are mapper nodes.
10321
10322 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10323
10324 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10325 * include/grub/misc.h (grub_isxdigit): New function.
10326 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10327 switched to grub_isxdigit.
10328 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10329 number starting with a letter.
10330
10331 2011-10-09 Robert Millan <rmh@gnu.org>
10332
10333 LVM support for FreeBSD and GNU/kFreeBSD.
10334
10335 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10336 GNU/kFreeBSD.
10337 (LVM_DEV_MAPPER_STRING): Move from here ...
10338 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10339 * util/getroot.c: Include `<grub/util/lvm.h>'.
10340 (grub_util_get_dev_abstraction): Enable
10341 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10342 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10343 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10344 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10345 support it.
10346 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10347 GNU/kFreeBSD.
10348 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10349 when LVM abstraction is required for ${GRUB_DEVICE}.
10350
10351 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10352
10353 Add support for LZO compression in GRUB:
10354 - import of minilzo library,
10355 - LZO decompression for btrfs,
10356 - lzop files decompression.
10357
10358 * grub-core/io/lzopio.c: New file.
10359 * grub-core/lib/adler32.c: Likewise.
10360 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10361 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10362 * grub-core/lib/minilzo/minilzo.c: Likewise.
10363 * grub-core/lib/minilzo/minilzo.h: Likewise.
10364 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10365 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10366 grub-core/lib/minilzo/minilzo.c to common.
10367 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10368 cflags in cppflags.
10369 * grub-core/Makefile.core.def (btrfs): Likewise.
10370 * grub-core/Makefile.core.def (lzopio): New module.
10371 (adler32): Likewise.
10372 * grub-core/fs/btrfs.c: Include minilzo.h.
10373 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10374 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10375 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10376 (grub_btrfs_lzo_decompress): New function.
10377 (grub_btrfs_extent_read): Add support for LZO compression type.
10378 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10379 (GRUB_USHRT_MAX): Likewise.
10380 (GRUB_UINT_MAX): Likewise.
10381 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10382 (UINT_MAX): Likewise.
10383 (CHAR_BIT): Likewise.
10384 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10385 grub-core/lib/posix_wrap/limits.h
10386 (UCHAR_MAX): Likewise.
10387 * include/grub/file.h (grub_file_filter_id): New compression filter
10388 GRUB_FILE_FILTER_LZOPIO.
10389 * include/grub/file.h (grub_file_filter_id): Set
10390 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10391 * include/grub/types.h (grub_get_unaligned16): New function.
10392 (grub_get_unaligned32): Likewise.
10393 (grub_get_unaligned64): Likewise.
10394 * util/import_gcry.py (cryptolist): Add adler32.
10395
10396 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10399 in perspective decreases the complexity of build system and fixes
10400 compilation right now.
10401
10402 2011-10-01 Ales Nesrsta <starous@volny.cz>
10403
10404 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10405 (fixed problem related to using UHCI with coreboot).
10406
10407 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10408
10409 * gentpl.py: Use Autogen macros so that the output template file
10410 (Makefile.tpl) size is reduced.
10411
10412 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10413
10414 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10415 extra_dist.
10416
10417 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10418
10419 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10420 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10421
10422 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10423
10424 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10425 _fullpath.
10426
10427 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10428
10429 Remove extra declaration of sleep for mingw32.
10430
10431 * util/misc.c (sleep) [__MINGW32__]: Removed.
10432 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10433
10434 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10435
10436 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10437 type and packname.
10438 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10439 Resurrected.
10440 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10441 (grub_netbsd_btinfo_bootwedge): New struct.
10442 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10443 New function.
10444 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10445
10446 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10447
10448 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10449 loader.
10450
10451 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10452
10453 Fix incorrect identifiers in bash-completion.
10454
10455 * util/bash-completion.d/grub-completion.bash.in
10456 (_grub_mkpasswd-pbkdf2): Rename to ...
10457 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10458 (_grub_script-check): Rename to ...
10459 (_grub_script_check): ... this. All users updated.
10460
10461 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10464 Return 0 if disk isn't biosdisk.
10465
10466 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10467
10468 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10469 on NetBSD.
10470 * Makefile.util.def (grub-fstest): Likewise.
10471
10472 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10473
10474 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10475 Get sector size from disk label.
10476
10477 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10478
10479 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10480 */README* as well as README*.
10481 Reported by: Axel Beckert.
10482
10483 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10484
10485 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10486 case of less than 256 MiB of RAM.
10487
10488 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10489
10490 * grub-core/commands/wildcard.c (make_regex): Handle @.
10491
10492 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10495
10496 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10497
10498 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10499 AC_LANG_CONFTEST macros.
10500
10501 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10502
10503 Add grub-fstest option to uncompress data for commands.
10504
10505 * util/grub-fstest.c (uncompress): New var.
10506 (options): New option -u.
10507
10508 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10509
10510 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10511 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10512
10513 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10514
10515 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10516 file type was not recognized correctly (not gzip or corrupted).
10517
10518 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10519
10520 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10521 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10522
10523 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10524
10525 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10526 loongson.
10527 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10528 video_radeon_fuloong2e.
10529 * grub-core/video/radeon_fuloong2e.c: New file.
10530 * include/grub/video.h (grub_video_id_t): Add new ID
10531 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10532
10533 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10534
10535 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10536 define.
10537 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10538 that PRID matches the detected subplatform and reset the subplatform
10539 if it doesn't.
10540
10541 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10542
10543 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10544
10545 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10546
10547 Fix PCI iterating on functions >= 4.
10548
10549 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10550 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10551 Removed.
10552 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10553 (grub_pci_read): Fix bitmask.
10554 (grub_pci_read_word): Likewise.
10555 (grub_pci_read_byte): Likewise.
10556 (grub_pci_write): Likewise.
10557 (grub_pci_write_word): Likewise.
10558 (grub_pci_write_byte): Likewise.
10559
10560 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10561
10562 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10563 can still be specified in TARGET_CFLAGS)
10564
10565 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10566
10567 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10568
10569 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10570 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10571 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10572 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10573 (FULOONG): Rename to ...
10574 (FULOONG2F): ... this. All users updated.
10575 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10576 (machtype_fuloong2f_str): ... this.
10577 (machtype_fuloong2e_str): New string.
10578 Check for machtype_fuloong2e_str.
10579 * grub-core/loader/mips/linux.c (loongson_machtypes)
10580 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10581 * grub-core/term/serial.c (loongson_defserial)
10582 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10583 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10584 loongson_defserial.
10585 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10586 Rename to ...
10587 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10588 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10589 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10590 to IMAGE_FULOONG2F_FLASH. All users updated.
10591 (image_targets): Rename images.
10592 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10593
10594 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10595
10596 Make enable of disk cache statistics code configurable.
10597
10598 * configure.ac: --enable-cache-stats added.
10599 * config.h.in (DISK_CACHE_STATS): New define.
10600 * grub-core/Makefile.core.def (cacheinfo): New command.
10601 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10602 * grub-core/commands/cacheinfo.c: New file.
10603 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10604 moved to cacheinfo.c.
10605 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10606 debug code.
10607 * include/grub/disk.h: Likewise.
10608
10609 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10610
10611 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10612 * grub-core/Makefile.am: Likewise.
10613
10614 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10615
10616 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10617 non-zero pull.
10618
10619 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10620
10621 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10622 All users updated.
10623 (grub_jfs_lookup_symlink): Use correct starting inode.
10624
10625 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10626
10627 * util/grub-setup.c (main): Add missing gcry initialisation.
10628
10629 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10630
10631 Don't accept text modes on EFI when booting Linux.
10632
10633 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10634 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10635
10636 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10637 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10638
10639 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10640 use of "/path/.." as in grub-install for EFI as well as handling
10641 symlinks correctly.
10642 Fixes Debian bug #637768.
10643
10644 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10645
10646 * util/grub-probe.c: Remove duplicate #include.
10647
10648 2011-08-10 Robert Millan <rmh@gnu.org>
10649
10650 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10651
10652 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10653 function.
10654 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10655 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10656
10657 2011-08-03 Robert Millan <rmh@gnu.org>
10658
10659 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10660 la_array as packed.
10661 Reported by: Zachary Bedell
10662
10663 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10664
10665 * configure.ac: The Loongson port requires grub-mkfont due to its
10666 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10667 be built.
10668
10669 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10670
10671 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10672 processing arguments (otherwise help2man fails when GRUB has not yet
10673 been installed).
10674
10675 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 New script grub-mkstandalone.
10678
10679 * Makefile.util.def (grub-mkstandalone): New script.
10680 * docs/man/grub-mkstandalone.h2m: New file.
10681 * util/grub-mkstandalone.in: Likewise.
10682
10683 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10684
10685 Support ATA disks with 4K sectors.
10686
10687 * include/grub/ata.h (grub_ata): New member log_sector_size.
10688 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10689 (grub_ata_identify): Read sector size.
10690 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10691
10692 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 * util/grub-install.in: Don't use uhci outside of x86.
10695
10696 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10697
10698 * util/grub-mkrescue.in: Add missing quotes.
10699
10700 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10703 dereference.
10704
10705 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10706
10707 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10708
10709 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 * include/grub/video.h: add missing EXPORT_FUND on
10712 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10713
10714 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10715
10716 * include/grub/mips/kernel.h: Fix define conflict.
10717
10718 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10719
10720 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10721 all four ways.
10722
10723 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10724
10725 Preferred resolution detection for VBE.
10726
10727 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10728 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10729 the Flat Panel extension, in line with the X.org VESA driver.
10730 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10731 New function.
10732 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10733 (grub_vbe_bios_read_edid): Likewise.
10734 (grub_vbe_get_preferred_mode): Likewise.
10735 (grub_video_vbe_setup): When the mode is "auto", try to get the
10736 preferred mode from VBE, and use the largest mode that is no larger
10737 than the preferred mode (some BIOSes expose a preferred mode that is
10738 not in their mode list!). If this fails, fall back to 640x480 as a
10739 safe conservative choice.
10740 (grub_video_vbe_get_edid): New function.
10741 (grub_video_vbe_adapter): Add get_edid.
10742 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10743 (struct grub_video_adapter): Add get_edid.
10744 (grub_video_edid_checksum): Add prototype.
10745 (grub_video_edid_preferred_mode): Likewise.
10746 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10747 structure.
10748
10749 * grub-core/commands/videoinfo.c (print_edid): New function.
10750 (grub_cmd_videoinfo): Print EDID if available.
10751
10752 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10753 is more appropriate on a wider range of platforms than 640x480.
10754 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10755 documentation.
10756
10757 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10760
10761 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10762
10763 * po/POTFILES.in: Regenerate.
10764
10765 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10766
10767 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10768 incorrect memory usage.
10769
10770 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10771
10772 * util/grub-install.in: Source grub-mkconfig_lib.
10773
10774 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10775
10776 Remove getroot.c from core on emu platform.
10777
10778 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10779 kern/emu/raid.c.
10780 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10781 useless.
10782 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10783 * util/getroot.c (get_win32_path): ... here.
10784 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10785 * util/getroot.c (fini_libzfs): ... here.
10786 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10787 * util/getroot.c (grub_get_libzfs_handle): ... here.
10788 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10789 Moved from here...
10790 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10791 * grub-core/kern/emu/misc.c
10792 (grub_make_system_path_relative_to_its_root): Moved from here...
10793 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10794 * grub-core/kern/emu/getroot.c: Moved from here ...
10795 * util/getroot.c: ... here. All users updated.
10796 * grub-core/kern/emu/raid.c: Moved from here ...
10797 * util/raid.c: ... here. All users updated.
10798
10799 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10800
10801 * po/POTFILES.in: Regenerate.
10802
10803 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10804
10805 Fix compilation on GNU/Linux.
10806
10807 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10808 Disable geli.
10809 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10810 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10811 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10812
10813 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10814 2011-07-07 Michael Gorven <michael@gorven.za.net>
10815 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10816
10817 LUKS and GELI support.
10818
10819 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10820 grub-core/disk/luks.c, grub-core/disk/geli.c,
10821 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10822 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10823 grub-core/lib/arg.c.
10824 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10825 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10826 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10827 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10828 (grub-bin2h): Add libgcry.a.
10829 (grub-mkimage): Likewise.
10830 (grub-mkrelpath): Likewise.
10831 (grub-script-check): Likewise.
10832 (grub-editenv): Likewise.
10833 (grub-mkpasswd-pbkdf2): Likewise.
10834 (grub-pe2elf): Likewise.
10835 (grub-fstest): Likewise.
10836 (grub-mkfont): Likewise.
10837 (grub-mkdevicemap): Likewise.
10838 (grub-probe): Likewise.
10839 (grub-ofpath): Likewise.
10840 (grub-mklayout): Likewise.
10841 (example_unit_test): Likewise.
10842 (grub-menulst2cfg): Likewise.
10843 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10844 * grub-core/Makefile.core.def (cryptodisk): New module.
10845 (luks): Likewise.
10846 (geli): Likewise.
10847 * grub-core/disk/AFSplitter.c: New file.
10848 * grub-core/disk/cryptodisk.c: Likewise.
10849 * grub-core/disk/geli.c: Likewise.
10850 * grub-core/disk/luks.c: Likewise.
10851 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10852 grub_util_is_lvm.
10853 (grub_util_get_dm_abstraction): New function.
10854 (grub_util_follow_gpart_up): Likewise.
10855 (grub_util_get_geom_abstraction): Likewise.
10856 (grub_util_get_dev_abstraction): Use new functions.
10857 (grub_util_pull_device): Pull GELI and LUKS.
10858 (grub_util_get_grub_dev): Handle LUKS and GELI.
10859 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10860 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10861 (follow_geom_up): Removed.
10862 (grub_util_fd_seek): New function.
10863 (open_device): Use grub_util_fd_seek.
10864 (nread): Rename to ..
10865 (grub_util_fd_read): ... this. All users updated.
10866 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10867 (grub_crypto_cbc_decrypt): Likewise.
10868 (grub_crypto_hmac_write): Likewise.
10869 (grub_crypto_hmac_buffer): Likewise.
10870 (grub_password_get): Extend to util.
10871 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10872 New member modname.
10873 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10874 * include/grub/cryptodisk.h: New file.
10875 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10876 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10877 LUKS and GELI.
10878 (grub_util_follow_gpart_up): New proto.
10879 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10880 (grub_util_fd_read): Likewise.
10881 (grub_cryptodisk_cheat_mount): Likewise.
10882 (grub_util_cryptodisk_print_uuid): Likewise.
10883 (grub_util_get_fd_sectors): Likewise.
10884 * util/grub-fstest.c (mount_crypt): New var.
10885 (fstest): Mount crypto if requested.
10886 (options): New option -C.
10887 (argp_parser): Parse -C.
10888 (main): Init and fini gcry.
10889 * util/grub-install.in: Support cryptodisk install.
10890 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
10891 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
10892 cryptodisk.
10893 (prepare_grub_to_access_device): Likewise.
10894 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
10895 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
10896 (probe_cryptodisk_uuid): New function.
10897 (probe_abstraction): Likewise.
10898 (probe): Use new functions.
10899 * util/import_gcry.py: Create Makefile.utilgcry.def.
10900 Add modname member.
10901
10902 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10903
10904 Lazy device scanning.
10905
10906 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
10907 (grub-setup): Remove util/raid.c.
10908 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
10909 * grub-core/disk/lvm.c (scan_depth): New variable.
10910 (grub_lvm_iterate): Rescan if necessary.
10911 (find_lv): New function based on grub_lvm_open.
10912 (grub_lvm_open): Use find_lv. Rescan on error.
10913 (is_node_readable): New function.
10914 (is_lv_readable): Likewise.
10915 (grub_lvm_scan_device): Skip already found disks.
10916 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
10917 Stop if searched device is found and readable.
10918 * grub-core/disk/raid.c (inscnt): New variable.
10919 (scan_depth): Likewise.
10920 (scan_devices): New function based on grub_raid_register. Abort if
10921 looked for device is found.
10922 (grub_raid_iterate): Rescan if needed.
10923 (find_array): NEw function based on -grub_raid_open.
10924 (grub_raid_open): Use find_array and rescan.
10925 (insert_array): Set became_readable_at.
10926 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
10927 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
10928 New function.
10929 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
10930 (grub_util_pull_device): New function.
10931 (grub_util_get_grub_dev): Call grub_util_pull_device.
10932 * util/raid.c: Moved to ..
10933 * grub-core/kern/emu/raid.c: ... here.
10934 (grub_util_raid_getmembers): New parameter "bootable".
10935 All users updated. Support 1.x.
10936 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
10937 All users updated.
10938 * include/grub/disk.h (grub_disk_pull_t): New enum.
10939 (grub_disk_dev): Change iterate prototype.
10940 All users updated.
10941 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
10942 New proto.
10943 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
10944 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
10945 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
10946 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
10947 All users updated.
10948 * include/grub/util/raid.h: Removed.
10949
10950 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10951
10952 * po/POTFILES.in: Regenerate.
10953
10954 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 Unify sparc init with other ieee1275.
10957
10958 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10959 instead of kern/sparc64/ieee1275/init.c.
10960 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
10961 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
10962 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
10963 grub/machine/kernel.h.
10964 (grub_ieee1275_original_stack) [__sparc__]: New variable.
10965 (grub_claim_heap) [__sparc__]: Use sparc version.
10966 (grub_machine_init): Moved args parsing to
10967 (grub_parse_cmdline): ...this.
10968 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
10969 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
10970 New definition.
10971 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
10972
10973 Move BOOTP to separate file.
10974
10975 * grub-core/Makefile.core.def (net): Add net/bootp.c.
10976 * grub-core/net/net.c: Move all BOOTP functions to
10977 * grub-core/net/bootp.c: ... here.
10978
10979 Use frame interface on PXE.
10980
10981 * grub-core/Makefile.core.def (pxecmd): Removed.
10982 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
10983 * grub-core/commands/i386/pc/pxecmd.c: Removed.
10984 * grub-core/i386/pc/pxe.c: Moved from here ...
10985 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
10986 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
10987 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
10988
10989 EFI network support.
10990
10991 * grub-core/Makefile.core.def (efinet): New module.
10992 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
10993 here...
10994 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
10995 All users updated.
10996 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
10997 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
10998 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
10999 * grub-core/net/drivers/efi/efinet.c: New file.
11000 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11001 (grub_efi_net_config): New extern var.
11002
11003 Various cleanups and bugfixes.
11004
11005 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11006 error.
11007 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11008 disk declared as partition.
11009 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11010 leak on failure.
11011 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11012 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11013 (grub_debug_zalloc): Likewise.
11014 (grub_debug_realloc): Likewise.
11015 (grub_debug_memalign): Likewise.
11016 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11017 Check that target is IPv4.
11018 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11019 local-mac-address as fallback.
11020 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11021 memory leak.
11022 * grub-core/net/ip.c (ipchksum): Rename to ...
11023 (grub_net_ip_chksum): ... this. All users updated.
11024 (grub_net_recv_ip_packets): Special handling for DHCP.
11025 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11026
11027 Unify prefix handling
11028
11029 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11030 (grub_machine_get_bootlocation): ... this.
11031 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11032 (grub_machine_get_bootlocation): ... this.
11033 (grub_prefix): New variable.
11034 (prefix): Removed.
11035 (root_dev): New variable.
11036 (dir): Likewise.
11037 (main): Use new variables.
11038 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11039 Revamped into ...
11040 (grub_machine_get_bootlocation): ... this.
11041 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11042 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11043 (grub_machine_get_bootlocation): ... this.
11044 (grub_machine_set_prefix): Removed.
11045 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11046 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11047 Revamped into ...
11048 (grub_machine_get_bootlocation): ... this.
11049 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11050 (grub_set_prefix_and_root): ... this. All users updated.
11051 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11052 Revamped into ...
11053 (grub_machine_get_bootlocation): ... this.
11054 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11055 (grub_machine_get_bootlocation): New proto.
11056 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11057
11058 Less intrusive and more reliable seek on network implementation.
11059
11060 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11061 (grub_file_seek): Don't call grub_file_net_seek.
11062 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11063 (grub_net_fs_read_real): .. this.
11064 (grub_net_seek_real): Use net->offset.
11065 (grub_net_fs_read): Seek if necessary.
11066
11067 Unify IEEE1275 netwotk config with the other platforms.
11068
11069 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11070 New variable.
11071 (grub_machine_get_bootlocation): Support network.
11072 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11073 Support type and device parsing.
11074 (grub_ieee1275_get_device_type): New function.
11075 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11076 into ...
11077 (grub_ieee1275_net_config_real): ... this.
11078 (grub_ofnet_probecards): Removed.
11079 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11080 * include/grub/ieee1275/ofnet.h: Removed.
11081 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11082 extern var.
11083 (grub_ieee1275_get_device_type): New function.
11084
11085 Unify network device closing across platforms and make more robust.
11086
11087 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11088 grub_grubnet_fini.
11089 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11090 already.
11091 * grub-core/net/net.c (grub_net_network_level_interface_register):
11092 Update num_ifaces.
11093 (grub_net_card_unregister): Close all interfaces.
11094 (receive_packets): Don't poll if no iterfaces are registered.
11095 Open if necessary.
11096 (grub_net_fini_hw): New function.
11097 (grub_net_restore_hw): Likewise.
11098 (fini_hnd): New variable.
11099 (GRUB_MOD_INIT): Register preboot hook.
11100 (GRUB_MOD_FINI): Run and unregister preboot hook.
11101
11102 Poll network cards when idle.
11103
11104 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11105 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11106 * grub-core/net/net.c (receive_packets): Save last poll time.
11107 (grub_net_poll_cards_idle_real): New function.
11108 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11109 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11110 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11111
11112 Rename ofnet interfaces.
11113
11114 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11115 (grub_ofnet_findcards): Use ofnet_%s names.
11116
11117 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11118
11119 Cleanup socket opening.
11120
11121 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11122 (grub_net_fs_close): Likewise.
11123 (grub_net_fs_read_real): Use eof member.
11124 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11125 (+grub_net_udp_close): New inline function.
11126
11127 * include/grub/net/tftp.h: Moved to the top of ...
11128 * grub-core/net/tftp.c: ... here.
11129 * include/grub/net/ip.h: Moved mostly to the top of ...
11130 * grub-core/net/ip.c: ... here.
11131 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11132 * grub-core/net/ethernet.c: ... here.
11133
11134 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11135
11136 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11137 FS name.
11138
11139 * include/grub/net/ip.h (ipv4_ini): Removed.
11140 (ipv4_fini): Likewise.
11141
11142 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11143 (grub_net_send_ip_packets): Likewise.
11144
11145 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11146
11147 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11148 grub_read_cmos prototype.
11149
11150 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11151
11152 VGA text support in qemu-mips
11153
11154 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11155 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11156 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11157 text.
11158 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11159 * grub-core/kern/vga_init.c: ... this.
11160 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11161 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11162 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11163 Adjust.
11164 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11165 GRUB_MACHINE_PCI_IO_BASE.
11166
11167 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11168
11169 MIPS qemu flash support.
11170
11171 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11172 magic.
11173 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11174 (grub_machine_init): Probe memory if its size isn't known.
11175 * util/grub-mkimage.c (image_targets): Add flash targets.
11176 (generate_image): Handle flash targets.
11177
11178 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11179
11180 MIPS qemu at_keyboard support.
11181
11182 * gentpl.py (videoinkernel): Add qemu-mips.
11183 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11184 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11185 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11186 modules.
11187 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11188 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11189 * grub-core/term/serial.c (grub_serial_register)
11190 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11191
11192 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11193
11194 CMOS support on sparc.
11195
11196 * gentpl.py (cmos): Add powerpc and sparc.
11197 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11198 powerpc and sparc.
11199 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11200 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11201 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11202 grub_set_datetime_cmos.
11203 * grub-core/lib/ieee1275/cmos.c: New file.
11204 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11205 (find_rtc): Set no_ieee1275_rtc on error.
11206 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11207 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11208 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11209 fail. Move value to argument. All users updated
11210 (grub_cmos_write): Likewise.
11211 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11212 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11213 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11214 grub_get_datetime_cmos and grub_set_datetime_cmos.
11215
11216 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11217
11218 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11219 sourcing grub-mkconfig_lib.
11220 * util/update-grub_lib.in: Likewise.
11221 * util/grub.d/00_header.in: Likewise.
11222 * util/grub.d/10_hurd.in: Likewise.
11223 * util/grub.d/10_kfreebsd.in: Likewise.
11224 * util/grub.d/10_linux.in: Likewise.
11225 * util/grub.d/10_netbsd.in: Likewise.
11226 * util/grub.d/10_windows.in: Likewise.
11227 * util/grub.d/20_linux_xen.in: Likewise.
11228 * util/grub.d/30_os-prober.in: Likewise.
11229
11230 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11231
11232 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11233 default_bg_color rather than black.
11234 (grub_gfxterm_fullscreen): Likewise.
11235 (grub_gfxterm_background_color_cmd): Save new background color in
11236 default_bg_color.
11237
11238 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11239
11240 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11241
11242 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11245 mismerge.
11246
11247 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 Chainloading on coreboot support.
11250
11251 * grub-core/Makefile.core.def (chain): Add coreboot.
11252 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11253
11254 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11255
11256 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11257 if it happens.
11258
11259 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11260
11261 Implement time command.
11262
11263 * grub-core/Makefile.core.def (time): New module.
11264 * grub-core/commands/time.c: New file.
11265 * grub-core/script/parser.y: Remove "time" keyword.
11266 * grub-core/script/yylex.l: Likewise.
11267
11268 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11269
11270 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11271
11272 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11273
11274 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11275 when handling leftovers.
11276
11277 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11278
11279 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11280 so that help2man doesn't fail.
11281
11282 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11285 type in pointers on sparc64.
11286 (get_card_packet): Likewise.
11287
11288 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11289
11290 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11291 with `*'.
11292 (grub_cmd_videoinfo): Fetch current video mode.
11293
11294 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11295
11296 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11297 because of underlying system restrictions.
11298
11299 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11300
11301 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11302 necessary.
11303
11304 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 Coreboot video support.
11307
11308 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11309 (vbe): Likewise.
11310 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11311 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11312 here ...
11313 * grub-core/kern/i386/int.S: ... here.
11314 * grub-core/video/i386/pc/vbe.c: Updated includes.
11315 * grub-core/video/i386/pc/vga.c: Likewise.
11316 * include/grub/i386/coreboot/memory.h
11317 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11318 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11319 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11320 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11321 Disable interrupts.
11322 * include/grub/i386/pc/vga.h: Removed. All users updated.
11323
11324 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11325
11326 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11327 definitions for dprintf.
11328 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11329
11330 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11331
11332 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11333 prototype.
11334 (get_card_packet): Likewise.
11335
11336 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11337
11338 Display the path of the file when file is not found
11339
11340 * grub-core/fs/fat.c: Display the filename when file is not found.
11341 * grub-core/fs/fshelp.c: Likewise.
11342 * grub-core/fs/hfs.c: Likewise.
11343 * grub-core/fs/jfs.c: Likewise.
11344 * grub-core/fs/minix.c: Likewise.
11345 * grub-core/fs/ufs.c: Likewise.
11346 * grub-core/fs/btrfs.c: Likewise.
11347 * grub-core/commands/i386/pc/play.c: Likewise.
11348
11349 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11350
11351 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11352 pointer checks before calling grub_free().
11353 * grub-core/commands/wildcard.c (match_devices): Likewise.
11354 * grub-core/commands/wildcard.c (match_files): Likewise.
11355 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11356 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11357 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11358 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11359 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11360 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11361 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11362 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11363 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11364
11365 2011-06-25 Patrick <p55@mailinator.com>
11366
11367 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11368
11369 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11372 (grub_pxe_send): Likewise.
11373 (GRUB_MOD_INIT): Fix types.
11374
11375 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11376
11377 * grub-core/io/xzio.c: Fix code style issues
11378
11379 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11380 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11381
11382 Network infrastructure.
11383 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11384
11385 * include/grub/net/arp.h: New file.
11386 * include/grub/net/device.h: Likewise.
11387 * include/grub/net/ethernet.h: Likewise.
11388 * include/grub/net/ip.h: Likewise.
11389 * include/grub/net/netbuff.h: Likewise.
11390 * include/grub/net/tftp.h: Likewise.
11391 * include/grub/net/udp.h: Likewise.
11392 * include/grub/ieee1275/ofnet.h: Likewise.
11393 * include/grub/emu/export.h: Likewise.
11394 * include/grub/net.h: Likewise.
11395 * grub-core/net/arp.c: Likewise.
11396 * grub-core/net/ethernet.c: Likewise.
11397 * grub-core/net/ip.c: Likewise.
11398 * grub-core/net/udp.c: Likewise.
11399 * grub-core/net/tftp.c: Likewise.
11400 * grub-core/net/netbuff.c: Likewise.
11401 * grub-core/net/net.c: Likewise.
11402 * grub-core/net/drivers/emu/emunet.c: Likewise.
11403 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11404 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11405 export.h.
11406 * grub-core/Makefile.core.def (net): New module.
11407 (tftp): Likewise.
11408 (ofnet): Likewise.
11409 (emunet): Likewise.
11410 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11411 network protocols.
11412 * grub-core/kern/device.c (grub_net_open) : New variable.
11413 (grub_device_open): Handle network device.
11414 (grub_device_close): Likewise.
11415 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11416 (grub_grubnet_fini): Likewise.
11417 (grub_file_seek): Seek in network device.
11418 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11419 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11420 network root.
11421 (grub_machine_fini): Call grub_grubnet_fini.
11422 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11423 network.
11424 (grub_ieee1275_get_aliasdevname): New function.
11425 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11426 Add unofficial Solaris network info.
11427 (grub_multiboot_make_mbi): Likewise.
11428 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11429 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11430 * include/grub/device.h (grub_fs): Removed.
11431 * include/grub/err.h (grub_err_t): Add network-related values.
11432 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11433 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11434 (grub_ieee1275_get_aliasdevname): New proto.
11435 * include/grub/net.h: Rewritten.
11436
11437 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11440 names.
11441
11442 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11445 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11446 it truncates the output.
11447 Reported by: Ximin Luo.
11448
11449 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11450
11451 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11452
11453 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11454
11455 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11456 partmap before abstraction.
11457
11458 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11459
11460 * util/grub-mkconfig_lib.in: Add missing quotes.
11461
11462 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11463
11464 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11465 old method if mountinfo would return /dev/root and /dev/root doesn't
11466 exist.
11467
11468 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 ZFS zlib support
11471
11472 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11473 (decomp_table): Add zlib entries.
11474 (zio_read): USe 8 bits for compression function rather than 3.
11475 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11476
11477 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11478
11479 * grub-core/disk/ahci.c: Add missing license statements.
11480 * grub-core/fs/romfs.c: Likewise.
11481 * grub-core/lib/ia64/setjmp.S: Likewise.
11482 * grub-core/loader/i386/pc/freedos.c: Likewise.
11483 * grub-core/loader/ia64/efi/linux.c: Likewise.
11484 * grub-core/video/colors.c: Likewise.
11485 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11486
11487 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11488
11489 AHCI support.
11490
11491 * grub-core/Makefile.core.def (ata_pthru): Removed.
11492 (ahci): New module.
11493 (pata): Likewise.
11494 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11495 on unload.
11496 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11497 readwrite.
11498 (grub_hdparm_do_check_powermode_cmd): Likewise.
11499 (grub_hdparm_do_smart_cmd): Likewise.
11500 (grub_hdparm_set_val_cmd): Likewise.
11501 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11502 * grub-core/disk/ahci.c: New file.
11503 * grub-core/disk/ata.c: Factor out the low-level part into ...
11504 * grub-core/disk/pata.c: ... here.
11505 * grub-core/disk/ata_pthru.c: Contents moved to ...
11506 * grub-core/disk/pata.c: ... here.
11507 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11508 (grub_scsi_iterate): Use grub_scsi_names.
11509 (grub_scsi_open): Likewise.
11510 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11511 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11512 (grub_ata_regs_t): New struct.
11513 (grub_disk_ata_pass_through_parms): Likewise.
11514 (grub_ata_device): Renamed to ...
11515 (grub_ata): ... this.
11516 (grub_ata_dev): New struct.
11517 Removed all low-level inline functions.
11518 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11519 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11520 iterate hooks and open. All users updated.
11521 * util/grub-install.in: Handle AHCI disk module.
11522
11523 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11524
11525 Add support for DRI and RSTn markers in JPEG files.
11526
11527 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11528 (JPEG_MARKER_RST0): Likewise.
11529 (JPEG_MARKER_RST1): Likewise.
11530 (JPEG_MARKER_RST2): Likewise.
11531 (JPEG_MARKER_RST3): Likewise.
11532 (JPEG_MARKER_RST4): Likewise.
11533 (JPEG_MARKER_RST5): Likewise.
11534 (JPEG_MARKER_RST6): Likewise.
11535 (JPEG_MARKER_RST7): Likewise.
11536 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11537 (grub_jpeg_decode_dri): New function.
11538 (grub_jpeg_decode_sos): Move image data related part into
11539 grub_jpeg_decode_data function.
11540 (grub_jpeg_decode_data): New function.
11541 (grub_jpeg_reset): New function.
11542 (grub_jpeg_decode_jpeg): Handle new markers.
11543
11544 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11545
11546 * util/ieee1275/ofpath.c (check_sas): Close fd.
11547 (main): Free of_path.
11548 Reported by: David Volgyes <dvolgyes>.
11549
11550 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11553 Reported by: David Volgyes <dvolgyes>.
11554
11555 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11556
11557 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11558 file after stat.
11559 Reported by: David Volgyes <dvolgyes>.
11560
11561 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11562
11563 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11564
11565 Reported by: David Volgyes <dvolgyes>.
11566
11567 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11568
11569 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11570 Prevent memory leak.
11571
11572 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11573
11574 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11575 (main): Close file.
11576 Reported by: David Volgyes <dvolgyes>.
11577
11578 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11579
11580 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11581 to continue if allocation is failed.
11582
11583 Reported by: David Volgyes <dvolgyes>.
11584
11585 2011-06-23 David Volgyes <dvolgyes>
11586
11587 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11588 dereference.
11589
11590 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11591
11592 Fix spurious warning.
11593
11594 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11595 (acorn_partition_map_find): Use .bin member.
11596
11597 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11598
11599 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11600 /dev/root as a valid device.
11601
11602 2011-06-23 Jim Meyering <meyering@redhat.com>
11603
11604 Avoid NULL deref in grub_device_open.
11605
11606 * grub-core/kern/device.c (grub_device_open): Don't dereference
11607 a NULL pointer upon failed grub_env_get.
11608
11609 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11610
11611 Support non-512B sectors and agglomerate reads.
11612
11613 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11614 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11615 (disk_io_guid): Removed.
11616 (make_devices): Locate solely by BlockIO.
11617 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11618 (grub_efidisk_read): Use read_blocks.
11619 (grub_efidisk_write): Use write_blocks.
11620 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11621 log_sector_size.
11622 (get_safe_sectors): Handle non-512B sectors.
11623 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11624 sectors.
11625 (grub_biosdisk_write): Handle non-512B sectors.
11626 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11627 (grub_scsi_read): Remove special non-512B block handling (now handled
11628 one level up).
11629 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11630 and do sanity checks.
11631 (grub_disk_adjust_range): Handle non-512B sectors.
11632 (transform_sector): New function.
11633 (grub_disk_read_small): Likewise.
11634 (grub_disk_read): Rewritten.
11635 (grub_disk_write): Handle non-512B sectors.
11636 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11637 log_sector_size.
11638 (open_device): Use log_sector_size.
11639 (grub_util_biosdisk_read): Likewise.
11640 (grub_util_biosdisk_write): Likewise.
11641 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11642 non-512B sectors.
11643 (pc_partition_map_embed): Likewise.
11644 * include/grub/disk.h (grub_disk): New field log_sector_size.
11645 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11646 (GRUB_DISK_CACHE_BITS): Increased to 6.
11647 * util/grub-fstest.c (fstest): New command testload.
11648 (argp_parser): Likewise.
11649
11650 2011-06-16 Robert Millan <rmh@gnu.org>
11651
11652 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11653 `ata' driver on kernel of FreeBSD 9.
11654
11655 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11656 (get_ataraid_disk_name): New functions.
11657 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11658 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11659 get_ataraid_disk_name() and get_ada_disk_name().
11660
11661 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11662
11663 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11664 input format.
11665
11666 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11667
11668 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11669 `ftp.gnu.org' for `alpha.gnu.org'.
11670
11671 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11672
11673 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11674 partitions under /dev/disk/by-id/.
11675
11676 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11677
11678 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11679 after ten consecutive open failures. Scanning all the way up to
11680 10000 is excessive and can cause serious performance problems in
11681 some configurations.
11682 Fixes Ubuntu bug #787461.
11683
11684 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11685
11686 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11687 opening new one.
11688
11689 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11690 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 Don't stat devices unless we have to.
11693
11694 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11695 dir == /dev/mapper.
11696 (grub_guess_root_device): Use already known os_dev if possible.
11697 * grub-core/kern/emu/hostdisk.c
11698 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11699 if device is known to be a dm one.
11700
11701 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11702
11703 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11704 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11705 Reported by: Pawel Tecza.
11706
11707 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11708
11709 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11710 (lsefisystab): Likewise.
11711 (lssal): Likewise.
11712 (lsefimmap): Likewise.
11713 (hdparm): Enable on qemu-mips.
11714 (setjmp): Add ia64 nodist.
11715 (serial): Simplify tags.
11716
11717 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11718
11719 * Makefile.util.def (grub-ofpathname): Install manual page.
11720
11721 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11722
11723 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11724
11725 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11726
11727 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11728
11729 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11730
11731 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11732 into dprintf.
11733
11734 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11735
11736 Use full 64-bit division.
11737
11738 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11739 (grub_divmod64): ... this.
11740 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11741 version.
11742
11743 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11744
11745 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11746 `source'.
11747
11748 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11749
11750 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11751 to avoid accidents when debugging with 'sh -x'.
11752 * grub-core/gensyminfo.sh.in: Likewise.
11753 * tests/example_scripted_test.in: Likewise.
11754 * tests/grub_cmd_regexp.in: Likewise.
11755 * tests/grub_script_blanklines.in: Likewise.
11756 * tests/grub_script_dollar.in: Likewise.
11757 * tests/grub_script_expansion.in: Likewise.
11758 * tests/grub_script_final_semicolon.in: Likewise.
11759 * tests/partmap_test.in: Likewise.
11760 * tests/util/grub-shell-tester.in: Likewise.
11761 * tests/util/grub-shell.in: Likewise.
11762
11763 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11764
11765 Move gfxmenu color handling to video, so that gfxterm can use it
11766 too.
11767
11768 * grub-core/gfxmenu/named_colors.c: Move to ...
11769 * grub-core/video/colors.c: ... here. Rename
11770 grub_gui_get_named_color to grub_video_get_named_color.
11771 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11772 * grub-core/video/colors.c (my_isxdigit): ... here.
11773 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11774 Move to ...
11775 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11776 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11777 to ...
11778 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11779
11780 * include/grub/gui.h (grub_gui_color_t): Move to ...
11781 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11782 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11783 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11784 * include/grub/gui.h (grub_gui_map_color): Move to ...
11785 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11786 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11787 to ...
11788 * include/grub/video.h (grub_video_get_named_color): ... here.
11789 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11790 * include/grub/video.h (grub_video_parse_color): ... here.
11791
11792 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11793 video/colors.c.
11794 (gfxmenu): Remove gfxmenu/named_colors.c.
11795 (video) [videomodules]: Add video/colors.c.
11796
11797 Add a background_color command.
11798
11799 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11800 function.
11801 (GRUB_MOD_INIT): Register background_color command.
11802 (GRUB_MOD_FINI): Unregister background_color command.
11803 (redraw_screen_rect): Allow blend/replace of text layer to be
11804 controlled independently from whether there is a background bitmap.
11805 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11806 changing bitmap.
11807
11808 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11809
11810 Patch BPB in ntldr and chainloader --bpb.
11811
11812 * grub-core/fs/fat.c: Include grub/fat.h.
11813 (grub_fat_bpb): Moved to ...
11814 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11815 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11816 grub/ntfs.h.
11817 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11818 Moved from here...
11819 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11820 here.
11821 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11822 New function.
11823 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11824 (GRUB_MOD_INIT): Show --bpb.
11825 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11826 * grub-core/normal/main.c (features): New variable.
11827 (GRUB_MOD_INIT): Set feature_* variables.
11828 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11829 proto.
11830 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11831
11832 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11833
11834 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11835 for cleanness.
11836
11837 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11838
11839 FreeDOS direct loading support.
11840
11841 * docs/grub.texi (Supported OS): Add FreeDOS.
11842 * grub-core/Makefile.core.def (freedos): New module.
11843 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11844 variable.
11845 (grub_relocator16_boot): Handle %ebx.
11846 * grub-core/lib/i386/relocator16.S: Likewise.
11847 * grub-core/loader/i386/pc/freedos.c: New file.
11848
11849 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11850
11851 Long Linux command line support.
11852
11853 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11854 (maximal_cmdline_size): New variable.
11855 (allocate_pages): Use maximal_cmdline_size.
11856 (grub_cmd_linux): Set and use maximal_cmdline_size.
11857 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11858 (allocate_pages): Use maximal_cmdline_size.
11859 (grub_cmd_linux): Set and use maximal_cmdline_size.
11860 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11861 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11862 and cmdline_size.
11863
11864 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11865 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11866
11867 Improve devmapper support
11868
11869 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11870 (grub_util_is_lvm): New function.
11871 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11872 than lvm if not dmraid.
11873 Handle mapped md nodes.
11874 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11875 (grub_util_device_is_mapped): ... this. Make always available. All users
11876 updated.
11877 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11878 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11879 dmraid nodes.
11880 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11881
11882 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11883
11884 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11885
11886 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
11887 * grub-core/modinfo.sh.in: New file.
11888 * grub-core/Makefile.core.def (modinfo.sh): New script.
11889 * util/grub-mknetdir.in: Use modinfo.sh.
11890 * util/grub-mkrescue.in: Likewise.
11891
11892 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11895 Fix potential usage of Elf32 instead of Elf64 when compiling on
11896 32-bit architecture. Add endianness macros while on it.
11897
11898 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11899
11900 Use mipsel- rather than mips- in directories involving mipsel ports to
11901 allow both endiannesses coexist.
11902
11903 * configure.ac: proparate target_cpu=mipsel rather than resetting to
11904 mips. All conditions adjusted.
11905 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
11906 variable.
11907 * util/grub-install.in: Adjust conditions to take renaming into account.
11908 * util/grub-mkimage.c (image_targets): Likewise. New target
11909 mips-qemu_mips-elf for bigendian mips.
11910
11911 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 Avoid unnecessary copying on MIPS.
11914
11915 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
11916 early if src == dest.
11917 * util/grub-mkimage.c (generate_image): Arange for src == dest if
11918 compression is none.
11919
11920 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11921
11922 Reduce memory footprint on SGI by putting modules before the kernel
11923 as opposed to after.
11924
11925 * grub-core/Makefile.core.def (kernel): Increase linking address.
11926 (none_decompress): Likewise.
11927 (xz_decompress): Likewise.
11928 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
11929 address.
11930 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
11931 layout change.
11932 (grub_arch_modules_addr): New function.
11933 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
11934 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
11935 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
11936 here.
11937 * grub-core/kern/mips/startup.S (total_size): Rename to ...
11938 (grub_total_modules_size): ... this. Make global.
11939 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
11940 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
11941 New definition.
11942 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
11943 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
11944 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
11945 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
11946 * util/grub-mkimage.c (image_target_desc): New flag
11947 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
11948 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
11949 (generate_image): Handle images with modules before kernel.
11950
11951 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 Prevent potential loss of memory map by overwrite on qemu-mips.
11954
11955 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11956 Save ram size in $s4.
11957 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
11958 All users changed to grub_arch_memsize.
11959 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
11960 Loongson.
11961 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
11962 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
11963 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
11964 external variable.
11965
11966 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11967
11968 * .bzrignore: Remove grub-dumpbios.
11969
11970 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11971
11972 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
11973 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
11974 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
11975 existing options which append).
11976 * docs/grub.texi (Simple configuration): Document new options.
11977 Reported by: Ian Jackson. Fixes Debian bug #617538.
11978
11979 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11980
11981 * util/grub-fstest.c (cmd_cat): New function.
11982 (fstest): Handle CMD_CAT.
11983 (options): Add cat.
11984 (argp_parser): Handle cat.
11985
11986 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11987
11988 * Makefile.util.def (grub-bin2h): Don't install.
11989 * docs/man/grub-bin2h.h2m: Remove.
11990
11991 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11992
11993 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
11994 place.
11995
11996 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11997
11998 Reenable qemu-mips port.
11999
12000 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12001 Fix small arc bug while on it.
12002 * gentpl.py: Handle qemu_mips.
12003 * grub-core/Makefile.am: Likewise.
12004 * grub-core/Makefile.core.def: Likewise.
12005 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12006 inappropriate includes.
12007 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12008 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12009 * grub-core/kern/main.c (grub_modules_get_end)
12010 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12011 * grub-core/kern/mips/qemu-mips: Moved to ..
12012 * grub-core/kern/mips/qemu_mips: ... this.
12013 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12014 (grub_machine_init): Call terminfo_init and serial_init.
12015 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12016 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12017 New variable.
12018 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12019 parameter passing.
12020 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12021 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12022 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12023 * include/grub/mips/qemu_mips/cmos.h: New file.
12024 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12025 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12026 Removed.
12027 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12028 Use correct mips-style address.
12029 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12030 (GRUB_TICKS_PER_SECOND): Removed.
12031 (grub_get_rtc): Likewise.
12032 (grub_cpu_idle): Likewise.
12033 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12034 New definition.
12035 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12036 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12037 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12038 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12039 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12040 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12041 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12042 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12043
12044 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 SGI ARCS port.
12047
12048 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12049 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12050 platforms.
12051 * configure.ac: New target mips-arc.
12052 * gentpl.py: Likewise.
12053 * grub-core/Makefile.am: Likewise.
12054 * grub-core/Makefile.core.def: Likewise.
12055 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12056 (none_decompress): Likewise.
12057 (lsdev): New module.
12058 (datetime): Use lib/arc/datetime.c on ARC.
12059 (part_dvh): New module.
12060 * grub-core/commands/arc/lsdev.c: New file.
12061 * grub-core/disk/arc/arcdisk.c: Likewise.
12062 * grub-core/kern/mips/arc/init.c: Likewise.
12063 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12064 aligned addresses.
12065 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12066 support.
12067 (grub_arch_dl_relocate_symbols): Likewise.
12068 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12069 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12070 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12071 platforms.
12072 * grub-core/lib/arc/datetime.c: New file.
12073 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12074 pci.h on non-loongson.
12075 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12076 (grub_linux_boot): Set unused registers to 0.
12077 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12078 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12079 * grub-core/mmap/mips/uppermem.c: ...here.
12080 * grub-core/partmap/dvh.c: New file.
12081 * grub-core/term/arc/console.c: Likewise.
12082 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12083 (grub_terminfo_set_current): Add terminal "arc".
12084 (grub_terminfo_readkey): Support ARC sequences.
12085 * include/grub/arc/arc.h: New file.
12086 * include/grub/arc/console.h: Likewise.
12087 * include/grub/disk.h (grub_disk_dev_id): Add
12088 GRUB_DISK_DEVICE_ARCDISK_ID.
12089 * include/grub/mips/arc/kernel.h: New file.
12090 * include/grub/mips/arc/memory.h: Likewise.
12091 * include/grub/mips/arc/time.h: Likewise.
12092 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12093 * include/grub/mips/kernel.h (grub_halt): ... here.
12094 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12095 here...
12096 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12097 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12098 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12099 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12100 proto.
12101 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12102 from here ...
12103 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12104 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12105 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12106 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12107 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12108 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12109 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12110 (grub_phys_addr_t): Moved from here ...
12111 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12112 (grub_vtop): Moved from here ...
12113 * include/grub/mips/memory.h (grub_vtop): ... here.
12114 (grub_map_memory): Moved from here ...
12115 * include/grub/mips/memory.h (grub_map_memory): ... here.
12116 (grub_unmap_memory): Moved from here ...
12117 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12118 (grub_machine_mmap_iterate): Moved from here ...
12119 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12120 (grub_mmap_get_lower): Moved from here ...
12121 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12122 (grub_mmap_get_upper): Moved from here ...
12123 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12124 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12125 here ...
12126 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12127 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12128 here ...
12129 * include/grub/mips/time.h (grub_get_rtc): ... here.
12130 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12131 here ...
12132 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12133 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12134 here ...
12135 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12136 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12137 definition.
12138 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12139 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12140 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12141 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12142 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12143 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12144 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12145 (GRUB_MACHINE_LINK_ADDR): Likewise.
12146 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12147 to 6.
12148 * util/grub-install.in: Run dvhtool on ARC.
12149 * util/grub-mkimage.c (image_targets): Add mips-arc.
12150 (generate_image): Handle ECOFF output for mips-arc.
12151
12152 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12153
12154 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12155 blocks.
12156
12157 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12158
12159 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12160 after enabling port.
12161
12162 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12163
12164 Skip incorrect USB devices.
12165
12166 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12167 configcnt == 0.
12168 * include/grub/usb.h (grub_usb_err_t): New enum value
12169 GRUB_USB_ERR_BADDEVICE.
12170
12171 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12172
12173 Fuloong video init support.
12174
12175 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12176 well.
12177 (grub_vga_read_arx): New function.
12178 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12179 definition.
12180 (framebuffer): New members io, mmioptr and mmiobase.
12181 (read_sis_cmd): New function.
12182 (write_sis_cmd): Likewise.
12183 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12184 rather than 640x400.
12185 * grub-core/video/sis315_init.c: New file.
12186
12187 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12188
12189 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12190 non-loongson.
12191 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12192 to grub_dl_register_symbol.
12193
12194 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12195
12196 Fix compilation errors.
12197
12198 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12199 potentially unused.
12200 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12201 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12202 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12203 to loongson machines.
12204
12205 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12206
12207 Several FS mtime support.
12208
12209 * grub-core/fs/affs.c (grub_affs_time): New struct.
12210 (grub_affs_file): New field mtime.
12211 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12212 type. Removed 'size'. New field 'di'. All users updated.
12213 (grub_affs_mount): Simplify checsum checking.
12214 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12215 (grub_affs_dir): Handle mtime.
12216 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12217 (grub_cpio_dir): Likewise.
12218 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12219 (grub_hfs_filerec): New field mtime.
12220 (grub_hfs_dir): Handle mtime.
12221 (grub_hfs_mtime): New function.
12222 (grub_hfs_fs): Register grub_hfs_mtime.
12223 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12224 (grub_iso9660_dir): New field mtime.
12225 (grub_fshelp_node): New field dirent.
12226 (iso9660_to_unixtime): New function.
12227 (iso9660_to_unixtime2): Likewise.
12228 (grub_iso9660_read_symlink): Use node->dirent.
12229 (grub_iso9660_iterate_dir): Likewise.
12230 (grub_iso9660_dir): Set mtime.
12231 (grub_iso9660_mtime): New function.
12232 (grub_iso9660_fs): Register grub_iso9660_mtime.
12233 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12234 (grub_jfs_inode): New fields atime, ctime and mtime.
12235 (grub_jfs_dir): Set mtime.
12236 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12237 * grub-core/fs/ntfs.c (list_file): Set mtime.
12238 (grub_ntfs_dir): Likewise.
12239 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12240 (grub_reiserfs_iterate_dir): Set mtime.
12241 (grub_reiserfs_dir): Likewise.
12242 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12243 (grub_fshelp_node): Likewise.
12244 (grub_sfs_iterate_dir): Set mtime.
12245 (grub_sfs_dir): Likewise.
12246 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12247 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12248 (grub_xfs_inode): New fields atime, mtime, ctime.
12249 (grub_xfs_dir): Set mtime.
12250 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12251 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12252 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12253
12254 Support UDF symlinks.
12255
12256 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12257 (grub_ufs_read_symlink): New function. All users updated.
12258
12259 Check amiga partmap checksum.
12260
12261 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12262 (grub_amiga_partition): Likewise.
12263 (amiga_partition_map_checksum): New function.
12264 (amiga_partition_map_iterate): Check checksum.
12265
12266 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12267
12268 ROMFS support.
12269
12270 * Makefile.util.def (libgrubmods.a): Add romfs.
12271 * grub-core/Makefile.core.def (romfs): New module.
12272 * grub-core/fs/romfs.c: New file.
12273
12274 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12275
12276 Squashfs v4 support.
12277
12278 * Makefile.util.def (libgrubmods.a): Add squash4.
12279 * grub-core/Makefile.core.def (squash4): New module.
12280 * grub-core/fs/squash4.c: New file.
12281 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12282 disk_input_start, disk_input.
12283 (get_byte): Handle disk_input.
12284 (grub_zlib_disk_read): New function.
12285 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12286
12287 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12288 2011-05-15 Feiran Zheng <famcool@gmail.com>
12289
12290 * Makefile.util.def (libgrubmods.a): Add minix3.
12291 * grub-core/Makefile.core.def (minix3): New module.
12292 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12293 (GRUB_MINIX_BSIZE): Removed.
12294 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12295 (grub_minix_ino_t): New type.
12296 (grub_minix_le_to_cpu_ino): New macro.
12297 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12298 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12299 (grub_minix_data): New field block_size.
12300 (grub_minix_read_file): Handle 64-bit correctly.
12301 * grub-core/fs/minix3.c: New file.
12302
12303 2011-05-15 Tristan Gingold <gingold@free.fr>
12304 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12305 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12306
12307 IA64 support.
12308
12309 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12310 * configure.ac: Add ia64-efi target.
12311 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12312 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12313 * gentpl.py: Add ia64_efi platform.
12314 Rename x86_efi to efi and Add ia64-efi. All users updated.
12315 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12316 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12317 Remove kern/generic/rtc_get_time_ms.c on EFI.
12318 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12319 kern/ia64/dl_helper.c on ia64-efi.
12320 Add kern/emu/cache.c on emu.
12321 (linux): Use on loader/ia64/efi/linux.c on ia64.
12322 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12323 whether symbol is a function.
12324 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12325 (grub_symbol): New field 'isfunc'.
12326 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12327 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12328 (grub_dl_load_segments): Place all sections into the same region.
12329 [__ia64__]: Create trampolines and got.
12330 [GRUB_MACHINE_EMU]: Call mprotect.
12331 (grub_dl_resolve_symbols): Resolve symbol type as well.
12332 [__ia64__]: Create function descriptors.
12333 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12334 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12335 (grub_get_rtc): New function.
12336 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12337 * grub-core/kern/emu/cache.S: Renamed to ...
12338 * grub-core/kern/emu/cache_s.S: ... this.
12339 [__ia64__]: Add a nop.
12340 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12341 [__ia64__]: New function.
12342 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12343 * grub-core/kern/ia64/dl.c: New file.
12344 * grub-core/kern/ia64/dl_helper.c: Likewise.
12345 * grub-core/kern/ia64/efi/init.c: New file.
12346 * grub-core/kern/ia64/efi/startup.S: Likewise.
12347 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12348 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12349 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12350 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12351 * grub-core/loader/ia64/efi/linux.c: New file.
12352 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12353 (GRUB_MOD_DEP): Likewise.
12354 (grub_dl) [__ia64__]: New fields got and tramp.
12355 (grub_dl): New field 'base'.
12356 (grub_dl_register_symbol): New argument isfunc. All users updated.
12357 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12358 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12359 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12360 (grub_ia64_dl_get_tramp_got_size): New proto.
12361 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12362 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12363 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12364 * include/grub/efi/api.h: Skip call wrappers on ia64.
12365 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12366 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12367 * include/grub/elf.h (ELF_ST_INFO): New definition.
12368 * include/grub/ia64/efi/kernel.h: New file.
12369 * include/grub/ia64/efi/memory.h: Likewise.
12370 * include/grub/ia64/efi/time.h: Likewise.
12371 * include/grub/ia64/kernel.h: Likewise.
12372 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12373 * include/grub/ia64/time.h: New file.
12374 * include/grub/ia64/types.h: Likewise.
12375 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12376 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12377 New protos.
12378 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12379 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12380 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12381 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12382 All users updated.
12383 (EFI64_HEADER_SIZE): New definition. All users updated.
12384 (image_targets): Add ia64-efi.
12385 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12386 jumpers_addr. All users updated.
12387 Create function descriptors.
12388 (count_funcs): New function.
12389 (unaligned_uint32): New struct.
12390 (MASK20): New definition.
12391 (MASK19): Likewise.
12392 (MASKF21): Likewise.
12393 (add_value_to_slot_20b): New function.
12394 (add_value_to_slot_21_real): Likewise.
12395 (add_value_to_slot_21): Likewise.
12396 (ia64_kernel_trampoline): New struct.
12397 (nopm): New variable.
12398 (jump): Likewise.
12399 (make_trampoline): New function.
12400 (relocate_addresses): Handle ia64.
12401 (make_reloc_section): Likewise.
12402 (load_image): Likewise.
12403
12404 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12405
12406 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12407 warning. Move variables before code while on it.
12408
12409 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12410
12411 Fuloong support.
12412
12413 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12414 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12415 * grub-core/boot/mips/loongson/fuloong.S: New file.
12416 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12417 Explicitly init CS5536.
12418 [FULOONG]: Don't use serial until CS5536 is available.
12419 Set GPIO based on dumps.
12420 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12421 [FULOONG]: Handle GPIO and memory controller differences.
12422 Parse machine type in $a2.
12423 * grub-core/boot/mips/startup_raw.S: Determine and save the
12424 architecture.
12425 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12426 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12427 init on architecture type.
12428 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12429 SIS315E. Don't init at_keyboard on fuloong.
12430 (grub_halt): Support Fuloong.
12431 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12432 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12433 (loongson_machtypes): New array.
12434 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12435 type.
12436 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12437 config. All users updated. Handle CS5536 serial.
12438 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12439 default port on machine type. Register serial as inactive.
12440 * grub-core/video/sis315pro.c: New file.
12441 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12442 definition.
12443 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12444 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12445 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12446 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12447 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12448 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12449 to ...
12450 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12451 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12452 definition.
12453 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12454 (grub_arch_machine): New extern var.
12455 * include/grub/mips/loongson/serial.h
12456 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12457 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12458 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12459 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12460 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12461 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12462 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12463 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12464 * include/grub/term.h (grub_term_register_input_inactive): New inline
12465 function.
12466 (grub_term_register_output_inactive): Likewise.
12467 * include/grub/video.h (grub_video_driver_id): New value
12468 GRUB_VIDEO_DRIVER_SIS315PRO.
12469 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12470 New field "names". All users updated.
12471 New field value IMAGE_FULOONG_FLASH.
12472 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12473
12474 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12475
12476 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12477 and add some clarification.
12478
12479 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12480
12481 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12482 platforms if kernel is compressed.
12483
12484 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12485
12486 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12487 unused modules since currently referrence counter isn't reliable and
12488 there isn't much memory to recover there anyway.
12489
12490 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12491
12492 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12493 rather than resetting it to allow modules to reference themselves
12494 in init.
12495
12496 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12497
12498 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12499 counter on dependencies since grub_dl_unref already handles this.
12500
12501 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12502
12503 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12504 on error if not already done.
12505
12506 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12507
12508 Fix few potential memory misusage.
12509
12510 * grub-core/font/font.c (load_font_index): Don't free char_index to
12511 avoid double free.
12512 (grub_font_load): Zero-fill font at alloc for safety.
12513 Close file on error.
12514 (free_font): Free bmp_idx.
12515
12516 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12517
12518 * docs/grub.texi (Installation): Fix several outdated claims.
12519
12520 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 Handle module_license on windows.
12523
12524 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12525 sections shifted.
12526 (insert_string): Make argument const char * instead of char *.
12527 (write_section_data): Handle long section names.
12528 Handle module_license.
12529
12530 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12531
12532 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12533 handle class-free menuentries.
12534 (grub_normal_add_menu_entry): Add a check to be sure.
12535
12536 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12537
12538 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12539 PgUp and PgDown.
12540
12541 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12542
12543 * configure.ac: Bump version to 1.99.
12544
12545 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12546
12547 Give ATA device a bit more time on first try in order to allow disks
12548 to spin up.
12549
12550 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12551 if dev->present is 1. Reset dev->present on failure.
12552 (grub_ata_device_initialize): Set dev->present to 1.
12553 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12554 (grub_ata_device): New member 'present'.
12555
12556 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12557
12558 * util/grub-mkimage.c (generate_image): Update hash.
12559
12560 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12561
12562 Flush caches on DMA memory.
12563
12564 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12565 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12566 (grub_dma_free): Likewise.
12567 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12568
12569 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12572 to avoid asm treating ld and sd as macros.
12573
12574 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12575
12576 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12577 decompressor.
12578
12579 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12580
12581 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12582 grub_decompress_core since later would fail if grub_decompress_core
12583 is too far.
12584
12585 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12586
12587 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12588 R_MIPS_JALR since it's used by newer compiler.
12589
12590 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12591
12592 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12593
12594 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12595
12596 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12597 file_path to 0 for surety.
12598 (grub_chainloader_boot): Set exit_data to NULL.
12599 Unset the loader once done.
12600 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12601
12602 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12603
12604 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12605 unknown key into a dprintf.
12606
12607 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12608
12609 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12610 on first non-existant partition.
12611
12612 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12613
12614 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12615 openning fails.
12616 Reported by: Mark Korenberg.
12617
12618 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12619
12620 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12621 overflow.
12622
12623 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12624
12625 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12626 before closing to ensure that it will be readable by grub-setup.
12627
12628 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12629
12630 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12631 (devpath_1): Use MAKE_PIWG_PATH.
12632 (devpath_2): Likewise.
12633 (devpath_3): Likewise.
12634 (devpath_4): Likewise.
12635 (devpath_5): Likewise.
12636 (devpath_6): Likewise.
12637
12638 The appleldr.mod was checked that to be binary identical to previous
12639 version.
12640
12641 2011-05-05 Zach <mikezackles>
12642
12643 Support 2010 Macbooks.
12644
12645 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12646 (devs): Add devpath_6.
12647
12648 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12649
12650 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12651 /dev/random. /dev/urandom is good enough for our purposes (salting).
12652
12653 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12654
12655 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12656
12657 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12660 hexadecimal.
12661
12662 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12663
12664 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12665 and not 0 on failure.
12666
12667 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12668
12669 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12670 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12671 disk; otherwise grub_fs_probe will not fall back to the next
12672 filesystem.
12673 (grub_pxefs_open): Likewise, for consistency.
12674 Reported and tested by: Ezekiel Grave.
12675
12676 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12677
12678 * tests/partmap_test.in: Don't hardcode path to parted.
12679 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12680
12681 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12682
12683 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12684 of `ls' to find out which devices are available.
12685
12686 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12687
12688 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12689 than source address for efi mmap buffer.
12690
12691 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12694 wrong action on non-detecting the magic.
12695
12696 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12699 already supplied by another part of the module (fixes compilation on
12700 FreeBSD).
12701
12702 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12703
12704 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12705 match the one used by mdadm.
12706
12707 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12708
12709 * po/README: Add instructions for creating po/LINGUAS.
12710
12711 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12712
12713 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12714 #551428.
12715
12716 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12717 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12718 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12719 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12720 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12721 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12722 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12723 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12724 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12725 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12726 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12727 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12728 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12729 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12730 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12731 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12732 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12733 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12734 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12735 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12736 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12737 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12738
12739 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12740
12741 * grub-core/kern/emu/getroot.c
12742 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12743 test that was incorrectly reintroduced in r3214.
12744 Reported by: Ian Dall. Fixes Savannah bug #33133.
12745
12746 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12747
12748 Fix stack pointer handling in 16-bit relocator.
12749
12750 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12751 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12752 Fixes Ubuntu bug #683904.
12753
12754 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12755
12756 * configure.ac: Bump version to 1.99~rc2.
12757
12758 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12759
12760 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12761 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12762 * grub-core/lib/x86_64/setjmp.S: Likewise.
12763 * grub-core/lib/mips/setjmp.S: Likewise.
12764 * grub-core/lib/powerpc/setjmp.S: Likewise.
12765 * grub-core/lib/sparc64/setjmp.S: Likewise.
12766
12767 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12768
12769 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12770 * grub-core/lib/efi/datetime.c: Likewise.
12771
12772 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12773
12774 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12775 New function.
12776 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12777 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12778 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12779
12780 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12781
12782 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12783 bitmap.
12784 (grub_gfxterm_term_init): Likewise.
12785
12786 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12787
12788 Take into account the decorations the computing menu entry width.
12789
12790 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12791 (grub_gfxmenu_create_box): Register get_border_width.
12792 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12793 if available.
12794 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12795 get_border_width.
12796
12797 2011-04-18 Endres Puschner <code@e7p.de>
12798
12799 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12800 Don't skip first class.
12801
12802 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12803
12804 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12805 chunks.
12806 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12807
12808 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 Complete 64-bit division support.
12811
12812 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12813 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12814 * include/grub/misc.h (grub_divmod64): Rename to ...
12815 (grub_divmod64_full): ... this.
12816 (grub_divmod64): New inline function.
12817
12818 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12821
12822 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12823
12824 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12825 performing the necessary test.
12826
12827 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12828
12829 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12830 (kfreebsd.elf): Likewise.
12831 (pc-chainloader.elf): Likewise.
12832 (ntldr.elf): Likewise.
12833
12834 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12835
12836 Identify RAID by its UUID rather than (guessed) name.
12837
12838 * grub-core/disk/raid.c (ascii2hex): New function.
12839 (grub_raid_open): Accept mduuid/%s specification.
12840 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12841 (get_mdadm_uuid): ... this.
12842 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12843
12844 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12845
12846 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12847 to negative size.
12848
12849 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12850
12851 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12852 btrfs subvolume.
12853 * util/grub.d/20_linux_xen.in: Likewise.
12854
12855 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12856
12857 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12858 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12859
12860 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12861 Build a list of relevant visible mounts using the mnt_id and
12862 parent_mnt_id fields, and then scan that list at the end.
12863
12864 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12865
12866 * docs/grub.texi (normal): New section.
12867 (normal_exit): New section.
12868 (Embedded configuration): Add reference to normal.
12869 (GRUB only offers a rescue shell): Likewise.
12870 * docs/grub-dev.texi (Error Handling): Fix typo.
12871
12872 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12873
12874 * NEWS: Drop obsolete entry about probe-only btrfs support.
12875
12876 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12877
12878 * util/import_gcry.py: Fix typo.
12879
12880 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 * NEWS: Add btrfs support.
12883
12884 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12885 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12886
12887 BtrFS support. Written by me (Vladimir) with important bugfixes and
12888 even more important testing by Colin.
12889
12890 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
12891 * grub-core/Makefile.core.def (btrfs): Add crc.c.
12892 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
12893 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
12894 mem_input_off and mem_input. All users updated to accept in-RAM input.
12895 (gzio_seek): New function.
12896 (test_zlib_header): Likewise.
12897 (grub_gzio_read): Likewise.
12898 (grub_zlib_decompress): Likewise.
12899 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
12900 Accept partial and non-virtual mounts.
12901 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
12902 avoid receiving /dev/dm-X as device.
12903 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
12904 Handle bind and partial mounts.
12905 * grub-core/lib/crc.c: New file.
12906 * include/grub/deflate.h: Likewise.
12907 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
12908 proto.
12909 * include/grub/lib/crc.h: New file.
12910
12911 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12912
12913 Implement automatic module license checking according to new GNU
12914 guidelines.
12915
12916 * grub-core/kern/dl.c (grub_dl_check_license): New function.
12917 (grub_dl_load_core): Use grub_dl_check_license.
12918 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
12919 (GRUB_MOD_LICENSE): Likewise.
12920 (GRUB_MOD_DUAL_LICENSE): Likewise.
12921 All modules updated.
12922
12923 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12924
12925 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
12926 reserved_first_sector to 1. btrfs reserves plenty of space for boot
12927 loaders.
12928 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
12929
12930 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12931
12932 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
12933
12934 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12935
12936 * util/grub-fstest.c (read_file): Report GRUB error if file opening
12937 failed.
12938
12939 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12940
12941 * grub-core/kern/file.c (grub_file_open): Don't take into account the
12942 parenthesis in the middle of the filename.
12943
12944 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12945
12946 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
12947 rather than trying to put initrd way too high.
12948 Reported by: Ryan Lortie <desrt@desrt.ca>
12949
12950 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12951
12952 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
12953 improperly removed string.
12954
12955 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
12958 is_disk.
12959 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
12960 (open_device) Likewise.
12961 (grub_util_biosdisk_close): Likewise.
12962 Reported by: Mark Korenberg.
12963
12964 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
12965
12966 * util/grub-mkconfig_lib.in: Add missing quotes.
12967
12968 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
12969
12970 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
12971 is NULL.
12972
12973 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12974
12975 Dynamically count the number of lines for the lower banner.
12976
12977 * grub-core/normal/menu_entry.c (per_term_screen): New member
12978 num_entries.
12979 (print_down): Use num_entries.
12980 (update_screen): Likewise.
12981 (grub_menu_entry_run): Set num_entries.
12982 * grub-core/normal/menu_text.c (menu_viewer_data): New member
12983 num_entries.
12984 (grub_print_message_indented): Move real part to ...
12985 (grub_print_message_indented_real): ... here. Additional argument
12986 dry_run.
12987 (draw_border): Additional argument num_entries.
12988 (print_message): Additional argument dry_run.
12989 (print_entries): Receive menu viewer data.
12990 (grub_menu_init_page): New argment num_entries.
12991 (menu_text_set_chosen_entry): Use num_entries.
12992 (grub_menu_try_text): Likewise.
12993 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
12994 All users updated.
12995 (grub_ucs4_count_lines): New function.
12996 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
12997 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
12998 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
12999 (grub_term_border_height): Likewise.
13000 (grub_term_num_entries): Likewise.
13001
13002 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13003
13004 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13005 Remove now unused string.
13006
13007 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13008
13009 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13010 build system.
13011 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13012
13013 (Comment): Fix typo.
13014 (Getting started): General copy-editing.
13015 (Typical Development Experience): Likewise.
13016 (Error Handling): Likewise.
13017 (Video API): Likewise.
13018
13019 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13020
13021 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13022 throughout.
13023
13024 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13025
13026 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13027 directory.
13028
13029 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13030
13031 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13032 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13033 "development".
13034
13035 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13036
13037 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13038 grub_strcpy since the lines aren't necessarily 0-terminated.
13039
13040 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13043 root on legacy.
13044
13045 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13048 (GRUB_MOD_INIT): DEVICE isn't optional.
13049
13050 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13051
13052 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13053 word on new line if it's too long anyway. Fixes a hang.
13054
13055 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13056
13057 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13058 const.
13059 * util/grub-setup.c (main): Reuse md device name if available.
13060 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13061 not GRUB name as argument.
13062 Based on patch by: Florian Wagner <fwagner>.
13063
13064 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13065
13066 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13067 Place mbi on low memory for better compatibility.
13068
13069 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13070
13071 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13072
13073 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13074 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13075
13076 * autogen.sh: Ensure that collate and ctype locale is C.
13077 * conf/Makefile.common: Likewise.
13078
13079 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13080
13081 * grub-core/normal/menu.c: Add missing include.
13082
13083 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13086
13087 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13088
13089 * util/grub-mkconfig.in: Ignore emacsen backup.
13090
13091 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13092
13093 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13094 on open.
13095 (grub_util_biosdisk_close): Likewise.
13096
13097 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13098
13099 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13100 const attribute and use grub_isdigit.
13101
13102 2011-04-06 Andrey <dev_null@ukr.net>
13103
13104 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13105 gcc warning.
13106
13107 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13108
13109 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13110 useful grub_dprintf's.
13111
13112 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13115
13116 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13117
13118 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13119
13120 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 Output errors if theme loading failed.
13123
13124 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13125 grub_gfxterm_fullscreen on error paths to ...
13126 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13127 theme loading error.
13128
13129 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13130
13131 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13132 space for older compilers.
13133 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13134
13135 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13136
13137 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13138 and report them as not RAID members since they are useless for GRUB.
13139 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13140
13141 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13142
13143 Increase LVM implementation robustness in order not to crash on
13144 configurations like pvmove. Previously code assumed that in some places
13145 only lvs or only pvs are used whereas it seems that they are used
13146 interchangeably.
13147
13148 * grub-core/disk/lvm.c (read_node): New function.
13149 (read_lv): Use read_node.
13150 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13151 Match volumes only at the end when all lvs are found. Take both
13152 pvs (first) and lvs (second) into account.
13153 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13154 mirror_* into node_*. All users updated.
13155 (grub_lvm_stripe): Merge this ...
13156 (grub_lvm_mirror): ... and this ...
13157 (grub_lvm_node): ... into this. All users updated.
13158
13159 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13160
13161 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13162 of function to allow further scanning for LVMs.
13163
13164 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13167 on failed seek as it breaks open fd reusage.
13168
13169 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13170
13171 * util/grub-install.in: Add a recommendation to use --recheck before
13172 reporting bugs.
13173
13174 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13175
13176 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13177 are obtained.
13178
13179 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13180
13181 GRUB developper manual based on existing Internals section and
13182 contributions by the various authors with active copyright assignment.
13183
13184 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13185 * docs/font_char_metrics.png: New file.
13186 * docs/font_char_metrics.txt: Likewise.
13187 * docs/grub-dev.texi: Likewise.
13188 * docs/grub.texi (Internals): Move from here ...
13189 * docs/grub-dev.texi: ... here.
13190
13191 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13192
13193 Store the loopback device as data on loopback grub_disk structures,
13194 rather than the file it points to. This fixes use of freed memory
13195 if an existing loopback device is replaced.
13196
13197 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13198 disk->data, not dev->file.
13199 (grub_loopback_read): Adjust file assignment to match.
13200 Fixes Ubuntu bug #742967.
13201
13202 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13203
13204 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13205 when replacing an existing device.
13206
13207 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13210 memory corruptions.
13211
13212 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13213 unsigned.
13214 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13215 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13216 (grub_jfs_read_inode): Likewise.
13217 (grub_jfs_opendir): Likewise. Remove now useless casts.
13218 (grub_jfs_getent): Likewise.
13219 Make ino a grub_uint32_t rather than int.
13220 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13221 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13222 division and module with bit operations.
13223 (grub_jfs_find_file): Make ino a grub_uint32_t.
13224 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13225
13226 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13227
13228 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13229 warning. (This was in fact always initialised before use, but GCC
13230 wasn't smart enough to prove that.)
13231 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13232
13233 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13234
13235 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13236 stack alignment.
13237 (efi_wrap_1): Likewise.
13238 (efi_wrap_2): Likewise.
13239 (efi_wrap_3): Likewise.
13240 (efi_wrap_4): Likewise.
13241 (efi_wrap_5): Likewise.
13242 (efi_wrap_6): Likewise.
13243 (efi_wrap_10): Likewise.
13244 Based on information by: Red Hat/Peter Jones.
13245
13246 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13247
13248 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13249 set-but-not-used variable.
13250
13251 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13252
13253 * docs/grub.texi (Simple configuration): Be more explicit about
13254 GRUB_DEFAULT, and add an example.
13255 Reported by: Leslie Rhorer.
13256
13257 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13258
13259 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13260 shell".
13261
13262 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13263
13264 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13265 * util/grub.d/20_linux_xen.in: Likewise.
13266
13267 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13268
13269 * util/grub.d/10_linux.in: Try alternative config filenames where
13270 we parse config file.
13271 * util/grub.d/20_linux_xen.in: Likewise.
13272
13273 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13274
13275 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13276 * util/grub.d/20_linux_xen.in: Likewise.
13277
13278 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13279
13280 * grub-core/disk/raid.c (insert_array): Add few potentially
13281 useful grub_util_info.
13282 (grub_raid_register): Likewise.
13283
13284 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13285
13286 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13287 Preserve partition number in mdadm code path.
13288
13289 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13290
13291 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13292 few potentially useful grub_util_info.
13293
13294 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13295
13296 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13297
13298 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13299
13300 * docs/grub.texi (default): Use @example rather than nested
13301 itemized lists to avoid breaking gendocs.
13302
13303 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13304
13305 * docs/grub.texi (Future): Update.
13306
13307 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13308
13309 * docs/grub.texi (Environment): New chapter.
13310 (Changes from GRUB Legacy): Link to "Environment block" section for
13311 details of limitations.
13312 (Simple configuration): Likewise. Link to documentation of gfxmode
13313 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13314 respectively.
13315 (Shell-like scripting): Note that normal variables are stored in the
13316 environment.
13317 (gettext): Link to documentation of lang and locale_dir.
13318 (list_env): New section.
13319 (load_env): New section.
13320 (save_env): New section.
13321
13322 (Reporting bugs): Fix typo.
13323
13324 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13325
13326 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13327 the example.
13328
13329 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13330
13331 * grub-core/term/at_keyboard.c (set_scancodes)
13332 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13333
13334 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13335
13336 * docs/grub.texi (Menu-specific commands): Remove some semantics
13337 that were true in GRUB Legacy but not in GRUB 2.
13338 (submenu): New section.
13339 (false): New section.
13340 (read): New section.
13341 (true): New section.
13342
13343 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13344
13345 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13346
13347 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13348
13349 * docs/grub.texi (Simple configuration): Explain some of the
13350 current limitations of grub-mkconfig.
13351 Reported by: Leslie Rhorer.
13352
13353 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13354
13355 Old macs search for boot.efi rather than for bootia32.efi.
13356
13357 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13358 * util/grub-mkrescue.in: Likewise.
13359 Suggested by: Peter Jones.
13360
13361 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13362
13363 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13364
13365 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13366
13367 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13368 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13369 (grub_lvm_mirror): New struct.
13370 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13371 (grub_lvm_iterate): Iterate only visible volumes.
13372 (grub_lvm_read): Factor out to ..
13373 (read_lv): ... this. Support mirrors.
13374 (grub_lvm_read): New wrapper function.
13375 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13376 stripped or mirrored.
13377
13378 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13379
13380 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13381
13382 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13383
13384 * docs/grub.texi (loopback): New section.
13385
13386 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13387
13388 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13389 removed -p option.
13390
13391 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13392
13393 * docs/grub.texi (BIOS installation): New section, partly based on
13394 previous text in other sections.
13395 (Installing GRUB using grub-install): Replace BIOS discussion with a
13396 cross-reference.
13397 (Images): Likewise.
13398
13399 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13400
13401 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13402 [HAVE_DIOCGDINFO]: Add safety checks.
13403
13404 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13405
13406 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13407 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13408
13409 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13410
13411 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13412 real_sb->size is zero (e.g. RAID-0), get the disk size from
13413 real_sb->data_size instead.
13414 Fixes Ubuntu bug #743136.
13415
13416 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13417
13418 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13419 printf clauses for printing size and start.
13420
13421 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13422
13423 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13424 Reported and tested by: Timothy Nikkel.
13425
13426 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13427
13428 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13429 (dirty_region_add_real): ... this.
13430 (dirty_region_add): Don't discard margin refresh when performing
13431 scheduled repaint.
13432
13433 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 * grub-core/lib/relocator.c (allocate_regstart)
13436 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13437 terminals are capabple of malloc-free operation.
13438 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13439 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13440
13441 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13442
13443 * util/grub-setup.c: Copy the partition table zone if floppy support
13444 is disabled, even if no partition table is found.
13445
13446 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13447 during POST if an invalid partition table is contained in the PBR
13448 of the active partition when GRUB is installed to a partition.
13449
13450 2011-03-28 Colin Watson <cjwatson@debian.org>
13451
13452 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13453 comment.
13454
13455 2011-03-28 Colin Watson <cjwatson@debian.org>
13456
13457 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13458 to be specific about what kind of RAID device we're scanning for.
13459
13460 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13461
13462 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13463 return freed string.
13464
13465 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13466
13467 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13468
13469 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13470
13471 Use libgeom on FreeBSD to detect partitions.
13472
13473 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13474 (grub-mkrelpath): Likewise.
13475 (grub-script-check): Likewise.
13476 (grub-editenv): Likewise.
13477 (grub-mkpasswd-pbkdf2): Likewise.
13478 (grub-fstest): Likewise.
13479 (grub-mkfont): Likewise.
13480 (grub-mkdevicemap): Likewise.
13481 (grub-probe): Likewise.
13482 (grub-setup): Likewise.
13483 (grub-ofpathname): Likewise.
13484 (grub-mklayout): Likewise.
13485 (example_unit_test): Likewise.
13486 (grub-menulst2cfg): Likewise.
13487 * grub-core/Makefile.core.def (grub-emu): Likewise.
13488 (grub-emu-lite): Likewise.
13489 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13490 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13491 define HAVE_DIOCGDINFO.
13492 (follow_geom_up) [FreeBSD]: New function.
13493 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13494 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13495 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13496 unconditionally of HAVE_DIOCGDINFO.
13497
13498 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13499
13500 Fix FreeBSD compilation problem.
13501
13502 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13503 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13504
13505 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13506
13507 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13508 Switch back to page zero before loading a kernel, since some kernel
13509 drivers expect that.
13510 Thanks to: Felix Kuehling.
13511
13512 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13513
13514 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13515 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13516 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13517
13518 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13519
13520 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13521 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13522
13523 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13524
13525 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13526 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13527 malloc is disabled.
13528
13529 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13530
13531 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13532 for modules headers when counting the needed allocation size.
13533
13534 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13537 if no ASCII character is found to prevent crash.
13538
13539 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13540
13541 * grub-core/video/bitmap.c (match_extension): Ignore case.
13542
13543 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13544
13545 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13546
13547 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13548
13549 * grub-core/script/parser.y: Declare "time" as valid argument.
13550
13551 2011-03-23 Peter Jones <pjones@redhat.com>
13552
13553 Fix incorrect assert failure reporting.
13554
13555 * grub-core/tests/example_functional_test.c (example_test): Add
13556 a failure comment.
13557 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13558 (failure_start): ...this. Check that malloc succeeded.
13559 Don't call xvasprintf. Return failure struct.
13560 (failure_append_vtext): New function.
13561 (failure_append_text): Likewise.
13562 (add_failure): Likewise.
13563 (grub_test_assert_helper): Likewise.
13564 * include/grub/test.h (grub_test_assert_helper): New declaration.
13565 (grub_test_assert): Macro rewritten.
13566
13567 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13568
13569 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13570
13571 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13572
13573 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13574
13575 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13576
13577 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13578 into GRUB-style one.
13579
13580 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13581
13582 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13583 error and not grub_errno.
13584 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13585
13586 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13587
13588 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13589 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13590
13591 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13592
13593 * grub-core/efiemu/i386/pc/cfgtables.c
13594 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13595 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13596 (grub_xnu_unlock): Likewise.
13597 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13598
13599 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13600
13601 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13602 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13603 * grub-core/commands/hashsum.c (aliases): Likewise.
13604 * grub-core/commands/setpci.c (pci_registers): Likewise.
13605 * grub-core/disk/usbms.c (attach_hook): Likewise.
13606 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13607 (zio_checksum_table): Likewise.
13608 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13609 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13610 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13611 * grub-core/lib/relocator.c (leftovers): Likewise.
13612 (extra_blocks): Likewise.
13613 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13614 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13615 (modules_last): Likewise.
13616 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13617 (devices): Likewise.
13618 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13619 (modules_last): Likewise.
13620 * grub-core/normal/auth.c (users): Likewise.
13621 * grub-core/normal/context.c (initial_menu): Likewise.
13622 (current_menu): Likewise.
13623 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13624 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13625 (grub_serial_terminfo_input_template): Likewise.
13626 (grub_serial_terminfo_output_template): Likewise.
13627 (grub_serial_terminfo_input): Likewise.
13628 (grub_serial_terminfo_output): Likewise.
13629 (registered): Likewise.
13630 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13631
13632 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13633
13634 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13635 grub_video_mode_type_t.
13636 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13637 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13638 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13639
13640 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13641
13642 * util/grub-install.in: Correct the x86-64 name as x86_64.
13643
13644 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13645
13646 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13647 initial chunk read from the kernel always includes GRUB's multiboot
13648 header, which is now outside the first sector.
13649
13650 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13651
13652 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13653 cached mmap_size, so that this works correctly when called multiple
13654 times.
13655 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13656
13657 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13658
13659 * docs/grub.texi (Simple configuration): Tidy up formatting.
13660
13661 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13662
13663 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13664 Set-but-not-used variable removed.
13665
13666 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 Workaround yet another IEEE1275 bug.
13669
13670 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13671 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13672 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13673 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13674 is set.
13675 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13676 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13677
13678 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13679
13680 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13681 error.
13682
13683 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13684
13685 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13686 empty, since in that case we can only generate either nothing or a
13687 syntactically invalid configuration file.
13688 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13689
13690 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13691
13692 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13693 (Making a GRUB bootable CD-ROM): Likewise.
13694 (Invoking grub-mkrescue): New section.
13695 Reported by: Yann Dirson. Fixes Debian bug #612585.
13696
13697 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13698
13699 * util/grub-install.in: Remove unnecessary brackets from tr
13700 arguments.
13701 * util/grub.d/10_hurd.in: Likewise.
13702 * util/grub.d/10_kfreebsd.in: Likewise.
13703 * util/grub.d/10_linux.in: Likewise.
13704 * util/grub.d/20_linux_xen.in: Likewise.
13705 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13706
13707 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13708
13709 * include/grub/file.h (not_easly_seekable): Rename to ...
13710 (not_easily_seekable): ... this. Update all users.
13711
13712 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13713
13714 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13715 grub-mkrescue.
13716
13717 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13718
13719 * util/grub-mkimage.c (generate_image): Refuse to create the images
13720 bigger than the actual flash (512K) in Loongson machines. 512K is also
13721 the biggest chip supported by them.
13722
13723 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13724
13725 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13726
13727 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13728
13729 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13730 super_offset field.
13731
13732 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13733
13734 * util/grub-install.in: Ignore install device on platforms
13735 where it doesn't make sense. Always use UUIDs except on pc, efi and
13736 sparc64.
13737 Reported by: Daniel Kahn Gillmor.
13738
13739 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13740
13741 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13742
13743 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13744
13745 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13746 (iterate_real): Don't rely on partition being non-NULL.
13747
13748 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13749
13750 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13751 supported platforms. Put a compile time assert for this rather than
13752 generate a warning with 32-bit shift.
13753
13754 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13755
13756 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13757 logical expression more readable.
13758
13759 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13760
13761 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13762 even if some elements have a name.
13763 Reported by: Alexander GQ Gerasiov.
13764
13765 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13766
13767 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13768 path unreadable if `grub-probe -t abstraction' fails, for example if
13769 memberlist fails on an LVM volume group.
13770 Reported by: Darius Jahandarie.
13771
13772 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13773
13774 * docs/grub.texi (Simple configuration): Document
13775 GRUB_PRELOAD_MODULES.
13776
13777 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
13778
13779 * .bzrignore: Remove nonexistent grub-pbkdf2.
13780
13781 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13782
13783 * configure.ac: Bump version to 1.99~rc1.
13784
13785 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13786
13787 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13788 for safety.
13789
13790 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13791
13792 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13793 module.
13794
13795 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13796
13797 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13798
13799 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13800
13801 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13802 diskdevid.
13803
13804 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13805
13806 Fix compilation on cygwin.
13807
13808 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13809 -R .drectve on cygwin.
13810 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13811 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13812 (COND_CYGWIN): New condition.
13813 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13814 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13815 not @TARGET_OBJ2ELF@.
13816 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13817 type to determine whether aux is to be used.
13818
13819 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13820
13821 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13822 realpath'ed device string.
13823 Handle floppy (somewhat).
13824 Issue error in unknown case rather than garbage.
13825 Reported by: Axel Beckert.
13826
13827 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 * util/grub.d/00_header.in (load_video): Handle the case when no video
13830 drivers available.
13831 Thanks to: Axel Beckert.
13832
13833 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13834
13835 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13836 variable. Fixes problem on big endian platforms.
13837
13838 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13839
13840 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13841 It doesn't work well there.
13842
13843 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13844
13845 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13846 warning.
13847 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13848 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13849 counter.
13850
13851 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 Use alias->path rather than buggy "canon".
13854
13855 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13856 (ofdisk_hash_add): New argument curcan. All users updated.
13857
13858 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13859
13860 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13861
13862 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13863
13864 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13865 loadmask before doing any calculations. Use correct type for offset.
13866 (grub_linux_load64): Likewise.
13867
13868 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13869
13870 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13871 with NULL.
13872 (console_grub_equivalences_unshift): Likewise.
13873 Reported by: Daniel Dehennin.
13874
13875 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13876
13877 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13878 (set_env_limn_ro): Likewise.
13879 (GRUB_MOD_INIT): Likewise.
13880 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13881 ARRAY_SIZE while on it.
13882 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13883 * grub-core/normal/context.c (grub_env_export): Move from here ...
13884 * grub-core/kern/env.c (grub_env_export): ... here.
13885 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13886 prefix.
13887 * grub-core/kern/main.c (grub_main): Export root and prefix.
13888 * include/grub/env.h (grub_env_export): Export.
13889 Reported by: Seth Goldberg.
13890
13891 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13892
13893 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13894 Take into account space used by ELF sections and multiboot palette.
13895 Reported by: Grégoire Sutre.
13896
13897 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13898
13899 * BUGS: New file.
13900
13901 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13902
13903 Pass more appropriate video id to Linux.
13904
13905 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
13906 grub_video_get_driver_id and variable gfxpayloadforcelfb to
13907 fill have_vga.
13908 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
13909 shift params->lfb_size.
13910 * include/grub/i386/linux.h: Make an enume out of have_vga values.
13911
13912 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13913
13914 * util/grub-menulst2cfg.c: Add missing include of misc.h.
13915
13916 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13917
13918 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
13919 separator and pass bootpath/devid even if only one of them is available.
13920 Reported by: Seth Goldberg.
13921
13922 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13923
13924 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
13925 implementations bug on them.
13926
13927 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
13928 memory.
13929 (filter_memory_map): Likewise.
13930
13931 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13932
13933 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
13934 Reported by: nebuchadnezzar.
13935
13936 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13937
13938 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
13939 Reported by: nebuchadnezzar.
13940
13941 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 Submenu default support.
13944
13945 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
13946 auto_boot. All users updated.
13947 Declared static.
13948 Handle chosen and default with submenus.
13949 (grub_menu_execute_with_fallback): Declared static.
13950 Don't notify failure if autobooted. Upper level does it.
13951 (menuentry_eq): New function.
13952 (get_entry_number): Use menuentry_eq.
13953 (show_menu): New parameter "autobooted". All users updated.
13954 (grub_show_menu): Likewise.
13955 * include/grub/normal.h (grub_show_menu): Likewise.
13956 * include/grub/menu.h (grub_menu_execute_entry): Removed.
13957 (grub_menu_execute_with_fallback): Likewise.
13958
13959 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13960
13961 * util/grub-mklayout.c (usage): Update help text.
13962
13963 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13964
13965 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
13966
13967 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13968
13969 * util/grub-menulst2cfg.c (main): Trim the line.
13970
13971 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13972
13973 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
13974 (grub_machine_init): Don't check amount of low memory as reportedly
13975 INT 12h can be broken and if low memory is too low we wouldn't have
13976 gotten into grub_machine_init anyway.
13977
13978 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13979
13980 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
13981 (grub_machine_mmap_iterate): Take low memory into account
13982
13983 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13984
13985 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
13986 badfs.
13987 Reported by: TiCPU.
13988
13989 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13990
13991 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
13992 members errors.
13993
13994 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13995
13996 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
13997 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
13998
13999 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14000
14001 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14002 openbsd and netbsd types being in part_bsd module.
14003
14004 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14005
14006 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14007 (_FILE_OFFSET_BITS): Likewise.
14008 Reported by: Seth Goldberg.
14009
14010 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14011
14012 * configure.ac: Check for libdevmapper header.
14013
14014 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14015
14016 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14017 avoid aliasing.
14018 (fzap_lookup): Likewise.
14019 (dnode_get): Likewise.
14020 (make_mdn): Likewise.
14021 (zfs_mount): Likewise.
14022 (fzap_iterate): Use temporary pointer to avoid aliasing.
14023 (grub_zfs_read): Likewise.
14024 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14025 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14026 pointers to avoid aliasing.
14027 (grub_cmd_xnu_kernel64): Likewise.
14028 (grub_xnu_load_driver): Likewise.
14029
14030 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14031
14032 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14033 aliasing warning.
14034 (grub_cmd_terminal_output): Likewise.
14035 Reported and tested by: Grégoire Sutre.
14036
14037 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14038
14039 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14040 warning.
14041 Reported and tested by: Grégoire Sutre.
14042
14043 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14044
14045 * configure.ac: Do CPU substitution even if it's specified explicitly.
14046 Reported and tested by: Alain Greppin.
14047
14048 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14049
14050 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14051 Reported and tested by: Alain Greppin.
14052
14053 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14054
14055 Satisfy some bison versions need for inttypes.h.
14056
14057 * grub-core/lib/posix_wrap/inttypes.h: New file.
14058 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14059 (int16_t): Likewise.
14060 (int32_t): Likewise.
14061 (int64_t): Likewise.
14062 Reported and tested by: Alain Greppin.
14063
14064 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14065
14066 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14067 Silence spurious warning.
14068 Reported and tested by: Alain Greppin.
14069
14070 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14071
14072 * docs/grub.texi (Support automatic decompression): Update with xz
14073 decompression support.
14074
14075 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14076
14077 Improve loaders' kernel command line handling.
14078
14079 * grub-core/lib/cmdline.c: New file.
14080 * include/grub/lib/cmdline.h: Likewise.
14081 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14082 grub_create_loader_cmdline to create kernel command line.
14083 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14084 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14085 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14086 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14087 (linux): Add lib/cmdline.c on common.
14088
14089 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14090
14091 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14092 inopos might be unaligned.
14093
14094 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14095
14096 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14097 endian transformations.
14098 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14099 Based on report by: Doug Nazar.
14100
14101 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14102
14103 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14104 array->members[i].start_sector.
14105 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14106
14107 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14110 Reported and tested by: Grégoire Sutre.
14111
14112 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14113
14114 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14115 avoid causing test failures by clearing the screen.
14116
14117 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14118
14119 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14120 Fix prefix check to handle the case where dir ends with a slash
14121 (most significantly, "/" itself).
14122 Reported by: Michael Vogt.
14123
14124 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14125
14126 Run terminfo_cls on initing terminfo output to clear the screen and
14127 move the cursor to (0,0).
14128
14129 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14130 Call grub_terminfo_output_init.
14131 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14132 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14133 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14134
14135 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14136
14137 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14138 only when needed.
14139
14140 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14141
14142 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14143 CTRL.
14144
14145 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14146
14147 The E820 type 5 is BADRAM, not EXEC_CODE.
14148
14149 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14150 (GRUB_E820_BADRAM): New define.
14151 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14152 into reserved. Propagate BADRAM.
14153 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14154 (GRUB_E820_BADRAM): New define.
14155
14156 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14157
14158 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14159 Ignore the memory post-4G.
14160 (grub_relocator_firmware_alloc_region): Additional debug statement.
14161
14162 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14163
14164 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14165 names.
14166 Reported by: David Pravec.
14167
14168 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14169
14170 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14171 BIOSes.
14172
14173 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14176 Prevent overflow.
14177 (grub_reed_solomon_recover): Likewise.
14178
14179 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14180
14181 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14182
14183 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14184
14185 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14186 variable.
14187
14188 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14189
14190 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14191 descriptions of extract_legacy_entries_source and
14192 extract_legacy_entries_configfile.
14193 Reported by: Seung Soo, Ha.
14194
14195 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14196
14197 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14198 on devices that do not implement function 0.
14199
14200 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14201
14202 * grub-core/fs/hfsplus.c: Make parent unsigned.
14203 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14204 overflows.
14205 (grub_hfsplus_cmp_extkey): Likewise
14206
14207 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14208
14209 * util/grub-install.in: Correctly use bootloader_id and not
14210 GRUB_DISTRIBUTOR on efibootmgr line.
14211
14212 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14213
14214 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14215
14216 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14217
14218 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14219 Xen and reorder menu item wording to make it clearer that this entry
14220 will launch Xen. Print separate messages when loading Xen and
14221 Linux.
14222
14223 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14224
14225 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14226 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14227 loop in case of incorrect amiga partmap.
14228
14229 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14230
14231 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14232 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14233 Reported by:EHeM.
14234
14235 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14238 spurious warning.
14239 Reported by: crocket
14240
14241 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14242
14243 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14244 Preload EFIemu.
14245 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14246
14247 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14248
14249 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14250 is loaded
14251 (grub_cmd_xnu_kextdir): Likewise.
14252 (grub_cmd_xnu_splash): Likewise.
14253
14254 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 Avoid using Reed-Solomon with 0 redundancy.
14257
14258 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14259 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14260 or 0 redundancy.
14261 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14262 (grub_reed_solomon_recover): Likewise.
14263
14264 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14265
14266 Don't use disk subsystem in freebsd_boot.
14267
14268 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14269 (freebsd_biosdev): Likewise.
14270 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14271 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14272
14273 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 Handling of files of unknown size is currently limited. They can't be
14276 used e.g. for initrd or modules. Moreover gzip handling of not
14277 easily seekable files is buggy. Disable unknown file size for now. May
14278 be inefficient but works.
14279
14280 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14281 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14282
14283 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14284
14285 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14286 floppy probe.
14287
14288 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14289
14290 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14291
14292 2010-12-25 Shea Levy <shlevy>
14293
14294 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14295
14296 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14297
14298 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14299 Windows Server 2008.
14300 Reported by: Devin Giddings.
14301
14302 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14303
14304 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14305 writing an error message because of async power management.
14306 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14307 (grub_reboot): Likewise.
14308
14309 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14310
14311 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14312 keep unit tests from failing when they shouldn't.
14313
14314 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14315
14316 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14317 previous patch increased the size of the RS code by 20 bytes (at
14318 least with gcc-4.4), so increase this by 20 bytes to match.
14319 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14320
14321 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14322
14323 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14324 scratch area. Make sure to initialise chosen in standalone mode as
14325 well as non-standalone.
14326 Reported by: Robert Hooker and Andy Whitcroft.
14327 Tested by: Andy Whitcroft.
14328
14329 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14330
14331 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14332 constructing a new unescaped string and passing it to grub_xputs in
14333 one go, rather than passing characters to grub_printf one at a time.
14334
14335 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14336
14337 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14338 initialising utf16.
14339
14340 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14341
14342 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14343 comment. Add an extra layer of quotation, requiring the output of
14344 this function to be used in a printf format string.
14345 (gettext_printf): New function.
14346 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14347 Extract translatable strings from here-documents and use a temporary
14348 variable instead, so that xgettext can find them.
14349 * util/grub.d/10_kfreebsd.in: Likewise.
14350 * util/grub.d/10_linux.in: Likewise.
14351 * util/grub.d/20_linux_xen.in: Likewise.
14352
14353 * po/grub.d.sed: New file.
14354 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14355 arguments. Set c-format flags on all strings extracted from
14356 util/grub.d/ (xgettext refuses to include these itself for strings
14357 it extracted from a shell file, but these really are c-format).
14358
14359 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14360
14361 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14362 Avoid next pointing to nowhere.
14363
14364 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14365
14366 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14367 rather than assuming than rootblock is exactly in the middle.
14368 (grub_affs_label): Likewise.
14369
14370 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14371
14372 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14373 reserved_first_sector to 0.
14374 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14375 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14376 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14377
14378 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14379
14380 Fix handling of UTF-16 UDF labels.
14381
14382 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14383 (read_string): .. here.
14384 (grub_udf_label): Use read_string.
14385
14386 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14387
14388 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14389 editor under argument scope.
14390 Reported by: Jordan Uggla
14391
14392 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14393
14394 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14395
14396 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14397
14398 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14399 line, and other keys scroll an entire page (previous handling was
14400 for \r and \n to scroll a page and other keys to scroll two lines).
14401
14402 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14403
14404 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14405 Set ptrdest to correct get_physical_target_address rather than
14406 incorrect get_virtual_current_address.
14407
14408 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14409
14410 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14411 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14412
14413 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14414
14415 * .bzrignore: Ignore grub-core/rs_decoder.S.
14416
14417 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14418
14419 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14420 .mo/.mo.gz opening sequence to ...
14421 (grub_mofile_open_lang): ... here.
14422 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14423 * util/grub.d/00_header.in (grub_lang): Include country part of
14424 locale.
14425 Reported by: Mario Limonciello.
14426
14427 2010-12-09 Robert Millan <rmh@gnu.org>
14428
14429 * NEWS: Document addition of ZFS support.
14430
14431 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14432
14433 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14434 rather than `/ 2', as the latter requires -Wa,--divide which would
14435 require bumping our minimum binutils version.
14436
14437 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14438
14439 * util/grub-script-check.c (main): Print script line number on
14440 error.
14441
14442 2010-12-01 Robert Millan <rmh@gnu.org>
14443
14444 * grub-core/fs/zfs/zfs.c: New file.
14445 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14446 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14447 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14448 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14449
14450 * include/grub/zfs/dmu.h: Likewise.
14451 * include/grub/zfs/dmu_objset.h: Likewise.
14452 * include/grub/zfs/dnode.h: Likewise.
14453 * include/grub/zfs/dsl_dataset.h: Likewise.
14454 * include/grub/zfs/dsl_dir.h: Likewise.
14455 * include/grub/zfs/sa_impl.h: Likewise.
14456 * include/grub/zfs/spa.h: Likewise.
14457 * include/grub/zfs/uberblock_impl.h: Likewise.
14458 * include/grub/zfs/vdev_impl.h: Likewise.
14459 * include/grub/zfs/zap_impl.h: Likewise.
14460 * include/grub/zfs/zap_leaf.h: Likewise.
14461 * include/grub/zfs/zfs.h: Likewise.
14462 * include/grub/zfs/zfs_acl.h: Likewise.
14463 * include/grub/zfs/zfs_znode.h: Likewise.
14464 * include/grub/zfs/zil.h: Likewise.
14465 * include/grub/zfs/zio.h: Likewise.
14466 * include/grub/zfs/zio_checksum.h: Likewise.
14467
14468 * Makefile.util.def: Build ZFS into libgrubmods.
14469 * grub-core/Makefile.core.def: Build zfs.mod.
14470
14471 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14472
14473 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14474 variable.
14475 * grub-core/commands/wildcard.c (match_files): Likewise.
14476
14477 2010-11-30 Robert Millan <rmh@gnu.org>
14478
14479 * grub-core/loader/i386/bsd.c
14480 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14481 whether kernel is loaded using grub_loader_is_loaded(), rather
14482 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14483 certain error conditions.
14484
14485 2010-11-30 Robert Millan <rmh@gnu.org>
14486
14487 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14488 (grub_cmd_echo): Call grub_refresh() after printing a message.
14489
14490 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14491
14492 Avoid using tricks for initialising endian variables.
14493
14494 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14495 Make const.
14496 (GRUB_MOD_INIT): Don't byte-swap.
14497 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14498 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14499 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14500 (grub_swap_bytes32_compile_time): Likewise.
14501 (grub_cpu_to_le32_compile_time): Likewise.
14502 (grub_cpu_to_le16_compile_time): Likewise.
14503
14504 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14505
14506 * util/grub-setup.c (setup): Stop recommending --force. People who
14507 understand the dangers of blocklists are able to find this option
14508 anyway and the ones who don't shouldn't use it anyway.
14509
14510 2010-11-26 Robert Millan <rmh@gnu.org>
14511
14512 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14513 Update all users.
14514
14515 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14516
14517 Fix LVM-on-RAID probing.
14518
14519 * util/grub-probe.c (probe): Remember which disk was detected as
14520 RAID (perhaps an LVM physical volume). Use that disk's raidname
14521 rather than that of the top-level disk.
14522
14523 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14524
14525 Fix cmdline argument quotes for setparams command of menuentry
14526 definitions.
14527
14528 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14529 quotes for arguments.
14530 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14531 grub_strchrsub function instead.
14532
14533 * include/grub/misc.h (grub_strchrsub): New function.
14534
14535 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14536
14537 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14538 effort by skipping "." and ".." entries up-front.
14539 Suggested by: Michael Lazarev.
14540
14541 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14542
14543 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14544 ldflags to ldadd, to fix link line ordering.
14545 (none_decompress): Likewise.
14546
14547 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14548
14549 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14550 platforms.
14551 (grub-emu-lite): Remove kern/emu/cache.S.
14552
14553 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14554
14555 * util/deviceiter.c (compare_devices): If the by-id link for a
14556 device couldn't be resolved, fall back to sorting by the by-id link
14557 rather than segfaulting.
14558 Reported and tested by: Daniel Mierswa.
14559
14560 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14561
14562 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14563 ldflags, to fix link line ordering.
14564
14565 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14566
14567 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14568 linkers are picky about this.
14569
14570 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14571
14572 * grub-core/Makefile.am (command.lst): Adjust sed expression
14573 ordering so that extended and priority commands aren't treated as
14574 ordinary commands.
14575
14576 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14577
14578 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14579 Remove byte-swapping function calls, which are not valid in
14580 structure initialisers.
14581 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14582 non-const.
14583 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14584 grub_gpt_partition_type_bios_boot.
14585
14586 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14587
14588 Fix test program build on GNU/kFreeBSD.
14589
14590 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14591 $(LIBNVPAIR)' library dependencies.
14592
14593 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14594
14595 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14596
14597 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14598
14599 * util/grub-install.in: Remove excessive quoting that broke
14600 installations to RAID devices.
14601
14602 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14603
14604 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14605 bootloader version instead of 0.
14606
14607 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14608
14609 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14610 warning.
14611
14612 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14613
14614 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14615 retrieve the metadat sector if size isn't known.
14616 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14617
14618 2010-11-18 Robert Millan <rmh@gnu.org>
14619
14620 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14621 with grub_memcmp().
14622
14623 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14624
14625 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14626 arrow.
14627 Reported by: Jordan Uggla.
14628
14629 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14630
14631 Make better UTF compliant.
14632
14633 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14634 sequences as incorrect.
14635 (grub_is_valid_utf8): Likewise.
14636 (grub_utf8_to_ucs4): Likewise.
14637 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14638 (grub_ucs4_to_utf8_alloc): Likewise.
14639 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14640
14641 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14642
14643 Make legacy_source behave like source.
14644
14645 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14646 grub_show_menu.
14647 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14648
14649 2010-11-16 Colin Watson <cjwatson@debian.org>
14650
14651 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14652 (-Wunused implies -Wunused-parameter, but not vice versa).
14653
14654 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14655
14656 * configure.ac: Make error messages less confusing by testing for
14657 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14658 accepted, but produces a diagnostic if something else is wrong).
14659
14660 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14661
14662 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14663 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14664 (now unused).
14665 (grub_keyboard_controller_init)
14666 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14667 read the initial state since controller isn't inited yet.
14668
14669 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14670
14671 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14672 allocate_regbeg may need to create new chunk header.
14673
14674 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14675
14676 Fix quoting in legacy parser.
14677
14678 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14679 single quotes.
14680 (grub_legacy_parse): Likewise.
14681 Reported by: Jordan Uggla.
14682 Tested by: Jordan Uggla.
14683
14684 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14685
14686 Don't add -lgcc on i386 and x86_64.
14687
14688 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14689 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14690 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14691
14692 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14693
14694 * configure.ac: Add -Wno-trampolines when supported.
14695
14696 2010-11-14 Modestas Vainius <modax@debian.org>
14697
14698 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14699 fakeraid.
14700
14701 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14702
14703 Add generic logical block size support for UDF.
14704
14705 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14706 (GRUB_UDF_BLKSZ): Removed.
14707 (struct grub_udf_data): New field "lbshift" to hold the logical block
14708 size of the file system in log2 format. All users updated.
14709 (sblocklist): Change type to unsigned.
14710 (grub_udf_mount): Change type of "sblklist" to unsigned.
14711 Move AVDP search before VRS recognition, because the latter requires
14712 knowledge of the logical block size, which is detected during the
14713 former.
14714 Detect and validate logical block size during AVDP search, adding
14715 support for block sizes 512, 1024 and 4096.
14716 Make VRS recognition independent of block size.
14717
14718 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14719
14720 Properly handle deleted files on UDF.
14721
14722 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14723 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14724 set.
14725
14726 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14727
14728 Support reading files larger than 2 GiB.
14729
14730 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14731 "offset" to grub_off_t.
14732 (grub_udf_read_file): Likewise for parameter "pos".
14733
14734 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14735
14736 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14737 unavailable.
14738 (Simple configuration): Refer to Changes from GRUB Legacy about
14739 save_env availability.
14740
14741 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14742
14743 * util/grub-install.in: Ignore empty partition table detection
14744 instead of trying to include part_ module.
14745
14746 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14747
14748 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14749 LVM on RAID support.
14750
14751 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14752
14753 Properly define WORDS_BIGENDIAN in wrapped environments.
14754
14755 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14756 definition.
14757 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14758
14759 Reported by: Manoel Rebelo Abranches.
14760 Tested by: Manoel Rebelo Abranches.
14761
14762 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14763
14764 * util/grub-mkconfig.in: Fix quoting.
14765
14766 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14767
14768 Support big ext2 files.
14769
14770 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14771 (grub_ext2_read_block): Support triple indirect blocks.
14772 (grub_ext2_read_file): Use 64-bit types and read size_high.
14773 (grub_ext2_open): Read size_high.
14774 Reported by: Ximin Luo.
14775 Tested by: Manoel Rebelo Abranches.
14776
14777 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14778
14779 * util/grub-install.in: Handle filenames containing spaces.
14780 Reported by: Jordan Uggla.
14781 Tested by: Jordan Uggla.
14782
14783 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14784
14785 * util/grub-mkconfig.in (grub_script_check): New variable.
14786 Use grub_script_check instead of grub-script-check.
14787 Reported by: Barry Jackson.
14788
14789 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14790
14791 * docs/grub.texi (menu): Correct the order.
14792 Reported by: D. Hugh Redelmeier.
14793
14794 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14795
14796 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14797 jump.
14798
14799 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14800
14801 * include/grub/elfload.h (grub_elf32_size): New parameter.
14802 All users updated.
14803 Return maximum segments alignment.
14804 (grub_elf64_size): Likewise.
14805 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14806 Return maximum segments alignment.
14807 (grub_elf64_size): Likewise.
14808 * grub-core/loader/powerpc/ieee1275/linux.c:
14809 (grub_linux_claimmap_iterate): New function. Uses the
14810 "available" property in the "memory" node for memory allocation
14811 for kernel in the PowerPC loader.
14812 (grub_linux_load32): Correctly find linux entry point offset.
14813 (grub_linux_load64): Likewise.
14814
14815 2010-11-07 Robert Millan <rmh@gnu.org>
14816
14817 On mips-yeeloong, build with -march=loongson2f when this flag is
14818 available (GCC >= 4.4).
14819 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14820 `-march=mips3'.
14821 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14822 or otherwise add -march=mips3.
14823
14824 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14825
14826 Suppress shell expansion on echo '*' and echo "*" like cases.
14827 Reported by: Jordan Uggla.
14828
14829 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14830 string arguments before shell expansion.
14831 * tests/grub_cmd_echo.in: New testcases.
14832
14833 2010-11-07 Robert Millan <rmh@gnu.org>
14834
14835 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14836 transition.
14837
14838 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14839
14840 * grub-core/kern/emu/hostdisk.c
14841 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14842
14843 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14844
14845 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14846 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14847 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14848
14849 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14850
14851 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14852
14853 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14854
14855 * util/grub-install.in: Replace useless recomendation to pass
14856 --modules with a recomendation to report a bug.
14857
14858 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14859
14860 Properly register serial terminfo.
14861 Reported by: Jordan Uggla
14862
14863 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14864 const.
14865 (grub_serial_terminfo_output_template): Likewise.
14866 (grub_cmd_serial): Register "serial" with terminfo.
14867 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14868 grub_serial_terminfo_output.
14869
14870 2010-11-05 Robert Millan <rmh@gnu.org>
14871
14872 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14873 needed).
14874
14875 2010-11-05 Robert Millan <rmh@gnu.org>
14876
14877 On Yeeloong, pass machine type information to Linux.
14878
14879 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14880 (LOONGSON_MACHTYPE): New macro, set to
14881 "machtype=lemote-yeeloong-2f-8.9inches".
14882 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14883 additional argument to Linux.
14884
14885 2010-11-04 Robert Millan <rmh@gnu.org>
14886
14887 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
14888 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
14889 (its SATA disks are detected as slaveless IDE master drives on
14890 kFreeBSD).
14891 Reported by Carsten Aulbert.
14892
14893 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
14894
14895 * util/bin2h.c (main): Fix spelling error in generated output.
14896
14897 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
14898
14899 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
14900
14901 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14902
14903 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
14904 vga= option is supplied.
14905
14906 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14907
14908 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
14909 * util/grub.d/10_kfreebsd.in: Likewise.
14910 * util/grub.d/10_linux.in: Likewise.
14911 * util/grub.d/20_linux_xen.in: Likewise.
14912
14913 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14914
14915 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
14916 argument as an argument to no-argument option.
14917
14918 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14919
14920 * util/grub.d/10_linux.in: Add missing load_video with explicit
14921 GRUB_GFXPAYLOAD_LINUX.
14922
14923 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14924
14925 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
14926
14927 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14928
14929 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
14930 elements with invlid index.
14931 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14932 * grub-core/disk/raid.c (insert_array): Automatically reallocate
14933 members.
14934 * include/grub/raid.h (grub_raid_member): New struct.
14935 (grub_raid_array): Transform devices and start_sector into usage of
14936 grub_raid_member. All users updated
14937 (allocated_devs): New member.
14938
14939 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14940
14941 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
14942 is modified
14943
14944 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
14945
14946 NetBSD build fix for getline function conflict from gnulib.
14947
14948 * Makefile.util.def (libgrubkern.a): New library for grub kernel
14949 components that depend on gnulib headers.
14950 (libgrubmods.a): Renamed from earlier libgrub.a.
14951 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
14952
14953 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14954
14955 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
14956 install rather than creating a broken install.
14957
14958 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 * util/grub-setup.c (argp): Remove misleading example of installing to
14961 a partition.
14962
14963 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14964
14965 * util/grub-setup.c (setup): Clarify the error message.
14966
14967 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14968
14969 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
14970
14971 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14972
14973 * grub-core/kern/emu/misc.c
14974 (grub_make_system_path_relative_to_its_root)
14975 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
14976
14977 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14978
14979 * grub-core/kern/emu/misc.c
14980 (grub_make_system_path_relative_to_its_root): Revert r2882.
14981
14982 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
14983
14984 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
14985 useless field head. All users updated.
14986 (free_subchunk): Correct handling of IN_REGION subchunk.
14987
14988 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
14989
14990 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
14991 (Supported kernels): Likewise.
14992
14993 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14994
14995 Make mktemp invocations portable.
14996
14997 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
14998 exit if mktemp fails.
14999 * tests/grub_script_blockarg.in: Likewise.
15000 * tests/partmap_test.in: Likewise.
15001 * tests/util/grub-shell-tester.in: Likewise.
15002 * tests/util/grub-shell.in: Likewise.
15003 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15004 * Makefile.am: Likewise, and chain shell commands with `&&'
15005 instead of ';'.
15006 * util/grub-mkrescue.in: Use the same explicit template as above, and
15007 exit if mktemp fails.
15008
15009 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15010
15011 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15012 Linux kernel, reported by Dennis Schridde.
15013
15014 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15015
15016 * grub-core/normal/auth.c (grub_auth_check_authentication):
15017 Set-but-not-used variable removed.
15018
15019 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15020
15021 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15022 32-bit linux protocol.
15023
15024 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15025
15026 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15027 cursor shape for sanity.
15028
15029 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15030
15031 * docs/grub.texi (Installation): Document buggy BIOS install.
15032
15033 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15034
15035 * docs/grub.texi (Installation): Indent.
15036
15037 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15038
15039 * util/grub-setup.c (setup): New parameter allow_floppy.
15040 (arguments): New member allow_floppy.
15041 (argp_parser): Handle --allow-floppy.
15042 (main): Pass allow_floppy.
15043 * util/grub-install.in: New option --allow-floppy passed though to
15044 grub-setup.
15045
15046 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15047
15048 * util/grub-install.in: Handle partitionless disks.
15049
15050 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * util/grub-setup.c (setup): Don't clean blocklists before readability
15053 verfification.
15054
15055 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15056
15057 * docs/grub.texi (Installation): Document embedding zone. Remove
15058 obsolete grub-install example.
15059
15060 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15061
15062 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15063 Set-but-not-used variable ifdef'ed.
15064 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15065 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15066 variable removed.
15067 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15068 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15069 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15070 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15071 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15072 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15073 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15074 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15075 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15076 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15077 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15078 Likewise.
15079
15080 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15081
15082 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15083 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15084 enum value.
15085
15086 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15087
15088 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15089 synonym to _S5_. Needed for some DSDTs.
15090
15091 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15092
15093 Userspace ACPI parser debugging.
15094
15095 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15096 headers and add relevant defines. Don't include standard headers.
15097 (main) [GRUB_DSDT_TEST]: New function.
15098 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15099 Don't declare functions.
15100
15101 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15102
15103 Remove dead grub_efi_mm_fini.
15104
15105 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15106 (ALLOCATED_PAGES_SIZE): Likewise.
15107 (MAX_ALLOCATED_PAGES): Likewise.
15108 (allocated_pages): Likewise.
15109 (grub_efi_allocate_pages): Don't record allocated pages.
15110 (grub_efi_free_pages): Likewise.
15111 (grub_efi_mm_init): Likewise.
15112 (grub_efi_mm_fini): Removed.
15113
15114 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15115
15116 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15117 (grub_efi_mm_init): Take into account the memory map size increase.
15118
15119 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15120
15121 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15122 (serial_hw_put): Wait based on real time rather than port reads. Don't
15123 roken ports.
15124 * include/grub/serial.h (grub_serial_port): New field broken.
15125
15126 2010-10-16 Robert Millan <rmh@gnu.org>
15127
15128 * grub-core/kern/emu/misc.c
15129 (grub_make_system_path_relative_to_its_root): Fix premature return
15130 when processing non-root ZFS filesystems.
15131 Reported by Sergio Talens-Oliag.
15132
15133 2010-10-15 Robert Millan <rmh@gnu.org>
15134
15135 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15136 guarantee compressed ones are processed first.
15137
15138 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15139
15140 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15141 grub_efiemu_autocore.
15142
15143 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15144
15145 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15146 rather than 0x1b.
15147 (grub_console_getkey): Use correct jae opcode rather than ja.
15148
15149 2010-10-12 Robert Millan <rmh@gnu.org>
15150
15151 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15152 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15153 variable. All references updated.
15154
15155 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15156
15157 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15158
15159 Correctly distinguish mdraid flavours.
15160
15161 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15162 (insert_array): New argument raid.
15163 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15164 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15165 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15166
15167 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15168
15169 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15170 handling of special keys.
15171
15172 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15173
15174 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15175 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15176
15177 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15178
15179 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15180 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15181 users updated.
15182 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15183 Use right endpoint when querying descriptor.
15184
15185 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15186
15187 Clear out 0x80 color bit on EFI.
15188 Tested by: decoder
15189 Reported by: decoder and meta tech.
15190
15191 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15192 (grub_console_setcolorstate): Clear out 0x80 bit.
15193 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15194 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15195 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15196
15197 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15198
15199 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15200 Set to "auto".
15201
15202 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15203
15204 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15205 mo_file after freeing.
15206
15207 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15208
15209 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15210
15211 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15212
15213 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15214 flags.
15215
15216 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15217
15218 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15219 usage.
15220
15221 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15222
15223 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15224
15225 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15226 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15227 and terminfo.h when needed.
15228 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15229 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15230 (terminfo): Enable only on terminfokernel.
15231 (extcmd): Likewise.
15232 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15233 * include/grub/lib/arg.h: Likewise.
15234 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15235 incorrect usage of ->.
15236
15237 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15238
15239 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15240 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15241
15242 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 Fix coreboot compilation.
15245
15246 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15247 Take VBE info into account even if only text is supported.
15248 (fill_vbe_info): Take into account the case when only VGA text
15249 is supported.
15250 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15251 on coreboot, multiboot and qemu.
15252
15253 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15254
15255 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15256 debug messages.
15257 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15258
15259 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15260
15261 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15262 parameters.
15263
15264 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15265
15266 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15267 if they were BSD-style.
15268
15269 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15270
15271 * grub-core/boot/i386/pc/lnxboot.S: Replace
15272 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15273 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15274
15275 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15276
15277 Write embedding zone using Reed-Solomon.
15278
15279 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15280 * grub-core/Makefile.am (rs_decoder.S): New target.
15281 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15282 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15283 (multiboot): Move to RS part.
15284 (post_reed_solomon): New label.
15285 (grub_boot_drive): Move to non-RS part since it's modified in memory
15286 on boot.
15287 Include rs_decoder.S.
15288 * grub-core/lib/reed_solomon.c: New file.
15289 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15290 New definition.
15291 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15292 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15293 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15294 * include/grub/partition.h (grub_partition_map): Change prototype of
15295 embed to allow returning additional sectors.
15296 * include/grub/reed_solomon.h: New file.
15297 * util/grub-setup.c (setup): Handle Reed-Solomon.
15298
15299 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15300
15301 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15302 i386 and x86-64 definedness tests.
15303
15304 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15305
15306 Fix generation of kernel_syms.lst
15307
15308 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15309 ASM_PREFIX
15310
15311 2010-09-26 Robert Millan <rmh@gnu.org>
15312
15313 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15314
15315 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15316 the pool is an array of devices, iterate through it and return the
15317 first device that passes a stat() test (instead of blindly returning
15318 the first one).
15319
15320 2010-09-26 Robert Millan <rmh@gnu.org>
15321
15322 Build fixes for GNU/kFreeBSD.
15323
15324 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15325 to programs that require ZFS conversion.
15326 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15327 kernels that don't have FLOPPY_MAJOR.
15328
15329 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15330
15331 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15332
15333 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15334
15335 Fix grub-emu build.
15336
15337 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15338 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15339 mdraid09 and mdraid1x.
15340
15341 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15342
15343 Re-enable grub-extras.
15344
15345 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15346 avoid confusing Automake. Run autogen only twice, once for the top
15347 level and once for grub-core. Add Makefile.util.def and
15348 Makefile.core.def from extra modules to the appropriate autogen
15349 invocations. If Makefile.common exists in an extra module, include
15350 it in both Makefile.util.am and grub-core/Makefile.core.am;
15351 similarly, include any Makefile.util.common file in Makefile.util.am
15352 and any Makefile.core.common file in grub-core/Makefile.core.am.
15353 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15354 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15355 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15356 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15357
15358 * gentpl.py (gvar_add): Turn GVARS into a set.
15359 (global_variable_initializers): Sort global variables on output.
15360 (vars_init): New function.
15361 (first_time): Likewise.
15362 (library): Ensure that non-global variable initialisations are
15363 emitted before the first time we emit code for a library block.
15364 Append to variables rather than setting them. Only emit
15365 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15366 each conditional path.
15367 (program): installdir() emits an Autogen macro, so must be passed to
15368 var_add rather than gvar_add.
15369 (data): Likewise.
15370 (script): Likewise.
15371 (rules): New function, centralising handling for different target
15372 types. Set up Guile association lists for first_time and vars_init,
15373 and send most output to a diversion so that variable initialisations
15374 can be emitted first.
15375 (module_rules): Use new rules function.
15376 (kernel_rules): Likewise.
15377 (image_rules): Likewise.
15378 (library_rules): Likewise.
15379 (program_rules): Likewise.
15380 (script_rules): Likewise.
15381 (data_rules): Likewise.
15382
15383 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15384
15385 * .bzrignore: Add contrib and grub-core/contrib. Remove
15386 grub-core/Makefile.gcry.am.
15387
15388 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15389
15390 * grub-core/lib/LzFind.c: Add missing include.
15391 * grub-core/lib/LzmaEnc.c: Likewise.
15392 * grub-core/script/lexer.c: Likewise.
15393 * grub-core/script/yylex.l: Likewise.
15394 * util/grub-macho2img.c: Likewise.
15395 * util/grub-menulst2cfg.c: Likewise.
15396 * util/grub-mklayout.c: Likewise.
15397 * util/grub-mkpasswd-pbkdf2.c
15398 * util/grub-mkrelpath.c: Likewise.
15399 * util/resolve.c: Likewise.
15400
15401 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15402
15403 * Makefile.util.def (example_unit_test): Add
15404 grub-core/gnulib/libgnu.a.
15405
15406 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15407
15408 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15409
15410 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15411
15412 Support xz compression on yeeloong.
15413
15414 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15415 * configure.ac: Check for LZMA.
15416 * grub-core/Makefile.core.def (xz_decompress): New target.
15417 (none_decompress): Likewise.
15418 * grub-core/boot/decompressor/minilib.c: New file.
15419 * grub-core/boot/decompressor/none.c: Likewise.
15420 * grub-core/boot/decompressor/xz.c: Likewise.
15421 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15422 * grub-core/kern/mips/cache_flush.S: Likewise.
15423 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15424 * grub-core/kern/mips/startup.S: Move first stage to ...
15425 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15426 nomacro.
15427 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15428 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15429 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15430 Allocate statically.
15431 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15432 Allocate statically or use scratch. Don't check CRC32.
15433 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15434 Allocate statically. Don't check CRC32.
15435 * include/grub/decompressor.h: New file.
15436 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15437 Removed.
15438 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15439 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15440 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15441 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15442 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15443 * util/grub-mkimage.c (grub_compression_t): New type.
15444 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15445 (image_target_desc): New field default_compression.
15446 (image_targets): Adjust yeeloong targets.
15447 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15448 (compress_kernel): New parameter comp.
15449 (generate_image): Likewise. Handle new compression case.
15450 (options): New option --compression
15451 (help): Likewise.
15452 (main): Handle new option.
15453
15454 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15455
15456 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15457
15458 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15459
15460 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15461 typo in __i386__ conditional.
15462
15463 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15464
15465 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15466 include.
15467
15468 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15469
15470 Implement EFI and ACPI multiboot2 extensions.
15471
15472 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15473 new tags as supported.
15474 (acpiv2_size): New function.
15475 (grub_multiboot_get_mbi_size): Take new tags into account.
15476 (grub_multiboot_make_mbi): Add new tags.
15477 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15478
15479 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15480
15481 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15482 Added missing configuration of USB device.
15483
15484 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15485
15486 * grub-core/normal/menu_entry.c (run): Make sure we always return
15487 a value.
15488
15489 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15490
15491 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15492 NumberOfPages is UINT64 according to the UEFI specification, not
15493 UINTN. Fix printf format.
15494
15495 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15496
15497 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15498 `err' to grub_usb_err_t.
15499 Reported and tested by: KESHAV P.R.
15500
15501 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15502
15503 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15504 tpart non-const, so that we can assign to it. (Since this is a
15505 typedef, the constness refers to the pointer rather than what it
15506 points to.)
15507
15508 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15509
15510 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15511 $(top_srcdir)/grub-core/gnulib as well as
15512 $(top_builddir)/grub-core/gnulib.
15513 Reported by: KESHAV P.R.
15514
15515 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15516
15517 * util/grub-install.in: Fix the bootloader ID option to be
15518 consistently --bootloader-id, not --bootloader_id.
15519 Reported by: KESHAV P.R.
15520
15521 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15522
15523 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15524 check hash checksum." consistently translatable.
15525
15526 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15527
15528 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15529 $(top_builddir).
15530
15531 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15532
15533 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15534 (GRUB_MOD_INIT): Register sha1sum command.
15535 (GRUB_MOD_FINI): Unregister sha1sum command.
15536
15537 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15538
15539 Keep boot and grub directory names in sync with utils scripts
15540
15541 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15542 * config.h.in: Add previous macros.
15543 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15544 * util/grub-install.in: Use $bootdir and $grubdir variables.
15545
15546 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15547
15548 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15549 convert partition names to disk names if the new `convert' parameter
15550 is set.
15551 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15552 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15553 disk in its own right. This can happen with Xen disk images.
15554
15555 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15556
15557 * util/grub-editenv.c: Update strings to avoid warnings when generating
15558 grub.pot file.
15559 * util/grub-setup.c: Likewise.
15560
15561 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15562
15563 * configure.ac: Change version to 1.99~beta0.
15564
15565 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15566
15567 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15568 Add BADRAM.
15569 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15570 Likewise.
15571 * include/multiboot.h: Resynced with specification.
15572 * include/multiboot2.h: Likewise.
15573
15574 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15575
15576 Fix po directory handling.
15577
15578 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15579 * grub-core/gnulib/Makefile.am: Import gettext module.
15580 * m4/gnulib-cache.m4: Likewise.
15581 * m4/gnulib-comp.m4: Likewise.
15582 * m4/gettext.m4: New file, from gnulib.
15583 * m4/glibc2.m4: Likewise.
15584 * m4/iconv.m4: Likewise.
15585 * m4/intdiv0.m4: Likewise.
15586 * m4/intl.m4: Likewise.
15587 * m4/intldir.m4: Likewise.
15588 * m4/intlmacosx.m4: Likewise.
15589 * m4/intmax.m4: Likewise.
15590 * m4/inttypes-pri.m4: Likewise.
15591 * m4/lcmessage.m4: Likewise.
15592 * m4/lib-ld.m4: Likewise.
15593 * m4/lib-link.m4: Likewise.
15594 * m4/lib-prefix.m4: Likewise.
15595 * m4/lock.m4: Likewise.
15596 * m4/nls.m4: Likewise.
15597 * m4/po.m4: Likewise.
15598 * m4/printf-posix.m4: Likewise.
15599 * m4/progtest.m4: Likewise.
15600 * m4/threadlib.m4: Likewise.
15601 * m4/uintmax_t.m4: Likewise.
15602 * m4/visibility.m4: Likewise.
15603 * po/Makefile.am: Remove.
15604 * po/Makefile.in.in: New file, from gettext.
15605 ($(DOMAIN).pot-update): Support POTFILES-shell.
15606 * po/Makevars: New file.
15607 * po/POTFILES-shell: Rename to ...
15608 * po/POTFILES-shell.in: ... this. Update.
15609 * po/POTFILES: Rename to ...
15610 * po/POTFILES.in: ... this. Update.
15611 * po/Rules-quot: New file, from gettext.
15612 * po/boldquot.sed: Likewise.
15613 * po/en@boldquot.header: Likewise.
15614 * po/en@quot.header: Likewise.
15615 * po/insert-header.sin: Likewise.
15616 * po/quot.sed: Likewise.
15617 * po/remove-potcdate.sin: Likewise.
15618
15619 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15620
15621 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15622
15623 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15624
15625 * util/grub.d/20_linux_xen.in: Use submenus.
15626
15627 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15628
15629 Support submenus.
15630
15631 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15632 parameter submenu. All users updated.
15633 * grub-core/normal/main.c (free_menu): Rename to ...
15634 (grub_normal_free_menu): ... this. Made global.
15635 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15636 if requested.
15637 * grub-core/normal/menu_entry.c (screen): New field submenu.
15638 (make_screen): Set submenu.
15639 (run): Open new context if requested.
15640 * include/grub/menu.h (grub_menu_entry): New field submenu.
15641 * include/grub/normal.h (grub_normal_free_menu): New proto.
15642
15643 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 Menu entries extractor.
15646
15647 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15648 variants.
15649 (GRUB_MOD_INIT): Register new variants.
15650 (GRUB_MOD_FINI): Unregister new variants.
15651 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15652 into grub_cmd_legacy_source.
15653 (grub_cmd_legacy_source): Implement extractor variants.
15654 (GRUB_MOD_INIT): Register new variants.
15655 (GRUB_MOD_FINI): Unregister new variants.
15656 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15657 as an extractor.
15658 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15659 search as an extractor.
15660 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15661 test as an extractor.
15662 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15663 as an extractor.
15664 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15665 (grub_env_new_context): New function.
15666 (grub_env_context_open): Likewise.
15667 (grub_env_extractor_open): Likewise.
15668 (grub_env_extractor_close): Likewise.
15669 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15670 grub_extractor_level.
15671 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15672 * include/grub/env.h (grub_env_extractor_open): New proto.
15673 (grub_env_extractor_close): Likewise.
15674 * include/grub/normal.h (grub_extractor_level): New external variable.
15675
15676 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15677
15678 Make cutmem accept a region specification.
15679 Suggested by: Samuel Thibault
15680
15681 * grub-core/mmap/mmap.c (parsemem): New function.
15682 (grub_cmd_cutmem): Handle new arguments.
15683
15684 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15685
15686 New command cutmem.
15687
15688 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15689 (GRUB_MOD_INIT): Register new command.
15690 (GRUB_MOD_FINI): Unregister new command.
15691
15692 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15693
15694 Support some annoying BSD and Minix subpartitions.
15695
15696 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15697 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15698 Properly handle concatenation.
15699 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15700 * grub-core/normal/completion.c (iterate_partition): Likewise.
15701 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15702 contain partition. All users updated.
15703 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15704 struct.
15705 (grub_openbsdlabel_partition_map): Likewise.
15706 (bsdlabel_partition_map_iterate): Rename to ..
15707 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15708 (bsdlabel_partition_map_iterate): New function.
15709 (netopenbsdlabel_partition_map_iterate): Likewise.
15710 (netbsdlabel_partition_map_iterate): Likewise.
15711 (openbsdlabel_partition_map_iterate): Likewise.
15712 (GRUB_MOD_INIT): Register new partmaps.
15713 (GRUB_MOD_FINI): Unregister new partmaps.
15714 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15715 (grub_partition_msdos_iterate): ... this. All users updated.
15716 Don't support embedding other than in a minix partition.
15717 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15718 proto.
15719 * include/grub/partition.h (grub_partition): New field msdostype.
15720 * util/grub-install.in: Handle openbsd and netbsd types being in
15721 part_bsd module.
15722
15723 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15724
15725 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15726
15727 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15728 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15729 (mdraid09): ... this.
15730 (mdraid1x): New module.
15731 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15732 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15733
15734 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15735
15736 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15737 vsprintf.
15738
15739 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15740
15741 * grub-core/commands/efi/lsefimmap.c: Correct header.
15742 * NEWS: Update.
15743
15744 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15745
15746 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15747 as printf format strings; the translations might contain '%' which
15748 could cause a crash.
15749 (main): Likewise.
15750 * util/grub-fstest.c (argp_parser): Likewise.
15751 * util/grub-setup.c (argp_parser): Likewise.
15752 (main): Likewise.
15753
15754 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15755
15756 Use argp in grub-fstest.
15757
15758 * util/grub-fstest.c: Don't include getopt.h.
15759 Include argp.h.
15760 (root): New variable.
15761 (args_count): Likewise.
15762 (nparm): Likewise.
15763 (num_disks): Likewise.
15764 (images): Likewise.
15765 (cmd): Likewise.
15766 (debug_str): Likewise.
15767 (args): Likewise.
15768 (options): Transformed to argp.
15769 (usage): Removed.
15770 (main): Split argument parsing into ...
15771 (argp_parser): ... this. Changed to argp format.
15772 (argp): New variable.
15773 (main): Use argp_parse.
15774
15775 2010-09-20 Tristan Gingold <gingold@free.fr>
15776 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
15777 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15778
15779 * grub-core/commands/efi/lsefimmap.c: New file.
15780 * grub-core/Makefile.core.def (lsefimmap): New module.
15781 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15782
15783 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15784
15785 Pause the execution (10s max) if any errors are displayed so the user
15786 has a chance to see them.
15787
15788 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15789 (grub_print_error): Increment grub_err_printed_errors.
15790 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15791 execution if any errors were displayed.
15792 (show_menu): Remove old code for pause.
15793 * grub-core/normal/menu_entry.c (run): Likewise.
15794 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15795 users updated.
15796 (grub_normal_get_char_counter): Likewise.
15797 * include/grub/err.h (grub_err_printed_errors): New external variable.
15798 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15799
15800 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15801
15802 Support multiboot VBE info.
15803
15804 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15805 Take VBE info into account.
15806 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15807 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15808 Call fill_vbe_info when appropriate.
15809 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15810 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15811 as supported.
15812 (grub_multiboot_get_mbi_size): Take new tags into account.
15813 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15814 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15815 Call fill_vbe_tag when appropriate.
15816 (grub_multiboot_make_mbi): Properly align tags.
15817 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15818 function.
15819 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15820 proto.
15821 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15822
15823 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15824
15825 Suport manual terminal geometry specification.
15826
15827 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15828 Save state in grub_ofconsole_terminfo_output.
15829 (grub_ofconsole_term): Use grub_terminfo_getwh.
15830 (grub_ofconsole_getwh): Removed.
15831 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15832 (grub_serial_term): Use grub_terminfo_getwh.
15833 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15834 (options): New struct.
15835 (OPTION_*): New enum.
15836 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15837 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15838 width and height.
15839 (grub_terminfo_getwh): New proto.
15840 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15841
15842 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15843
15844 Handle legacy "terminal" command.
15845
15846 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15847 and FLAG_TERMINAL.
15848 (legacy_commands): Add terminal and title.
15849 (grub_legacy_parse): Handle terminal. Simplify title handling.
15850
15851 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15852
15853 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15854 parameters overflow.
15855
15856 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15857
15858 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15859 widthspec.h.
15860
15861 * docs/grub.texi (Shell-like scripting): Document `!'.
15862 (Network): Simplify using new i386-pc-pxe format. Mention
15863 grub-mknetdir.
15864
15865 * NEWS: Update.
15866
15867 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15868
15869 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15870 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15871 when needed.
15872
15873 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15874
15875 * grub-core/commands/efi/lsefisystab.c: Correct header.
15876 * grub-core/commands/efi/lssal.c: Likewise.
15877 * grub-core/commands/testload.c: Likewise.
15878
15879 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15880
15881 * util/grub-mkrescue.in: Add explicit root argument to --set to
15882 prevent the UUID being interpreted as an argument to --set (matches
15883 previous change to prepare_grub_to_access_device).
15884
15885 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15886
15887 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
15888 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
15889 the verbosity of later #ifs.
15890 (find_partition_start): Define this function on FreeBSD too.
15891 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
15892 function.
15893 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
15894 on FreeBSD.
15895
15896 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15897
15898 * util/grub-editenv.c: Use argp instead of getopt.
15899
15900 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15901
15902 * util/grub-setup.c: Use argp instead of getopt.
15903
15904 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15905
15906 Use gnulib-tool to create gnulib source files.
15907
15908 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
15909 grub-core/gnulib directories
15910 * .bzignore: Add **/.deps and autogenerated gnulib files
15911 * configure.ac: Assign auxiliary directory to build-aux, add invocation
15912 of gnulib macros, add grub-core/gnulib/Makefile
15913 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
15914 include m4 directory to aclocal.
15915 * Makefile.util.def: Remove direct compilation of gnulib source files
15916 and use the new grub-core/gnulib/libgnu.a.
15917 * build-aux/config.rpath: move config.rpath from top directory to
15918 build-aux
15919 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
15920 in gnulib headers
15921 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
15922 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
15923 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
15924 header.
15925 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
15926 string.
15927
15928 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15929
15930 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
15931 grub-core/genmod.sh and grub-core/gensyminfo.sh
15932
15933 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
15934
15935 Add a test for echo command options.
15936
15937 * tests/grub_cmd_echo.in: New test.
15938 * Makefile.util.def: Rules for new test.
15939
15940 2010-09-20 Szymon Janc <szymon@janc.net.pl>
15941
15942 Remove crc.mod and move crc command to hashsum.mod.
15943 Remove lib/crc.c - users updated to use gcrypt implementation.
15944
15945 * grub-core/commands/crc.c: Removed.
15946 * grub-core/Makefile.core.def (crc): Module removed.
15947 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
15948 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
15949 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
15950 * grub-core/lib/crc.c: Removed.
15951 * include/grub/lib/crc.h: Removed.
15952 * Makefile.util.def (crc): Remove lib/crc.c
15953 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
15954 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
15955 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
15956 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
15957 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
15958 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
15959
15960 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15961
15962 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
15963
15964 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15965
15966 Split config.h for util and core.
15967
15968 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
15969 (ADDR32): Likewise.
15970 (DATA32): Likewise.
15971 (BSS_START_SYMBOL): Likewise.
15972 (END_SYMBOL): Likewise.
15973 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
15974 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
15975 * config.h.in: New file.
15976 * configure.ac: Use config-util.h as config define file.
15977 Rename MACHINE into GRUB_MACHINE. All users updated.
15978 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
15979 updated.
15980 (NESTED_FUNC_ATTR): Likewise.
15981 Substitue new variables.
15982 (COND_HAVE_ASM_USCORE): New conditional.
15983 * grub-core/Makefile.am (ASM_PREFIX): New variable.
15984 (kernel_syms.lst): Use ASM_PREFIX.
15985 * grub-core/kern/emu/console.c: Include config-util.h.
15986 * grub-core/kern/emu/misc.c: Likewise.
15987 * grub-core/kern/emu/mm.c: Likewise.
15988 * include/grub/emu/misc.h: Likewise.
15989 * include/grub/libgcc.h: Likewise.
15990
15991 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15992
15993 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
15994 constants usage.
15995 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
15996 Fix GRUB_TERM_KEY_* constants usage.
15997 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
15998
15999 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16000
16001 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16002 print pointer.
16003 * grub-core/bus/usb/uhci.c: Remove empty define.
16004 (grub_uhci_check_transfer): Add missing cast.
16005 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16006 print pointer.
16007 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16008 PRIuGRUB_SIZE.
16009 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16010
16011 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16012
16013 * grub-core/Makefile.core.def (legacycfg): Add
16014 lib/i386/pc/vesa_modes_table.c on emu.
16015
16016 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16017
16018 Reduce number of temporary files generated by build system.
16019
16020 * grub-core/gencmdlist.sh: Removed.
16021 * grub-core/genfslist.sh: Removed.
16022 * grub-core/genhandlerlist.sh: Removed.
16023 * grub-core/genmodsrc.sh: Removed.
16024 * grub-core/genpartmaplist.sh: Removed.
16025 * grub-core/genparttoollist.sh: Removed.
16026 * grub-core/gentermiinallist.sh: Removed.
16027 * grub-core/genvideolist.sh: Removed.
16028
16029 * grub-core/genmod.sh.in: New file.
16030 * grub-core/gensyminfo.sh.in: New file.
16031
16032 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16033 * conf/Makefile.extra-dist: Update with new files.
16034 * gentpl.py: Remove rules related to unnecessary temporary files.
16035 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16036 and und-* files.
16037 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16038 genmod.sh scripts.
16039 * grub-core/bus/usb/uhci.c: Remove empty #define.
16040 * grub-core/genmoddep.awk: Updated with new syminfo format.
16041 * util/bash-completion.d/Makefile.am: Add config.log to
16042 CLEANFILES.
16043
16044 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16045
16046 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16047
16048 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16049
16050 * util/grub-mkconfig.in: Check the config script for syntax errors
16051 before saving.
16052
16053 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16054 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16055
16056 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16057 platforms.
16058 * util/grub-install.in: Add EFI and IEEE1275 support.
16059 * util/i386/efi/grub-install.in: Removed.
16060 * util/ieee1275/grub-install.in: Likewise.
16061
16062 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16063
16064 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16065 (grub_cmd_cmosclean): Likewise.
16066 (GRUB_MOD_INIT): Register command cmosclean.
16067 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16068 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16069
16070 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16071 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16072 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16073
16074 Add keyboard layouts support.
16075
16076 * Makefile.util.def (grub-mklayout): New file.
16077 (grub-kbdcomp): New script.
16078 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16079 Add keyboard_layouts.h.
16080 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16081 commands/boot.c on yeeloong.
16082 (keylayouts): New module.
16083 * grub-core/bus/usb/ohci.c
16084 * grub-core/bus/usb/uhci.c
16085 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16086 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16087 (attach_root_port): Likewise.
16088 (poll_nonroot_hub): Likewise.
16089 (grub_usb_poll_devices): Likewise.
16090 (detach_device): Close transfer.
16091 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16092 function.
16093 (grub_usb_bulk_setup_readwrite): Likewise.
16094 (grub_usb_bulk_finish_readwrite): Likewise.
16095 * grub-core/commands/keylayouts.c: New file.
16096 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16097 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16098 aliases.
16099 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16100 support scancode 2.
16101 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16102 * include/grub/keyboard_layouts.h: New file.
16103 * util/grub-mklayout.c: New file.
16104 * util/grub-kbdcomp.in: Likewise.
16105
16106 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16107
16108 Unify memory types.
16109
16110 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16111 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16112 types.
16113 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16114 (grub_upper_mem): Likewise.
16115 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16116 * include/grub/memory.h (grub_memory_type_t): New enum.
16117 All users updated.
16118
16119 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 * grub-core/Makefile.core.def (lsapm): New module.
16122 * grub-core/commands/i386/pc/lsapm.c: New file.
16123 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16124 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16125 Likewise.
16126 * include/grub/i386/pc/apm.h: New file.
16127 * include/multiboot.h (multiboot_apm_info): New struct.
16128
16129 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16130
16131 GRUB-legacy configuration file support.
16132
16133 * Makefile.util.def (grub-menulst2cfg): New util.
16134 * docs/man/grub-menulst2cfg.h2m: New file.
16135 * grub-core/Makefile.core.def (legacycfg): New module.
16136 * grub-core/commands/legacycfg.c: New file.
16137 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16138 (grub_normal_add_menu_entry): ... this.
16139 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16140 (grub_normal_set_password): ...this.
16141 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16142 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16143 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16144 * grub-core/lib/legacy_parse.c: New file.
16145 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16146 * include/grub/i386/pc/vesa_modes_table.h: New file.
16147 * include/grub/legacy_parse.h: Likewise.
16148 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16149 * util/grub-menulst2cfg.c: New file.
16150
16151 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16152
16153 * grub-core/kern/emu/hostdisk.c
16154 (convert_system_partition_to_system_disk): Initialise node.
16155
16156 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16157
16158 * grub-core/kern/emu/hostdisk.c
16159 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16160 leak.
16161 Reported and based on patch by: Modestas Vainius.
16162
16163 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16164
16165 Fix DM-RAID probing with recent versions of device-mapper udev
16166 rules.
16167
16168 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16169 canonicalise device paths under /dev/mapper/.
16170 (convert_system_partition_to_system_disk): Compare the
16171 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16172 path, since device nodes under /dev/mapper/ are often symlinks.
16173
16174 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16175
16176 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16177
16178 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16179
16180 * configure.ac: Avoid some annoying error messages if freetype-config
16181 program is not found.
16182
16183 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16184
16185 Support RAID on virtio devices, and others.
16186
16187 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16188 Rename to ...
16189 [__MINGW32__] (grub_find_device): ... this.
16190 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16191 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16192 reasonable default if dir is NULL.
16193 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16194 ...
16195 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16196 (grub_guess_root_device): Update callers.
16197 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16198
16199 * util/raid.c (grub_util_getdiskname): Remove.
16200 (grub_util_raid_getmembers): Use grub_find_device rather than
16201 grub_util_getdiskname.
16202
16203 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16204
16205 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16206 needing to be compiled with serial support.
16207 (ls): Indicate that multiple files are accepted.
16208 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16209 indicate that multiple files are accepted.
16210
16211 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16212
16213 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16214 libgrub_a_init.c, and util/bash-completion.d/grub.
16215
16216 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16217
16218 * util/grub-setup.c (setup): Fix incorrect container semantics.
16219
16220 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16221
16222 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16223 misusage.
16224 Reported by: J. Nick Terry
16225
16226 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 Move embedding routines to partmap sources files.
16229
16230 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16231 [GRUB_UTIL]: New variable.
16232 (gpt_partition_map_iterate): Set part.parent.
16233 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16234 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16235 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16236 New function.
16237 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16238 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16239 (grub_partition_map) [GRUB_UTIL]: New field embed.
16240 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16241 (setup): Use ->embed.
16242
16243 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16244
16245 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16246 function.
16247 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16248 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16249
16250 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16251
16252 Add function to get completions from usage.
16253
16254 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16255 completions from usage. Use LC_ALL=C to get options properly.
16256
16257 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16258
16259 * grub-core/gnulib/basename-lgpl.c: Imported.
16260 * grub-core/gnulib/basename.c: Likewise.
16261 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16262 * grub-core/gnulib/dirname.c: Likewise.
16263 * grub-core/gnulib/dirname.h: Likewise.
16264 * grub-core/gnulib/stripslash.c: Likewise.
16265
16266 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16267
16268 * grub-core/gnulib/error.c: Resynced.
16269 * grub-core/gnulib/getopt.c: Likewise.
16270 * grub-core/gnulib/getopt_int.h: Likewise.
16271 * grub-core/gnulib/regex.h: Likewise.
16272 * grub-core/gnulib/regex_internal.c: Likewise.
16273 * grub-core/gnulib/regex_internal.h: Likewise.
16274
16275 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16276
16277 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16278 CRC calculations and validity checks.
16279 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16280 calculations.
16281
16282 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16283
16284 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16285
16286 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16287
16288 Fix incorrect echo options handling.
16289 Reported by: Yves Blusseau.
16290
16291 * include/grub/command.h (grub_command_flags_t): New flags
16292 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16293 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16294 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16295
16296 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16297
16298 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16299 users updated.
16300 (GRUB_COMMAND_FLAG_MENU): Likewise.
16301 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16302 (GRUB_COMMAND_FLAG_TITLE): Removed.
16303 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16304 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16305 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16306 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16307 (grub_command_flags_t): New enum. All users updated.
16308
16309 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16310
16311 Fix solaris compilation.
16312
16313 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16314 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16315 (grub-emu-list): Likewise.
16316
16317 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16318
16319 Remove deprecated root command.
16320
16321 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16322 updated.
16323
16324 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16325
16326 * util/i386/pc/grub-setup.c: Merge this ...
16327 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16328 * util/grub-setup.c: ... into this.
16329 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16330 New struct.
16331
16332 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16333
16334 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16335 possible.
16336
16337 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16338
16339 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16340 allocate p.
16341
16342 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16343
16344 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16345 explicit root argument to set to prevent UUID to be interpreted as
16346 argument to set.
16347
16348 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16349
16350 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16351
16352 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16353
16354 Don't export grub_gate_a20.
16355
16356 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16357 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16358 to ...
16359 (grub_gate_a20): ... this. All users updated.
16360 * include/grub/i386/pc/init.h: Removed. All users updated.
16361
16362 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16363
16364 Create euro.pf2 which supports most European languages.
16365
16366 * Makefile.am (grubdata_DATA): Add euro.pf2.
16367 (euro.pf2): New target.
16368 (CLEANFILES): Add euro.pf2.
16369
16370 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16371
16372 * configure.ac: Disable emu-usb by default to prevent inadvertent
16373 device takeover.
16374
16375 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16376
16377 Disable usbserial on grub-emu since our libusb code isn't good enough
16378 yet.
16379
16380 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16381 (usbserial_pl2303): Likewise.
16382 (usbserial_ftdi): Likewise.
16383
16384 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16385
16386 * include/grub/disk.h (grub_disk): Remove has_partitions.
16387 All users updated.
16388 * disk/loopback.c (grub_loopback): Remove has_partitions.
16389 All users updated.
16390 (options): Remove partitions. All users updated.
16391 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16392 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16393 actual partition table is found.
16394
16395 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16396
16397 Remove readability checks (too many false negatives).
16398
16399 * util/grub-install.in: Remove readability checks.
16400 * util/grub-mkconfig.in: Likewise.
16401 * util/grub.d/10_hurd.in: Likewise.
16402 * util/grub.d/10_kfreebsd.in: Likewise.
16403 * util/grub.d/10_linux.in: Likewise.
16404 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16405 way.
16406
16407 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16408
16409 Enable acpi shutdown on all ACPI platforms.
16410
16411 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16412 on coreboo, multiboot and EFI.
16413 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16414 (grub_acpi_halt): Likewise.
16415 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16416 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16417 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16418 * grub-core/lib/i386/halt.c (grub_halt)
16419 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16420
16421 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16422
16423 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16424 context.
16425
16426 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16427
16428 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16429 * grub-core/video/efi_uga.c: Likewise.
16430
16431 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16432
16433 Filter devaliases and never open same device twice.
16434
16435 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16436 (last_ihandle): Likewise.
16437 (ofdisk_hash_ent): New member shortest.
16438 (ofdisk_hash_add): Add canonical path too.
16439 (scan): New function.
16440 (grub_ofdisk_iterate): Iterate over hashed entries.
16441 (compute_dev_path): Don't add :0.
16442 (grub_ofdisk_open): Don't really open the disk.
16443 (grub_ofdisk_close): Avoid closing unrelated disk.
16444 (grub_ofdisk_read): Implement reopen logic.
16445 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16446 New function.
16447 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16448 New proto.
16449
16450 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16451
16452 Fix sparc64.
16453
16454 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16455 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16456 right address. Add sparc64_ieee1275_ldflags.
16457 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16458 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16459 to grub_host_to_target_addr
16460 (load_image): Likewise.
16461
16462 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16463
16464 * grub-core/normal/completion.c (complete_file): Handle device
16465 containing slash.
16466 Fix based on patch by Doug Nazar.
16467
16468 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16469
16470 grub-mknetdir script.
16471
16472 * Makefile.util.def (grub-mknetdir): New module.
16473 * tests/util/grub-shell.in: Support boot=net
16474 * util/grub-mknetdir.in: New file.
16475
16476 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16477
16478 videoinfo on non-vbe.
16479
16480 * grub-core/Makefile.core.def (vbeinfo): Removed.
16481 (vbetest): Removed.
16482 (videoinfo): New module.
16483 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16484 * grub-core/commands/i386/pc/vbetest.c: Removed.
16485 * grub-core/commands/videoinfo.c: New file.
16486 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16487 specification.
16488 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16489 as vbetest.
16490 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16491 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16492 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16493 mode_number. New parameter mode. All users updated.
16494 (grub_video_gop_iterate): New function.
16495 (grub_video_efi_gop): New member iterate.
16496 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16497 (grub_vbe_set_video_mode): Remove setting useless fields.
16498 (vbe2videoinfo): New function.
16499 (grub_video_vbe_iterate): Likewise.
16500 (grub_video_vbe_setup): Use vbe2videoinfo.
16501 (grub_video_vbe_print_adapter_specific_info): New function.
16502 (grub_video_vbe_adapter): New fields iterate and
16503 print_adapter_specific_info.
16504 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16505 All users updated.
16506 (grub_video_mode_info): New field mode_number.
16507 (grub_video_adapter): New fields iterate and
16508 print_adapter_specific_info.
16509
16510 2010-09-13 Tristan Gingold <gingold@free.fr>
16511 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16512 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * grub-core/commands/efi/lsefisystab.c: New file.
16515 * grub-core/commands/efi/lssal.c: Likewise.
16516 * grub-core/Makefile.core.def (lsacpi): New module.
16517 (lsefisystab): Likewise.
16518 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16519 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16520 (grub_efi_sal_system_table): New struct.
16521 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16522 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16523 (grub_efi_sal_system_table_platform_features): Likewise.
16524 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16525 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16526 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16527 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16528
16529 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16530
16531 Support explicit user claim that a device is BIOS-visible.
16532
16533 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16534 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16535 * grub-core/kern/emu/hostdisk.c
16536 (convert_system_partition_to_system_disk): Support mdX.
16537 (find_system_device): New parameter add. All users updated.
16538 (grub_util_biosdisk_is_present): New function.
16539 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16540 proto.
16541
16542 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16543
16544 Search hints support.
16545
16546 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16547 All users updated.
16548
16549 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16550
16551 Bash completion script for util commands
16552
16553 * Makefile.am: Add util/bash-completion.d directory
16554 * configure.ac: Likewise.
16555 * util/bash-completion.d/Makefile.am: New file.
16556 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16557
16558 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16559
16560 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16561 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16562 Reported by: Yves Blusseau.
16563
16564 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16565
16566 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16567 partition size and offset.
16568
16569 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16570
16571 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16572
16573 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16574
16575 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16576
16577 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16578
16579 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16580 (grub_xvasprintf): Likewise.
16581
16582 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16583
16584 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16585
16586 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16587
16588 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16589 args ending with NULL.
16590
16591 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16592
16593 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16594 pointer.
16595
16596 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16597
16598 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16599
16600 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16601
16602 Shutdown using ACPI.
16603
16604 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16605 * grub-core/commands/acpihalt.c: New file.
16606 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16607 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16608 (grub_acpi_halt): New proto.
16609 (GRUB_ACPI_SLP_EN): New const.
16610 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16611 (GRUB_ACPI_OPCODE_*): New enum.
16612 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16613
16614 2010-09-11 Tristan Gingold <gingold@free.fr>
16615 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16616 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16617
16618 * commands/lsacpi.c: New file.
16619 * grub-core/Makefile.core.def (lsacpi): New module.
16620 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16621 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16622 (grub_acpi_madt_entry_header): New struct.
16623 (grub_acpi_madt): Likewise.
16624 (grub_acpi_madt_entry_interrupt_override): Likewise.
16625 (grub_acpi_madt_entry_sapic): Likewise.
16626 (grub_acpi_madt_entry_lsapic): Likewise.
16627 (grub_acpi_madt_entry_platform_int_source): Likewise.
16628 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16629 (PRIuGRUB_UINT32_T): Likewise.
16630 (PRIxGRUB_UINT64_T): Likewise.
16631
16632 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16633
16634 Implement loading palette on ieee1275_fb.
16635
16636 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16637 (have_setcolors): Likewise.
16638 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16639 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16640 (grub_video_ieee1275_set_palette): Implement.
16641
16642 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16643 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16644
16645 * util/grub-install.in (grub_partition): New variable.
16646 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16647 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16648 Fixes a bug reported by Yves Blusseau.
16649
16650 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16651
16652 Fix emu on mipsel.
16653
16654 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16655 =grub_cpu_flush_cache on all mips and not only yeeloong.
16656 * configure.ac (COND_mips): New conditional.
16657 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16658 platforms.
16659 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16660 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16661 [GRUB_LINKER_HAVE_INIT]: New function.
16662 (grub_emu_post_init): Likewise.
16663 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16664 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16665 * include/grub/cache.h (_mips): Include mips/cache.h.
16666 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16667 LVM and RAID prototypes.
16668 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16669 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16670 function.
16671
16672 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16673
16674 * util/grub-install.in: Don't try to verify core.img until after
16675 running grub-mkimage to create it.
16676
16677 2010-09-10 Robert Millan <rmh@gnu.org>
16678
16679 * util/grub.d/10_hurd.in: Add misc readability checks.
16680 * util/grub.d/10_kfreebsd.in: Likewise.
16681 * util/grub.d/10_linux.in: Likewise.
16682
16683 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16684
16685 * util/grub-install.in: ${imgext} won't be defined here until the
16686 install branch is merged. For the meantime, only verify core.img on
16687 i386-pc and sparc64-ieee1275 platforms.
16688
16689 2010-09-10 Robert Millan <rmh@gnu.org>
16690
16691 Solaris support in grub_find_zpool_from_dir(). Thanks
16692 Seth Goldberg for referring to getextmntent() facility.
16693
16694 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16695 `sys/mkdev.h'.
16696 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16697 `<sys/mnttab.h>'.
16698 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16699 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16700 method for finding zpool name.
16701
16702 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16703
16704 grub-fstest needs the host and hostfs modules while other utilities
16705 actively require those modules to be absent, so grub-fstest needs
16706 its own initialisation and finalisation code.
16707
16708 * Makefile.am (grub_fstest.pp): New target.
16709 (grub_fstest_init.lst): Likewise.
16710 (grub_fstest_init.c): Likewise.
16711 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16712
16713 2010-09-10 Robert Millan <rmh@gnu.org>
16714
16715 * configure.ac: Check for `struct statfs.f_fstypename' and
16716 `struct statfs.f_mntfromname'.
16717
16718 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16719 kFreeBSD-specific code.
16720
16721 2010-09-10 Robert Millan <rmh@gnu.org>
16722
16723 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16724 on ZFS. Now non-main filesystems are supported as / too.
16725
16726 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16727
16728 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16729 and grub-core/disk/host.c to ...
16730 (grub-fstest): ... here. Having the host disk implementation
16731 present confuses grub-probe and other utility programs.
16732
16733 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16734 when writing to a file, not when writing to stdout.
16735
16736 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16737
16738 * tests/partmap_test.in: New test for partitions.
16739 * Makefile.util.def: Rules for new test.
16740
16741 2010-09-09 Robert Millan <rmh@gnu.org>
16742
16743 * util/grub-probe.c (probe): Fix a pair of unhandled error
16744 conditions.
16745
16746 2010-09-09 Robert Millan <rmh@gnu.org>
16747
16748 Basic Btrfs support (detection and UUID).
16749
16750 * grub-core/fs/btrfs.c: New file.
16751 * Makefile.util.def (library): Register btrfs.c.
16752 * grub-core/Makefile.core.def: Likewise.
16753
16754 2010-09-08 Robert Millan <rmh@gnu.org>
16755
16756 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16757 with (optional) parameters to specify device and relative path.
16758 * util/grub-install.in: Use is_path_readable_by_grub() to
16759 verify readability of a few critical files.
16760 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16761 verify readability of grub.cfg.new.
16762
16763 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16764
16765 Split minix.mod into minix.mod and minix2.mod.
16766
16767 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16768 * grub-core/Makefile.core.def (minix2): New module.
16769 * grub-core/fs/minix.c: Use definitions instead of runtime version
16770 checking.
16771 * grub-core/fs/minix2.c: New file.
16772
16773 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16774
16775 Add new --boot-directory option to replace --root-directory
16776
16777 * util/grub-install.in: Add new --boot-directory option
16778 * util/grub-reboot.in: Likewise.
16779 * util/grub-set-default.in: Likewise.
16780
16781 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16782
16783 * util/grub-mkconfig.in: Use new variable.
16784
16785 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16786
16787 * configure.ac: Define some useful variables.
16788
16789 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16790
16791 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16792 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16793 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16794 Use terminfo and don't use cursor-on/cursor-off unless it's known
16795 to work.
16796 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16797 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16798
16799 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
16800
16801 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16802 starts with "(,", fill the drive containing the loaded image in
16803 between those two characters, but expect that a full partition
16804 specification including partition map names will follow.
16805
16806 2010-09-08 Robert Millan <rmh@gnu.org>
16807
16808 * configure.ac: Remove `--enable-grub-fstest' option.
16809 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16810
16811 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16812 `grub-fstest' instead of `grub-probe' for readability verification.
16813 * util/grub-probe.c (probe): Remove readability verification kludge.
16814
16815 2010-09-08 Robert Millan <rmh@gnu.org>
16816
16817 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16818 initializing `GRUB_FS'.
16819
16820 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16821
16822 Not command (!) support to GRUB script.
16823
16824 * tests/grub_script_not.in: New test.
16825 * Makefile.util.def: Rules for new test.
16826
16827 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16828 ! command as a special case.
16829 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16830
16831 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16832
16833 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16834 grub_free.
16835
16836 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16837
16838 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16839
16840 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16841
16842 * docs/grub.texi (Shell-like scripting): Documentation for break,
16843 continue, shift and return commands.
16844
16845 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 Rename CD-ROM to cd on BIOS.
16848
16849 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16850 "cd".
16851 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16852
16853 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16854
16855 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16856 * util/grub-probe.c (main): Likewise.
16857 * util/i386/pc/grub-setup.c (main): Likewise.
16858 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16859 Reported and debugged by: alexxy
16860
16861 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16862
16863 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16864 diagnostic info.
16865
16866 2010-09-05 Jo Shields <directhex@apebox.org>
16867
16868 * util/grub.d/30_os-prober.in: Add missing classes.
16869
16870 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16871
16872 * docs/grub.texi (Theme file format): Document new position format.
16873
16874 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16875
16876 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16877 a table. Use @code instead of @verbatim.
16878
16879 2010-09-05 Colin D Bennett <colin@gibibit.com>
16880
16881 Gfxmenu documentation.
16882
16883 * docs/grub.texi (Theme file format): New chapter.
16884
16885 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16886
16887 * grub-core/Makefile.core.def (xzio): New module.
16888 * grub-core/io/xzio.c: New file.
16889 * grub-core/lib/xzembed/xz.h: New file (from xembed).
16890 * grub-core/lib/xzembed/xz_config.h: Likewise.
16891 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
16892 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
16893 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
16894 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
16895 * grub-core/lib/xzembed/xz_private.h: Likewise.
16896 * grub-core/lib/xzembed/xz_stream.h: Likewise.
16897 * include/grub/file.h (grub_file_filter_id): New compression filter
16898 GRUB_FILE_FILTER_XZIO.
16899
16900 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16901
16902 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
16903 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
16904 size.
16905
16906 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16907
16908 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
16909 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
16910
16911 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16912
16913 Uncompressed checksum support.
16914
16915 * grub-core/commands/hashsum.c (options): Add option --uncompress.
16916 (check_list): New parameter uncompress.
16917 (grub_cmd_hashsum): Handle --uncompress.
16918
16919 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16920
16921 Reintroduce testload.
16922
16923 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
16924 from here ...
16925 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
16926 (GRUB_MOD_INIT): New function.
16927 (GRUB_MOD_FINI): Likewise.
16928 * grub-core/Makefile.core.def (testload): New module.
16929
16930 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16931
16932 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
16933 (uint8_t): New type.
16934 (uint16_t): Likewise.
16935 (uint32_t): Likewise.
16936 (uint64_t): Likewise.
16937
16938 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16939
16940 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
16941
16942 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16943
16944 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
16945 Made static.
16946 (grub_gzfile_open): Removed. All users updated.
16947 (GRUB_MOD_INIT): New function.
16948 (GRUB_MOD_FINI): Likewise.
16949 * grub-core/kern/file.c (grub_file_filters_all): New variable.
16950 (grub_file_filters_enabled): Likewise.
16951 (grub_file_open): Handle filters.
16952 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
16953 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
16954 * include/grub/file.h (grub_file_filter_id_t): New type.
16955 (grub_file_filter_t): Likewise.
16956 (grub_file_filters_all): New extern variable.
16957 (grub_file_filters_enabled): Likewise.
16958 (grub_file_filter_register): New inline function.
16959 (grub_file_filter_unregister): Likewise.
16960 (grub_file_filter_disable): Likewise.
16961 (grub_file_filter_disable_compression): Likewise.
16962 * include/grub/gzio.h: Removed.
16963
16964 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16965
16966 Filename expansion support for wildcards in GRUB script.
16967
16968 * tests/grub_script_expansion.in: New test.
16969 * Makefile.util.def: Rule for new test.
16970
16971 * grub-core/commands/wildcard.c: New file, implements filename
16972 expansion support for GRUB script.
16973 * grub-core/Makefile.core.def: Rule update for regexp.mod.
16974 * grub-core/script/argv.c: Cosmetic changes.
16975 * grub-core/script/execute.c (grub_script_arglist_to_argv):
16976 Refactored to perform wildcard expansion on arguments.
16977 * include/grub/script_sh.h (grub_script_wildcard_translator): New
16978 struct.
16979
16980 * tests/util/grub-shell.in: Fix quoting for read input.
16981
16982 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16983
16984 Support for updating environment variables with matched substrings
16985 of regexp.
16986
16987 * tests/grub_cmd_regexp.in: New test.
16988 * Makefile.util.def: Rule for new test.
16989
16990 * grub-core/commands/regexp.c: New option -s to update environment
16991 variables with regexp matches.
16992
16993 2010-09-04 Szymon Janc <szymon@janc.net.pl>
16994
16995 * include/grub/file.h (grub_file): New member not_easly_seekable.
16996 (grub_file_seekable): New inline function.
16997 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
16998 easily seekable.
16999 (grub_gzio_open): Set not_easly_seekable.
17000 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17001 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17002
17003 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17004
17005 Support for options to appear multiple times on cmdline.
17006
17007 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17008 * grub-core/commands/extcmd.c: Support for repeatable option.
17009 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17010 repeatable option support.
17011
17012 Refactor menuentry into a regular command.
17013
17014 * grub-core/commands/menuentry.c: New file, menuentry command
17015 implementation.
17016 * grub-core/Makefile.core.def: Rule update for normal.mod.
17017 * grub-core/normal/main.c: Moved menuentry creation to
17018 grub-core/commands/menuentry.c.
17019 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17020 (grub_menu_execute_entry_real): Removed.
17021 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17022 function.
17023 (grub_script_execute_menuentry): Removed.
17024 * grub-core/script/parser.y (menuentry): Removed.
17025 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17026 * grub-core/script/yylex.l (menuentry): Removed.
17027 * include/grub/menu.h (grub_menu_init): New prototype.
17028 (grub_menu_fini): New prototype.
17029 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17030 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17031 (grub_script_execute_sourcecode): New prototype.
17032
17033 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17034
17035 "return" command for GRUB script functions.
17036
17037 * tests/grub_script_return.in: New test.
17038 * Makefile.util.def: Rules for new test.
17039
17040 * grub-core/script/execute.c (grub_script_return): New function.
17041 * grub-core/script/main.c: Register/unregister return commaond.
17042 * include/grub/script_sh.h (grub_script_return): New prototype.
17043
17044 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17045
17046 "setparams" command to update positional parameters.
17047
17048 * tests/grub_script_setparams.in: New test.
17049 * Makefile.util.def: Rules for new test.
17050
17051 * grub-core/script/argv.c (grub_script_argv_make): New function.
17052 * grub-core/script/execute.c (replace_scope): New function.
17053 (grub_script_setparams): New function.
17054 * grub-core/script/lexer.c: Remove unused variables.
17055 * grub-core/script/main.c: Register/unregister setparams command.
17056 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17057 (grub_script_setparams): New prototype.
17058
17059 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17060
17061 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17062 grub_free order.
17063
17064 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17065
17066 Support for passing block of commands as an argument to extcmds.
17067
17068 * Makefile.util.def: Rules for new test.
17069 * tests/grub_script_blockarg.in: New test.
17070 * grub-core/tests/test_blockarg.c: New file, block argument
17071 command used in the test.
17072
17073 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17074 (grub_register_extcmd_prio): New function prototype.
17075 (grub_extcmd_dispatcher): New function prototype.
17076 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17077 type.
17078 * include/grub/script_sh.h (struct grub_script): New members
17079 `children', `next_siblings' and `refcnt' for block arguments and
17080 reference counting.
17081 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17082 (grub_script_arg): New member `script' for block argument.
17083 (grub_script_argv): New member `script' for block argument.
17084 (grub_parser_param): New member `scripts' for block argument.
17085 (grub_script_mem_free): New extern function prototype.
17086 (grub_script_ref): New function prototype.
17087 (grub_script_unref): New function prototype.
17088
17089 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17090 extcmd form to support block arguments.
17091 * grub-core/script/argv.c: Block arguments support.
17092 * grub-core/script/execute.c: Likewise.
17093 * grub-core/script/lexer.c: Likewise.
17094 * grub-core/script/main.c: Likewise.
17095 * grub-core/script/script.c: Likewise.
17096 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17097 non-terminals.
17098
17099 * grub-core/commands/acpi.c: Update extcmd implementations with
17100 grub_extcmd_context_t.
17101 * grub-core/commands/cat.c: Likewise.
17102 * grub-core/commands/echo.c: Likewise.
17103 * grub-core/commands/extcmd.c: Likewise.
17104 * grub-core/commands/hashsum.c: Likewise.
17105 * grub-core/commands/hdparm.c: Likewise.
17106 * grub-core/commands/help.c: Likewise.
17107 * grub-core/commands/hexdump.c: Likewise.
17108 * grub-core/commands/i386/cpuid.c: Likewise.
17109 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17110 * grub-core/commands/i386/pc/halt.c: Likewise.
17111 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17112 * grub-core/commands/iorw.c: Likewise.
17113 * grub-core/commands/keystatus.c: Likewise.
17114 * grub-core/commands/loadenv.c: Likewise.
17115 * grub-core/commands/ls.c: Likewise.
17116 * grub-core/commands/lspci.c: Likewise.
17117 * grub-core/commands/memrw.c: Likewise.
17118 * grub-core/commands/probe.c: Likewise.
17119 * grub-core/commands/search_wrap.c: Likewise.
17120 * grub-core/commands/setpci.c: Likewise.
17121 * grub-core/commands/sleep.c: Likewise.
17122 * grub-core/disk/loopback.c: Likewise.
17123 * grub-core/hello/hello.c: Likewise.
17124 * grub-core/loader/i386/bsd.c: Likewise.
17125 * grub-core/loader/xnu.c: Likewise.
17126 * grub-core/term/gfxterm.c: Likewise.
17127 * grub-core/term/serial.c: Likewise.
17128 * grub-core/tests/lib/functional_test.c: Likewise.
17129
17130 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17131
17132 Multi-line quoted strings support.
17133
17134 * grub-core/script/lexer.c (append_newline): Removed.
17135 (grub_script_lexer_yywrap): Refactored.
17136 (grub_script_lexer_init): Refactored.
17137 * grub-core/script/yylex.l (yywrap): New function.
17138 (grub_lexer_resplit): New function.
17139 (grub_lexer_unput): New function.
17140 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17141 and resplit.
17142 * tests/grub_script_echo1.in: Added few more testcases.
17143
17144 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17145
17146 * grub-core/kern/misc.c: Don't add abort alias in utils.
17147 Reported by: echoline.
17148
17149 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17150
17151 Add missing files into "make dist" tarball for other platforms.
17152
17153 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17154 * conf/Makefile.common (dist_noinst_DATA): New variable.
17155 * conf/Makefile.extra-dist: Added missing make dist files.
17156 * grub-core/Makefile.core.def: Likewise.
17157
17158 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17159
17160 Compress grub_prefix.
17161
17162 * grub-core/boot/i386/pc/lnxboot.S: Use
17163 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17164 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17165 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17166 GRUB_MACHINE_PREFIX_END. All users updated.
17167 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17168 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17169 + 0x40.
17170 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17171 * util/grub-mkimage.c (image_target_desc): Change data_end to
17172 prefix_end. All users updated.
17173
17174 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17175
17176 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17177 value.
17178 (grub_openbsd_boot): Likewise.
17179 (grub_netbsd_boot): Likewise.
17180 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17181 (grub_xnu_boot): Likewise.
17182
17183 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17184
17185 * configure.ac: Clean LIBS variable after tests.
17186
17187 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17188
17189 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17190
17191 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17192
17193 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17194 echo if libdevmapper will be used.
17195
17196 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17197
17198 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17199 constant for the same file.
17200
17201 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17202
17203 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17204
17205 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17206
17207 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17208 grub-core/*.pp.
17209
17210 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17211
17212 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17213 required by the boot protocol.
17214
17215 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17216 ebp and edi members.
17217 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17218 state.ebp and state.edi.
17219 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17220 %ebp and %edi according to grub_relocator32_ebp and
17221 grub_relocator32_edi respectively.
17222 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17223 and state.edi.
17224
17225 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17226
17227 Add i386-pc-pxe image target.
17228
17229 * util/grub-mkimage.c (image_target_desc): New enum value
17230 IMAGE_I386_PC_PXE.
17231 (image_targets): New target i386-pc-pxe.
17232 (generate_image): Handle i386-pc-pxe image.
17233
17234 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17235
17236 Fix grub_pxe_scan.
17237
17238 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17239 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17240 All users updated.
17241 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17242 (grub_pxe_pxenv): Correct type.
17243
17244 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17245
17246 * NEWS: Document most of the important changes since 1.98.
17247
17248 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17249
17250 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17251 generated manual page) a little.
17252
17253 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17254
17255 * docs/grub.texi: Add myself as an author.
17256
17257 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17258
17259 * Makefile.util.def (libgrub.a): Add missing sunpc.
17260 Reported by: Seth Goldberg.
17261
17262 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17263
17264 Interrupt wrapping and code simplifications.
17265
17266 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17267 x86_noieee1275 which are functionaly equivalent in this case.
17268 (grub-install): Make source on each platform explicit. Enable on
17269 all noemu.
17270 * gentpl.py (x86_efi_pc): Removed group.
17271 (x86_noefi): Likewise.
17272 (i386_noefi): Likewise.
17273 (x86_noieee1275): Likewise.
17274 (i386_noieee1275): Likewise.
17275 (i386_noefi_noieee1275): Likewise.
17276 (i386_pc_qemu_coreboot): Likewise.
17277 (i386_coreboot_multiboot): Likewise.
17278 (i386_pc_coreboot_multiboot_qemu): Likewise.
17279 (x86_noefi_mips): Likewise.
17280 (noieee1275): Likewise.
17281 (ieee1275_mips): Likewise.
17282 (noemu_noieee1275): Likewise.
17283 (cmos): New group.
17284 (usb): Likewise.
17285 (videoinkernel): Likewise.
17286 (videomodules): Likewise.
17287 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17288 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17289 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17290 include/grub/loader.h, include/grub/msdos_partition.h,
17291 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17292 include/grub/machine/console.h, include/grub/machine/vga.h,
17293 include/grub/machine/vbe.h, include/grub/machine/init.h,
17294 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17295 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17296 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17297 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17298 * grub-core/Makefile.core.def (kernel): Explicit the source for
17299 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17300 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17301 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17302 Use videoinkernel tag.
17303 (usb): Enable on all usb.
17304 (usbserial_common): Likewise.
17305 (usbserial_pl2303): Likewise.
17306 (usbserial_ftdi): Likewise.
17307 (uhci): Enable on all x86.
17308 (ohci): Enable on all pci.
17309 (cmostest): Enable on all CMOS.
17310 (acpi): Include commands/acpi.c on all platforms.
17311 (halt): Add relevant lib/*/halt.c.
17312 (hdparm): Enable on all pci.
17313 (lspci): Likewise.
17314 (usbtest): Enable on all usb.
17315 (ata): Enable on all pci.
17316 (ata_pthru): Likewise.
17317 (usbms): Enable on all usb.
17318 (usb_keyboard): Likewise.
17319 (font): Use tag videomodules.
17320 (bufio): Likewise.
17321 (datetime): Use tag cmos. Enable on all noemu.
17322 (mmap): Use tags common and x86.
17323 (gfxterm): Use tag videomodules.
17324 (bitmap): Likewise.
17325 (bitmap_scale): Likewise.
17326 (video_fb): Likewise.
17327 (video): Likewise.
17328 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17329 adjust padding accordingly. All users updated.
17330 (grub_ohci_transaction): Fix bad format specification.
17331 (GRUB_MOD_INIT): Add asserts for struct size.
17332 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17333 (grub_alloc_td): Likewise.
17334 (grub_free_queue): Likewise.
17335 (grub_uhci_transfer): Likewise.
17336 (grub_uhci_transaction): Fix bad format specification.
17337 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17338 (grub_usb_bulk_readwrite): Likewise.
17339 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17340 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17341 Made static.
17342 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17343 Made static.
17344 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17345 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17346 Transformed into C.
17347 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17348 Moved from here ...
17349 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17350 ... here. Transformed into C. Made static.
17351 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17352 Moved from here ...
17353 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17354 ... here. Transformed into C. Made static.
17355 * grub-core/kern/i386/pc/startup.S
17356 (grub_biosdisk_check_int13_extensions): Moved from here ...
17357 * grub-core/disk/i386/pc/biosdisk.c
17358 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17359 Made static.
17360 * grub-core/kern/i386/pc/startup.S
17361 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17362 * grub-core/disk/i386/pc/biosdisk.c
17363 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17364 Transformed into C. Made static.
17365 * grub-core/kern/i386/pc/startup.S
17366 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17367 * grub-core/disk/i386/pc/biosdisk.c
17368 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17369 Transformed into C. Made static.
17370 * grub-core/kern/i386/pc/startup.S
17371 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17372 * grub-core/disk/i386/pc/biosdisk.c
17373 (grub_biosdisk_get_diskinfo_standard): ... here.
17374 Transformed into C. Made static.
17375 * grub-core/kern/i386/pc/startup.S
17376 (grub_biosdisk_get_num_floppies): Moved from here ...
17377 * grub-core/disk/i386/pc/biosdisk.c
17378 (grub_biosdisk_get_num_floppies): ... here.
17379 Transformed into C. Made static.
17380 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17381 New function.
17382 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17383 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17384 Transformed into C. Made static.
17385 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17386 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17387 Transformed into C. Made static.
17388 * grub-core/kern/i386/ieee1275/init.c: Removed.
17389 * grub-core/kern/i386/misc.S: Likewise.
17390 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17391 Splitted from here ...
17392 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17393 Transformed into C. Made static. All users updated.
17394 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17395 Transformed into C. Made static. All users updated.
17396 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17397 Moved from here...
17398 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17399 Transformed into C. Made static. All users updated.
17400 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17401 Moved from here...
17402 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17403 Transformed into C. Made static. All users updated.
17404 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17405 Removed (replaced by C version).
17406 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17407 Moved from here...
17408 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17409 Transformed into C. Made static.
17410 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17411 Moved from here...
17412 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17413 ... here. Transformed into C.
17414 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17415 Moved from here...
17416 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17417 ... here. Transformed into C.
17418 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17419 Moved from here...
17420 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17421 ... here. Transformed into C. Made static.
17422 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17423 Moved from here...
17424 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17425 ... here. Transformed into C.
17426 * grub-core/kern/i386/pc/startup.S
17427 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17428 * grub-core/video/i386/pc/vbe.c
17429 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17430 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17431 Moved from here...
17432 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17433 ... here. Transformed into C.
17434 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17435 Moved from here...
17436 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17437 ... here. Transformed into C.
17438 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17439 Moved from here...
17440 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17441 ... here. Transformed into C.
17442 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17443 Moved from here...
17444 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17445 ... here. Transformed into C.
17446 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17447 Moved from here...
17448 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17449 ... here. Transformed into C. Made static.
17450 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17451 Moved from here...
17452 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17453 ... here. Transformed into C. Made static.
17454 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17455 Moved from here...
17456 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17457 ... here. Transformed into C. Made static.
17458 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17459 pxe_rm_entry as third argument.
17460 (grub_bios_interrupt): New function.
17461 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17462 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17463 of calling grub_stop.
17464 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17465 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17466 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17467 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17468 * grub-core/lib/i386/halt.c: Moved from here ...
17469 * grub-core/lib/i386/halt.c: ... here.
17470 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17471 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17472 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17473 grub_stop_floppy.
17474 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17475 * include/grub/i386/coreboot/init.h: Removed.
17476 * include/grub/i386/multiboot/init.h: Likewise.
17477 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17478 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17479 * include/grub/i386/pc/int.h: New file.
17480 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17481 (grub_pxe_scan): Removed.
17482 (grub_pxe_call): Update prototype.
17483 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17484 prototypes.
17485 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17486 * include/grub/i386/qemu/init.h: Removed.
17487 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17488 noreturn.
17489 (grub_halt): Likewise.
17490 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17491 (grub_reboot): Likewise.
17492 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17493 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17494 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17495
17496 2010-08-30 Robert Millan <rmh@gnu.org>
17497
17498 * NEWS: Document addition of ZFS support in `grub-install' and
17499 `grub-mkconfig'.
17500
17501 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17502
17503 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17504 dprintf output.
17505
17506 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17507
17508 Remove leftover embedding of font objects.
17509
17510 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17511 * util/grub-install.in (font): Removed.
17512 * util/grub-mkimage.c (generate_image): Remove font support. All users
17513 updated.
17514
17515 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17516
17517 Remove leftover embedding of font objects.
17518
17519 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17520 * util/grub-install.in (font): Removed.
17521 * util/grub-mkimage.c (generate_image): Remove font support. All users
17522 updated.
17523
17524 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17525
17526 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17527 Reported by: Ian Turner
17528
17529 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17530
17531 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17532 timeout to avoid indefinite boot stalling.
17533
17534 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17535
17536 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17537 (grub_env_write_color_highlight): Likewise.
17538
17539 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17540
17541 * grub-core/normal/term.c (print_more): Return to normal and not
17542 to standard state after printing "---MORE---".
17543
17544 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17545
17546 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17547 Mask out the bit 0x80 since it has other meaning that specifiing color.
17548
17549 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17550
17551 New relocator. Allows for more kernel support and more straightforward
17552 loader writing.
17553
17554 * Makefile.am (BOOTTARGET): New variable.
17555 (QEMU32): Likewise.
17556 (linux.init.x86_64): New target.
17557 (linux.init.i386): Likewise.
17558 (multiboot.elf): Likewise.
17559 (kfreebsd.elf): Likewise.
17560 (kfreebsd.aout): Likewise.
17561 (pc-chainloader.elf): Likewise.
17562 (pc-chainloader.bin): Likewise.
17563 (ntldr.elf): Likewise.
17564 (ntldr.bin): Likewise.
17565 (multiboot2.elf): Likewise.
17566 (kfreebsd.init.x86_64): Likewise.
17567 (kfreebsd.init.i386): Likewise.
17568 (knetbsd.init.i386): Likewise.
17569 (kopenbsd.init.i386): Likewise.
17570 (knetbsd.init.x86_64): Likewise.
17571 (kopenbsd.init.x86_64): Likewise.
17572 (linux-initramfs.i386): Likewise.
17573 (linux-initramfs.x86_64): Likewise.
17574 (kfreebsd-mfsroot.i386.img): Likewise.
17575 (knetbsd.image.i386): Likewise.
17576 (kopenbsd.image.i386): Likewise.
17577 (kopenbsd.image.x86_64): Likewise.
17578 (knetbsd.miniroot-image.i386.img): Likewise.
17579 (kfreebsd-mfsroot.x86_64.img): Likewise.
17580 (knetbsd.image.x86_64): Likewise.
17581 (knetbsd.miniroot-image.x86_64.img): Likewise.
17582 (kfreebsd-mfsroot.i386.gz): Likewise.
17583 (bootcheck-kfreebsd-i386): Likewise.
17584 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17585 (bootcheck-kfreebsd-x86_64): Likewise.
17586 (knetbsd.miniroot-image.i386.gz): Likewise.
17587 (bootcheck-knetbsd-i386): Likewise.
17588 (bootcheck-kopenbsd-i386): Likewise.
17589 (bootcheck-kopenbsd-x86_64): Likewise.
17590 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17591 (bootcheck-knetbsd-x86_64): Likewise.
17592 (bootcheck-linux-i386): Likewise.
17593 (bootcheck-linux-x86_64): Likewise.
17594 (bootcheck-linux16-i386): Likewise.
17595 (bootcheck-linux16-x86_64): Likewise.
17596 (bootcheck-multiboot): Likewise.
17597 (bootcheck-multiboot2): Likewise.
17598 (bootcheck-kfreebsd-aout): Likewise.
17599 (bootcheck-pc-chainloader): Likewise.
17600 (bootcheck-ntldr): Likewise.
17601 (CLEANFILES): Add new targets.
17602 (BOOTCHECKS): New variable.
17603 (.PHONY): Add bootchecks.
17604 (SUCCESSFUL_BOOT_STRING): New variable.
17605 (BOOTCHECK_TIMEOUT): Likewise.
17606 (bootcheck): New target
17607 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17608 * configure.ac: Correct efiemu excuse.
17609 * docs/grub.texi (Supported kernels): New chapter.
17610 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17611 include/grub/mm_private.h. Simplify inclusion of
17612 include/grub/boot.h, include/grub/loader.h
17613 and include/grub/msdos_partition.h
17614 (KERNEL_HEADER_FILES) [i386_coreboot]:
17615 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17616 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17617 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17618 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17619 include/grub/machine/loader.h.
17620 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17621 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17622 extra_dist.
17623 (pci.mod): Enable on i386-multiboot.
17624 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17625 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17626 i386-qemu.
17627 (relocator.mod): Rewritten.
17628 (aout.mod): Enable on all x86.
17629 (bsd.mod): Likewise.
17630 (ntldr.mod): New module.
17631 (linux.mod): Use loader/i386/linux.c on all x86.
17632 (xnu.mod): Enable on all x86.
17633 (vga_text.mod): disable on EFI and QEMU.
17634 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17635 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17636 * grub-core/efiemu/loadcore.c: Likewise.
17637 * grub-core/efiemu/main.c: Likewise.
17638 (grub_efiemu_exit_boot_services): Removed.
17639 (grub_efiemu_finish_boot_services): Likewise.
17640 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17641 function.
17642 * grub-core/efiemu/i386/nocfgtables.c: New file.
17643 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17644 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17645 (grub_efi_finish_boot_services): Moved from here ...
17646 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17647 Fille finish memory map and related data.
17648 (finish_mmap_buf): New variable.
17649 (grub_efi_uintn_t finish_mmap_size): Likewise.
17650 (grub_efi_uintn_t finish_key): Likewise.
17651 (grub_efi_uintn_t finish_desc_size): Likewise.
17652 (grub_efi_uint32_t finish_desc_version): Likewise.
17653 (grub_efi_is_finished): Likewise.
17654 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17655 finished.
17656 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17657 (grub_elf64_phdr_iterate): Likewise.
17658 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17659 (grub_os_area_size): Likewise.
17660 (grub_machine_init): Don't reserve os area.
17661 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17662 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17663 * grub-core/kern/i386/loader.S: Removed.
17664 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17665 (grub_os_area_size): Likewise.
17666 (grub_machine_init): Don't reserve os area.
17667 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17668 Don't call grub_dl_unload_all.
17669 Don't include loader.S.
17670 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17671 Declare the memory after _end as available.
17672 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17673 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17674 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17675 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17676 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17677 * include/grub/mm_private.h (grub_mm_header): ... here.
17678 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17679 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17680 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17681 (grub_mm_region): ..here. Removed addr. Added pre_size.
17682 All users updated.
17683 * grub-core/kern/mm.c (base): Renamed to ...
17684 (grub_mm_base): ... this. Made global.
17685 (grub_real_malloc): Alloc from end of region.
17686 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17687 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17688 * grub-core/kern/powerpc/cache_flush.S: ... here.
17689 * grub-core/lib/efi/relocator.c: New file.
17690 * grub-core/lib/i386/relocator.c: Rewritten.
17691 * grub-core/lib/i386/relocator16.S: New file.
17692 * grub-core/lib/i386/relocator32.S: Likewise.
17693 * grub-core/lib/i386/relocator64.S: Likewise.
17694 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17695 * grub-core/lib/i386/relocator_common.S: New file.
17696 * grub-core/lib/ieee1275/relocator.c: Likewise.
17697 * grub-core/lib/mips/relocator.c: Rewritten.
17698 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17699 stylistic adjustments.
17700 * grub-core/lib/powerpc/relocator.c: New file.
17701 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17702 * grub-core/lib/relocator.c: Rewritten.
17703 * grub-core/lib/x86_64/relocator_asm.S: New file.
17704 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17705 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17706 (bsd_tag): New struct.
17707 (tags): New variable.
17708 (tags_last): Likewise.
17709 (netbsd_module): New struct.
17710 (netbsd_mods): New variable.
17711 (netbsd_mods_last): Likewise.
17712 (openbsd_opts): New parameter "serial".
17713 (OPENBSD_SERIAL_ARG): New definition.
17714 (netbsd_opts): New parameter "serial".
17715 (NETBSD_SERIAL_ARG): New definition.
17716 (grub_freebsd_add_meta): Reorganised into ...
17717 (grub_bsd_add_meta): ...this. All users updated.
17718 (grub_freebsd_add_mmap): Reorganised into ...
17719 (generate_e820_mmap): ...this...
17720 (grub_bsd_add_mmap): ...and this. All users updated.
17721 (grub_freebsd_list_modules): Use tags.
17722 (grub_netbsd_add_meta_module): New function.
17723 (grub_netbsd_list_modules): Likewise.
17724 (grub_freebsd_boot): Use relocator and finish EFI.
17725 (grub_openbsd_boot): Likewise.
17726 (grub_netbsd_setup_video): New function.
17727 (grub_netbsd_add_modules): Likewise.
17728 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17729 and finish EFI.
17730 (grub_bsd_unload): Unload tags.
17731 (grub_bsd_load_aout): Use relocator.
17732 (grub_bsd_elf32_size_hook): New function.
17733 (grub_bsd_elf32_hook): Use relocator.
17734 (grub_bsd_elf64_size_hook): New function.
17735 (grub_bsd_elf64_hook): Use relocator.
17736 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17737 (grub_bsd_load): Zero-out openbsd_ramdisk.
17738 (grub_bsd_load): Use relocator.
17739 (grub_cmd_openbsd): Support serial.
17740 (grub_cmd_netbsd): Support modules.
17741 (grub_cmd_freebsd_module): Use relocator.
17742 (grub_netbsd_module_load): New function.
17743 (grub_cmd_netbsd_module): Likewise.
17744 (grub_cmd_openbsd_ramdisk): Likewise.
17745 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17746 kopenbsd_ramdisk.
17747 (GRUB_MOD_FINI): Unregister new commands.
17748 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17749 (grub_freebsd_load_elfmodule_obj): Use relocator.
17750 (grub_freebsd_load_elfmodule): Likewise.
17751 (grub_freebsd_load_elf_meta): Likewise.
17752 (grub_netbsd_load_elf_meta): New function.
17753 (grub_openbsd_find_ramdisk): Likewise.
17754 * grub-core/loader/i386/bsd_helper.S: Removed.
17755 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17756 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17757 * grub-core/loader/i386/efi/linux.c: Likewise.
17758 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17759 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17760 (DEFAULT_VIDEO_MODE): Likewise.
17761 (real_mode_target): New variable.
17762 (prot_mode_target): Likewise.
17763 (initrd_mem_target): Likewise.
17764 (relocator): Likewise.
17765 (efi_mmap_buf): Likewise.
17766 (efi_mmap_size): Likewise.
17767 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17768 (free_pages): Use relocator.
17769 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17770 (grub_linux_setup_video): Return error.
17771 (grub_linux_trampoline_start): Removed.
17772 (grub_linux_trampoline_end): Likewise.
17773 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17774 andd video parameters depending on firmware.
17775 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17776 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17777 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17778 (grub_cmd_initrd): Use relocator.
17779 * grub-core/loader/i386/linux_trampoline.S: Removed.
17780 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17781 (elf_sec_entsize): Likewise.
17782 (elf_sec_shstrndx): Likewise.
17783 (elf_sections): Likewise.
17784 (grub_multiboot_load): Use relocator.
17785 (grub_multiboot_get_mbi_size): Account for sections.
17786 (grub_multiboot_make_mbi): Use relocator and support sections.
17787 (grub_multiboot_add_elfsyms): New function.
17788 (grub_multiboot_free_mbi): Free sections.
17789 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17790 (grub_linux_real_target): Likewise.
17791 (grub_linux_real_chunk): Likewise.
17792 (grub_linux16_prot_size): Likewise.
17793 (grub_linux16_boot): Use relocator.
17794 (grub_linux_unload): Unload relocator.
17795 (grub_cmd_linux): Use relocator.
17796 (grub_cmd_initrd): Likewise.
17797 * grub-core/loader/i386/pc/ntldr.c: New file.
17798 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17799 Don't try to guess CPU frequency.
17800 (grub_xnu_set_video): Stretch bitmap.
17801 (grub_xnu_boot): Use relocator.
17802 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17803 (grub_linux_unload): Free relocator.
17804 (grub_linux_load32): Use relocator.
17805 (grub_linux_load64): Likewise.
17806 (grub_cmd_initrd): Likewise.
17807 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17808 (grub_multiboot_unload): Unload relocator.
17809 (grub_cmd_multiboot): Use relocator.
17810 (grub_cmd_module): Likewise.
17811 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17812 Use relocator and support sections.
17813 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17814 (elf_sec_entsize): Likewise.
17815 (elf_sec_shstrndx): Likewise.
17816 (elf_sections): Likewise.
17817 (grub_multiboot_load): Use relocator.
17818 (grub_multiboot_get_mbi_size): Account for sections.
17819 (grub_multiboot_make_mbi): Use relocator and support sections.
17820 (grub_multiboot_add_elfsyms): New function.
17821 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17822 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17823 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17824 Prototype changed. All users updated.
17825 (grub_xnu_align_heap): Simplified.
17826 (grub_xnu_writetree_toheap): Likewise.
17827 (grub_xnu_unload): Unload relocator.
17828 (grub_cmd_xnu_kernel): Use relocator.
17829 (grub_cmd_xnu_kernel64): Likewise.
17830 (grub_xnu_register_memory): Simplified.
17831 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17832 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17833 EFI is finished.
17834 (grub_console_checkkey): Likewise.
17835 (grub_console_getkey): Likewise.
17836 (grub_console_getwh): Likewise.
17837 (grub_console_getxy): Likewise.
17838 (grub_console_gotoxy): Likewise.
17839 (grub_console_cls): Likewise.
17840 (grub_console_setcolorstate): Likewise.
17841 (grub_console_setcursor): Likewise.
17842 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17843 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17844 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17845 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17846 * grub-core/tests/boot/kernel-8086.S: Likewise.
17847 * grub-core/tests/boot/kernel-i386.S: Likewise.
17848 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17849 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17850 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17851 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17852 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17853 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17854 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17855 * grub-core/tests/boot/linux.cfg: Likewise.
17856 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17857 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17858 * grub-core/tests/boot/linux16.cfg: Likewise.
17859 * grub-core/tests/boot/multiboot.cfg: Likewise.
17860 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17861 * grub-core/tests/boot/ntldr.cfg: Likewise.
17862 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17863 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17864 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17865 New definition.
17866 * include/grub/dl.h (grub_dl_unload_all): Removed.
17867 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17868 (grub_efi_finish_boot_services): Change prototype.
17869 (grub_efi_is_finished): New variable.
17870 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17871 Changed prototype.
17872 (grub_efiemu_finish_boot_services): Removed.
17873 (grub_machine_efiemu_init_tables): New prototype.
17874 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17875 (grub_elf64_phdr_iterate): Likewise.
17876 * include/grub/i386/bsd.h: Include relocator.h.
17877 (freebsd_tag_header): New struct.
17878 (grub_openbsd_bios_mmap): Removed.
17879 (grub_unix_real_boot): Removed.
17880 (grub_freebsd_load_elfmodule32): Changed prototype.
17881 (grub_freebsd_load_elfmodule_obj64): Likewise.
17882 (grub_freebsd_load_elf_meta32): Likewise.
17883 (grub_freebsd_load_elf_meta64): Likewise.
17884 (grub_freebsd_add_meta): Removed.
17885 (grub_netbsd_load_elf_meta32): New prototype.
17886 (grub_netbsd_load_elf_meta64): Likewise.
17887 (grub_bsd_add_meta): Likewise.
17888 (grub_openbsd_ramdisk_descriptor): New struct.
17889 (grub_openbsd_find_ramdisk32): New prototype.
17890 (grub_openbsd_find_ramdisk64): Likewise.
17891 * include/grub/i386/coreboot/loader.h: Removed.
17892 * include/grub/i386/efi/loader.h: Likewise.
17893 * include/grub/i386/ieee1275/loader.h: Likewise.
17894 * include/grub/i386/linux.h (linux_kernel_header): Change void *
17895 to grub_uint32_t.
17896 * include/grub/i386/loader.h: Removed.
17897 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
17898 value.
17899 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
17900 (grub_phys_addr_t): New type.
17901 (grub_vtop): New inline function.
17902 (grub_map_memory): Likewise.
17903 (grub_unmap_memory): Likewise.
17904 * include/grub/i386/multiboot/loader.h: Removed.
17905 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
17906 (NETBSD_BTINFO_CONSOLE): New definition.
17907 (NETBSD_BTINFO_SYMTAB): Likewise.
17908 (NETBSD_BTINFO_MODULES): Likewise.
17909 (NETBSD_BTINFO_FRAMEBUF): Likewise.
17910 (grub_netbsd_bootinfo): New struct.
17911 (grub_netbsd_btinfo_common): Use explicit bitsize.
17912 (grub_netbsd_btinfo_mmap_entry): Removed.
17913 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
17914 (grub_netbsd_btinfo_bootdisk): New struct.
17915 (grub_netbsd_btinfo_symtab): Likewise.
17916 (grub_netbsd_btinfo_serial): Likewise.
17917 (grub_netbsd_btinfo_modules): Likewise.
17918 (grub_netbsd_btinfo_framebuf): Likewise.
17919 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
17920 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
17921 Likewise.
17922 (grub_openbsd_bootargs): Use explicit bitsize.
17923 (grub_openbsd_bootarg_console): New struct.
17924 (GRUB_OPENBSD_COM_MAJOR): New definition.
17925 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
17926 * include/grub/i386/pc/efiemu.h: Removed.
17927 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
17928 * include/grub/i386/qemu/loader.h: Removed.
17929 * include/grub/i386/relocator.h: Rewritten.
17930 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
17931 * include/grub/mips/memory.h: New file.
17932 * include/grub/mips/multiboot.h: Rewritten.
17933 * include/grub/mips/relocator.h: Rewritten.
17934 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
17935 (grub_vtop): New function.
17936 (grub_map_memory): Likewise.
17937 (grub_unmap_memory): Likewise.
17938 * include/grub/misc.h (ALIGN_DOWN): New definition.
17939 * include/grub/mm.h (grub_mm_check_real): New proto.
17940 (GRUB_MM_CHECK): New definition.
17941 * include/grub/mm_private.h: New file.
17942 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
17943 (grub_multiboot_get_mbi_size): Removed.
17944 (grub_multiboot_make_mbi): Change prottype.
17945 (grub_multiboot_set_accepts_video): New proto.
17946 (grub_multiboot_add_elfsyms): Likewise.
17947 (grub_multiboot_payload_eip): New variable.
17948 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
17949 New prototype.
17950 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
17951 New definition.
17952 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
17953 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
17954 * include/grub/powerpc/ieee1275/loader.h: Removed.
17955 * include/grub/powerpc/memory.h: New file.
17956 * include/grub/powerpc/relocator.h: Likewise.
17957 * include/grub/relocator.h: Likewise.
17958 * include/grub/relocator_private.h: Likewise.
17959 * include/grub/sparc64/ieee1275/loader.h: Removed.
17960 * include/grub/x86_64/memory.h: New file.
17961 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
17962 (grub_xnu_heap_malloc): Likewise.
17963 (grub_xnu_heap_real_start): Removed.
17964 (grub_xnu_heap_start): Likewise.
17965 (grub_xnu_relocator): New variable.
17966 (grub_xnu_heap_target_start): Likewise.
17967 * tests/util/grub-shell.in: Support non-pc.
17968 * util/grub-mkimage.c (image_targets): Fix multiboot target.
17969
17970 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17971
17972 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
17973 on malloc error.
17974 (grub_bidi_logical_to_visual): Check that malloc succeded.
17975 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
17976 puts.
17977 (grub_xputs_normal): Likewise.
17978
17979 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17980
17981 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
17982 extra_dist.
17983
17984 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17985
17986 * grub-core/efiemu/runtime/efiemu.sh: Removed.
17987
17988 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17989
17990 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
17991
17992 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17993
17994 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
17995 dprintf.
17996
17997 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
17998
17999 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18000
18001 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18002
18003 * grub-core/normal/term.c (print_more): Fix a memory leak.
18004 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18005 (grub_xputs_normal): Likewise.
18006
18007 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18008
18009 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18010 the begining of the string
18011
18012 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18013
18014 * grub-core/script/script.c (grub_script_parse): Free parsed on
18015 failure.
18016
18017 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18018
18019 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18020 on failure.
18021
18022 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18023
18024 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18025 return.
18026
18027 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18028
18029 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18030 (scroll_up): Fix a memory leak.
18031
18032 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18033
18034 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18035 errors.
18036
18037 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18038
18039 Handle USB pendrives exposed as floppies.
18040
18041 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18042 floppy.
18043 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18044 Check for partitions on all devices.
18045
18046 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18047
18048 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18049 (readkey): Likewise.
18050
18051 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18052
18053 Multiple variable names support to "export" command.
18054
18055 * normal/context.c (grub_cmd_export): "export" command supports
18056 multiple variable names.
18057
18058 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18059
18060 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18061 --target=drive output to Mach device name.
18062
18063 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18064
18065 New Automake based build system for GRUB.
18066
18067 * ABOUT-NLS: New file.
18068 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18069 in Makefile.util.def file.
18070 * Makefile.util.def: New file. Autogen build definitions file for
18071 GRUB host utils.
18072 * conf/Makefile.common: New file. Common variables for GRUB host
18073 utils and target modules.
18074 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18075 * docs/Makefile.am: New file. Automake file for docs.
18076 * gentpl.py: New file. Python script to generate Autogen
18077 template.
18078 * grub-core/Makefile.am: New file. GRUB target modules' rules
18079 that doesn't fit in Makefile.core.def file.
18080 * grub-core/Makefile.core.def: New file. Autogen build
18081 definitions file for GRUB target modules.
18082 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18083 specific setjmp.S file.
18084 * po/Makefile.am: New file.
18085
18086 * .bzrignore: New ignores.
18087 * INSTALL: New requirements, without Ruby.
18088 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18089 * autogen.sh: Updated to invoke autogen as necessary.
18090 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18091 and defines for Automake conditionals.
18092 * geninit.sh: Refactoring.
18093
18094 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18095 necessary.
18096 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18097 New prototype.
18098
18099 * include/grub/test.h: Fix functional test modules' naming.
18100 * grub-core/tests/example_functional_test.c: Fix test module name.
18101
18102 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18103 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18104 * util/grub-editenv.c: Likewise.
18105 * util/grub-fstest.c: Likewise.
18106 * util/grub-mkdevicemap.c: Likewise.
18107 * util/grub-mkfont.c: Likewise.
18108 * util/grub-mkimage.c: Likewise.
18109 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18110 * util/grub-probe.c: Likewise.
18111 * util/grub-script-check.c: Likewise.
18112 * util/i386/pc/grub-setup.c: Likewise.
18113 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18114
18115 * tests/util/grub-shell.in: Fix override directory path.
18116 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18117 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18118
18119 * util/lvm.c: Update #includes.
18120 * util/raid.c: Likewise.
18121 * util/resolve.c: Likewise.
18122 * grub-core/bus/emu/pci.c: Likewise.
18123 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18124 * grub-core/lib/posix_wrap/string.h: Likewise.
18125 * grub-core/kern/emu/main.c: Likewise.
18126
18127 * grub-core/gensymlist.sh: New file. Script for generating kernel
18128 symbols file.
18129 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18130
18131 * grub-core/gentrigtables.c: Fix unused variable warnings.
18132
18133 * Makefile.in: Removed.
18134 * conf/any-emu.rmk: Removed.
18135 * conf/common.rmk: Removed.
18136 * conf/i386-coreboot.rmk: Removed.
18137 * conf/i386-efi.rmk: Removed.
18138 * conf/i386-ieee1275.rmk: Removed.
18139 * conf/i386-multiboot.rmk: Removed.
18140 * conf/i386-pc.rmk: Removed.
18141 * conf/i386-qemu.rmk: Removed.
18142 * conf/i386.rmk: Removed.
18143 * conf/mips-yeeloong.rmk: Removed.
18144 * conf/mips.rmk: Removed.
18145 * conf/powerpc-ieee1275.rmk: Removed.
18146 * conf/sparc64-ieee1275.rmk: Removed.
18147 * conf/tests.rmk: Removed.
18148 * conf/x86-efi.rmk: Removed.
18149 * conf/x86_64-efi.rmk: Removed.
18150 * gendistlist.sh: Removed.
18151 * geninitheader.sh: Removed.
18152 * genkernsyms.sh.in: Removed.
18153 * genmk.rb: Removed.
18154 * gensymlist.sh.in: Removed.
18155 * mkinstalldirs: Removed.
18156 * boot: Moved ...
18157 * grub-core/boot: ... to here.
18158 * bus: Moved ...
18159 * grub-core/bus: ... to here.
18160 * commands: Moved ...
18161 * grub-core/commands: ... to here.
18162 * disk: Moved ...
18163 * grub-core/disk: ... to here.
18164 * efiemu: Moved ...
18165 * grub-core/efiemu: ... to here.
18166 * font: Moved ...
18167 * grub-core/font: ... to here.
18168 * fs: Moved ...
18169 * grub-core/fs: ... to here.
18170 * gencmdlist.sh: Moved ...
18171 * grub-core/gencmdlist.sh: ... to here.
18172 * genemuinit.sh: Moved ...
18173 * grub-core/genemuinit.sh: ... to here.
18174 * genemuinitheader.sh: Moved ...
18175 * grub-core/genemuinitheader.sh: ... to here.
18176 * genfslist.sh: Moved ...
18177 * grub-core/genfslist.sh: ... to here.
18178 * genhandlerlist.sh: Moved ...
18179 * grub-core/genhandlerlist.sh: ... to here.
18180 * genmoddep.awk: Moved ...
18181 * grub-core/genmoddep.awk: ... to here.
18182 * genmodsrc.sh: Moved ...
18183 * grub-core/genmodsrc.sh: ... to here.
18184 * genpartmaplist.sh: Moved ...
18185 * grub-core/genpartmaplist.sh: ... to here.
18186 * genparttoollist.sh: Moved ...
18187 * grub-core/genparttoollist.sh: ... to here.
18188 * genterminallist.sh: Moved ...
18189 * grub-core/genterminallist.sh: ... to here.
18190 * gentrigtables.c: Moved ...
18191 * grub-core/gentrigtables.c: ... to here.
18192 * genvideolist.sh: Moved ...
18193 * grub-core/genvideolist.sh: ... to here.
18194 * gettext: Moved ...
18195 * grub-core/gettext: ... to here.
18196 * gfxmenu: Moved ...
18197 * grub-core/gfxmenu: ... to here.
18198 * gnulib: Moved ...
18199 * grub-core/gnulib: ... to here.
18200 * hello: Moved ...
18201 * grub-core/hello: ... to here.
18202 * hook: Moved ...
18203 * grub-core/hook: ... to here.
18204 * io: Moved ...
18205 * grub-core/io: ... to here.
18206 * kern: Moved ...
18207 * grub-core/kern: ... to here.
18208 * lib: Moved ...
18209 * grub-core/lib: ... to here.
18210 * loader: Moved ...
18211 * grub-core/loader: ... to here.
18212 * mmap: Moved ...
18213 * grub-core/mmap: ... to here.
18214 * normal: Moved ...
18215 * grub-core/normal: ... to here.
18216 * partmap: Moved ...
18217 * grub-core/partmap: ... to here.
18218 * parttool: Moved ...
18219 * grub-core/parttool: ... to here.
18220 * script: Moved ...
18221 * grub-core/script: ... to here.
18222 * term: Moved ...
18223 * grub-core/term: ... to here
18224 * tests/example_functional_test.c: Moved ...
18225 * grub-core/tests/example_functional_test.c: ... to here.
18226 * tests/lib/functional_test.c: Moved ...
18227 * grub-core/tests/lib/functional_test.c: ... to here.
18228 * tests/lib/test.c: Moved ...
18229 * grub-core/tests/lib/test.c: ... to here.
18230 * video: Moved ...
18231 * grub-core/video: ... to here.
18232
18233 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18234
18235 Replace --enable-grub-emu-modules with grub-emu-lite.
18236
18237 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18238 cache.S.
18239
18240 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18241 * kern/emu/full.c: New file. For grub-emu specific initialization.
18242 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18243 * kern/emu/main.c: Call initialization function grub_emu_init.
18244
18245 * Makefile.in: Include grub-emu-lite in install.
18246 * commands/parttool.c: Use grub_no_autoload to differentiate
18247 between grub-emu and grub-emu-lite.
18248 * include/grub/misc.h: New variable grub_no_autoload.
18249
18250 * conf/any-emu.rmk: New rules for grub-emu-lite.
18251 * configure.ac: Remove --enable-grub-emu-modules.
18252 * genmk.rb: Cleanup unnecessary rules.
18253 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18254
18255 * normal/main.c: Don't load list files on grub-emu-lite.
18256 * util/misc.c (grub_arch_sync_caches): Removed.
18257
18258 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18259
18260 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18261 grub-mkimage rather than grub-mkelfimage.
18262 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18263
18264 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18265
18266 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18267 a key after CapsLock or NumLock. It's just a qemu bug.
18268
18269 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18270
18271 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18272 needed by libusb wrapper.
18273
18274 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18275
18276 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18277
18278 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18279
18280 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18281 --nounzip is passed.
18282
18283 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18284
18285 USB hotunplugging and USB serial support.
18286
18287 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18288 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18289 (grub_uhci_transfer): Respect timeout and set *actual.
18290 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18291 non-standard length.
18292 (grub_usb_device_attach): Autoload modules.
18293 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18294 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18295 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18296 users updated.
18297 (grub_usb_add_hub): Fill nports and children.
18298 (attach_root_port): Receive hub instead of controller.
18299 All users updated. Fill hub->devices.
18300 (grub_usb_root_hub): Allocate hub->devices.
18301 (detach_device): New function.
18302 (poll_nonroot_hub): Fill children and detach devices.
18303 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18304 actual arguments. All users updated.
18305 (grub_usb_bulk_read_extended): New function.
18306 * bus/usb/serial/common.c: New file.
18307 * bus/usb/serial/ftdi.c: Likewise.
18308 * bus/usb/serial/pl2303.c: Likewise.
18309 * commands/terminal.c (handle_command): Support wildcard.
18310 * commands/usbtest.c: Output "Unknown" instead of empty string.
18311 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18312 (usbserial_common_mod_SOURCES): New variable.
18313 (usbserial_common_mod_CFLAGS): Likewise.
18314 (usbserial_common_mod_LDFLAGS): Likewise.
18315 (pkglib_MODULES): Add usbserial_pl2303.mod.
18316 (usbserial_pl2303_mod_SOURCES): New variable.
18317 (usbserial_pl2303_mod_CFLAGS): Likewise.
18318 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18319 (pkglib_MODULES): Add usbserial_ftdi.mod.
18320 (usbserial_ftdi_mod_SOURCES): New variable.
18321 (usbserial_ftdi_mod_CFLAGS): Likewise.
18322 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18323 (pkglib_MODULES): Add serial.mod.
18324 (serial_mod_SOURCES): New variable.
18325 (serial_mod_CFLAGS): Likewise.
18326 (serial_mod_LDFLAGS): Likewise.
18327 * conf/i386-pc.rmk: Likewise.
18328 * conf/mips-yeeloong.rmk: Likewise.
18329 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18330 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18331 * disk/usbms.c (first_available_slot): New variable.
18332 (grub_usbms_attach): Don't reuse free slots due to potential cache
18333 problems.
18334 * include/grub/serial.h: Moved to ..
18335 * include/grub/ns8250.h: ...this.
18336 * include/grub/serial.h: New file.
18337 * include/grub/term.h (grub_term_poll_usb): New variable.
18338 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18339 readkey. All users updated.
18340 (grub_terminfo_output_state): Pass term to put.
18341 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18342 (grub_usb_controller_dev): Add timeout and actual arguments to
18343 transfer. All users updated.
18344 (grub_usb_interface): New field detach_data.
18345 (grub_usb_device): New fields children and nports.
18346 (grub_usb_ep_type_t): New type.
18347 (grub_usb_get_ep_type): New function.
18348 (grub_usb_bulk_read_extended): Likewise.
18349 * include/grub/usbdesc.h (grub_usb_desc): New type.
18350 * include/grub/usbserial.h: New file.
18351 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18352 * kern/term.c (grub_term_poll_usb): New variable.
18353 (grub_getkey): Call grub_term_poll_usb if set.
18354 (grub_checkkey): Likewise.
18355 (grub_getkeystatus): Likewise.
18356 * term/serial.c: Moved controller-specific parts to ...
18357 * term/ns8250.c: ... here.
18358 * term/serial.c: Mostly rewritten.
18359 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18360 according to spec.
18361
18362 2010-08-20 Robert Millan <rmh@gnu.org>
18363
18364 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18365 a separate module and maybe other interesting combinations.
18366
18367 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18368 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18369 (kfreebsd_entry): Add generic filesystem module load routine.
18370 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18371
18372 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18373
18374 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18375 "numcenter" (I misunderstood the purpose of this entry).
18376 * docs/grub.texi (sendkey): Likewise.
18377
18378 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18379
18380 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18381 status flag options; simply omitting the option is equivalent and
18382 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18383 (keysym_table): Rename "num5numlock" to "numlock".
18384 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18385 can uniformly say that only the last of multiple `sendkey'
18386 invocations has any effect.
18387 * docs/grub.texi (sendkey): New section.
18388
18389 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18390
18391 * commands/i386/pc/sendkey.c (options): Fix three typos.
18392
18393 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18394
18395 Implement sendkey support.
18396
18397 * commands/i386/pc/sendkey.c: New file.
18398 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18399 (sendkey_mod_SOURCES): New variable.
18400 (sendkey_mod_CFLAGS): Likewise.
18401 (sendkey_mod_LDFLAGS): Likewise.
18402
18403 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18404
18405 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18406 fix warnings from Autoconf.
18407
18408 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18409
18410 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18411 to avoid false positives with some assemblers that output things
18412 like "someprefix_func" as part of their output.
18413
18414 2010-08-15 Robert Millan <rmh@gnu.org>
18415
18416 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18417 errors.
18418 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18419 grub_get_libzfs_handle() errors.
18420
18421 2010-08-14 Robert Millan <rmh@gnu.org>
18422
18423 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18424 filesystem is not ZFS.
18425
18426 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18427
18428 Fix for misspelled color names defaulting to black/black (bug
18429 reported by Doug Nazar)
18430
18431 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18432 status to prototype.
18433 * normal/color.c (grub_parse_color_name_pair): Return failure
18434 status.
18435 (grub_env_write_color_normal): Ignore bad color names.
18436 (grub_env_write_color_highlight): Likewise.
18437 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18438
18439 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18440
18441 "shift" command support to GRUB script.
18442
18443 * include/grub/script_sh.h (grub_script_shift): New prototype.
18444 * script/execute.c (grub_script_shift): New function.
18445 * script/main.c (grub_script_init): Register shift command.
18446 (grub_script_fini): Unregister shift command.
18447 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18448
18449 * tests/grub_script_shift.in: New testcase.
18450 * conf/tests.rmk: Rules for new testcase.
18451
18452 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18453
18454 "continue" command support to GRUB script.
18455
18456 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18457 (grub_script_break): Continue support.
18458 * script/main.c (grub_script_init): Register continue command.
18459 (grub_script_fini): Unregister continue command.
18460
18461 * tests/grub_script_continue.in: New testcase.
18462 * conf/tests.rmk: Rules for new testcase.
18463
18464 2010-08-12 BVK Chaitanya <bvk@dbook>
18465
18466 "break" command support to GRUB script.
18467
18468 * conf/common.rmk: Rule updates to grub-script-check.
18469 * include/grub/misc.h (grub_min): New function.
18470 * include/grub/script_sh.h (grub_script_init): New prototype.
18471 (grub_script_fini): New prototype.
18472 (grub_script_break): New prototype.
18473 * script/main.c (grub_script_init): New function.
18474 (grub_script_fini): New function.
18475 * script/execute.c (grub_script_break): New function.
18476 * normal/main.c: Calls to grub_script_{init,fini}.
18477 * util/grub-script-check.c (grub_script_break): New function.
18478
18479 * tests/grub_script_break.in: New testcase.
18480 * conf/tests.rmk: Rules for new test case.
18481
18482 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18483
18484 Function parameters support to GRUB script.
18485
18486 * script/yylex.l (VARIABLE): Regular expression update.
18487 * script/function.c (grub_script_function_call): Moved ...
18488 * script/execute.c (grub_script_function_call): ... to here.
18489 (grub_script_execute_arglist_to_argv): Removed.
18490 (grub_script_arglist_to_argv): New function.
18491 * script/argv.c: New file.
18492 (grub_script_argv_free): New function.
18493 (grub_script_argv_next): Likewise.
18494 (grub_script_argv_append): Likewise.
18495 (grub_script_argv_split_append): Likewise.
18496 * include/grub/script_sh.h (grub_script_argv): New struct.
18497 (grub_script_argv_free): New function.
18498 (grub_script_argv_next): Likewise.
18499 (grub_script_argv_append): Likewise.
18500 (grub_script_argv_split_append): Likewise.
18501
18502 * conf/common.rmk (normal.mod): New source script/argv.c.
18503
18504 * tests/grub_script_echo1.in: More tests.
18505 * tests/grub_script_vars1.in: Likewise.
18506 * tests/grub_script_functions.in: New test case.
18507 * conf/tests.rmk: Rules for new testcase.
18508
18509 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18510
18511 Remove grub_script_cmdblock struct.
18512
18513 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18514 * script/parser.y: Likewise.
18515 * script/execute.c: Rename cmdblock suffix to cmdlist.
18516 * script/script.c: Likewise.
18517 * util/grub-script-check.c: Likewise.
18518
18519 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18520
18521 * .bzrignore: add grub-macho2img
18522
18523 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18524
18525 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18526
18527 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18528
18529 Remove the dump of sm712 initialisation sequence.
18530
18531 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18532 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18533 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18534 (GRUB_VGA_CR_*): Added many registers.
18535 (GRUB_VGA_SR_*): Likewise.
18536 (GRUB_VGA_GR_*): Likewise.
18537 (grub_vga_write_arx): New function.
18538 (grub_video_hw_config): New struct.
18539 (grub_vga_set_geometry): New function.
18540 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18541 GRUB_PCI_CLASS_SUBCLASS_VGA.
18542 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18543 * video/sm712.c (grub_sm712_write_reg): New function
18544 (grub_sm712_read_reg): Likewise.
18545 (grub_sm712_sr_write): Likewise.
18546 (grub_sm712_gr_write): Likewise.
18547 (grub_sm712_cr_write): Likewise.
18548 (grub_sm712_write_arx): Likewise.
18549 (grub_sm712_cr_shadow_write): Likewise.
18550 (grub_sm712_write_dda_lookup): Likewise.
18551 (grub_video_sm712_setup): Initialise the video rather then
18552 blindly replay the dump.
18553 (main) [TEST]: Add a routine to be able to compile as standalone for
18554 tests.
18555 * video/sm712_init.c (sm712_init): Removed.
18556 (sm712_sr_seq1): New array.
18557 (sm712_sr_seq2): Likewise.
18558
18559 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18560
18561 * include/grub/vga.h: Add missing grub/pci.h include.
18562
18563 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18564
18565 * util/grub-macho2img.c (main): fix typo
18566
18567 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18568
18569 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18570 (grub_vga_gr_read): Likewise.
18571 (grub_vga_cr_write): Likewise.
18572 (grub_vga_cr_read): Likewise.
18573 (grub_vga_sr_write): Likewise.
18574 (grub_vga_sr_read): Likewise.
18575 (grub_vga_palette_read): Likewise.
18576 (grub_vga_palette_write): Likewise.
18577 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18578 (grub_sm712_sr_read): New function.
18579 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18580 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18581
18582 2010-08-09 Robert Millan <rmh@gnu.org>
18583
18584 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18585 out unused variables on non-ZFS build.
18586
18587 2010-08-08 Robert Millan <rmh@gnu.org>
18588
18589 Fix path generation for sub-filesystems in ZFS.
18590
18591 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18592 missing slash.
18593
18594 2010-08-08 Robert Millan <rmh@gnu.org>
18595
18596 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18597
18598 2010-08-08 Robert Millan <rmh@gnu.org>
18599
18600 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18601 exist, issue a proper error message (rely on `ls' for translated
18602 strings).
18603
18604 2010-08-08 Robert Millan <rmh@gnu.org>
18605
18606 Fix grub-probe invocation.
18607
18608 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18609
18610 2010-08-04 Robert Millan <rmh@gnu.org>
18611
18612 * configure.ac: Remove checks for getfsstat() and getmntany().
18613 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18614 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18615 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18616 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18617 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18618 function.
18619 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18620 via find_mount_point_from_dir() and getfsstat() / getmntany().
18621
18622 2010-08-04 Robert Millan <rmh@gnu.org>
18623
18624 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18625 (grub_find_zpool_from_mount_point): Merge into ...
18626 (grub_find_zpool_from_dir): ... this.
18627 * kern/emu/misc.c: Likewise.
18628
18629 * kern/emu/misc.c
18630 (grub_make_system_path_relative_to_its_root): Replace
18631 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18632 with grub_find_zpool_from_dir().
18633 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18634
18635 2010-08-04 Robert Millan <rmh@gnu.org>
18636
18637 Support OpenSolaris in ZFS device resolution.
18638
18639 * configure.ac: Check for getmntany().
18640 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18641 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18642 support.
18643
18644 2010-08-03 Robert Millan <rmh@gnu.org>
18645
18646 Fix grub-emu build.
18647
18648 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18649 * include/grub/emu/misc.h: ... here.
18650
18651 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18652 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18653
18654 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18655 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18656 (grub_get_libzfs_handle): Move to ...
18657 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18658 (grub_get_libzfs_handle): ... here.
18659
18660 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18661
18662 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18663 as command name case.
18664
18665 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18666
18667 * disk/raid.c (insert_array): Select unique numbers for named arrays
18668 as well, for use as keys in the disk cache.
18669
18670 2010-08-01 Robert Millan <rmh@gnu.org>
18671
18672 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18673 kFreeBSD device name, except on ZFS where the filesystem label is
18674 used.
18675 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18676 `/boot/zfs/zpool.cache'.
18677 Set mountfrom kernel variable using ${kfreebsd_device}.
18678
18679 2010-08-01 Robert Millan <rmh@gnu.org>
18680
18681 Make it even harder to use uninitialized `libzfs_handle' (and
18682 make the interface a bit simpler).
18683
18684 * include/grub/util/misc.h (grub_util_init_libzfs)
18685 (libzfs_handle): Remove.
18686 (grub_get_libzfs_handle): New prototype.
18687
18688 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18689 attribute.
18690 (grub_util_init_libzfs): Remove.
18691 (grub_get_libzfs_handle): New function.
18692
18693 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18694 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18695 accessing `libzfs_handle' directly.
18696
18697 2010-08-01 Robert Millan <rmh@gnu.org>
18698
18699 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18700 (grub_find_zpool_from_mount_point): New function prototypes.
18701
18702 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18703 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18704
18705 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18706 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18707 `static' attribute.
18708
18709 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18710 finding zpool from mount point into ...
18711 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18712
18713 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18714 requested path is part of a ZFS pool, use
18715 grub_find_zpool_from_mount_point() to detect its filesystem name,
18716 and generate a path with `/fsname@path' syntax.
18717
18718 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18719
18720 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18721 (void) rather than () so that this is a proper prototype.
18722
18723 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18724
18725 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18726
18727 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18728
18729 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18730 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18731
18732 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18733
18734 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18735
18736 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18737
18738 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18739
18740 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18741
18742 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18743 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18744 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18745 disable gfxpayload.
18746 (Shell-like scripting): Add real content.
18747 (Serial terminal): Suggest `terminal_input serial; terminal_output
18748 serial' rather than putting the two commands on separate lines,
18749 since console input will be inoperative after the first command.
18750 (menuentry): Document --class, --users, and --hotkey options.
18751 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18752 Vladimir Serbinenko).
18753
18754 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18755 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18756
18757 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18758
18759 2010-08-01 Robert Millan <rmh@gnu.org>
18760
18761 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18762 (grub_find_zpool_from_mount_point): New function prototypes.
18763
18764 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18765 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18766
18767 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18768 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18769 `static' attribute.
18770
18771 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18772 finding zpool from mount point into ...
18773 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18774
18775 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18776 requested path is part of a ZFS pool, use
18777 grub_find_zpool_from_mount_point() to detect its filesystem name,
18778 and generate a path with `/fsname@path' syntax.
18779
18780 2010-08-01 Robert Millan <rmh@gnu.org>
18781
18782 Prevent accidental use of uninitialized libzfs_handle.
18783
18784 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18785 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18786 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18787
18788 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18789
18790 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18791 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18792
18793 2010-08-01 Robert Millan <rmh@gnu.org>
18794
18795 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
18796
18797 2010-07-31 Robert Millan <rmh@gnu.org>
18798
18799 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18800
18801 2010-07-31 Robert Millan <rmh@gnu.org>
18802
18803 * kern/emu/misc.c: Add missing license header.
18804
18805 2010-07-31 Robert Millan <rmh@gnu.org>
18806
18807 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18808
18809 * include/grub/util/libnvpair.h: Include `<config.h>'.
18810 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18811 declaring libnvpair prototypes ourselves.
18812 * include/grub/util/libzfs.h: Include `<config.h>'.
18813 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18814 declaring libzfs prototypes ourselves.
18815
18816 (libzfs_handle): Moved to ...
18817 * include/grub/util/misc.h (libzfs_handle): ... here.
18818 Include `<grub/util/libzfs.h>'.
18819
18820 2010-07-30 Robert Millan <rmh@gnu.org>
18821
18822 * include/grub/emu/misc.h: Add missing license header.
18823
18824 2010-07-30 Robert Millan <rmh@gnu.org>
18825
18826 Enable `grub-probe -t device' resolution on ZFS.
18827
18828 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18829 * include/grub/util/libnvpair.h: New file.
18830 * include/grub/util/libzfs.h: New file.
18831
18832 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18833 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18834 `<grub/util/libnvpair.h>'.
18835 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18836
18837 (find_mount_point_from_dir): New static function.
18838 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18839 function.
18840 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18841 find_root_device_from_libzfs() before ressorting to find_root_device().
18842
18843 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18844 prototype.
18845 * util/misc.c: Include `<grub/util/libzfs.h>'.
18846 (grub_util_init_libzfs): New function.
18847 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18848 [HAVE_LIBZFS] (fini_libzfs): New static function.
18849 (grub_util_init_libzfs): New function.
18850 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18851
18852 2010-07-30 Robert Millan <rmh@gnu.org>
18853
18854 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18855 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18856 `warn_unused_result' attribute.
18857 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18858 (grub_xasprintf, grub_xvasprintf): Likewise.
18859 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18860
18861 2010-07-29 Robert Millan <rmh@gnu.org>
18862
18863 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18864 (probe): Handle `PRINT_FS_LABEL'.
18865 (main): Handle `-t fs_label'.
18866
18867 2010-07-29 Robert Millan <rmh@gnu.org>
18868
18869 * configure.ac: Remove grub-mkisofs checks.
18870
18871 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18872
18873 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18874 Reported by: Lennart Sorensen.
18875
18876 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18877
18878 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18879 prior to terminal_input/terminal_output separation. It's been over 1.5
18880 years and those versions weren't widely deployed.
18881
18882 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18883
18884 * disk/raid.c (insert_array): Don't count named arrays when looking
18885 for unused array numbers.
18886 Reported and tested by: Michael Guntsche.
18887
18888 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18889
18890 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
18891 implementation of this so that grub-emu links again, with a note
18892 that this should support hotplugging in the future.
18893
18894 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18895
18896 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18897
18898 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18899
18900 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
18901 handle on failure.
18902 (grub_loopback_close): Remove empty function.
18903 (grub_loopback_dev): Remove close method.
18904
18905 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18906
18907 Disable EFI cursor when the EFI console becomes inactive.
18908
18909 * term/efi/console.c (grub_efi_console_init): New function.
18910 (grub_efi_console_fini): New function.
18911 (grub_console_term_output): Register init and fini methods.
18912
18913 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18914
18915 * tests/util/grub-shell-tester.in: Remove bashism and declare as
18916 sh script.
18917
18918 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18919
18920 * disk/loopback.c (grub_loopback): Replace filename with file.
18921 (delete_loopback): Handle new semantics.
18922 (grub_cmd_loopback): Likewise.
18923 (grub_loopback_iterate): Likewise.
18924 (grub_loopback_close): Likewise.
18925
18926 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18927
18928 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
18929 with -p "".
18930 Reported by: Tito Keitel.
18931
18932 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18933
18934 * docs/grub.texi (Naming convention): Document new naming convention.
18935
18936 2010-07-20 Vadim Solomin <vadic052@gmail.com>
18937 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18938
18939 Generate device.map in something closer to the old ordering.
18940
18941 * util/deviceiter.c (struct device): New declaration.
18942 (compare_file_names): Rename to ...
18943 (compare_devices): ... this. Sort by kernel name in preference to
18944 the stable by-id name, but keep the latter as a fallback comparison.
18945 Update header comment.
18946 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
18947 of `struct device' rather than of plain file names.
18948
18949 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
18950
18951 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
18952 on i386.
18953
18954 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18955
18956 * commands/acpi.c (setup_common_tables): Use sizeof instead of
18957 hardcoding size.
18958 (setv1table): Likewise.
18959
18960 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18961
18962 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
18963 removing the homehost if present.
18964 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
18965 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
18966 removing the homehost if present.
18967 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
18968 if possible.
18969 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
18970
18971 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
18972 parameter. Set its pointer target to 0.
18973 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
18974 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
18975 `data_offset' value from the superblock for 1.x metadata.
18976 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
18977 data on the device.
18978 (insert_array): Record the start sector of data on the device.
18979 (grub_raid_register): Pass start_sector parameters to
18980 grub_raid_list->detect and insert_array.
18981 * include/grub/raid.h (struct grub_raid_array): Add start_sector
18982 member.
18983 (struct grub_raid): Add start_sector parameter to `detect'.
18984
18985 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
18986 __attribute__ ((packed)), leaving a comment.
18987 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
18988 (grub_mdraid_detect_09): ... here and ...
18989 (grub_mdraid_detect_1x): ... here.
18990
18991 2010-07-20 Peter Henn <peter.henn@web.de>
18992
18993 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
18994 chunk size and disk size, which are already given as sector counts
18995 as distinct from the 0.90 units. Fetch the correct device number
18996 from the role table instead of using the table index.
18997
18998 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
18999
19000 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19001 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19002 (WriteMostly1): New macro.
19003 Set array->name to NULL for metadata format 0.90. Add support for
19004 metadata 1.x. Fix some comments.
19005 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19006 few comments.
19007 * util/getroot.c (grub_util_get_grub_dev): Add support for
19008 /dev/md/name style devices.
19009
19010 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19011
19012 * .bzrignore: Ignore 20_linux_xen.
19013
19014 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19015
19016 * util/import_unicode.py: Remove unnecessary imports.
19017
19018 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19019
19020 Hotplugging and USB hub support.
19021
19022 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19023 (grub_ohci): Likewise.
19024 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19025 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19026 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19027 (GRUB_OHCI_CTRL_EDS): Likewise.
19028 (GRUB_OHCI_BULK_EDS): Likewise.
19029 (GRUB_OHCI_TDS): Likewise.
19030 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19031 (grub_ohci_ed_phys2virt): New function.
19032 (grub_ohci_virt_to_phys): Likewise.
19033 (grub_ohci_td_phys2virt): Likewise.
19034 (grub_ohci_td_virt2phys): Likewise.
19035 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19036 attachment.
19037 (grub_ohci_find_ed): New function.
19038 (grub_ohci_alloc_td): Likewise.
19039 (grub_ohci_free_td): Likewise.
19040 (grub_ohci_free_tds): Likewise.
19041 (grub_ohci_transfer): Use previously allocated memory.
19042 (grub_ohci_portstatus): Reset status changed bit.
19043 (grub_ohci_detect_dev): Supply status changed.
19044 (grub_ohci_fini_hw): Free memory.
19045 (grub_ohci_restore_hw): Reallocate memory.
19046 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19047 Reset status change.
19048 (grub_uhci_detect_dev): Supply status_change.
19049 * bus/usb/usb.c (attach_hooks): New var.
19050 (grub_usb_device_attach): New function.
19051 (grub_usb_register_attach_hook_class): Likewise.
19052 (grub_usb_unregister_attach_hook_class): Likewise.
19053 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19054 (grub_usb_add_hub): Reset connection changed bit.
19055 (attach_root_port): New function.
19056 (grub_usb_root_hub): Likewise.
19057 (poll_nonroot_hub): Likewise.
19058 (grub_usb_poll_devices): Likewise.
19059 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19060 * disk/usbms.c (grub_usbms_open): Use device hooks.
19061 (grub_usbms_iterate) :Poll devices.
19062 (grub_usbms_finddevs): Split into ...
19063 (grub_usbms_attach): ... this ...
19064 (grub_usbms_attach): ... and this.
19065 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19066 in detect_dev.
19067 (grub_usb_interface): New fields attached and detach_hook.
19068 (grub_usb_attach_hook_class): New type.
19069 (grub_usb_attach_desc): New struct.
19070 (grub_usb_register_attach_hook_class): New function.
19071 (grub_usb_unregister_attach_hook_class): Likewise.
19072 (grub_usb_poll_devices): Likewise.
19073 (grub_usb_device_attach): Likewise.
19074 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19075 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19076
19077 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19078
19079 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19080 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19081 delta determination style. Works with most NetBSD partitions too.
19082
19083 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19084
19085 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19086 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19087
19088 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19089
19090 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19091
19092 2010-07-14 Anton Blanchard <anton@samba.org>
19093
19094 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19095 ET_DYN files.
19096
19097 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19098
19099 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19100
19101 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19102
19103 * kern/partition.c (grub_partition_check_containment): New function to
19104 check that a partition is physically contained in a parent. Since
19105 offsets are relative (and non-negative), this reduces to checking that
19106 the partition ends before its parent.
19107 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19108 (grub_partition_iterate): Likewise.
19109 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19110 comments.
19111 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19112 partitions that start before their parent, and add debug printfs.
19113
19114 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19115
19116 * Makefile.in (.SUFFIX): Spell correctly, as ...
19117 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19118 bare module name without `.mod', e.g. `test') tried to invoke a
19119 Modula-2 compiler.
19120
19121 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19122
19123 * README: Point to the Info manual.
19124
19125 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19126
19127 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19128 2nd superblock position from partition size.
19129
19130 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19131
19132 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19133 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19134 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19135 outputs.
19136
19137 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19138
19139 Restructure SCSI .id handling.
19140 Reported and tested by: Aleš Nesrsta.
19141
19142 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19143 (grub_atapi_dev): Changed .name to "ata". New field .id.
19144 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19145 (grub_usbms_dev): New field .id.
19146 * disk/scsi.c (grub_scsi_iterate): Generate name.
19147 (grub_scsi_open): Parse name.
19148 * include/grub/scsi.h (grub_make_scsi_id): New function.
19149 (grub_scsi_dev): Change iterate and open to number instead of naming
19150 busses. All users updated.
19151 (grub_scsi): Remove name. Add .bus.
19152
19153 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19154
19155 * commands/help.c (grub_cmd_help): Fix a typo.
19156
19157 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19158
19159 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19160 Reported and tested by: Colin Watson.
19161
19162 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19163
19164 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19165 in this context.
19166
19167 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19168
19169 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19170
19171 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19172
19173 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19174 indentation.
19175
19176 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19177
19178 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19179 and disk/raid6_recover.c.
19180 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19181 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19182
19183 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19184
19185 * term/gfxterm.c (repaint_schedulded): Rename to ...
19186 (repaint_scheduled): ... this. Update all callers.
19187 (repaint_was_schedulded): Rename to ...
19188 (repaint_was_scheduled): ... this. Update all callers.
19189
19190 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19191
19192 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19193 which we expect to be handled by upper layers.
19194
19195 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19196
19197 * bus/usb/usbhub.c: #include time.h header.
19198
19199 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19200
19201 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19202 entry_name also for entries without stat blocks (e.g. ".."); fixes
19203 corruption of the first entry in a directory.
19204
19205 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19206
19207 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19208 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19209 doesn't work otherwise.
19210
19211 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19212
19213 * docs/grub.texi (Features): Update list of supported file systems.
19214 (GNU/Linux): Update for GRUB 2.
19215 (Serial terminal): Remove mention of --disable-serial, which was a
19216 GRUB Legacy configure option. Update instructions to use
19217 `terminal_input' and `terminal_output' rather than `terminal'.
19218 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19219 configuration' and `Installing GRUB using grub-install'.
19220 (Menu entry editor): Update for GRUB 2.
19221 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19222 Document new -a, -u, and -v options.
19223 (initrd): New section.
19224 (initrd16): New section.
19225 (linux): New section.
19226 (linux16): New section.
19227 (search): The `var' argument to `--set' is optional.
19228 (GRUB only offers a rescue shell): Go into a little more detail on
19229 drive ordering.
19230
19231 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19232
19233 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19234
19235 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19236
19237 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19238 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19239
19240 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19241
19242 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19243 install_prefix, in line with install_dos_part and install_bsd_part.
19244 Add new prefix variable, which is copied to install_prefix after
19245 comparing core.img in memory with the one read from disk in the
19246 no-embedding case, and use that rather than overwriting
19247 install_prefix immediately when installing to a partition.
19248 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19249 Bicakci.
19250
19251 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19252
19253 * configure.ac: Avoid == in test command, it's not portable.
19254 * util/grub.d/30_os-prober.in: Likewise.
19255
19256 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19257
19258 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19259
19260 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19261
19262 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19263 multiple (top-level) partmaps.
19264
19265 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19266
19267 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19268 Reported by: Tino Keitel.
19269
19270 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19271
19272 Bidi and diacritics support.
19273
19274 * Makefile.in (widthspec.bin): New target.
19275 (widthspec.h): Likewise.
19276 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19277 * autogen.sh: Generate unidata.c.
19278 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19279 * commands/ls.c (grub_ls_list_devices): Likewise.
19280 (grub_ls_list_files): Likewise.
19281 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19282 (grub_mini_cmd_lsmod): Likewise.
19283 * commands/read.c: Likewise.
19284 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19285 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19286 * lib/arg.c (grub_arg_show_help): Likewise.
19287 * lib/crypto.c (grub_password_get): Likewise.
19288 * normal/auth.c (grub_username_get): Likewise.
19289 * normal/misc.c (grub_normal_print_device_info): Likewise.
19290 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19291 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19292 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19293 (normal/charset.c_DEPENDENCIES): New variable.
19294 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19295 (pkglib_MODULES): Remove charset.mod.
19296 (charset_mod_SOURCES): Removed.
19297 (charset_mod_CFLAGS): Likewise.
19298 (charset_mod_LDFLAGS): Likewise.
19299 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19300 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19301 and term/tparm.c.
19302 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19303 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19304 (kernel_img_HEADERS): Add terminfo.h.
19305 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19306 Fill ->font. Reverse ascii bitmaps.
19307 (grub_font_get_xheight): New function.
19308 * font/font.c (grub_font_get_string_width): Moved from here ...
19309 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19310 * font/font.c (grub_font_draw_string): Moved from here ...
19311 * gfxmenu/font.c (grub_font_draw_string): ... here.
19312 * font/font.c (grub_font_dup_glyph): New function.
19313 (grub_font_blit_glyph): Likewise.
19314 (grub_font_blit_glyph_mirror): Likewise.
19315 (blit_comb): Likewise.
19316 (grub_font_construct_dry_run): Likewise.
19317 (grub_font_get_constructed_device_width): Likewise.
19318 (grub_font_construct_glyph): Likewise.
19319 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19320 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19321 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19322 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19323 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19324 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19325 (grub_font_get_xheight): New proto.
19326 (grub_font_get_constructed_device_width): Likewise.
19327 (grub_font_construct_glyph): Likewise.
19328 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19329 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19330 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19331 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19332 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19333 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19334 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19335 (grub_console_getcharwidth): Likewise.
19336 * include/grub/misc.h (grub_xputs): New proto.
19337 (grub_puts): Inlined.
19338 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19339 (grub_normal_get_line_counter): Removed.
19340 (grub_install_newline_hook): Likewise.
19341 (grub_normal_get_char_counter): New proto.
19342 (grub_normal_reset_more): Likewise.
19343 (grub_xputs_normal): Likewise.
19344 * include/grub/powerpc/ieee1275/console.h: Removed.
19345 * include/grub/sparc64/ieee1275/console.h: Likewise.
19346 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19347 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19348 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19349 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19350 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19351 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19352 (grub_term_input): Pass reference to self. All users updated.
19353 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19354 Pass reference to self. New fields normal_color, highlight_color and
19355 data. All users updated.
19356 (grub_putchar): Removed.
19357 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19358 (grub_unicode_estimate_width): New function.
19359 (grub_term_getcharwidth): Add defaults.
19360 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19361 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19362 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19363 (grub_cls): Remove EXPORT_FUNC.
19364 (grub_setcolorstate): Inline.
19365 (grub_newline_hook): Removed.
19366 * include/grub/terminfo.h: Rewritten. All users updated.
19367 * include/grub/unicode.h: New file.
19368 * include/grub/video.h (grub_video_signed_rect): New type.
19369 * kern/emu/console.c (grub_console_highlight_color): Removed.
19370 (grub_console_normal_color): Likewise.
19371 (grub_console_standard_color): Made static.
19372 (grub_ncurses_putchar): Remove mapping.
19373 (grub_ncurses_getcharwidth): Removed.
19374 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19375 (grub_ncurses_setcolor): Removed.
19376 (grub_ncurses_getcolor): Likewise.
19377 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19378 (grub_console_putchar): ... this.
19379 (grub_console_putchar): Handle argument difference.
19380 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19381 console_init_early and console_init_lately.
19382 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19383 * kern/misc.c (grub_puts): Removed.
19384 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19385 (grub_vsnprintf_real): Remove str = NULL support.
19386 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19387 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19388 * kern/term.c (grub_putcode): Renamed to ...
19389 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19390 (grub_putchar): Removed.
19391 (grub_xputs_dumb): New function.
19392 (grub_xputs): New variable.
19393 * lib/charset.c: Move from here ...
19394 * normal/charset.c: ... to here.
19395 (grub_ucs4_to_utf8): New function.
19396 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19397 (join_types): New variable.
19398 (unpack_join): New function.
19399 (bidi_types): New variable.
19400 (unpack_bidi): New function.
19401 (get_bidi_type): Likewise.
19402 (get_join_type): Likewise.
19403 (is_mirrored): Likewise.
19404 (grub_unicode_get_comb_type): Likewise.
19405 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19406 (is_type_after): Likewise.
19407 (grub_unicode_aglomerate_comb): Likewise.
19408 (bidi_line_wrap): Likewise.
19409 (grub_bidi_line_logical_to_visual): Likewise.
19410 (grub_bidi_logical_to_visual): Likewise.
19411 (grub_unicode_mirror_code): Likewise.
19412 (grub_unicode_shape_code): Likewise.
19413 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19414 Don't use grub_putchar.
19415 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19416 (grub_normal_reader_init): Likewise.
19417 (grub_xputs_saved): New variable.
19418 (GRUB_MOD_INIT): Set grub_xputs.
19419 (GRUB_MOD_FINI): Restore grub_xputs.
19420 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19421 (menu_init): Avoid printing gfxmenu error.
19422 (show_menu): Use grub_normal_get_char_counter.
19423 * normal/menu_entry.c (update_screen): Fix out-of-array.
19424 (complete): Avoid NULL dereferencing.
19425 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19426 * normal/menu_text.c (print_spaces): Removed.
19427 (grub_print_ucs4): Likewise.
19428 (grub_print_message_indented): Use grub_print_ucs4.
19429 (print_message): Use grub_putcode.
19430 (print_entry): Hanlde diacritics.
19431 * normal/term.c (term_state): New type.
19432 (grub_more_lines): Removed.
19433 (term_states): New variable.
19434 (grub_normal_line_counter): Renamed to ..
19435 (grub_normal_char_counter): ...this. All users updated.
19436 (grub_normal_get_line_counter): Renamed to ...
19437 (grub_normal_get_char_counter): ... this.
19438 (grub_normal_reset_more): New function.
19439 (process_newline): Removed.
19440 (print_more): New function.
19441 (grub_install_newline_hook): Removed.
19442 (map_code): New function.
19443 (grub_puts_terminal): Use grub_print_ucs4.
19444 (putglyph): New function.
19445 (putcode_real): Likewise.
19446 (grub_putcode): Use putcode_real.
19447 (get_maxwidth): New function.
19448 (get_startwidth): Likewise.
19449 (print_ucs4_terminal): Likewise.
19450 (find_term_state): Likewise.
19451 (put_glyphs_terminal): Likewise.
19452 (print_backlog): Likewise.
19453 (print_ucs4_real): Likewise.
19454 (grub_print_ucs4): Likewise.
19455 (grub_xputs_normal): Likewise.
19456 * term/efi/console.c (grub_console_putchar): Output diacritics.
19457 (grub_console_getcharwidth): Removed.
19458 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19459 * term/gfxterm.c (clear_char): Free chars.
19460 (scroll_up): Avoid leaking memory.
19461 (grub_gfxterm_putchar): Support diacritics.
19462 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19463 * term/i386/pc/console.c (grub_console_term_output): Declare as
19464 GRUB_TERM_CODE_TYPE_VGA.
19465 * term/i386/pc/vga.c (grub_vga_term): Declare as
19466 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19467 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19468 GRUB_TERM_CODE_TYPE_VGA.
19469 * term/i386/vga_common.c (map_char): Removed.
19470 (grub_console_putchar): Likewise.
19471 (grub_console_getcharwidth): Likewise.
19472 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19473 (colors): Reordered to match terminfo.
19474 (grub_ofconsole_normal_color): Removed.
19475 (grub_ofconsole_writeesc): Likewise.
19476 (grub_ofconsole_highlight_color): Likewise.
19477 (grub_ofconsole_getcharwidth): Likewise.
19478 (grub_ofconsole_setcolorstate): Likewise.
19479 (grub_ofconsole_setcolor): Likewise.
19480 (grub_ofconsole_getcolor): Likewise.
19481 (grub_ofconsole_readkey): Renamed to ...
19482 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19483 key.
19484 (grub_ofconsole_checkkey): Removed.
19485 (grub_ofconsole_getkey): Likewise.
19486 (grub_ofconsole_getxy): Likewise.
19487 (grub_ofconsole_gotoxy): Likewise.
19488 (grub_ofconsole_cls): Likewise.
19489 (grub_ofconsole_refresh): Likewise.
19490 (grub_ofconsole_terminfo_input): New struct.
19491 (grub_ofconsole_terminfo_output): Likewise.
19492 (grub_ofconsole_term_input): Use terminfo.
19493 (grub_ofconsole_term_output): Likewise.
19494 (grub_console_init): Split into ...
19495 (grub_console_init_early): ...this and ...
19496 (grub_console_init_lately): ...this. Use terminfo.
19497 (grub_ofconsole_putchar): Renamed to ...
19498 (put): ... this. Remove mapping.
19499 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19500 * term/serial.c: Simplify using terminfo.
19501 (xpos): Removed.
19502 (ypos): Likewise.
19503 (keep_track): Likewise.
19504 (registered): Likewise.
19505 (input_buf): Likewise.
19506 (npending): Likewise.
19507 (serial_translate_key_sequence): Likewise.
19508 (fill_input_buf): Likewise.
19509 (grub_serial_checkkey): Likewise.
19510 (grub_serial_getkey): Likewise.
19511 (grub_serial_getxy): Likewise.
19512 (grub_serial_gotoxy): Likewise.
19513 (grub_serial_putchar): Likewise.
19514 (grub_serial_cls): Likewise.
19515 (grub_serial_setcolorstate): Likewise.
19516 (grub_serial_setcursor): Likewise.
19517 (serial_hw_init): Use serial_hw_fetch.
19518 (grub_serial_terminfo_input): New variable.
19519 (grub_serial_terminfo_output): Likewise.
19520 (grub_serial_term_input): Use terminfo.
19521 (grub_serial_term_output): Likewise.
19522 * term/terminfo.c (putstr): Use put.
19523 (grub_terminfo_all_free): New function
19524 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19525 (grub_terminfo_output_register): New function.
19526 (grub_terminfo_output_unregister): Likewise.
19527 (grub_terminfo_getxy): Likewise.
19528 (grub_terminfo_readkey): Likewise.
19529 (grub_terminfo_checkkey): Likewise.
19530 (grub_terminfo_getkey): Likewise.
19531 (grub_terminfo_input_init): Likewise.
19532 (print_terminfo): Likewise.
19533 (grub_cmd_terminfo): Handle encoding.
19534 (grub_terminfo_gotoxy): Track position.
19535 (grub_terminfo_cls): Likewise.
19536 (grub_terminfo_putchar): Likewise.
19537 (grub_terminfo_setcolorstate): Handle colors
19538 (grub_terminfo_cursor_on): This ...
19539 (grub_terminfo_cursor_off): ... and this merged into ...
19540 (grub_terminfo_setcursor): ... this.
19541 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19542 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19543 * unicode/BidiMirroring.txt: Likewise.
19544 * unicode/UnicodeData.txt: Likewise.
19545 * unicode/COPYING: Likewise.
19546 * util/grub-editenv.c (grub_putchar): Removed.
19547 (grub_xputs_real): New function.
19548 (grub_xputs): New variable.
19549 * util/grub-fstest.c (grub_putchar): Removed.
19550 (grub_xputs_real): New function.
19551 (grub_xputs): New variable.
19552 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19553 (grub_xputs_real): New function.
19554 (grub_xputs): New variable.
19555 * util/grub-probe.c (grub_putchar): Removed.
19556 (grub_xputs_real): New function.
19557 (grub_xputs): New variable.
19558 * util/grub-script-check.c (grub_putchar): Removed.
19559 (grub_xputs_real): New function.
19560 (grub_xputs): New variable.
19561 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19562 (grub_xputs_real): New function.
19563 (grub_xputs): New variable.
19564 * util/import_unicode.py: New file.
19565 * util/grub-mkfont.c (ft_errmsgs): New array.
19566 (grub_glyph_info): Make bitmap a pointer.
19567 (file_formats): New type WIDTH_SPEC.
19568 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19569 (options): Add width-spec.
19570 (help): Likewise.
19571 (add_char): Renamed to ...
19572 (add_glyph): ... this.
19573 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19574 (glyph_replace): New type.
19575 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19576 (add_char): New function.
19577 (add_subst): Likewise.
19578 (process_cursive): Likewise.
19579 (add_font): Handle GSUB.
19580 (write_font_width_spec): New function.
19581 (main): Sort glyphs.
19582 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19583 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19584 * kern/term.c (grub_cls): Moved from here...
19585 * normal/term.c (grub_cls): ... here.
19586
19587 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19588
19589 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19590 suitable for using within the format argument of printf when
19591 converting grub_size_t.
19592 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19593 "x" to convert grub_size_t arguments.
19594
19595 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19596
19597 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19598 too long captions.
19599 (list_get_minimal_size): Take selection box into account.
19600
19601 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19602
19603 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19604 NULL font.
19605
19606 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19607
19608 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19609 devices when iterating over /dev/disk/by-id; they will be handled
19610 later if appropriate, which they aren't always (e.g. LVM).
19611
19612 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19613
19614 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19615 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19616 fails.
19617 (grub_halt): Likewise.
19618 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19619 reset-all fails.
19620 (grub_halt): Don't return, even if all of shut-down, power-off, and
19621 poweroff fail.
19622
19623 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19624
19625 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19626 arguments, not three.
19627
19628 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19629
19630 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19631 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19632 LVM-on-RAID is handled correctly.
19633
19634 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19635
19636 * docs/grub.texi (Changes from GRUB Legacy): New section.
19637 (Future): Fix typo.
19638
19639 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19640
19641 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19642 grub.d/README accidentally ends up executable for one reason or
19643 another. Ignore it.
19644
19645 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19646
19647 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19648 (gpt_partition_map_iterate): Support non-512B sectors.
19649
19650 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19651
19652 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19653 Tested by: Seth Goldberg.
19654
19655 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19656
19657 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19658 Properly align mbi.
19659 Reported by: Seth Goldberg.
19660
19661 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19662
19663 * util/grub-mkrescue.in: Avoid module duplication.
19664
19665 2010-07-01 Sean Finney <seanius@seanius.net>
19666
19667 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19668
19669 2010-07-01 Sean Finney <seanius@seanius.net>
19670
19671 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19672
19673 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19674
19675 * disk/lvm.c (grub_lvm_checkvalue): New function.
19676 (grub_lvm_check_flag): Likewise.
19677
19678 2010-07-01 Robert Millan <rmh@gnu.org>
19679
19680 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19681 Support 'p' as partition separator on kernel of FreeBSD (used
19682 with GPT labels).
19683 (grub_util_biosdisk_get_grub_dev): Likewise.
19684
19685 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19686
19687 Yeeloong firmware port.
19688
19689 * boot/mips/yeeloong/fwstart.S: New file.
19690 * bus/cs5536.c (gpiodump): New const.
19691 (set_io_space): New function.
19692 (set_iod): Likewise.
19693 (set_p2d): Likewise.
19694 (grub_cs5536_init_geode): Likewise.
19695 * commands/mips/yeeloong/lsspd.c: New file.
19696 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19697 (serial_mod_SOURCES): New variable.
19698 (serial_mod_CFLAGS): Likewise.
19699 (serial_mod_LDFLAGS): Likewise.
19700 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19701 term/terminfo.c and term/tparm.c.
19702 (pkglib_IMAGES): Add fwstart.img.
19703 (fwstart_img_SOURCES): New variable.
19704 (fwstart_img_CFLAGS): Likewise.
19705 (fwstart_img_ASFLAGS): Likewise.
19706 (fwstart_img_LDFLAGS): Likewise.
19707 (fwstart_img_FORMAT): Likewise.
19708 (pkglib_MODULES): Add lsspd.mod.
19709 (lsspd_mod_SOURCES): New variable.
19710 (lsspd_mod_CFLAGS): Likewise.
19711 (lsspd_mod_LDFLAGS): Likewise.
19712 (pkglib_MODULES): Add halt.mod.
19713 (halt_mod_SOURCES): New variable.
19714 (halt_mod_CFLAGS): Likewise.
19715 (halt_mod_LDFLAGS): Likewise.
19716 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19717 (serial_mod_SOURCES): Removed.
19718 (serial_mod_CFLAGS): Likewise.
19719 (serial_mod_LDFLAGS): Likewise.
19720 * disk/ata.c (check_device): New function.
19721 (grub_ata_device_initialize): Use check_device.
19722 (grub_ata_iterate): Recheck devices.
19723 (grub_ata_open): Likewise.
19724 (grub_atapi_iterate): Likewise.
19725 (grub_atapi_open): Likewise.
19726 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19727 (GRUB_ATA_CH1_PORT1): Likewise.
19728 (GRUB_ATA_CH0_PORT2): Likewise.
19729 (GRUB_ATA_CH1_PORT2): Likewise.
19730 * include/grub/mips/loongson.h: New file.
19731 * include/grub/mips/yeeloong/ec.h: Likewise.
19732 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19733 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19734 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19735 * include/grub/misc.h (grub_halt): Declare as noreturn.
19736 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19737 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19738 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19739 (UART_ENABLE_DTRRTS): Likewise.
19740 (UART_ENABLE_MODEM): Removed.
19741 (UART_ENABLE_OUT2): New const.
19742 * include/grub/term.h (grub_term_register_input_active): New function.
19743 (grub_term_register_output_active): Likewise.
19744 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19745 argument.
19746 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19747 (init_pci): New function.
19748 (grub_machine_init): Execute platform init when firmware. Init serial.
19749 (grub_halt): Implement.
19750 (grub_exit): Likewise.
19751 (grub_reboot): Likewise.
19752 * term/serial.c (serial_hw_init): Update macros.
19753 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19754 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19755 (image_targets): New target mipsel-yeeloong-flash.
19756 (generate_image): Support IMAGE_YEELOONG_FLASH.
19757 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19758 (grub_video_sm712_setup): Init card.
19759 (grub_video_sm712_set_palette): Removed.
19760 * video/sm712_init.c: New file.
19761
19762 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
19763
19764 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19765 PATH when running help2man and then run it on the unadorned
19766 executable names, rather than passing $(builddir)/* paths to
19767 help2man. This avoids the build directory ending up in generated
19768 manual pages.
19769
19770 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19771
19772 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19773 to avoid accidents when debugging with 'sh -x'.
19774 * util/grub-mkrescue.in: Likewise.
19775 * util/grub.d/00_header.in: Likewise.
19776 * util/grub.d/10_hurd.in: Likewise.
19777 * util/grub.d/10_kfreebsd.in: Likewise.
19778 * util/grub.d/10_linux.in: Likewise.
19779 * util/grub.d/10_netbsd.in: Likewise.
19780 * util/grub.d/10_windows.in: Likewise.
19781 * util/grub.d/20_linux_xen.in: Likewise.
19782 * util/grub.d/30_os-prober.in: Likewise.
19783 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19784
19785 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19786
19787 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19788 last character in the buffer.
19789 Reported by: Vladimir Serbinenko.
19790
19791 2010-06-29 Robert Millan <rmh@gnu.org>
19792
19793 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19794 (Command-line and menu entry commands): Document `badram' command.
19795
19796 2010-06-28 Robert Millan <rmh@gnu.org>
19797
19798 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19799 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19800 command using ${GRUB_BADRAM} as parameter.
19801
19802 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19803
19804 * docs/grub.texi (Device map): New section.
19805 (Themes): New section (stub).
19806 * Makefile.in (docs/grub.info): The info documentation now builds
19807 without errors. Make sure it stays that way.
19808
19809 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19810
19811 Use normal parser for menu entries.
19812 Reported by: Thomas Frauendorfer
19813
19814 * include/grub/parser.h (grub_parser_execute): Don't export.
19815 * normal/menu.c (grub_menu_execute_entry_real): New function.
19816 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19817
19818 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19819
19820 * docs/grub.texi (Embedded configuration): New section (replacing
19821 old "Preset Menu" stub).
19822 (Images): New section.
19823 (configfile): Note that any menu entries defined in `file' are shown
19824 immediately.
19825
19826 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19827
19828 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19829
19830 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19831
19832 * util/grub-install.in: Add --debug-image= option.
19833
19834 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19835
19836 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19837 possible on Linux.
19838
19839 * util/deviceiter.c (check_device): Rename to ...
19840 (check_device_readable_unique): ... this. Update all callers.
19841 Maintain and check a list of which devices (by canonicalized name)
19842 have already been seen.
19843 (clear_seen_devices): New function.
19844 (compare_file_names) [__linux__]: New function.
19845 (grub_util_iterate_devices): Clear the list of seen devices on exit
19846 and (just in case) on entry.
19847 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19848 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19849 seen-devices list, superseded by general code in check_device.
19850
19851 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19852
19853 * commands/cat.c (options): New variable.
19854 (grub_cmd_cat): Parse options. If the --dos option is given, print
19855 DOS-style "\r\n" line endings as simple newlines (Debian bug
19856 #586358).
19857 (GRUB_MOD_INIT): Use extcmd.
19858 (GRUB_MOD_FINI): Likewise.
19859 * docs/grub.texi (cat): Document --dos.
19860
19861 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19862
19863 XEN with Linux grub-mkconfig support.
19864
19865 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19866 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19867 GRUB_CMDLINE_XEN_DEFAULT.
19868 * util/grub.d/20_linux_xen.in: New file.
19869
19870 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19871
19872 Initialise VGA video on qemu ourselves.
19873
19874 * boot/i386/qemu/boot.S: Don't call 0xc000.
19875 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19876 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19877 (kernel_img_HEADERS): Add pci.h.
19878 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19879 * configure.ac: Force unifont on qemu and yeeloong.
19880 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19881 (grub_vga_palette_write): Use correct register.
19882 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19883 Call grub_qemu_init_cirrus.
19884 * kern/i386/qemu/init.c: New file.
19885 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19886
19887 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
19888
19889 2010-06-26 Pavel Roskin <proski@gnu.org>
19890
19891 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
19892 13.
19893
19894 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19895
19896 * docs/grub.texi (Simple configuration): Explain that
19897 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
19898 set to `true' to disable their respective recovery entries, not
19899 merely set.
19900
19901 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19902
19903 Make the `source' command slightly faster.
19904
19905 * normal/main.c (grub_normal_execute): Don't re-read list files when
19906 nested.
19907
19908 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19909
19910 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
19911 field position and mask size to red fields from mode_info, not
19912 green.
19913 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
19914 Remove redundant tag->common.framebuffer_type assignment.
19915 Reported by: Seth Goldberg.
19916
19917 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19918
19919 Sync up other versions of the Linux loader with Robert Millan's
19920 change of 2010-01-09, "Make loader output a bit more user-friendly".
19921
19922 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
19923 grub_dprintf().
19924 (grub_cmd_linux): Likewise.
19925 (grub_cmd_initrd): Likewise.
19926 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
19927 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19928
19929 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
19930
19931 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
19932 larger than MEMORY_MAP_SIZE.
19933
19934 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
19935
19936 Fix parallel build.
19937
19938 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
19939 dependency.
19940 * script/parser.y: #include grub_script.tab.h header.
19941
19942 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19943
19944 Support >3GiB and <16MiB RAM in i386-qemu.
19945
19946 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
19947 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
19948 (grub_lower_mem): Removed.
19949 (grub_upper_mem): Likewise.
19950 (mem_size): Made static.
19951 (above_4g): New variable.
19952 (grub_machine_mmap_init): Detect small mem_size and above_4g.
19953 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
19954 support.
19955
19956 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19957
19958 Cirrus 5446 and Bochs video cards support.
19959
19960 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
19961 video_bochs.mod
19962 (video_cirrus_mod_SOURCES): New variable.
19963 (video_cirrus_mod_CFLAGS): Likewise.
19964 (video_cirrus_mod_LDFLAGS): Likewise.
19965 (video_bochs_mod_SOURCES): Likewise.
19966 (video_bochs_mod_CFLAGS): Likewise.
19967 (video_bochs_mod_LDFLAGS): Likewise.
19968 * include/grub/vga.h: New file.
19969 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
19970 (grub_video_fb_set_page_t): New type.
19971 (grub_video_fb_setup): New prototype.
19972 (grub_video_fb_swap_buffers): Likewise.
19973 (grub_video_fb_get_info_and_fini): Likewise.
19974 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
19975 (CRTC_DATA_PORT): Likewise.
19976 (CRTC_CURSOR): Likewise.
19977 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19978 (CRTC_CURSOR_ADDR_LOW): Likewise.
19979 (CRTC_CURSOR_DISABLE): Likewise.
19980 (update_cursor): Use grub_vga_cr_write.
19981 (grub_vga_text_setcursor): Likewise.
19982 * video/bochs.c: New file.
19983 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
19984 (palette): Likewise.
19985 (palette_size): Likewise.
19986 (framebuffer): New variable.
19987 (grub_video_fb_init): Use 'framebuffer'.
19988 (grub_video_fb_fini): Likewise.
19989 (grub_video_fb_get_info): Likewise.
19990 (grub_video_fb_get_palette): Likewise.
19991 (grub_video_fb_set_palette): Likewise.
19992 (grub_video_fb_set_viewport): Likewise.
19993 (grub_video_fb_get_viewport): Likewise.
19994 (grub_video_fb_map_color): Likewise.
19995 (grub_video_fb_map_rgb): Likewise.
19996 (grub_video_fb_map_rgba): Likewise.
19997 (grub_video_fb_unmap_color): Likewise.
19998 (grub_video_fb_unmap_color_int): Likewise.
19999 (grub_video_fb_fill_rect): Likewise.
20000 (grub_video_fb_blit_bitmap): Likewise.
20001 (grub_video_fb_blit_render_target): Likewise.
20002 (grub_video_fb_scroll): Likewise.
20003 (grub_video_fb_create_render_target): Likewise.
20004 (grub_video_fb_doublebuf_blit_init): Likewise.
20005 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20006 (doublebuf_pageflipping_update_screen): New function.
20007 (doublebuf_pageflipping_init): Likewise.
20008 (grub_video_fb_setup): Likewise.
20009 (grub_video_fb_swap_buffers): Likewise.
20010 (grub_video_fb_get_info_and_fini): Likewise.
20011 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20012 All users updated.
20013 (doublebuf_pageflipping_commit): Restructured into ...
20014 (doublebuf_pageflipping_set_page): ... this.
20015 (doublebuf_pageflipping_update_screen): Removed.
20016 (doublebuf_pageflipping_init): Likewise.
20017 (double_buffering_init): Likewise.
20018 (grub_video_vbe_setup): Use grub_video_fb_setup.
20019 (grub_video_vbe_swap_buffers): Removed.
20020 (grub_video_vbe_set_active_render_target): Likewise.
20021 (grub_video_vbe_get_active_render_target): Likewise.
20022 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20023 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20024 grub_video_fb_set_active_render_target and
20025 grub_video_fb_get_active_render_target.
20026 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20027 (SEQUENCER_DATA_PORT): Likewise.
20028 (MAP_MASK_REGISTER): Likewise.
20029 (CRTC_ADDR_PORT): Likewise.
20030 (CRTC_DATA_PORT): Likewise.
20031 (START_ADDR_HIGH_REGISTER): Likewise.
20032 (START_ADDR_LOW_REGISTER): Likewise.
20033 (GRAPHICS_ADDR_PORT): Likewise.
20034 (GRAPHICS_DATA_PORT): Likewise.
20035 (READ_MAP_REGISTER): Likewise.
20036 (INPUT_STATUS1_REGISTER): Likewise.
20037 (INPUT_STATUS1_VERTR_BIT): Likewise.
20038 (get_map_mask): Use grub_vga_sr_read.
20039 (set_map_mask): Use grub_vga_sr_write.
20040 (set_read_map): Use grub_vga_gr_write.
20041 (set_start_address): Use grub_vga_cr_write.
20042 * video/sm712.c (framebuffer): Remove leftover fields.
20043
20044 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20045
20046 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20047 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20048 instead. Replace the gfxterm backend check with a check that
20049 ${GRUB_PREFIX}/video.lst is non-empty.
20050 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20051 again.
20052 (load_video): New generated function. Call it before loading
20053 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20054 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20055 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20056 * docs/grub.texi (Simple configuration): Document
20057 GRUB_VIDEO_BACKEND.
20058
20059 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20060
20061 Use video functions in linux and xnu loaders.
20062
20063 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20064 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20065 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20066 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20067 loader/i386/pc/linux.c.
20068 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20069 (find_line_len): Removed.
20070 (find_framebuf): Likewise.
20071 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20072 * loader/i386/efi/xnu.c: Removed.
20073 * loader/i386/pc/xnu.c: Moved from here...
20074 * loader/i386/xnu.c: ...here.
20075
20076 Enable priorities in video drivers.
20077
20078 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20079 (grub_video_adapter): New field prio.
20080 (grub_video_register): Respect prio when inserting.
20081 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20082 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20083 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20084 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20085 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20086 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20087 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20088
20089 Fix SDL driver ID.
20090
20091 * include/grub/video.h (grub_video_driver_id_t): New value
20092 GRUB_VIDEO_DRIVER_SDL.
20093 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20094
20095 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20096
20097 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20098 argument to printf.
20099 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20100
20101 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20102
20103 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20104 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20105
20106 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20107
20108 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20109 directly, and recommend grub-install instead.
20110 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20111
20112 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20113
20114 Fix i386-pc prefix handling with nested partitions (Debian bug
20115 #585068). Note that the case where the core image is booted using
20116 multiboot and relocated from its original location still requires
20117 more work.
20118
20119 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20120 with "(,", fill the boot drive in between those two characters, but
20121 expect that a full partition specification including partition map
20122 names will follow.
20123 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20124 specified, write a prefix without the drive name but including a
20125 full partition specification.
20126
20127 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20128
20129 * util/grub-mkconfig.in: Ignore non-option arguments, for
20130 compatibility with older versions (before 2010-06-12) which did the
20131 same. In particular, this makes it easier to ship an update-grub
20132 wrapper which is compatible with that used with GRUB Legacy (Debian
20133 bug #586056).
20134
20135 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20136
20137 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20138 for manual page generation.
20139
20140 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20141
20142 * po/POTFILES: Remove leftover commands/handler.c.
20143
20144 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20145
20146 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20147 left this script non-functional.
20148
20149 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20150
20151 * docs/man/grub-emu.h2m: New file.
20152
20153 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20154
20155 * docs/grub.texi (Commands): Document reduced command set in rescue
20156 mode.
20157 (cpuid): New section.
20158
20159 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20160
20161 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20162 new partition naming style.
20163 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20164
20165 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20166
20167 Add "-o grub.iso" like cmdline options support.
20168
20169 * util/grub-install.in: Improve cmdline option parsing.
20170 * util/grub-mkconfig.in: Likewise.
20171 * util/grub-mkrescue.in: Likewise.
20172 * util/grub-reboot.in: Likewise.
20173 * util/grub-set-default.in: Likewise.
20174 * util/i386/efi/grub-install.in: Likewise.
20175 * util/ieee1275/grub-install.in: Likewise.
20176 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20177
20178 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20179
20180 * .bzrignore: Ignore 41_custom.
20181
20182 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20183
20184 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20185
20186 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20187
20188 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20189 prototype declarations.
20190
20191 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20192 generating fs, partmap, and video lists.
20193 * include/grub/fs.h (grub_fs_register): Omit prototype if
20194 GRUB_LST_GENERATOR is defined.
20195 * include/grub/partition.h (grub_partition_map_register): Likewise.
20196 * include/grub/video.h (grub_video_register): Likewise.
20197
20198 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20199
20200 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20201
20202 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20203
20204 * util/grub-mkrescue.in: Support --xorriso argument.
20205
20206 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20207
20208 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20209 Suggested by: Thomas Schmitt.
20210
20211 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20212
20213 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20214 Suggested by: Thomas Schmitt.
20215
20216 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20217
20218 custom.cfg support.
20219
20220 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20221 * util/grub.d/41_custom.in: New file.
20222
20223 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20224
20225 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20226 been merged back into normal.
20227
20228 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20229
20230 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20231 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20232
20233 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20234
20235 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20236 when generating manual pages.
20237 * docs/man/grub-bin2h.h2m: New file.
20238 * docs/man/grub-editenv.h2m: New file.
20239 * docs/man/grub-fstest.h2m: New file.
20240 * docs/man/grub-install.h2m: New file.
20241 * docs/man/grub-macho2img.h2m: New file.
20242 * docs/man/grub-mkconfig.h2m: New file.
20243 * docs/man/grub-mkdevicemap.h2m: New file.
20244 * docs/man/grub-mkfont.h2m: New file.
20245 * docs/man/grub-mkimage.h2m: New file.
20246 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20247 * docs/man/grub-mkrelpath.h2m: New file.
20248 * docs/man/grub-mkrescue.h2m: New file.
20249 * docs/man/grub-ofpathname.h2m: New file.
20250 * docs/man/grub-pe2elf.h2m: New file.
20251 * docs/man/grub-probe.h2m: New file.
20252 * docs/man/grub-reboot.h2m: New file.
20253 * docs/man/grub-script-check.h2m: New file.
20254 * docs/man/grub-set-default.h2m: New file.
20255 * docs/man/grub-setup.h2m: New file.
20256
20257 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20258
20259 Use FOR_* macros instead of *_iterate whenever possible.
20260
20261 * commands/handler.c: Removed.
20262 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20263 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20264 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20265 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20266 (grub_probe_SOURCES): Remove kern/parser.c.
20267 (util/grub-script-check.c_DEPENDENCIES): Removed.
20268 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20269 and grub_script_check_init.c.
20270 (grub_script_check_init.lst): Removed.
20271 (grub_script_check_init.h): Likewise.
20272 (grub_script_check_init.c): Likewise.
20273 (pkglib_MODULES): Remove handler.mod and sh.mod.
20274 (handler_mod_SOURCES): Removed.
20275 (handler_mod_CFLAGS): Likewise.
20276 (handler_mod_LDFLAGS): Likewise.
20277 (normal_mod_SOURCES): Remove normal/handler.c.
20278 Add script/main.c, script/script.c, script/execute.c,
20279 script/function.c, script/lexer.c, grub_script.tab.c
20280 and grub_script.yy.c.
20281 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20282 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20283 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20284 (grub_setup_SOURCES): Remove kern/parser.c.
20285 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20286 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20287 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20288 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20289 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20290 (grub_setup_SOURCES): Remove kern/parser.c.
20291 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20292 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20293 * include/grub/command.h (grub_command_iterate): Removed.
20294 (FOR_COMMANDS): New macro.
20295 * include/grub/dl.h (grub_dl): New member next.
20296 (grub_dl_iterate): Removed.
20297 (grub_dl_head): New variable declaration.
20298 (FOR_DL_MODULES): New macro.
20299 * include/grub/fs.h: Include list.h.
20300 (grub_fs): Make next first element.
20301 (grub_fs_list): New variable declaration.
20302 (grub_fs_register): Make inline.
20303 (grub_fs_unregister): Likewise.
20304 (grub_fs_iterate): Removed.
20305 (FOR_FILESYSTEMS): New macro.
20306 * include/grub/handler.h: Removed.
20307 * include/grub/list.h (grub_list_hook_t): Removed.
20308 (grub_list_test_t): Likewise.
20309 (grub_list_pop): Likewise.
20310 (grub_list_iterate): Likewise.
20311 (grub_list_insert): Likewise.
20312 (FOR_LIST_ELEMENTS): New macro.
20313 * include/grub/parser.h (grub_parser_class): Removed.
20314 (grub_parser_register): Likewise.
20315 (grub_parser_unregister): Likewise.
20316 (grub_parser_get_current): Likewise.
20317 (grub_parser_set_current): Likewise.
20318 (grub_register_rescue_parser): Likewise.
20319 (grub_rescue_parse_line): New function.
20320 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20321 * include/grub/script_sh.h (grub_script_function_list): New variable
20322 declaration.
20323 (FOR_SCRIPT_FUNCTIONS): New macro.
20324 (grub_script_function_iterate): Removed.
20325 (grub_normal_parse_line): New prototype.
20326 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20327 (FOR_DISABLED_TERM_INPUTS): Likewise.
20328 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20329 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20330 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20331 element.
20332 (grub_video_register): Inline.
20333 (grub_video_unregister): Likewise.
20334 (grub_video_adapter_list): New variable declaration.
20335 (grub_video_iterate): Removed.
20336 (FOR_VIDEO_ADAPTERS): New macro.
20337 * kern/dl.c (grub_dl_list): Removed. All users updated.
20338 (grub_dl_iterate): Removed.
20339 * kern/fs.c (grub_fs_list): Make global.
20340 (grub_fs_register): Removed.
20341 (grub_fs_unregister): Likewise.
20342 (grub_fs_iterate): Likewise.
20343 * kern/handler.c: Removed.
20344 * kern/list.c (grub_list_pop): Removed.
20345 (grub_list_iterate): Likewise.
20346 (grub_list_insert): Likewise.
20347 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20348 (grub_prio_list_insert): Don't use grub_list_insert.
20349 * kern/main.c (grub_register_rescue_parser): Don't call
20350 grub_register_rescue_parser.
20351 * kern/parser.c (grub_parser_class): Removed.
20352 (grub_parser_execute): Use grub_rescue_parse_line.
20353 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20354 (grub_rescue_parser): Removed.
20355 (grub_register_rescue_parser): Likewise.
20356 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20357 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20358 (grub_auth_check_authentication): Likewise.
20359 * normal/completion.c (iterate_command): Removed.
20360 (grub_normal_do_completion): Use FOR_COMMANDS.
20361 * normal/handler.c: Removed.
20362 * normal/main.c (read_config_file): Remove parser changing.
20363 (grub_normal_execute): Don't call read_handler_list.
20364 (grub_normal_read_line_real): Statically allocate prompt.
20365 (grub_cmdline_run): Use grub_normal_parse_line.
20366 (GRUB_MOD_FINI): Don't call free_handler_list.
20367 * normal/menu_entry.c (run): Likewise.
20368 * script/function.c (grub_script_function_list): Make global.
20369 (grub_script_function_iterate): Removed.
20370 * script/main.c (grub_normal_parse_line): Make global.
20371 (grub_sh_parser): Removed.
20372 (GRUB_MOD_INIT): Likewise.
20373 (GRUB_MOD_FINI): Likewise.
20374 * tests/lib/functional_test.c (grub_functional_test): Use
20375 FOR_LIST_ELEMENTS.
20376 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20377 (grub_test_run): Use FOR_LIST_ELEMENTS.
20378 * tests/lib/unit_test.c (main): Likewise.
20379 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20380 grub_list_pop.
20381 * util/grub-fstest.c (grub_term_input_class): Removed.
20382 (grub_term_output_class): Likewise.
20383 * util/grub-probe.c: Likewise.
20384 * util/i386/pc/grub-setup.c: Likewise.
20385 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20386 * util/grub-script-check.c (main): Don't call grub_init_all and
20387 grub_fini_all.
20388 * video/video.c (grub_video_adapter_list): Make global.
20389 (grub_video_register): Removed.
20390 (grub_video_unregister): Likewise.
20391 (grub_video_iterate): Likewise.
20392
20393 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20394
20395 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20396 reported by Henrique Ferreiro.
20397
20398 2010-06-09 Robert Millan <rmh@gnu.org>
20399
20400 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20401 ones, when both are available.
20402
20403 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20404
20405 Make --version uniform and avoid hard-coded program name.
20406
20407 * util/grub-mkimage.c (main): Use `program_name' instead of
20408 hard-coded string.
20409 * util/i386/pc/grub-setup.c (main): Likewise.
20410 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20411 * util/grub-install.in: Save the basename of $0 in $self, and use the
20412 latter in informational messages. Use the same format for --version
20413 as the binary programs.
20414 * util/grub-mkconfig.in: Likewise.
20415 * util/grub-mkrescue.in: Likewise.
20416 * util/grub-reboot.in: Likewise.
20417 * util/grub-set-default.in: Likewise.
20418 * util/i386/efi/grub-install.in: Likewise.
20419 * util/ieee1275/grub-install.in: Likewise.
20420 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20421
20422 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20423
20424 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20425 embedding area. Use <= instead of == when checking for non-emptiness.
20426
20427 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20428
20429 * configure.ac: Add `.' to the directories searched for unifont.
20430
20431 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20432
20433 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20434 grub_script.yy.h.
20435
20436 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20437
20438 * docs/grub.texi (History): Expand to cover GRUB 2.
20439 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20440 commands, not `terminal'.
20441 (serial): Likewise.
20442 (terminal_input): New section.
20443 (terminal_output): New section.
20444 (uppermem): New section (stub).
20445 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20446
20447 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20448
20449 * docs/grub.texi (Security): Menu entries are unrestricted by
20450 default, not restricted to superusers as I had previously thought.
20451 Reword to account for this.
20452
20453 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20454
20455 * kern/emu/misc.c (device_mapper_null_log): New function.
20456 (grub_device_mapper_supported): New function.
20457 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20458 prototype.
20459 * kern/emu/hostdisk.c (find_partition_start): Check whether
20460 device-mapper is supported before trying to use it.
20461 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20462
20463 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20464
20465 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20466 (File name syntax): Likewise.
20467 (help): --all is no longer supported in GRUB 2. Be more precise
20468 about pattern matching.
20469
20470 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20471
20472 * normal/completion.c (grub_normal_do_completion): When completing
20473 arguments to "set" and the current word contains an equals sign,
20474 skip to after the equals sign before starting completion.
20475
20476 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20477
20478 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20479
20480 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20481
20482 * docs/grub.texi (Network): New section.
20483 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20484 `(nd)' as in GRUB Legacy.
20485 (pxe_unload): New section.
20486
20487 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20488
20489 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20490 in the rescue shell, so recommend using `set' instead. Thanks,
20491 Jordan Uggla.
20492
20493 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20494
20495 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20496 (password): New section.
20497 (password_pbkdf2): New section.
20498 (search): New section.
20499 (Security): New section.
20500 (Troubleshooting): New section, currently very incomplete.
20501 (Invoking grub-mkpasswd-pbkdf2): New section.
20502 (Internals): New section, currently very incomplete.
20503
20504 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20505
20506 * util/grub.d/00_header.in: Add some more quoting (of
20507 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20508 work again.
20509 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20510
20511 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20512
20513 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20514 to `count', fixing variable shadowing that broke the -c option.
20515
20516 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20517
20518 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20519 in case they contain spaces.
20520
20521 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20522
20523 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20524 "part_" to partmap module names, in line with grub-install.
20525 Reported by: Jindřich Makovička (Debian bug #584426).
20526
20527 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20528
20529 * util/grub-mkimage.c: Make target-related error messages slightly
20530 more helpful; -O talks about "format". Explicitly point to the use
20531 of -O if no target is specified.
20532 Reported by: Didier Raboud (Debian bug #584415).
20533
20534 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20535
20536 * INSTALL: Document several build requirements for optional features
20537 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20538
20539 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20540
20541 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20542 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20543 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20544
20545 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20546
20547 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20548 Thanks to Jordan Uggla for spotting this.
20549
20550 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20551
20552 Finally make USB usable.
20553
20554 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20555 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20556 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20557 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20558 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20559 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20560 (GRUB_OHCI_FSMPS): Likewise.
20561 (GRUB_OHCI_PERIODIC_START): Likewise.
20562 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20563 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20564 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20565 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20566 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20567 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20568 (grub_ohci_transaction): Likewise.
20569 (grub_ohci_transfer): Improve condition detection algorithms.
20570 Handle toggle property. Program the transactions correctly.
20571 Improve error handling. Various important fixups.
20572 (grub_ohci_portstatus): Put register writes in right order.
20573 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20574 (grub_uhci_transfer): Don't show "failed" message on success.
20575 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20576 array.
20577 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20578 determine its size.
20579 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20580 before initialization is completed. Use IN direction for empty
20581 transfers. Use last_trans and compute toggle.
20582 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20583 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20584 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20585 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20586 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20587 (grub_usb_device): Increase toggle to 256.
20588 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20589 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20590 GRUB_USBMS_SUBCLASS_SFF8070.
20591 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20592 (grub_scsi_inquiry): New member page and alloc_length.
20593 (grub_scsi_request_sense): New structure.
20594 (grub_scsi_request_sense_data): Likewise.
20595 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20596 control.
20597 * disk/scsi.c (grub_scsi_request_sense): New function.
20598 (grub_scsi_test_unit_ready): Likewise.
20599 (grub_scsi_inquiry): Fill new fields.
20600 (grub_scsi_read_capacity): Likewise.
20601 (grub_scsi_read10): Add request sense at the end.
20602 (grub_scsi_read12): Likewise.
20603 (grub_scsi_write10): Likewise.
20604 (grub_scsi_write12): Likewise.
20605 (grub_scsi_open): Add Test Unit Ready.
20606 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20607 Support additional subclasses. Con't clear halt yet. Activate the
20608 proper config. Calculate LUNs correctly.
20609 (grub_usbms_transfer): Various important fixups.
20610
20611 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20612
20613 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20614 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20615 (grub_ohci_fini_hw): New function.
20616 (grub_ohci_restore_hw): Likewise.
20617 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20618 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20619 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20620
20621 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20622
20623 Dedicated DMA allocations.
20624
20625 * bus/pci.c (grub_memalign_dma32): New function
20626 (grub_dma_free): Likewise.
20627 (grub_dma_get_virt): Likewise.
20628 (grub_dma_get_phys): Likewise.
20629 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20630 (grub_ohci_pci_iter): Use dma32_alloc.
20631 (grub_ohci_transfer): Likewise.
20632 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20633 (grub_usb_bulk_readwrite): Likewise.
20634 * include/grub/pci.h: Add declarations.
20635
20636 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20637
20638 CS5536 support.
20639
20640 * bus/cs5536.c: New file.
20641 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20642 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20643 (cs5536_mod_SOURCES): New variable.
20644 (cs5536_mod_CFLAGS): Likewise.
20645 (cs5536_mod_LDFLAGS): Likewise.
20646 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20647 machine/pci.h.
20648 (kernel_img_SOURCES): Add bus/cs5536.c.
20649 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20650 usb_keyboard.mod.
20651 (usb_mod_SOURCES): New variable.
20652 (usb_mod_CFLAGS): New variable.
20653 (usb_mod_LDFLAGS): New variable.
20654 (usbtest_mod_SOURCES): New variable.
20655 (usbtest_mod_CFLAGS): New variable.
20656 (usbtest_mod_LDFLAGS): New variable.
20657 (ohci_mod_SOURCES): New variable.
20658 (ohci_mod_CFLAGS): New variable.
20659 (ohci_mod_LDFLAGS): New variable.
20660 (usbms_mod_SOURCES): New variable.
20661 (usbms_mod_CFLAGS): New variable.
20662 (usbms_mod_LDFLAGS): New variable.
20663 (usb_keyboard_mod_SOURCES): New variable.
20664 (usb_keyboard_mod_CFLAGS): New variable.
20665 (usb_keyboard_mod_LDFLAGS): New variable.
20666 * include/grub/smbus.h: New file.
20667 * include/grub/cs5536.h: New file.
20668
20669 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20670
20671 * util/grub.d/00_header.in: Add safety check to make sure that
20672 ${locale_dir} exists before trying to probe it.
20673
20674 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20675
20676 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20677 per the GNU Coding Standards; this is now too obscure to be worth
20678 documenting.
20679 (QNX): Likewise.
20680 (chainloader): Remove cross-reference to `SCO UnixWare'.
20681
20682 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20683
20684 * docs/grub.texi (Chain-loading): New section.
20685 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20686 adjusted for GRUB 2.
20687 (SCO UnixWare): Likewise.
20688 (QNX): Likewise.
20689 (chainloader): Add reference to `Block list syntax'.
20690 (drivemap): New section.
20691 (parttool): New section.
20692
20693 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20694
20695 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20696 the grub shell'.
20697 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20698 (Installing GRUB using grub-install): Remove reference to the grub
20699 shell; mention `grub-mkimage' and `grub-setup' instead.
20700 (Invoking grub-install): Likewise.
20701 (Interface): Add reference to `Menu entry editor'.
20702 (serial): Remove `--device' option.
20703
20704 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20705
20706 * docs/grub.texi (Configuration): New section, documenting
20707 configuration file generation using grub-mkconfig. I've left a slot
20708 for documenting the full shell scripting format but have not yet
20709 started on writing that up.
20710 (Invoking grub-mkconfig): New section.
20711
20712 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20713
20714 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20715 (GNU GRUB manual): Likewise.
20716 (General commands): Update description of `terminfo' for GRUB 2.
20717
20718 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20719
20720 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20721 (GRUB_MOD_INIT): Fix capitalisation.
20722 * docs/grub.texi (Command-line and menu entry commands): Document
20723 gettext and gptsync commands.
20724
20725 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20726
20727 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20728 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20729
20730 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
20731
20732 Add btrfs probing support, currently only in the single-device case.
20733
20734 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20735 function.
20736 (grub_guess_root_device): Call find_root_device_from_mountinfo
20737 before looking in /dev.
20738
20739 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20740
20741 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20742 GRUB_DISK_SIZE_UNKNOWN.
20743 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20744
20745 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
20746
20747 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20748 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20749 corrupted or not synced properly.
20750
20751 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20752
20753 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20754 Reported by: Seth Goldberg.
20755
20756 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20757
20758 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20759 addition of dest.
20760 Reported by: Seth Goldberg.
20761
20762 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20763
20764 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20765 Reported by: Seth Goldberg.
20766
20767 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20768
20769 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20770 64-bit address as signed on MIPS.
20771
20772 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20773
20774 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20775 to the empty string.
20776
20777 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20778
20779 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20780
20781 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20782 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20783 * kern/misc.c (__enable_execute_stack): Disable on
20784 GRUB_MACHINE_EMU.
20785
20786 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20787
20788 Make grub-probe work with symbolic links under /dev/mapper as well
20789 as with real block devices. The Linux world seems to be (at best)
20790 in transition here, and GRUB shouldn't get caught in the middle.
20791
20792 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20793 /dev/mapper.
20794
20795 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20796
20797 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20798 input files (in which case exit zero).
20799
20800 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20801
20802 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20803 return NULL for various reasons even if it has a maximum-length
20804 buffer: for example, there might be a symlink loop, or the path
20805 might exceed PATH_MAX. If this happens, return NULL.
20806
20807 2010-05-27 Robert Millan <rmh@gnu.org>
20808
20809 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20810 partmap module to handle cross-partmap setups.
20811 Reported by Orestes Mas. Gràcies!
20812
20813 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20814
20815 * util/grub-mkrescue.in: Initialise override_dir rather than
20816 assuming that it's unset or empty in the environment.
20817
20818 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20819
20820 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20821 variable index into p_index to suppress a warning with -Wshadow.
20822
20823 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20824
20825 * INSTALL: Added flex >= 2.5.35 requirement.
20826
20827 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20828
20829 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20830
20831 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20832
20833 cmostest support.
20834
20835 * commands/i386/cmostest.c: New file.
20836 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20837 (cmostest_mod_SOURCES): New variable.
20838 (cmostest_mod_CFLAGS): Likewise.
20839 (cmostest_mod_LDFLAGS): Likewise.
20840 * conf/i386-pc.rmk: Likewise.
20841 * docs/grub.texi (Vendor power-on keys): New section.
20842 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20843 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20844 and GRUB_BUTTON_CMOS_ADDRESS.
20845 * util/grub.d/00_header.in: Handle powering-on by separate button.
20846
20847 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20848
20849 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20850 Removed drawing_scrollbar argument. All users updated
20851 Fixes #29792.
20852 Reported by Jo Shields
20853
20854 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20855
20856 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20857 buffer since gfxterm handles double repaint.
20858
20859 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20860
20861 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20862 * term/gfxterm.c (real_scroll): Likewise.
20863
20864 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20865
20866 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20867 before calling BIOS.
20868
20869 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20870
20871 * include/grub/i18n.h: Always enable grub_gettext.
20872
20873 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20874
20875 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20876 partition naming style.
20877
20878 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20879
20880 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20881 not the first option.
20882
20883 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20884
20885 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20886
20887 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20888
20889 * util/misc.c: Move inclusion of <limits.h> to ...
20890 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
20891
20892 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
20893
20894 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
20895 Fix merge error in NetBSD code.
20896 (find_partition_start) [__NetBSD__]: Likewise.
20897
20898 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
20899
20900 Fix grub-mkrescue usage unit testing.
20901
20902 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
20903
20904 2010-05-18 Christian Franke <franke@computer.org>
20905
20906 * util/grub.d/10_windows.in: Use path names instead of
20907 drive letters to prevent warning from Cygwin 1.7.
20908 Add drivemap command to menuentry if needed.
20909
20910 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
20911
20912 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
20913 gnumach and gnumach.gz.
20914
20915 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20916
20917 * include/grub/i18n.h (gettext): Inline instead of using #define.
20918 (grub_gettext): Likewise.
20919 (_): Likewise.
20920
20921 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20922
20923 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
20924 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
20925 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
20926 (main): Add a slash after pkglibdirroot.
20927
20928 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20929
20930 * util/grub-install.in: Add missing "in" keyword.
20931
20932 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20933
20934 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
20935 Reported by: Seth Goldberg.
20936
20937 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20938
20939 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
20940
20941 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20942
20943 * configure.ac: Check for Linux device-mapper support.
20944
20945 * util/hostdisk.c (device_is_mapped): New function.
20946 (find_partition_start): New function, partly broken out from
20947 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
20948 device-mapper support added.
20949 (linux_find_partition): Use find_partition_start.
20950 (convert_system_partition_to_system_disk): Add `st' argument.
20951 Support Linux /dev/mapper/* devices if device-mapper support is
20952 available; only DM-RAID devices are understood at present.
20953 (find_system_device): Add `st' argument. Pass it to
20954 convert_system_partition_to_system_disk.
20955 (grub_util_biosdisk_get_grub_dev): Pass stat result to
20956 find_system_device and convert_system_partition_to_system_disk. Use
20957 find_partition_start.
20958
20959 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
20960 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
20961 * util/deviceiter.c [__linux__]: Define MINOR.
20962 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
20963 * util/mkdevicemap.c (grub_putchar): New function.
20964 (grub_getkey): New function.
20965 (grub_refresh): New function.
20966 (main): Set debug=all if -v -v is used.
20967
20968 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20969
20970 Fix build with non-GNU libcs.
20971
20972 * util/misc.c (canonicalize_file_name): Move to ...
20973 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
20974 grub_make_system_path_relative_to_its_root.
20975
20976 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20977
20978 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
20979 we handle finding grub-mkimage. Default to finding grub-mkimage in
20980 ${bindir} with program_transform_name applied, and provide a
20981 --grub-mkimage option to override this.
20982
20983 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20984
20985 Remove grub-mkisofs.
20986
20987 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
20988 (grub_mkisofs_SOURCES): Removed.
20989 (grub_mkisofs_CFLAGS): Removed.
20990 * util/mkisofs/defaults.h: Removed.
20991 * util/mkisofs/eltorito.c: Likewise.
20992 * util/mkisofs/exclude.h: Likewise.
20993 * util/mkisofs/hash.c: Likewise.
20994 * util/mkisofs/include/: Likewise.
20995 * util/mkisofs/include/fctldefs.h: Likewise.
20996 * util/mkisofs/include/mconfig.h: Likewise.
20997 * util/mkisofs/include/prototyp.h: Likewise.
20998 * util/mkisofs/include/statdefs.h: Likewise.
20999 * util/mkisofs/iso9660.h: Likewise.
21000 * util/mkisofs/joliet.c: Likewise.
21001 * util/mkisofs/match.c: Likewise.
21002 * util/mkisofs/match.h: Likewise.
21003 * util/mkisofs/mkisofs.c: Likewise.
21004 * util/mkisofs/mkisofs.h: Likewise.
21005 * util/mkisofs/msdos_partition.h: Likewise.
21006 * util/mkisofs/multi.c: Likewise.
21007 * util/mkisofs/name.c: Likewise.
21008 * util/mkisofs/rock.c: Likewise.
21009 * util/mkisofs/tree.c: Likewise.
21010 * util/mkisofs/write.c: Likewise.
21011
21012 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21013
21014 Unify grub-mkimage accross platforms.
21015
21016 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21017 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21018 (grub_mkelfimage_SOURCES): Removed.
21019 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21020 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21021 (bin_UTILITIES): Add grub-mkimage.
21022 (grub_mkimage_SOURCES): New variable.
21023 (kernel_img_HEADERS): Remove machine/kernel.h.
21024 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21025 (pkglib_PROGRAMS): Add kernel.img.
21026 (kernel_img_HEADERS): Add machine/kernel.h.
21027 (kernel_img_FORMAT): Removed.
21028 (bin_UTILITIES): Remove grub-mkimage.
21029 (grub_mkimage_SOURCES): Removed.
21030 (grub_mkimage_CFLAGS): Likewise.
21031 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21032 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21033 (pkglib_PROGRAMS): Add kernel.img.
21034 (bin_UTILITIES): Remove grub-mkimage.
21035 (grub_mkimage_SOURCES): Removed.
21036 (grub_mkimage_CFLAGS): Likewise.
21037 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21038 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21039 (pkglib_PROGRAMS): Add kernel.img.
21040 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21041 (pkglib_PROGRAMS): Add kernel.img.
21042 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21043 (grub_mkimage_SOURCES): Removed.
21044 (grub_mkimage_CFLAGS): Likewise.
21045 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21046 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21047 (pkglib_PROGRAMS): Add kernel.img.
21048 (bin_UTILITIES): Remove grub-mkimage.
21049 (grub_mkimage_SOURCES): Removed.
21050 (grub_mkimage_CFLAGS): Likewise.
21051 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21052 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21053 (grub_mkimage_SOURCES): Removed.
21054 (grub_mkimage_CFLAGS): Likewise.
21055 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21056 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21057 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21058 (grub_pe32_optional_header): ... this.
21059 (grub_pe64_optional_header): ... and this. All users updated.
21060 (GRUB_PE32_PE32_MAGIC): Split into ..
21061 (GRUB_PE32_PE32_MAGIC): .. this.
21062 (GRUB_PE32_PE64_MAGIC): .. and this.
21063 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21064 * include/grub/elf.h (PT_GNU_STACK): New definition.
21065 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21066 * include/grub/i386/efi/kernel.h: Likewise.
21067 * include/grub/i386/kernel.h: Likewise.
21068 * include/grub/i386/pc/kernel.h: Likewise.
21069 * include/grub/i386/qemu/boot.h: Likewise.
21070 * include/grub/mips/kernel.h: Likewise.
21071 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21072 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21073 * include/grub/powerpc/kernel.h: Likewise.
21074 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21075 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21076 * include/grub/sparc64/kernel.h: Likewise.
21077 * include/grub/x86_64/efi/kernel.h: Likewise.
21078 * include/grub/x86_64/kernel.h: Likewise.
21079 * include/grub/offsets.h: New file.
21080 * include/grub/kernel.h (grub_module_info): Split into ...
21081 (grub_module_info32): ... this.
21082 (grub_module_info64): ... and this.
21083 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21084 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21085 (grub_boot_blocklist): Moved from here ...
21086 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21087 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21088 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21089 * include/grub/types.h (grub_target_to_host16): Removed.
21090 (grub_target_to_host32): Likewise.
21091 (grub_target_to_host64): Likewise.
21092 (grub_host_to_target16): Likewise.
21093 (grub_host_to_target32): Likewise.
21094 (grub_host_to_target64): Likewise.
21095 (grub_host_to_target_addr): Likewise.
21096
21097 Support grub-mkrescue for efi, coreboot and qemu.
21098
21099 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21100 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21101 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21102 * util/grub-mkrawimage.c: Moved from here ...
21103 * util/grub-mkimage.c: ... here. All users updated.
21104 (ALIGN_ADDR): Use image_target.
21105 (TARGET_NO_FIELD): New const.
21106 (image_target_desc): New type.
21107 (image_targets): New array.
21108 (grub_target_to_host64): Use image_target.
21109 (grub_target_to_host32): Likewise.
21110 (grub_target_to_host16): Likewise.
21111 (grub_host_to_target64): Likewise.
21112 (grub_host_to_target32): Likewise.
21113 (grub_host_to_target16): Likewise.
21114 (grub_host_to_target_addr): Likewise.
21115 (generate_image): Handle multiimage.
21116 (main): Require -O parameter. All users updated.
21117 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21118 util/efi/grub-mkimage.c
21119 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21120 New option --rom-directory.
21121 Use xorriso.
21122 * util/i386/efi/grub-mkimage.c: Removed.
21123 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21124 (grub_target_to_host32): Likewise.
21125 (grub_target_to_host64): Likewise.
21126 (grub_host_to_target16): Likewise.
21127 (grub_host_to_target32): Likewise.
21128 (grub_host_to_target64): Likewise.
21129 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21130 (grub_target_to_host32): Likewise.
21131 (grub_target_to_host64): Likewise.
21132 (grub_host_to_target16): Likewise.
21133 (grub_host_to_target32): Likewise.
21134 (grub_host_to_target64): Likewise.
21135
21136 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21137
21138 Source tree is reorganized for emu build.
21139
21140 * include/grub/util/console.h: Move from here...
21141 * include/grub/emu/console.h: ...to here.
21142 * include/grub/util/getroot.h: Move from here...
21143 * include/grub/emu/getroot.h: ...to here.
21144 * include/grub/util/hostdisk.h: Move from here...
21145 * include/grub/emu/hostdisk.h: ...to here.
21146 * util/console.c: Move from here...
21147 * kern/emu/console.c: ...to here.
21148 * util/getroot.c: Move from here...
21149 * kern/emu/getroot.c: ...to here.
21150 * util/grub-emu.c: Move from here...
21151 * kern/emu/main.c: ...to here.
21152 * util/hostdisk.c: Move from here...
21153 * kern/emu/hostdisk.c: ...to here.
21154 * util/hostfs.c: Move from here...
21155 * kern/emu/hostfs.c: ...to here.
21156 * util/mm.c: Move from here...
21157 * kern/emu/mm.c: ...to here.
21158 * util/pci.c: Move from here...
21159 * bus/emu/pci.c: ...to here.
21160 * util/sdl.c: Move from here...
21161 * video/emu/sdl.c: ...to here.
21162 * util/time.c: Move from here...
21163 * kern/emu/time.c: ...to here.
21164 * util/usb.c: Move from here...
21165 * bus/usb/emu/usb.c: ...to here.
21166
21167 * include/grub/emu/misc.h: New header for grub-emu functions.
21168 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21169
21170 * conf/any-emu.rmk: Rule updates for above renames.
21171 * conf/common.rmk: Likewise.
21172 * conf/i386-pc.rmk: Likewise.
21173 * conf/i386-qemu.rmk: Likewise.
21174 * conf/mips.rmk: Likewise.
21175 * conf/sparc64-ieee1275.rmk: Likewise.
21176 * conf/x86-efi.rmk: Likewise.
21177
21178 * disk/lvm.h: #include updates for above renames.
21179 * util/grub-mkrelpath.c: Likewise.
21180 * util/grub-probe.c: Likewise.
21181 * util/i386/pc/grub-setup.c: Likewise.
21182 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21183 * kern/emu/console.c: Likewise.
21184 * kern/emu/getroot.c: Likewise.
21185 * kern/emu/hostdisk.c: Likewise.
21186 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21187
21188 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21189 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21190 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21191 * util/misc.c: Remove grub-emu functions.
21192
21193 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21194
21195 Fix gfxmenu crash.
21196 Reported by: Thorsten Grützmacher.
21197
21198 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21199 timeout hook.
21200 (circprog_set_property): Register and unregister timeout hook.
21201 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21202 (label_destroy): Free template. and unregister hook.
21203 (label_set_state): New function.
21204 (label_set_property): Handle templates and hooks.
21205 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21206 timeout hook.
21207 (progress_bar_set_property): Register and unregister timeout hook.
21208 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21209 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21210 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21211 (update_timeout_visit): Removed.
21212 (update_timeouts): New function.
21213 (redraw_timeouts): Likewise.
21214 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21215 (grub_gfxmenu_clear_timeout): Likewise.
21216 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21217 (grub_gfxmenu_timeout_notify): Likewise.
21218 (grub_gfxmenu_timeout_notifications): New external variable.
21219 (grub_gfxmenu_timeout_register): New function.
21220 (grub_gfxmenu_timeout_unregister): Likewise.
21221
21222 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21223
21224 Transform (broken) vga terminal into (working) vga video driver.
21225
21226 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21227 video/i386/pc/vga.c.
21228 * include/grub/video.h (grub_video_driver_id):
21229 Add GRUB_VIDEO_DRIVER_VGA.
21230 * term/i386/pc/vga.c: Renamed to ...
21231 * video/i386/pc/vga.c: ...this
21232 (DEBUG_VGA): Removed.
21233 (CHAR_WIDTH): Likewise.
21234 (CHAR_HEIGHT): Likewise.
21235 (TEXT_WIDTH): Likewise.
21236 (TEXT_HEIGHT): Likewise.
21237 (DEFAULT_FG_COLOR): Likewise.
21238 (DEFAULT_BG_COLOR): Likewise.
21239 (colored_char): Likewise.
21240 (xpos): Likewise.
21241 (ypos): Likewise.
21242 (cursor_state): Likewise.
21243 (fg_color): Likewise.
21244 (bg_color): Likewise.
21245 (text_buf): Likewise.
21246 (page): Likewise.
21247 (font): Likewise.
21248 (framebuffer): New variable.
21249 (set_read_map): Disabled.
21250 (setup): New variable.
21251 (is_target): Likewise.
21252 (grub_vga_mod_init): Likewise.
21253 (grub_vga_mod_fini): Likewise.
21254 (check_vga_mem): Likewise.
21255 (write_char): Likewise.
21256 (write_cursor): Likewise.
21257 (scroll_up): Likewise.
21258 (grub_vga_putchar): Likewise.
21259 (grub_vga_getcharwidth): Likewise.
21260 (grub_vga_getwh): Likewise.
21261 (grub_vga_getxy): Likewise.
21262 (grub_vga_gotoxy): Likewise.
21263 (grub_vga_cls): Likewise.
21264 (grub_vga_setcolorstate): Likewise.
21265 (grub_vga_setcursor): Likewise.
21266 (grub_video_vga_init): New function.
21267 (grub_video_vga_setup): Likewise.
21268 (grub_video_vga_fini): Likewise.
21269 (update_target): Likewise.
21270 (grub_video_vga_blit_bitmap): Likewise.
21271 (grub_video_vga_blit_render_target): Likewise.
21272 (grub_video_vga_set_active_render_target): Likewise.
21273 (grub_video_vga_get_active_render_target): Likewise.
21274 (grub_video_vga_swap_buffers): Likewise.
21275 (grub_video_vga_set_palette): Likewise.
21276 (grub_video_vga_get_info_and_fini): Likewise.
21277 (grub_vga_term): Removed.
21278 (grub_video_vga_adapter): New variable.
21279 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21280 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21281
21282 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21283
21284 * video/readers/jpeg.c: Indented.
21285
21286 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21287
21288 Various jpeg cleanups.
21289
21290 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21291 (grub_jpeg_decode_quan_table): Use sizeof.
21292 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21293
21294 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21295
21296 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21297 tables. Ignore non-last ac bit.
21298 (grub_jpeg_decode_quan_table): Likewise.
21299
21300 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21301
21302 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21303 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21304 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21305 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21306 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21307 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21308
21309 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21310
21311 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21312 error.
21313
21314 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21315
21316 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21317
21318 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21319
21320 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21321 condition.
21322
21323 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21324
21325 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21326 part.
21327
21328 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21329
21330 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21331 pointers.
21332
21333 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21334
21335 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21336
21337 2010-05-01 Christian Franke <franke@computer.org>
21338
21339 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21340 Remove broken Cygwin path conversion.
21341 * util/misc.c: [__CYGWIN__] Add include and define.
21342 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21343 for Cygwin 1.7.
21344 (make_system_path_relative_to_its_root): Simplify loop, replace early
21345 return by break.
21346 [__CYGWIN__] Add conversion to win32 path.
21347 Include "/" case in trailing slash removal.
21348
21349 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21350
21351 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21352 Reported by: Seth Goldberg
21353
21354 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21355
21356 * commands/help.c (grub_cmd_help): Fix a typo.
21357 Reported by: Seth Goldberg
21358
21359 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21360
21361 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21362 name and add N_.
21363 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21364 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21365 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21366 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21367 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21368 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21369 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21370 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21371 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21372 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21373 * normal/context.c (GRUB_MOD_INIT): Likewise.
21374 * normal/main.c (GRUB_MOD_INIT): Likewise.
21375 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21376 * term/serial.c (GRUB_MOD_INIT): Likewise.
21377 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21378
21379 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21380
21381 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21382 extra == 0.
21383
21384 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21385
21386 * commands/iorw.c: New file.
21387 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21388 (iorw_mod_SOURCES): New variable.
21389 (iorw_mod_CFLAGS): Likewise.
21390 (iorw_mod_LDFLAGS): Likewise.
21391
21392 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21393
21394 Hotkey support
21395
21396 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21397 * normal/main.c (hotkey_aliases): New variable.
21398 (grub_normal_add_menu_entry): Parse "--hotkey".
21399 * normal/menu_text.c (run_menu): Handle hotkeys.
21400
21401 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21402
21403 * kern/i386/coreboot/init.c (grub_machine_init): Call
21404 grub_machine_mmap_init on qemu.
21405
21406 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21407
21408 * boot/i386/qemu/boot.S: Add a missing .code16.
21409
21410 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21411
21412 Use LBIO on coreboot.
21413
21414 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21415 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21416 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21417 New declaration.
21418 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21419 grub_machine_mmap_init on coreboot.
21420 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21421 GRUB_LINUXBIOS_MEMBER_LINK.
21422 (grub_machine_mmap_iterate): Fix declaration.
21423 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21424
21425 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21426
21427 Split coreboot and multiboot ports.
21428
21429 * conf/i386-multiboot.rmk: New file.
21430 * configure.ac: Add multiboot port.
21431 * include/grub/i386/multiboot/boot.h: New file.
21432 * include/grub/i386/multiboot/console.h: Likewise.
21433 * include/grub/i386/multiboot/init.h: Likewise.
21434 * include/grub/i386/multiboot/kernel.h: Likewise.
21435 * include/grub/i386/multiboot/loader.h: Likewise.
21436 * include/grub/i386/multiboot/memory.h: Likewise.
21437 * include/grub/i386/multiboot/serial.h: Likewise.
21438 * include/grub/i386/multiboot/time.h: Likewise.
21439 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21440 * loader/multiboot.c: Likewise.
21441 * loader/multiboot_mbi2.c: Likewise.
21442 * util/grub-mkrescue.in: Generate multiboot rescue.
21443
21444 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21445
21446 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21447
21448 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21449
21450 Merge handling of input and output terminals. Fix a hang.
21451
21452 * commands/terminal.c (abstract_terminal): New struct.
21453 (handle_command): New function. Based on grub_cmd_terminal_input.
21454 (grub_cmd_terminal_input): Use handle_command.
21455 (grub_cmd_terminal_output): Use handle_command.
21456
21457 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21458
21459 Fix comment handling.
21460
21461 * tests/grub_script_comments.in: New testcase.
21462 * conf/tests.rmk: Rules for new testcase.
21463 * script/yylex.l: Updated flex rules.
21464
21465 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21466
21467 * docs/grub.texi (play): Document that zero pitches produce rests.
21468 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21469 if argc is 1.
21470
21471 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21472
21473 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21474 autogen issues.
21475
21476 2010-04-26 Christian Franke <franke@computer.org>
21477
21478 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21479 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21480 (grub_get_prefix): Remove function.
21481 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21482 make_system_path_relative_to_its_root ().
21483 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21484
21485 2010-04-24 Christian Franke <franke@computer.org>
21486
21487 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21488 (kernel_img_LDFLAGS): Remove -static-libgcc.
21489
21490 2010-04-24 Christian Franke <franke@computer.org>
21491
21492 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21493 and CHECK_END_SYMBOL if grub-emu is built.
21494 Unset TARGET_OBJ2ELF if grub-emu is built
21495 without module support.
21496
21497 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21498
21499 Nilfs2 support.
21500
21501 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21502 (grub_fstest_SOURCES): Likewise.
21503 (pkglib_MODULES): Add nilfs2.mod.
21504 (nilfs2_mod_SOURCES): New variable.
21505 (nilfs2_mod_CFLAGS): Likewise.
21506 (nilfs2_mod_LDFLAGS): Likewise.
21507 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21508 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21509 * fs/nilfs2.c: New file.
21510
21511 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21512
21513 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21514 is not supported.
21515
21516 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21517
21518 Add grub-mkconfig support for NetBSD.
21519
21520 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21521 * util/grub-mkconfig.in: export new NetBSD specific variables.
21522 * po/POTFILES-shell: added 10_netbsd.in.
21523 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21524
21525 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21526
21527 Fix emu build with grub-emu-pci and grub-emu-modules.
21528
21529 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21530 functions.
21531 * include/grub/libpciaccess.h: New file.
21532 * conf/any-emu.rmk: Update kernel headers for emu build.
21533
21534 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21535
21536 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21537
21538 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21539
21540 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21541
21542 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21543
21544 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21545 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21546 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21547 util/ieee1275/ofpath.c.
21548 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21549 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21550 * include/grub/sparc64/ieee1275/boot.h
21551 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21552 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21553 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21554 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21555 const char *.
21556 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21557 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21558 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21559 install.
21560
21561 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21562
21563 * util/grub-mkconfig.in: Corrected two == equality tests.
21564 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21565 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21566 expect a number appended to it.
21567 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21568 expects a number appended to it.
21569
21570 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21571
21572 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21573
21574 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21575
21576 * util/hostdisk.c (make_device_name): Change to new partition naming.
21577
21578 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21579
21580 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21581
21582 2010-04-17 Christian Franke <franke@computer.org>
21583
21584 * Makefile.in: Add missing localedir setting.
21585
21586 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21587
21588 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21589 mistake in r2156. Noticed by Anthony Fok.
21590
21591 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21592 @localedir@.
21593 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21594
21595 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21596
21597 Fix a spurious, uninitialized variable warning.
21598
21599 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21600 Initialize variable, shdr.
21601 (grub_freebsd_load_elfmodule): Likewise.
21602 (grub_freebsd_load_elf_meta): Likewise.
21603
21604 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21605
21606 Fix for escaped dollar in double quoted strings.
21607
21608 * script/yylex.l: Updated flex rules.
21609 * conf/tests.rmk: Rule for new testcase.
21610 * tests/grub_script_dollar.in: New testcase.
21611
21612 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21613 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21614
21615 Enclose all translated strings in grub.cfg in single quotes, and
21616 escape them appropriately (Ubuntu bug #552921).
21617
21618 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21619 * util/grub.d/10_hurd.in: Use it.
21620 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21621 * util/grub.d/10_linux.in (linux_entry): Likewise.
21622
21623 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21624
21625 Fix cygwin compilation.
21626
21627 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21628 * include/grub/misc.h (__register_frame_info)
21629 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21630 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21631 * kern/misc.c (__register_frame_info)
21632 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21633 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21634
21635 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21636
21637 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21638
21639 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21640
21641 Unify libgcc processing.
21642
21643 * Makefile.in (kernel_img_LDFLAGS): New variable.
21644 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21645 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21646 overwriting.
21647 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21648 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21649 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21650 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21651 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21652 overwriting. Remove -lgcc and -static-libgcc
21653 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21654 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21655 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21656 (kernel_img_LDFLAGS): Append instead of overwriting.
21657 Remove -lgcc and -static-libgcc
21658 * conf/sparc64-ieee1275.rmk: Likewise.
21659 * include/grub/powerpc/libgcc.h: Move to ...
21660 * include/grub/libgcc.h: .. this.
21661 * include/grub/libgcc.h: Don't export most of the function on x86.
21662 (__bswapsi2): New export.
21663 (__bswapdi2): Likewise.
21664 * include/grub/mips/libgcc.h: Removed.
21665 * include/grub/sparc64/libgcc.h: Likewise.
21666
21667 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21668
21669 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21670 disk_info_msg (conflicts with gettexting into languages with cases).
21671
21672 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21673
21674 Add grub-probe support for NetBSD.
21675
21676 * util/getroot.c (find_root_device): Convert block device to
21677 character device on NetBSD.
21678 * util/probe.c (probe): Require character device on NetBSD.
21679 * util/hostdisk.c: NetBSD specific headers.
21680 (configure_device_driver): new function to tune device driver
21681 parameters (currently only for NetBSD floppy driver).
21682 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21683 via disklabel ioctl).
21684 (open_device): call configure_device_driver on NetBSD.
21685 (convert_system_partition_to_system_disk): NetBSD specific code.
21686 (device_is_wholedisk): Likewise.
21687 (grub_util_biosdisk_get_grub_dev): Likewise.
21688 (make_device_name): Fixed a typo in bsd_part_str.
21689 * configure.ac: check for opendisk() and getrawpartition() on
21690 NetBSD and set LIBUTIL.
21691 * Makefile.in: add LIBUTIL to LIBS.
21692
21693 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21694
21695 Documentation fix.
21696
21697 * util/grub-script-check.c: Better help message.
21698
21699 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21700
21701 Fix FreeBSD build.
21702
21703 * configure.ac: Flex version check.
21704 * conf/common.rmk: Add -Wno-error to sh.mod.
21705 * script/yylex.l: Remove all #pragma.
21706
21707 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21710 prototype.
21711 Reported by: Seth Goldberg.
21712
21713 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21716 Rename "module" to "module2".
21717 Reported by: Seth Goldberg.
21718
21719 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21720
21721 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21722 EXPORT_FUNC.
21723 Reported by: Seth Goldberg.
21724
21725 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21726
21727 * lib/posix_wrap/locale.h: Add missing file.
21728 Reported by: Seth Goldberg.
21729
21730 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21731
21732 grub-emu module load support.
21733
21734 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21735 NO_DYNAMIC_MODULES switched to this.
21736 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21737 (CFLAGS): Likewise.
21738 * conf/any-emu.rmk: Generate symlist.
21739 (kernel_img_HEADERS): Add util/datetime.h.
21740 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21741 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21742 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21743 kern/$(target_cpu)/cache.S.
21744 * configure.ac (grub-emu-modules): New option.
21745 * genmk.rb: Handle multiple source lists.
21746 * include/grub/sdl.h: New file.
21747 * include/grub/libusb.h: Likewise.
21748 * util/grub-emu.c (main): Hanle (host) root.
21749 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21750 GRUB_ERR_UNKNOWN_DEVICE.
21751 * util/misc.c: Move mm functions to ...
21752 * util/mm.c: ... here. All users updated.
21753
21754 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21755
21756 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21757 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21758 missing files.
21759 (maintainer-clean): Remove libgcrypt-grub.
21760
21761 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21762
21763 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21764
21765 2010-04-09 EFI Coder <eficoder@hotmail.com>
21766
21767 * normal/menu_text.c (print_message): Clean up the message and show
21768 the Fn information when on EFI
21769 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21770
21771 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21772
21773 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21774 All users updated.
21775 * normal/crypto.c (read_crypto_list): Likewise.
21776 * normal/dyncmd.c (read_command_list): Likewise.
21777 * normal/term.c (read_terminal_list): Likewise.
21778 * normal/main.c (read_lists): Use explicit prefix.
21779 (read_lists_hook): Use read_lists.
21780 (grub_normal_execute): Likewise.
21781
21782 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21783
21784 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21785 Reported by: Thomas Schmitt.
21786 Add -no-emul-boot to grub-mkisofs parameters.
21787
21788 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21789
21790 * font/font.c: Indented.
21791
21792 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21793
21794 Elif support to GRUB script (by Deepak Vankadaru).
21795
21796 * tests/grub_script_if.in: New testcase.
21797 * conf/tests.rmk: Rule for new testcase.
21798 * script/parser.y: Grammar rules for elif.
21799
21800 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21801
21802 While and until loops support to GRUB script.
21803
21804 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21805 (grub_script_create_cmdwhile): New function prototype.
21806 (grub_script_execute_cmdwhile): New function prototype.
21807 * script/execute.c (grub_script_execute_cmdwhile): New function.
21808 * script/parser.y (command): New commands.
21809 (whilecmd): New grammar rule.
21810 (untilcmd): New grammar rule.
21811 * script/script.c (grub_script_create_cmdwhile): New function.
21812 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21813 function.
21814
21815 * tests/grub_script_while1.in: New testcase.
21816 * conf/tests.rmk: Rule for new testcase.
21817
21818 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21819
21820 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21821 as *.jpg.
21822
21823 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21824
21825 GRUB_BACKGROUND support.
21826
21827 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21828 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21829
21830 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21831
21832 Load fonts and modules for gfxmenu in grub-mkconfig.
21833 Idea by: Mario Vazquez
21834
21835 * util/grub.d/00_header.in: Load pf2 and image modules.
21836
21837 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21838
21839 grub-mkconfig multiple terminal support.
21840
21841 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21842 * util/grub.d/00_header.in: Likewise.
21843
21844 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21845
21846 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21847 we use cd $(srcdir).
21848
21849 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21850
21851 * util/grub.d/10_linux.in: Only use the first word of
21852 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21853 spaces in GRUB_DISTRIBUTOR.
21854 * util/grub.d/10_kfreebsd.in: Likewise.
21855 * util/grub.d/10_hurd.in: Likewise.
21856
21857 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21858
21859 Fix unit testing framework for Qemu 0.12.
21860
21861 * tests/util/grub-shell.in: Remove -serial stdio option.
21862
21863 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21864
21865 POSIX header file wrappers.
21866
21867 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21868 equivalents.
21869 * lib/posix_wrap/ctype.h: Likewise.
21870 * lib/posix_wrap/errno.h: Likewise.
21871 * lib/posix_wrap/langinfo.h: Likewise.
21872 * lib/posix_wrap/limits.h: Likewise.
21873 * lib/posix_wrap/localcharset.h: Likewise.
21874 * lib/posix_wrap/stdint.h: Likewise.
21875 * lib/posix_wrap/stdio.h: Likewise.
21876 * lib/posix_wrap/stdlib.h: Likewise.
21877 * lib/posix_wrap/string.h: Likewise.
21878 * lib/posix_wrap/sys/types.h: Likewise.
21879 * lib/posix_wrap/unistd.h: Likewise.
21880 * lib/posix_wrap/wchar.h: Likewise.
21881 * lib/posix_wrap/wctype.h: Likewise.
21882 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21883 (grub_script.yy.h): Likewise.
21884 * script/yylex.l: Remove POSIX emulation #defines.
21885 * Makefile.in (POSIX_CFLAGS): New variable.
21886 (GNULIB_UTIL_CFLAGS): Likewise.
21887
21888 Regexp support.
21889
21890 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
21891 (regexp_mod_SOURCES): New variable.
21892 (regexp_mod_CFLAGS): Likewise.
21893 (regexp_mod_LDFLAGS): Likewise.
21894 * commands/regexp.c: New file.
21895 * gnulib/regcomp.c: New file. Imported from gnulib.
21896 * gnulib/regex.c: Likewise.
21897 * gnulib/regex_internal.c: Likewise.
21898 * gnulib/regex_internal.h: Likewise.
21899 * gnulib/regexec.c: Likewise.
21900 * gnulib/regex.h: Likewise.
21901
21902 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21903
21904 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
21905 unsupported video mode types.
21906
21907 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21908
21909 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
21910
21911 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21912
21913 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
21914 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
21915
21916 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21917
21918 Remove unused grub_vga_get_font.
21919
21920 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
21921 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
21922
21923 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21924
21925 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
21926 * include/grub/misc.h: Likewise.
21927
21928 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21929
21930 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
21931 for which failure is fatal.
21932
21933 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21934
21935 * util/grub-install.in: Use mkdir -p to create grub directory.
21936 * util/i386/efi/grub-install.in: Likewise.
21937 * util/ieee1275/grub-install.in: Likewise.
21938
21939 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21940
21941 * Makefile.in (LEX): new variable.
21942
21943 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21944
21945 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
21946 `=' and added double quotes on operands of this equality test.
21947
21948 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21949
21950 * Makefile.in (uninstall): Remove a leftover debug echo.
21951 Reported by: Grégoire Sutre
21952
21953 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21954
21955 MIPS multiboot2 support.
21956
21957 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
21958 (multiboot2_mod_SOURCES): New variable.
21959 (multiboot2_mod_CFLAGS): Likewise.
21960 (multiboot2_mod_LDFLAGS): Likewise.
21961 (multiboot2_mod_ASFLAGS): Likewise.
21962 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
21963 definition.
21964 (MULTIBOOT_ENTRY_REGISTER): Likewise.
21965 (MULTIBOOT_MBI_REGISTER): Likewise.
21966 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
21967 (MULTIBOOT_ELF32_MACHINE): Likewise.
21968 (MULTIBOOT_ELF64_MACHINE): Likewise.
21969 * include/grub/mips/multiboot.h: New file.
21970 * include/grub/video.h (grub_video_driver_id): New type
21971 GRUB_VIDEO_DRIVER_SM712.
21972 (grub_video_get_info_and_fini): Export.
21973 (grub_video_get_palette): Likewise.
21974 (grub_video_get_driver_id): Likewise.
21975 * include/multiboot2.h: Resynced with spec.
21976 * loader/i386/multiboot.c: Moved from here ...
21977 * loader/multiboot.c: ... here. All users updated.
21978 (grub_multiboot_boot): Use platform-specific macros.
21979 * loader/i386/multiboot_elfxx.c: Moved from here ...
21980 * loader/multiboot_elfxx.c: ... here. All users updated.
21981 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
21982 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
21983 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
21984
21985 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
21986
21987 Import gnulib argp module.
21988
21989 * gnulib/argp-ba.c: New file.
21990 * gnulib/argp-eexst.c: Likewise.
21991 * gnulib/argp-fmtstream.c: Likewise.
21992 * gnulib/argp-fmtstream.h: Likewise.
21993 * gnulib/argp-fs-xinl.c: Likewise.
21994 * gnulib/argp-help.c: Likewise.
21995 * gnulib/argp-namefrob.h: Likewise.
21996 * gnulib/argp-parse.c: Likewise.
21997 * gnulib/argp-pin.c: Likewise.
21998 * gnulib/argp-pv.c: Likewise.
21999 * gnulib/argp-pvh.c: Likewise.
22000 * gnulib/argp-version-etc.c: Likewise.
22001 * gnulib/argp-version-etc.h: Likewise.
22002 * gnulib/argp-xinl.c: Likewise.
22003 * gnulib/argp.h: Likewise.
22004
22005 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22006
22007 * kern/device.c (grub_device_iterate): Clear errors after failed
22008 opening device.
22009
22010 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22011
22012 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22013 returned by firmware.
22014
22015 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22016
22017 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22018 compilation on coreboot and qemu
22019
22020 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22021
22022 * include/multiboot2.h: Resync with spec.
22023
22024 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22025
22026 Multiboot2 tag support
22027
22028 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22029 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22030 Remove loader/multiboot_loader.c.
22031 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22032 (grub_multiboot2_real_boot): Likewise.
22033 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22034 (grub_get_multiboot_mmap_count): New proto.
22035 (grub_fill_multiboot_mmap): Likewise.
22036 (grub_multiboot_set_video_mode): Likewise.
22037 (grub_multiboot_set_console): Likewise.
22038 (grub_multiboot_load): Likewise.
22039 (grub_multiboot_load_elf): Likewise.
22040 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22041 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22042 * include/multiboot.h: Resynced with specification.
22043 * include/multiboot2.h: Resynced with specification.
22044 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22045 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22046 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22047 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22048 users updated.
22049 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22050 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22051 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22052 Removed.
22053 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22054 Moved from here...
22055 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22056 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22057 Moved from here...
22058 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22059 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22060 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22061 All users updated.
22062 * loader/i386/multiboot_mbi2.c: New file.
22063
22064 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22065
22066 Resync with gnulib.
22067
22068 * Makefile.in (GNULIB_CFLAGS): New variable.
22069 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22070 (grub_script_check_CFLAGS): New variable.
22071 * gnulib/alloca.h: Resync with gnulib.
22072 * gnulib/error.c: Likewise.
22073 * gnulib/error.h: Likewise.
22074 * gnulib/fnmatch.c: Likewise.
22075 * gnulib/fnmatch_loop.c: Likewise.
22076 * gnulib/getdelim.c: Likewise.
22077 * gnulib/getline.c: Likewise.
22078 * gnulib/getopt.c: Likewise.
22079 * gnulib/getopt1.c: Likewise.
22080 * gnulib/getopt_int.h: Likewise.
22081 * gnulib/gettext.h: Likewise.
22082 * gnulib/progname.c: Likewise.
22083 * gnulib/progname.h: Likewise.
22084
22085 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22086
22087 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22088 which is the case with --disabled-nls.
22089
22090 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22091 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22092 * util/misc.c: Likewise.
22093 * util/mkisofs/mkisofs.c: Likewise.
22094 * util/mkisofs/mkisofs.h: Likewise.
22095
22096 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22097
22098 Simplify Apple CC support.
22099
22100 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22101 Add 0 byte at the end not to have a symbol with empty target.
22102 * mmap/i386/pc/mmap_helper.S: Likewise.
22103 * genmk.rb: Ignore errors 2030 and 2050.
22104 * kern/i386/pc/startup.S: Use LOCAL when possible.
22105
22106 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22107
22108 Testcase and the fix for final semicolon on cmdline.
22109
22110 * tests/grub_script_final_semicolon.in: New testcase.
22111 * conf/tests.rmk: Rules for the new testcase.
22112 * script/parser.y: Grammar fix.
22113
22114 2010-03-26 BVK Chaitanya <bvk@localhost>
22115
22116 Blank lines testcase for GRUB script.
22117
22118 * tests/grub_script_blanklines.in: New testcase.
22119 * conf/tests.rmk: Rules for the new testcase.
22120
22121 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22122
22123 Don't use __FILE__.
22124
22125 * genmk.rb: Add -DGRUB_FILE to all C targets.
22126 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22127 * include/grub/list.h: Likewise.
22128 * include/grub/misc.h: Likewise.
22129 * include/grub/mm.h: Likewise.
22130 * include/grub/test.h: Likewise.
22131 * kern/mm.c: Likewise.
22132 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22133
22134 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22135
22136 Sunpc partitions support.
22137
22138 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22139 (grub_fstest_SOURCES): Likewise.
22140 (pkglib_MODULES): Add part_sunpc.mod.
22141 (part_sunpc_mod_SOURCES): New variable.
22142 (part_sunpc_mod_CFLAGS): Likewise.
22143 (part_sunpc_mod_LDFLAGS): Likewise.
22144 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22145 * partmap/sunpc.c: New file.
22146
22147 2010-03-26 BVK Chaitanya <bvk@localhost>
22148
22149 For loop support to GRUB script.
22150
22151 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22152 (grub_script_create_cmdfor): New function prototype.
22153 (grub_script_execute_cmdfor): New function prototype.
22154 * script/execute.c (grub_script_execute_cmdfor): New function.
22155 * script/parser.y (command): New for command.
22156 (forcmd): New grammar rule.
22157 * script/script.c (grub_script_create_cmdfor): New function.
22158 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22159 function.
22160 * tests/grub_script_for1.in: New testcase.
22161 * conf/tests.rmk: Rules for new testcase.
22162
22163 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22164
22165 Nested partitions
22166
22167 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22168 'partition' is NULL, grub_partition_get_start already does that.
22169 * commands/loadenv.c (check_blocklists): Likewise.
22170 (write_blocklists): Likewise.
22171 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22172 (grub_fstest_SOURCES): Likewise.
22173 (pkglib_MODULES): Add part_bsd.mod.
22174 (part_bsd_mod_SOURCES): New variable.
22175 (part_bsd_mod_CFLAGS): Likewise.
22176 (part_bsd_mod_LDFLAGS): Likewise.
22177 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22178 (grub_emu_SOURCES): Likewise.
22179 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22180 * include/grub/bsdlabel.h: New file.
22181 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22182 'get_name'.
22183 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22184 (grub_partition_map_list): New variable.
22185 (grub_partition_map_register): Inline.
22186 (grub_partition_map_unregister): Likewise.
22187 (FOR_PARTITION_MAPS): New macro.
22188 (grub_partition_map_iterate): Removed.
22189 (grub_partition_get_start): Handle nested partitions.
22190 * include/grub/msdos_partition.h: Remove bsd-related entries.
22191 (grub_pc_partition): Remove.
22192 * kern/disk.c (grub_disk_close): Free partition data.
22193 (grub_disk_adjust_range): Handle nested partitions.
22194 * kern/partition.c (grub_partition_map_probe): New function.
22195 (grub_partition_probe): Parse name to number, handle subpartitions.
22196 (get_partmap): New function.
22197 (grub_partition_iterate): Handle subpartitions.
22198 (grub_partition_get_name): Likewise.
22199 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22200 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22201 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22202 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22203 Set 'number'.
22204 (acorn_partition_map_probe): Remove.
22205 (acorn_partition_map_get_name): Likewise.
22206 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22207 Set 'number'.
22208 Set 'index' to 0 since there can be only one partition entry per sector.
22209 (amiga_partition_map_probe): Remove.
22210 (amiga_partition_map_get_name): Likewise.
22211 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22212 Set 'number'.
22213 Set 'offset' and 'index' to real positions of partitions.
22214 (apple_partition_map_probe): Remove.
22215 (apple_partition_map_get_name): Likewise.
22216 * partmap/bsdlabel.c: New file.
22217 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22218 Set 'number'.
22219 Allocate 'data' so it can be correctly freed.
22220 Set 'index' to offset inside sector.
22221 (gpt_partition_map_probe): Remove.
22222 (gpt_partition_map_get_name): Likewise.
22223 * partmap/msdos.c (grub_partition_parse): Remove.
22224 (pc_partition_map_iterate): Don't force raw access.
22225 Set 'number'.
22226 Make 'ext_offset' a local variable.
22227 (pc_partition_map_probe): Remove.
22228 (pc_partition_map_get_name): Remove.
22229 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22230 Set 'number'.
22231 (sun_partition_map_probe): Remove.
22232 (sun_partition_map_get_name): Likewise.
22233 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22234 (grub_pcpart_type): Likewise.
22235 * util/hostdisk.c (open_device): Handle new numbering scheme.
22236 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22237 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22238 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22239 * util/grub-install.in: Insert all subpartition modules.
22240 * util/ieee1275/grub-install.in: Likewise.
22241
22242 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22243
22244 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22245 grammar.
22246
22247 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22248
22249 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22250
22251 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22252
22253 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22254 match where 'make install' puts them.
22255 * util/i386/efi/grub-install.in: Likewise.
22256
22257 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22258
22259 * .bzrignore: Add gentrigtables, grub-script-check,
22260 grub_script_check_init.c, grub_script_check_init.h, and
22261 trigtables.c.
22262
22263 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22264
22265 * kern/parser.c: Indented.
22266
22267 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22268
22269 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22270
22271 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22272
22273 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22274 alpha_mask_size == 0 case.
22275
22276 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22277
22278 GRUB shell lexer and parser improvements.
22279
22280 * conf/any-emu.rmk: Build rule updates.
22281 * conf/common.rmk: Likewise.
22282 * conf/i386-coreboot.rmk: Likewise.
22283 * conf/i386-efi.rmk: Likewise.
22284 * conf/i386-ieee1275.rmk: Likewise.
22285 * conf/i386-pc.rmk: Likewise.
22286 * conf/powerpc-ieee1275.rmk: Likewise.
22287 * conf/x86_64-efi.rmk: Likewise.
22288
22289 * configure.ac: Configure check for flex.
22290
22291 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22292 types.
22293 (grub_lexer_param): Struct member updates.
22294 (grub_parser_param): Likewise.
22295 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22296 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22297 (grub_script_lexer_init): Prototype update.
22298 (grub_script_lexer_record_start): Likewise.
22299 (grub_script_lexer_record_stop): Likewise.
22300 (grub_script_lexer_yywrap): New function prototype.
22301 (grub_script_lexer_fini): Likewise.
22302 (grub_script_execute_argument_to_string): Removed by...
22303 (grub_script_execute_argument_to_argv): ...better version.
22304
22305 * script/execute.c (ROUND_UPTO): New macro.
22306 (grub_script_execute_cmdline): Out of memory fixes.
22307 (grub_script_execute_menuentry): Likewise.
22308 (grub_script_execute_argument_to_string): Removed. Update all
22309 users by...
22310 (grub_script_execute_argument_to_argv): ...better version.
22311 * script/function.c (grub_script_function_create): Use
22312 grub_script_execute_argument_to_argv instead of
22313 grub_script_execute_argument_to_string.
22314
22315 * script/lexer.c (check_varstate): Removed.
22316 (check_textstate): Removed.
22317 (grub_script_lexer_record_start): Likewise.
22318 (grub_script_lexer_record_stop): Likewise.
22319 (recordchar): Replaced with...
22320 (grub_script_lexer_record): ...new function.
22321 (nextchar): Removed.
22322 (grub_script_lexer_init): Rewritten.
22323 (grub_script_yylex): Rewritten.
22324 (append_newline): New function.
22325 (grub_script_lexer_yywrap): New function.
22326 (grub_script_lexer_fini): New function.
22327 (grub_script_yyerror): Sets error flag.
22328
22329 * script/yylex.l: New file.
22330 (grub_lexer_yyfree): Wrapper for flex yyffre.
22331 (grub_lexer_yyalloc): Likewise.
22332 (grub_lexer_yyrealloc): Likewise.
22333 * script/parser.y: Refactored.
22334
22335 * script/script.c (grub_script_arg_add): Out of memory fixes.
22336 (grub_script_add_arglist): Likewise.
22337 (grub_script_create_cmdline): Likewise.
22338 (grub_script_create_cmdmenu): Likewise.
22339 (grub_script_add_cmd): Likewise.
22340 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22341 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22342 unnecessary code.
22343
22344 * tests/grub_script_echo1.in: New testcase.
22345 * tests/grub_script_vars1.in: New testcase.
22346 * tests/grub_script_echo_keywords.in: New testcase.
22347
22348 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22349
22350 Remove some redundancy in build system.
22351
22352 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22353 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22354 (TARGET_LDFLAGS): Add -nostdlib.
22355 (TARGET_IMG_LDFLAGS): Likewise.
22356 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22357 anything since mmap isn't available.
22358 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22359 Add util/time.c.
22360 (pkglib_MODULES): Remove reboot.mod.
22361 (reboot_mod_SOURCES): Removed.
22362 (reboot_mod_CFLAGS): Likewise.
22363 (reboot_mod_LDFLAGS): Likewise.
22364 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22365 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22366 (DEFSYMFILES): Add kernel_syms.lst.
22367 (kernel_img_HEADERS): Add common headers.
22368 (symlist.c): New target.
22369 (kernel_syms.lst): Likewise.
22370 (pkglib_MODULES): Add memdisk.mod.
22371 (memdisk_mod_SOURCES): New variable.
22372 (memdisk_mod_CFLAGS): Likewise.
22373 (memdisk_mod_LDFLAGS): Likewise.
22374 (pkglib_MODULES): Add reboot.mod.
22375 (reboot_mod_SOURCES): New variable.
22376 (reboot_mod_CFLAGS): Likewise.
22377 (reboot_mod_LDFLAGS): Likewise.
22378 (pkglib_MODULES): Add date.mod.
22379 (date_mod_SOURCES): New variable.
22380 (date_mod_CFLAGS): Likewise.
22381 (date_mod_LDFLAGS): Likewise.
22382 (pkglib_MODULES): Add datehook.mod.
22383 (datehook_mod_SOURCES): New variable.
22384 (datehook_mod_CFLAGS): Likewise.
22385 (datehook_mod_LDFLAGS): Likewise.
22386 (pkglib_MODULES): Add lsmmap.mod.
22387 (lsmmap_mod_SOURCES): New variable.
22388 (lsmmap_mod_CFLAGS): Likewise.
22389 (lsmmap_mod_LDFLAGS): Likewise.
22390 (pkglib_MODULES): Add boot.mod.
22391 (boot_mod_SOURCES): New variable.
22392 (boot_mod_CFLAGS): Likewise.
22393 (boot_mod_LDFLAGS): Likewise.
22394 * conf/i386-coreboot.rmk: Removed redundant parts.
22395 * conf/i386-ieee1275.rmk: Likewise.
22396 * conf/i386-pc.rmk: Likewise.
22397 * conf/mips-yeeloong.rmk: Likewise.
22398 * conf/mips.rmk: Likewise.
22399 * conf/powerpc-ieee1275.rmk: Likewise.
22400 * conf/sparc64-ieee1275.rmk: Likewise.
22401 * conf/x86_64-efi.rmk: Likewise.
22402 * conf/i386-coreboot.rmk: Moved qemu parts ..
22403 * conf/i386-qemu.rmk: ... here
22404 * conf/i386-efi.rmk: Moved common parts to...
22405 * conf/x86-efi.rmk: ... here.
22406 * conf/i386.rmk: Added modules common to all x86 variants.
22407 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22408 * disk/memdisk.c: Remove grub/machine/kernel.h.
22409 * gensymlist.sh.in: Include symbol.h.
22410 * hook/datehook.c: Correct module name.
22411 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22412 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22413 * include/grub/i386/efi/serial.h: New file.
22414 * include/grub/x86_64/efi/serial.h: Likewise.
22415 * util/time.c: Likewise.
22416 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22417
22418 2010-03-14 Colin King <colin.king@ubuntu.com>
22419 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22420
22421 Shrink the pre-partition-table part of boot.img by eight bytes.
22422
22423 * boot/i386/pc/boot.S (ERR): New macro.
22424 (chs_mode): Use ERR.
22425 (geometry_error): Likewise.
22426 (hd_probe_error): Remove. This is only used once, so we wrwite
22427 it inline instead.
22428 (read_error): Instead of printing read_error_string, just set up
22429 %si and fall through to ...
22430 (error_message): ... this new function, also used by ERR.
22431
22432 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22433
22434 Speed up consecutive hostdisk operations on the same device.
22435
22436 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22437 (grub_util_biosdisk_open): Initialise disk->data.
22438 (struct linux_partition_cache): New structure.
22439 (linux_find_partition): Cache partition start positions; these are
22440 expensive to compute on every read and write.
22441 (open_device): Cache open file descriptor in disk->data, so that we
22442 don't have to reopen it and flush the buffer cache for consecutive
22443 operations on the same device.
22444 (grub_util_biosdisk_close): New function.
22445 (grub_util_biosdisk_dev): Set `close' member.
22446
22447 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22448 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22449 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22450 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22451 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22452
22453 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22454
22455 Compile parts of grub-emu as modules.
22456
22457 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22458 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22459 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22460 (all-local): Add $(GRUB_EMU).
22461 (install-local): Install $(GRUB_EMU).
22462 (uninstall): Uninstall $(GRUB_EMU).
22463 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22464 * kern/dl.c: Likewise.
22465 * commands/sleep.c: Not include machine/time.h.
22466 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22467 (COMMON_CFLAGS): Likewise.
22468 (sbin_UTILITIES): Remove grub-emu.
22469 (grub_emu_SOURCES): Removed.
22470 (kernel_img_RELOCATABLE): New variable.
22471 (pkglib_PROGRAMS): Add kernel.img.
22472 (kernel_img_SOURCES): New variable
22473 (kernel_img_CFLAGS): Likewise.
22474 (kernel_img_LDFLAGS): Likewise.
22475 (TARGET_NO_STRIP): Likewise.
22476 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22477 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22478 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22479 (grub-emu): New target.
22480 (GRUB_EMU): New variable.
22481 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22482 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22483 * loader/xnu.c: Likewise.
22484 * include/grub/pci.h: Likewise.
22485 * genemuinit.sh: New file.
22486 * genemuinitheader.sh: Likewise.
22487 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22488 Support TARGET_NO_DYNAMIC_MODULES.
22489 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22490 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22491 * disk/loopback.c: Likewise.
22492 * font/font_cmd.c: Likewise.
22493 * partmap/acorn.c: Likewise.
22494 * partmap/amiga.c: Likewise.
22495 * partmap/apple.c: Likewise.
22496 * partmap/gpt.c: Likewise.
22497 * partmap/msdos.c: Likewise.
22498 * partmap/sun.c: Likewise.
22499 * parttool/msdospart.c: Likewise.
22500 * term/gfxterm.c: Likewise.
22501 * video/bitmap.c: Likewise.
22502 * video/readers/jpeg.c: Likewise.
22503 * video/readers/png.c: Likewise.
22504 * video/readers/tga.c: Likewise.
22505 * video/video.c: Likewise.
22506 * util/grub-emu.c (read_command_list): Removed.
22507 (main): Don't call util_init_nls.
22508 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22509 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22510
22511 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22512
22513 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22514 date.mod, datehook.mod.
22515 (datetime_mod_SOURCES): New variable.
22516 (datetime_mod_CFLAGS): Likewise.
22517 (datetime_mod_LDFLAGS): Likewise.
22518 (date_mod_SOURCES): Likewise.
22519 (date_mod_CFLAGS): Likewise.
22520 (date_mod_LDFLAGS): Likewise.
22521 (datehook_mod_SOURCES): Likewise.
22522 (datehook_mod_CFLAGS): Likewise.
22523 (datehook_mod_LDFLAGS): Likewise.
22524 * conf/sparc64-ieee1275.rmk: Likewise.
22525 * lib/ieee1275/datetime.c: New file.
22526
22527 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22528
22529 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22530 (ieee1275_fb_mod_SOURCES): New variable.
22531 (ieee1275_fb_mod_CFLAGS): Likewise.
22532 (ieee1275_fb_mod_LDFLAGS): Likewise.
22533 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22534 New proto.
22535 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22536 (HEAP_MAX_ADDR): Likewise.
22537 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22538 type.
22539 Correct stop condition.
22540 (grub_ieee1275_devices_iterate): New function.
22541 * video/ieee1275.c: New file.
22542
22543 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22544
22545 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22546
22547 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22548 as scratch.
22549 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22550 SCRATCH_PAD_DISKBOOT as scratch.
22551 (bootit): Pass Openfirmware pointer in %o4.
22552 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22553 of 0x200000.
22554 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22555 with util/grub-mkrawimage.c.
22556 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22557 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22558 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22559 (grub_aout_load) [GRUB_UTIL]: Likewise.
22560 * include/grub/kernel.h (grub_modules_get_end): New proto.
22561 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22562 (SCRATCH_PAD_BOOT): New definition.
22563 (SCRATCH_PAD_DISKBOOT): Likewise.
22564 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22565 * include/grub/sparc64/ieee1275/ieee1275.h
22566 (grub_ieee1275_original_stack): New variable
22567 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22568 New definition
22569 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22570 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22571 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22572 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22573 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22574 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22575 (grub_platform_image_format_t): New type.
22576 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22577 * kern/main.c (grub_modules_get_end)
22578 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22579 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22580 (codestart): Switch stacks.
22581 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22582 variable.
22583 (grub_heap_init): Use grub_modules_get_end.
22584 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22585 stack.
22586 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22587 (main): Likewise.
22588 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22589
22590 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22591
22592 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22593
22594 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22595
22596 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22597 bug #559005).
22598
22599 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22600
22601 * genmoddep.awk: Output all missing symbols and not only first.
22602
22603 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22604
22605 * NEWS: Put the date of 1.98 release.
22606
22607 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22608
22609 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22610 ft2build.h.
22611
22612 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22613
22614 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22615 completition in the middle of string.
22616
22617 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22618
22619 * util/grub-mkrescue.in: Use mktemp with explicit template.
22620
22621 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22622
22623 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22624
22625 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22626
22627 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22628 right pointer.
22629
22630 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22631
22632 Fix FreeBSD compilation.
22633
22634 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22635 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22636
22637 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22638
22639 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22640
22641 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22642
22643 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22644
22645 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22646
22647 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22648
22649 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22650
22651 Support relative image path in theme file.
22652
22653 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22654 (image_set_property): Handle theme_dir and relative path.
22655
22656 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22657
22658 * configure.ac: Alias amd64 to x86_64.
22659
22660 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22661
22662 * NEWS: mention multiboot on EFI.
22663
22664 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22665
22666 * kern/main.c (grub_load_modules): Handle errors from init functions of
22667 embeded modules.
22668
22669 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22670
22671 * normal/autofs.c (autoload_fs_module): Handle errors.
22672
22673 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22674
22675 Disable linux.mod on qemu-mips since it's not functional and leads
22676 to compilation failure.
22677
22678 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22679 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22680 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22681 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22682 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22683 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22684 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22685 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22686 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22687 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22688 Reported by: BVK Chaitanya
22689
22690 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22691
22692 * INSTALL: Add gettext as a dependency and add qemu to a new section
22693 "Prerequisites for make-check".
22694
22695 2010-03-04 Christian Franke <franke@computer.org>
22696
22697 * util/grub-pe2elf.c: Add missing include "progname.h".
22698
22699 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22700
22701 * normal/crypto.c (read_crypto_list): Fix a typo.
22702 Reported by: Seth Goldberg.
22703
22704 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22705
22706 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22707 Reported by: Seth Goldberg.
22708
22709 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22710
22711 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22712 ascii.bitmaps.
22713
22714 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22715
22716 * genmk.rb: Remove terminal*.lst in make clean.
22717 Reported by: Seth Goldberg.
22718
22719 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22720
22721 * util/i386/efi/grub-install.in: Copy gettext files.
22722
22723 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22724
22725 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22726
22727 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22728
22729 Wait for user entry basing on presence of output rather than on errors.
22730
22731 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22732 (grub_install_newline_hook): Likewise.
22733 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22734 * normal/menu.c (show_menu): Check line_counter to determine presence
22735 of output.
22736 * normal/term.c (grub_normal_line_counter): New variable.
22737 (grub_normal_get_line_counter): New function.
22738 (grub_install_newline_hook): Likewise.
22739
22740 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22741
22742 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22743
22744 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22745
22746 * configure.ac: Update version to 1.98.
22747
22748 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22749
22750 * util/grub.d/10_linux.in (linux_entry): Don't default to
22751 gfxpayload=keep if Linux doesn't support video handover.
22752
22753 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22754
22755 Don't compile video modules on yeeloong since video subsystem is part
22756 of kernel.
22757
22758 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22759 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22760 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22761 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22762 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22763 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22764 * include/grub/bitmap_scale.h: Likewise.
22765 * include/grub/bufio.h: Likewise.
22766 * include/grub/font.h: Likewise.
22767 * include/grub/gfxterm.h: Likewise.
22768 * include/grub/video.h: Likewise.
22769 * include/grub/vbe.h: Don't include video_fb.h.
22770 * video/i386/pc/vbe.c: Include video_fb.h.
22771 * commands/i386/pc/vbetest.c: Include video.h.
22772
22773 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22774
22775 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22776 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22777 default entry if GRUB_SAVEDEFAULT=true. This allows using
22778 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22779 saving a new default on every boot.
22780
22781 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22782
22783 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22784 * normal/term.c (read_terminal_list): Likewise.
22785 * normal/main.c (grub_normal_init_page): Likewise.
22786 (grub_normal_read_line_real): Likewise.
22787
22788 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22789
22790 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22791 memory leak.
22792 Reported by: Seth Goldberg.
22793
22794 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22795
22796 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22797 duplicate declaration of `start'.
22798
22799 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22800
22801 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22802 filename.
22803 Reported by: Georgy Buranov
22804
22805 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22806
22807 * util/grub-mkrawimage.c (usage): Change string formatting to
22808 improve gettext.
22809
22810 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22811
22812 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22813 backspace keys.
22814
22815 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22816
22817 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22818 Reported by: Michael Suchanek.
22819
22820 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22821
22822 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22823 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22824
22825 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22826
22827 Remove any reference to non-free fonts.
22828
22829 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22830 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22831 uses non-free components.
22832 * font/font.c (grub_font_get_name): Remove example name.
22833 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22834 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22835 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22836 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22837
22838 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22839
22840 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22841
22842 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22843
22844 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22845 Double divisor.
22846 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22847 features.
22848 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22849
22850 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22851
22852 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22853
22854 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22855
22856 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22857 * docs/grub.texi (Command-line and menu entry commands): Document play
22858 command.
22859
22860 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22861
22862 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22863 parse arguments as inline tempo and notes. Move code for playing notes
22864 to...
22865 (play): ... new function.
22866
22867 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22868
22869 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22870 grub_uint16_t instead of short.
22871 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22872 disk from little endian to cpu endianness.
22873
22874 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22875
22876 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22877 GRUB_TICKS_PER_SECOND instead of 120.
22878
22879 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22880
22881 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22882 escape sequence after \e.
22883
22884 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22885
22886 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
22887 non-ASCII characters.
22888
22889 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22890
22891 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
22892 set root in single quotes to prevent \, from being unescaped.
22893
22894 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22895
22896 Prevent unknown commands from stopping menuentry execution.
22897
22898 * script/execute.c (grub_script_execute_cmdline): Print error after
22899 unknown command.
22900
22901 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22902
22903 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
22904 Reported by: Pavel Pisa.
22905
22906 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22907
22908 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
22909
22910 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22911
22912 Merge grub_ieee1275_map_physical into grub_map and rename to
22913 grub_ieee1275_map
22914
22915 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
22916 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
22917 Remove.
22918 * kern/ieee1275/openfw.c (grub_map): Rename to ...
22919 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
22920 necessary.
22921 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
22922
22923 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22924
22925 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
22926 opening and not after.
22927
22928 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22929
22930 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
22931 constants.
22932
22933 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22934
22935 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
22936 (alloc_phys): Use ALIGN_UP instead of align_addr.
22937
22938 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22939
22940 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
22941
22942 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22943
22944 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
22945
22946 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22947
22948 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
22949 verbose dprintf.
22950
22951 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22952
22953 Fix over-4GiB seek on sparc64.
22954
22955 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
22956 Replace pos_i and pos_lo with pos. All users updated.
22957 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22958 New constant.
22959 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22960 Likewise.
22961 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
22962 and pos_lo.
22963
22964 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22965
22966 * util/grub-mkrawimage.c (main): Call set_program_name.
22967
22968 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22969
22970 Properly align 64-bit targets.
22971
22972 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
22973 (generate_image): Use ALIGN_ADDR.
22974
22975 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22976
22977 Properly create cross-endian images.
22978
22979 * include/grub/types.h (grub_host_to_target_addr): New macro
22980 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
22981
22982 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22983
22984 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
22985
22986 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22987
22988 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
22989
22990 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
22991 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
22992 (grub_linux_boot): Divide by 64K when on VESA.
22993
22994 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22995
22996 Support GRUB_GFXPAYLOAD_LINUX.
22997
22998 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
22999 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23000
23001 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23002
23003 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23004 to show messages instead of discarding them.
23005 Process errors after executing command and not before. Keep old method
23006 too as precaution.
23007
23008 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23009
23010 * configure.ac: Check for ft2build.h.
23011
23012 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23013
23014 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23015
23016 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23017
23018 * genkernsyms.sh.in: Use TARGET_CC.
23019
23020 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23021
23022 * NEWS: Update.
23023
23024 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23025
23026 * include/grub/multiboot2.h: Remove leftover file.
23027 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23028 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23029
23030 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23031
23032 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23033
23034 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23035
23036 Fix warnings in grub-emu when compiling with maximum warning options.
23037
23038 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23039 (grub_arch_modules_addr): Return 0 and not NULL.
23040 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23041 (xstrdup): Use newstr instead of dup.
23042 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23043 of disk to dsk to avoid shadowing.
23044 (find_free_slot): Fix prototype.
23045 * util/getroot.c (grub_util_is_dmraid): Make static.
23046 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23047 Add missing prototype.
23048 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23049
23050 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23051
23052 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23053 appropriately.
23054
23055 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23056
23057 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23058 code out.
23059
23060 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23061
23062 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23063 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23064 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23065 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23066 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23067 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23068
23069 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23070
23071 * include/grub/err.h (grub_err_printf): Don't export.
23072
23073 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23074
23075 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23076
23077 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23078
23079 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23080 * kern/misc.c (grub_gettext_dummy): Make static.
23081
23082 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23083
23084 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23085 by non-valid ones.
23086 * kern/term.c (grub_putchar): Likewise.
23087
23088 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23089
23090 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23091 buggy hook call and memory leak.
23092
23093 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23094
23095 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23096
23097 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23098
23099 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23100
23101 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23102
23103 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23104 modevar.
23105 Return grub_errno on allocation error.
23106
23107 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23108
23109 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23110
23111 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23112
23113 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23114 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23115
23116 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23117
23118 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23119 non-pxe disk.
23120 (grub_pxefs_open): Likewise.
23121
23122 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23123
23124 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23125 * util/grub.d/10_kfreebsd.in: Likewise.
23126 * util/grub.d/10_linux.in: Likewise.
23127
23128 2010-02-06 Colin D Bennett <colin@gibibit.com>
23129
23130 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23131 (gfxmenu_mod_SOURCES): New variable.
23132 (gfxmenu_mod_CFLAGS): Likewise.
23133 (gfxmenu_mod_LDFLAGS): Likewise.
23134 * include/grub/term.h (grub_term_set_current_output): Declare
23135 argument as const.
23136 * docs/gfxmenu-theme-example.txt: New file.
23137 * gfxmenu/gfxmenu.c: Likewise.
23138 * gfxmenu/gui_box.c: Likewise.
23139 * gfxmenu/gui_canvas.c: Likewise.
23140 * gfxmenu/gui_circular_progress.c: Likewise.
23141 * gfxmenu/gui_image.c: Likewise.
23142 * gfxmenu/gui_label.c: Likewise.
23143 * gfxmenu/gui_list.c: Likewise.
23144 * gfxmenu/gui_progress_bar.c: Likewise.
23145 * gfxmenu/gui_string_util.c: Likewise.
23146 * gfxmenu/gui_util.c: Likewise.
23147 * gfxmenu/icon_manager.c: Likewise.
23148 * gfxmenu/model.c: Likewise.
23149 * gfxmenu/named_colors.c: Likewise.
23150 * gfxmenu/theme_loader.c: Likewise.
23151 * gfxmenu/view.c: Likewise.
23152 * gfxmenu/widget-box.c: Likewise.
23153 * include/grub/gfxmenu_model.h: Likewise.
23154 * include/grub/gfxmenu_view.h: Likewise.
23155 * include/grub/gfxwidgets.h: Likewise.
23156 * include/grub/gui.h: Likewise.
23157 * include/grub/gui_string_util.h: Likewise.
23158 * include/grub/icon_manager.h: Likewise.
23159
23160 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23161
23162 Agglomerate scrolling in gfxterm.
23163
23164 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23165 (grub_virtual_screen_setup): Initialise 'total_screen'.
23166 (write_char): Split to ...
23167 (paint_char): ... this ...
23168 (write_char): ... and this.
23169 (paint_char): Handle delayed scrolling.
23170 (draw_cursor): Likewise.
23171 (scroll_up): Split to ...
23172 (real_scroll): ... this ...
23173 (scroll_up): ... and this.
23174 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23175 characters.
23176 (grub_gfxterm_refresh): Call real_scroll.
23177
23178 2010-02-06 Colin D Bennett <colin@gibibit.com>
23179
23180 * include/grub/misc.h (grub_iscntrl): New inline function.
23181 (grub_isalnum): Likewise.
23182 (grub_strtol): Likewise.
23183
23184 2010-02-06 Colin D Bennett <colin@gibibit.com>
23185
23186 * normal/menu_text.c (get_entry_number): Move from here ...
23187 * normal/menu.c (get_entry_number): ... moved here.
23188 * include/grub/menu.h (grub_menu_get_default_entry_index):
23189 New prototype.
23190 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23191 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23192 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23193 (grub_menu_viewer_should_return): Likewise.
23194 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23195 * normal/menu_text.c (run_menu): Enable menu switching.
23196 * normal/menu_viewer.c (should_return): New variable.
23197 (menu_viewer_changed): Likewise.
23198 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23199 (grub_menu_viewer_should_return): New function.
23200 (menuviewer_write_hook): Likewise.
23201 (grub_menu_viewer_init): Likewise.
23202
23203 2010-02-06 Colin D Bennet <colin@gibibit.com>
23204 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23205
23206 Support for gfxterm in a window.
23207
23208 * include/grub/gfxterm.h: New file.
23209 * include/grub/video.h (struct grub_video_rect): New declaration.
23210 (grub_video_rect_t): Likewise.
23211 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23212 (refcount): New variable.
23213 (render_target): Likewise.
23214 (window): Likewise.
23215 (repaint_callback): Likewise.
23216 (grub_virtual_screen_setup): Use 'render_target'.
23217 (init_window): New function.
23218 (grub_gfxterm_init_window): Likewise.
23219 (grub_gfxterm_init): Check reference counter.
23220 Use init_window.
23221 (destroy_window): New function.
23222 (grub_gfxterm_destroy_window): Likewise.
23223 (grub_gfxterm_fini): Check reference counter.
23224 Use destroy_window.
23225 (redraw_screen_rect): Restore viewport.
23226 Use 'render_target' and 'window'.
23227 Call 'repaint_callback'.
23228 (write_char): Use 'render_target'.
23229 (draw_cursor): Likewise.
23230 (scroll_up): Restore viewport.
23231 Use 'render_target' and 'window'.
23232 Call 'repaint_callback'.
23233 (grub_gfxterm_cls): Likewise.
23234 (grub_gfxterm_refresh): Use 'window'.
23235 (grub_gfxterm_set_repaint_callback): New function.
23236 (grub_gfxterm_background_image_cmd): Use 'window'.
23237 (grub_gfxterm_get_term): New function.
23238 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23239
23240 2010-02-06 Colin D Bennett <colin@gibibit.com>
23241
23242 Bitmap scaling support.
23243
23244 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23245 (bitmap_scale_mod_SOURCES): New variable.
23246 (bitmap_scale_mod_CFLAGS): Likewise.
23247 (bitmap_scale_mod_LDFLAGS): Likewise.
23248 * include/grub/bitmap_scale.h: New file.
23249 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23250 (background_image_cmd_options): New variable.
23251 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23252 (cmd): Rename and change type to ...
23253 (background_image_cmd_handle): ... this. All users updated.
23254 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23255 * video/bitmap_scale.c: New file.
23256
23257 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23258
23259 SDL support.
23260
23261 * Makefile.in (LIBSDL): New variable.
23262 (enable_grub_emu_sdl): Likewise.
23263 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23264 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23265 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23266 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23267 * util/sdl.c: New file.
23268
23269 2010-02-06 Colin D Bennett <colin@gibibit.com>
23270 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23271
23272 Double buffering support.
23273
23274 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23275 * include/grub/video.h: Update comment.
23276 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23277 New type.
23278 (grub_video_fb_doublebuf_blit_init): New prototype.
23279 * term/gfxterm.c (scroll_up): Support double buffering.
23280 (grub_gfxterm_refresh): Likewise.
23281 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23282 (grub_video_fb_doublebuf_blit_init): Likewise.
23283 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23284 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23285 'displayed_page', 'render_page' and 'update_screen'.
23286 (grub_video_vbe_fini): Free offscreen buffer.
23287 (doublebuf_pageflipping_commit): New function.
23288 (doublebuf_pageflipping_update_screen): Likewise.
23289 (doublebuf_pageflipping_init): Likewise.
23290 (double_buffering_init): Likewise.
23291 (grub_video_vbe_setup): Enable doublebuffering.
23292 (grub_video_vbe_swap_buffers): Implement.
23293 (grub_video_vbe_set_active_render_target): Handle double buffering.
23294 (grub_video_vbe_get_active_render_target): Likewise.
23295 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23296 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23297 (grub_video_vbe_enable_double_buffering): Likewise.
23298 (grub_video_vbe_swap_buffers): Use update_screen.
23299 (grub_video_set_mode): Use double buffering.
23300
23301 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23302
23303 * maintainance/gentrigtables.py: Remove.
23304 * lib/trig.c: Likewise.
23305
23306 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23307
23308 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23309 `trigtables.c'.
23310 (trigtables.c): New rule.
23311 (gentrigtables): Likewise.
23312 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23313
23314 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23315
23316 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23317 integer constants.
23318
23319 2010-02-06 Colin D Bennet <colin@gibibit.com>
23320
23321 Trigonometry support.
23322
23323 * include/grub/trig.h: New file.
23324 * lib/trig.c: Likewise.
23325 * maintainance/gentrigtables.py: Likewise.
23326 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23327 (trig_mod_SOURCES): New variable.
23328 (trig_mod_CFLAGS): Likewise.
23329 (trig_mod_LDFLAGS): Likewise.
23330
23331 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23332
23333 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23334 disk devices.
23335
23336 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23337
23338 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23339 error.
23340
23341 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23342
23343 * util/hostdisk.c (open_device): Don't use partition device when reading
23344 before the partition.
23345 (grub_util_biosdisk_read): Don't read from partition and before the
23346 partition in single operation.
23347 (grub_util_biosdisk_write): Don't write to partition and before the
23348 partition in single operation.
23349
23350 2010-02-03 Torsten Landschoff <torsten@debian.org>
23351
23352 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23353 last sectors.
23354
23355 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23356
23357 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23358 CDROM reads.
23359 (grub_biosdisk_write): Refuse to write to CDROM.
23360
23361 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23362
23363 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23364
23365 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23366
23367 * font/font.c (find_glyph): Check that bmp_idx is available before
23368 using it.
23369 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23370 with (font == NULL).
23371
23372 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23373
23374 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23375
23376 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23377
23378 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23379 * util/grub-script-check.c (getline): Fix empty lines case.
23380
23381 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23382
23383 * Makefile.in (check): Exit with fail status when one of the tests
23384 fails.
23385 * tests/example_functional_test.c (example_test): Fix reversed assert.
23386 * tests/example_unit_test.c (example_test): Likewise.
23387
23388 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23389
23390 * util/grub.d/10_linux.in: This script does not use any of the
23391 contents of gettext.sh, only the external command `gettext', so stop
23392 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23393 the same prefix as GRUB.)
23394 * util/grub.d/10_kfreebsd.in: Likewise.
23395
23396 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23397
23398 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23399 of the line.
23400
23401 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23402
23403 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23404 last sectors.
23405
23406 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23407
23408 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23409 having a 4KiB and not 32KiB buffer size.
23410
23411 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23412
23413 * util/hostfs.c: Include `<errno.h>'.
23414 (grub_hostfs_read): Handle errors from fseeko() and fread().
23415
23416 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23417
23418 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23419 loop when using read hooks on files whose size isn't sector-aligned.
23420
23421 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23422
23423 Remove unused parameter.
23424
23425 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23426 (grub_iso9660_open): Remove initialization of `data->length'.
23427
23428 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23429
23430 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23431 memleak conditions.
23432
23433 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23434
23435 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23436 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23437
23438 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23439
23440 * util/bin2h.c (usage): Fix warning (space after backslash).
23441
23442 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23443
23444 * font/font.c: Include `grub/fontformat.h.
23445 Remove font file format constants.
23446 (grub_font_load): Use the new macros.
23447 * include/grub/fontformat.h: New file.
23448 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23449 (write_font_pf2): Use the new macros.
23450
23451 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23452
23453 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23454 does.
23455
23456 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23457
23458 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23459
23460 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23461 (_start): Macroify `0x7F'.
23462
23463 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23464 (make_install_device): Use "(pxe)" as fallback prefix when booting
23465 via PXE.
23466
23467 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23468
23469 * configure.ac: Reset LIBS after check for libgcc symbols.
23470
23471 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23472
23473 * util/hostdisk.c (open_device): Add trailing newline to debug
23474 message.
23475
23476 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23477
23478 * configure.ac: Check for `limits.h'.
23479 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23480
23481 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23482
23483 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23484 capitalize error strings.
23485
23486 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23487
23488 * util/grub.d/10_hurd.in: Add a recovery mode.
23489
23490 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23491
23492 * configure.ac: Check for libgcc symbols with -nostdlib.
23493
23494 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23495
23496 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23497
23498 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23499
23500 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23501 stack since heap may be unavailable at that point.
23502 (grub_ofconsole_gotoxy): Likewise.
23503
23504 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23505
23506 * configure.ac: Check for _restgpr_14_x.
23507 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23508 and _savegpr_* prototypes.
23509
23510 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23511
23512 Use generic grub_reboot() for i386-efi.
23513
23514 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23515 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23516 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23517
23518 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23519
23520 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23521 presence of "prefix" variable as it breaks when normal.mod is
23522 embedded.
23523
23524 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23525
23526 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23527 stack since heap is unavailable at that point.
23528
23529 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23530
23531 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23532 (grub_freebsd_bootinfo): Rewritten.
23533 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23534
23535 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23536
23537 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23538
23539 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23540
23541 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23542 domain now.
23543
23544 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23545
23546 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23547 around for handling "/" to the correct fix. Fix a memory leak. Use
23548 xstrdup instead of strdup.
23549
23550 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23551
23552 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23553
23554 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23555
23556 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23557
23558 * font/font.c (struct grub_font): New member 'bmp_idx'.
23559 (font_init): Initialise 'bmp_idx'.
23560 (load_font_index): Fill 'bmp_idx'.
23561 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23562
23563 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23564
23565 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23566 unnecessary calls.
23567
23568 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23569
23570 Move context handling out of the kernel.
23571
23572 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23573 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23574 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23575 * conf/i386-efi.rmk: Likewise.
23576 * conf/i386-ieee1275.rmk: Likewise.
23577 * conf/i386-pc.rmk: Likewise.
23578 * conf/powerpc-ieee1275.rmk: Likewise.
23579 * conf/sparc64-ieee1275.rmk: Likewise.
23580 * conf/x86_64-efi.rmk: Likewise.
23581 * include/grub/env.h: Include grub/menu.h.
23582 (grub_env_var_type): Removed.
23583 (grub_env_var): Replaced field 'type' with 'global'.
23584 (grub_env_find): New prototype.
23585 (grub_env_context_open): Remove EXPORT_FUNC.
23586 (grub_env_context_close): Likewise.
23587 (grub_env_export): Likewise.
23588 (grub_env_set_data_slot): Removed.
23589 (grub_env_get_data_slot): Likewise.
23590 (grub_env_unset_data_slot): Likewise.
23591 (grub_env_unset_menu): New prototype.
23592 (grub_env_set_menu): Likewise.
23593 (grub_env_get_menu): Likewise.
23594 * include/grub/env_private.h: New file.
23595 * include/grub/normal.h (grub_context_init): New prototype.
23596 (grub_context_fini): Likewise.
23597 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23598 * normal/context.c (grub_cmd_export): ... to here.
23599 * kern/env.c: Include env_private.h.
23600 (HASHSZ): Moved to include/grub/env_private.h.
23601 (grub_env_context): Likewise.
23602 (grub_env_sorted_var): Likewise.
23603 (current_context): Renamed from this ...
23604 (grub_current_context): ...to this. 'static' removed. All users updated.
23605 (grub_env_find): Removed 'static'.
23606 (grub_env_context_open): Moved to normal/context.c.
23607 (grub_env_context_close): Likewise.
23608 (grub_env_export): Likewise.
23609 (mangle_data_slot_name): Removed.
23610 (grub_env_set_data_slot): Likewise.
23611 (grub_env_get_data_slot): Likewise.
23612 (grub_env_unset_data_slot): Likewise.
23613 * kern/main.c (grub_set_root_dev): Don't export root.
23614 It will be done later.
23615 (grub_main): Don't export prefix.
23616 It will be done later.
23617 * normal/context.c: New file.
23618 * normal/main.c (free_menu): Use grub_env_unset_menu.
23619 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23620 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23621 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23622 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23623
23624 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23625
23626 setpci support.
23627
23628 * commands/setpci.c: New file.
23629 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23630 (setpci_mod_SOURCES): New variable.
23631 (setpci_mod_CFLAGS): Likewise.
23632 (setpci_mod_LDFLAGS): Likewise.
23633
23634 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23635
23636 Byte-addressable PCI configuration space.
23637
23638 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23639 dword address.
23640 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23641 GRUB_PCI_REG_CACHELINE.
23642 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23643 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23644 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23645 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23646 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23647 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23648 grub_pci_make_address.
23649 (lock_rom_area): Likewise.
23650 * commands/lspci.c (grub_lspci_iter): Use macroses
23651 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23652 of grub_pci_make_address.
23653 * disk/ata.c (grub_ata_pciinit): Likewise.
23654 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23655 (GRUB_PCI_REG_VENDOR): Likewise.
23656 (GRUB_PCI_REG_DEVICE): Likewise.
23657 (GRUB_PCI_REG_COMMAND): Likewise.
23658 (GRUB_PCI_REG_STATUS): Likewise.
23659 (GRUB_PCI_REG_REVISION): Likewise.
23660 (GRUB_PCI_REG_CLASS): Likewise.
23661 (GRUB_PCI_REG_CACHELINE): Likewise.
23662 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23663 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23664 (GRUB_PCI_REG_BIST): Likewise.
23665 (GRUB_PCI_REG_ADDRESSES): Likewise.
23666 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23667 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23668 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23669 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23670 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23671 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23672 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23673 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23674 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23675 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23676 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23677 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23678 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23679 (GRUB_PCI_REG_MIN_GNT): Likewise.
23680 (GRUB_PCI_REG_MAX_LAT): Likewise.
23681 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23682 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23683 * video/efi_uga.c (find_framebuf): Likewise.
23684 * video/sm712.c (grub_video_sm712_setup): Likewise.
23685 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23686 space.
23687
23688 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23689
23690 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23691 can be reliably determined to be supported.
23692
23693 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23694
23695 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23696 that VESA is supported.
23697 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23698 supported.
23699
23700 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23701
23702 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23703
23704 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23705
23706 * util/misc.c (make_system_path_relative_to_its_root): Work around
23707 special-casing of "/", as previous incarnation of this routine did.
23708
23709 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23710
23711 Fix any-emu compilation.
23712
23713 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23714 * grub_bin2h_SOURCES: New variable.
23715
23716 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23717
23718 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23719
23720 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23721
23722 * util/grub.d/00_header.in: Fix handling of locale_dir.
23723
23724 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23725
23726 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23727 as possible unifont location (Gentoo).
23728 Reported by: Alexander Brüning
23729
23730 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23731
23732 Don't try to generate lists for kernel.img.
23733
23734 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23735 (pkglib_MODULES): Remove kernel.img.
23736 (kernel_img_EXPORTS): Removed.
23737 (kernel_img_RELOCATABLE): New variable.
23738 * conf/x86_64-efi.rmk: Likewise.
23739 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23740
23741 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23742
23743 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23744 grub_xasprintf or grub_snprintf.
23745 (grub_vsprintf): Likewise.
23746 (grub_snprintf): New proto.
23747 (grub_vsnprintf): Likewise.
23748 (grub_xasprintf): Likewise.
23749 (grub_xvasprintf): Likewise.
23750 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23751 (grub_sprintf): Removed.
23752 (grub_vsnprintf): New function.
23753 (grub_snprintf): Likewise.
23754 (grub_xvasprintf): Likewise.
23755 (grub_xasprintf): Likewise.
23756 (grub_vsprintf): Renamed to ...
23757 (grub_vsnprintf_real): ...this. New argument max_len.
23758
23759 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23760
23761 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23762 fix grub-script-check warning.
23763
23764 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23765
23766 * include/grub/font.h (grub_font_load): Fix prototype.
23767
23768 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23769
23770 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23771
23772 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23773
23774 * include/grub/x86_64/at_keyboard.h: New file.
23775
23776 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23777
23778 * loader/mips/linux.c: Include missing grub/i18n.h.
23779
23780 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23781
23782 * normal/menu.c (notify_execution_failure): Clarify error message.
23783
23784 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23785
23786 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23787 return value (and revert all return statements). Update users.
23788
23789 2010-01-20 Dan Merillat <debian@dan.merillat.org>
23790
23791 * kern/device.c (grub_device_iterate): Allocate new part_ent
23792 structure based on sizeof (*p) rather than sizeof (p->next), to
23793 account for structure padding.
23794
23795 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23796 disk is NULL, which might happen for LVM physical volumes with no
23797 LVM signature.
23798
23799 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23800
23801 * loader/mips/linux.c (grub_cmd_initrd)
23802 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23803
23804 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23805
23806 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23807 (grub_video_video_init, grub_video_bitmap_init)
23808 (grub_font_manager_init, grub_term_gfxterm_init)
23809 (grub_at_keyboard_init): New extern declarations.
23810 (grub_machine_init): Initialize gfxterm and at_keyboard.
23811
23812 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23813
23814 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23815 `gfxterm.mod' into core image.
23816
23817 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23818 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23819 (kernel_img_FORMAT): Copy to ...
23820
23821 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23822 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23823 (kernel_img_FORMAT): ... here, and ...
23824
23825 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23826 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23827 (kernel_img_FORMAT): ... here.
23828
23829 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23830 and input (at_keyboard) terminals in kernel.
23831 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23832
23833 (pkglib_MODULES): Remove `pci.mod'.
23834 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23835 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23836 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23837 (at_keyboard_mod_LDFLAGS): Remove variables.
23838
23839 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23840
23841 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23842
23843 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23844
23845 * include/grub/mips/libgcc.h: Only export symbols for functions
23846 that libgcc provides.
23847
23848 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23849
23850 MIPS support.
23851
23852 * bus/bonito.c: New file.
23853 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23854 GRUB_PCI_NUM_DEVICES.
23855 * term/i386/pc/serial.c: Move to ...
23856 * term/serial.c: ... here. All users updated.
23857 * util/i386/pc/grub-mkimage.c: Move to ...
23858 * util/grub-mkrawimage.c: ... here. All users updated.
23859 * term/i386/pc/at_keyboard.c: Move to ...
23860 * term/at_keyboard.c: ... here. All users updated.
23861 * conf/mips-qemu-mips.rmk: New file.
23862 * conf/mips-yeeloong.rmk: Likewise.
23863 * conf/mips.rmk: Likewise.
23864 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23865 mipsel-qemu-mips.
23866 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23867 to port addresses.
23868 (grub_ata_pciinit): Support CS5536.
23869 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23870 * font/font_cmd.c (loadfont_command): Open file before passing it to
23871 grub_font_load.
23872 (pseudo_file_read): New function.
23873 (pseudo_file_close): Likewise.
23874 (pseudo_fs): New structure.
23875 (load_font_module): New function.
23876 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23877 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23878 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23879 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23880 * include/grub/i386/at_keyboard.h: Split into ...
23881 * include/grub/at_keyboard.h: ... this ...
23882 * include/grub/i386/at_keyboard.h: ... and this.
23883 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23884 New prototype.
23885 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23886 updated.
23887 (grub_elf64_size): Likewise.
23888 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
23889 filename.
23890 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
23891 * include/grub/i386/coreboot/serial.h: Rewritten.
23892 * include/grub/i386/ieee1275/serial.h: Include
23893 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
23894 * include/grub/i386/pc/serial.h: Moved from here ...
23895 * include/grub/serial.h: ... to here. All users updated.
23896 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
23897 (GRUB_PCI_NUM_BUS): Likewise.
23898 (GRUB_PCI_NUM_DEVICES): Likewise.
23899 (grub_pci_device_map_range): Add missing volatile keyword.
23900 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
23901 * include/grub/mips/at_keyboard.h: New file.
23902 * include/grub/mips/cache.h: Likewise.
23903 * include/grub/mips/io.h: Likewise.
23904 * include/grub/mips/kernel.h: Likewise.
23905 * include/grub/mips/libgcc.h: Likewise.
23906 * include/grub/mips/pci.h: Likewise.
23907 * include/grub/mips/qemu-mips/boot.h: Likewise.
23908 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23909 * include/grub/mips/qemu-mips/loader.h: Likewise.
23910 * include/grub/mips/qemu-mips/memory.h: Likewise.
23911 * include/grub/mips/qemu-mips/serial.h: Likewise.
23912 * include/grub/mips/qemu-mips/time.h: Likewise.
23913 * include/grub/mips/relocator.h: Likewise.
23914 * include/grub/mips/time.h: Likewise.
23915 * include/grub/mips/types.h: Likewise.
23916 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
23917 * include/grub/mips/yeeloong/boot.h: Likewise.
23918 * include/grub/mips/yeeloong/kernel.h: Likewise.
23919 * include/grub/mips/yeeloong/loader.h: Likewise.
23920 * include/grub/mips/yeeloong/memory.h: Likewise.
23921 * include/grub/mips/yeeloong/pci.h: Likewise.
23922 * include/grub/mips/yeeloong/serial.h: Likewise.
23923 * include/grub/mips/yeeloong/time.h: Likewise.
23924 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
23925 * kern/elf.c (grub_elf32_size): New parameter. All users
23926 updated.
23927 (grub_elf64_size): Likewise.
23928 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
23929 Load modules before saying "Welcome to GRUB!".
23930 Call grub_refresh after saying "Welcome to GRUB!".
23931 * kern/mips/cache.S: New file.
23932 * kern/mips/cache_flush.S: Likewise.
23933 * kern/mips/dl.c: Likewise.
23934 * kern/mips/init.c: Likewise.
23935 * kern/mips/qemu-mips/init.c: Likewise.
23936 * kern/mips/startup.S: Likewise.
23937 * kern/mips/yeeloong/init.c: Likewise.
23938 * kern/term.c (grub_putcode): Handle NULL terminal.
23939 (grub_getcharwidth): Likewise.
23940 (grub_getkey): Likewise.
23941 (grub_checkkey): Likewise.
23942 (grub_getkeystatus): Likewise.
23943 (grub_getxy): Likewise.
23944 (grub_getwh): Likewise.
23945 (grub_gotoxy): Likewise.
23946 (grub_cls): Likewise.
23947 (grub_setcolorstate): Likewise.
23948 (grub_setcolor): Likewise.
23949 (grub_getcolor): Likewise.
23950 (grub_refresh): Likewise.
23951 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
23952 (write_jump): Add hatch nop.
23953 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
23954 * lib/mips/setjmp.S: New file.
23955 * loader/mips/linux.c: Likewise.
23956 * term/i386/pc/at_keyboard.c: Move from here ...
23957 * term/at_keyboard.c: ... to here.
23958 * term/i386/pc/serial.c: Moved from here ...
23959 * term/serial.c: ... to here. All users updated.
23960 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
23961 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
23962 (serial_translate_key_sequence): Avoid deadlock.
23963 (grub_serial_getkey): Handle backspace.
23964 (grub_serial_putchar): Fix newline handling.
23965 * util/i386/pc/grub-mkimage.c: Move from here ...
23966 * util/grub-mkrawimage.c: ... to here. All users updated.
23967 (generate_image): New parameters 'font_path' and 'format'.
23968 Support embedding font.
23969 Use grub_host_to_target* instead of grub_cpu_to_le*.
23970 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
23971 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
23972 (options): New option "--font".
23973 (usage): Likewise.
23974 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
23975 (main): Handle "--font".
23976 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
23977 (grub_virtual_screen_setup): Set bg_color_display.
23978 (redraw_screen_rect): Use bg_color_display instead of incorrect
23979 bg_color.
23980 (grub_gfxterm_cls): Likewise.
23981 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
23982 Support embedding config file.
23983 (add_segments): Likewise.
23984 (options): New option "--config".
23985 (main): Handle "--config".
23986 * video/sm712.c: New file.
23987
23988 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23989
23990 Fix parallel builds.
23991
23992 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
23993 font.c depend on ascii.h).
23994
23995 2010-01-12 Carles Pina i Estany <carles@pina.cat>
23996
23997 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
23998
23999 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24000
24001 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24002 By default: disabled.
24003 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24004 parameter.
24005
24006 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24007
24008 * font/font.c: Update copyright years.
24009 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24010
24011 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24012
24013 * font/font.c: Include `ascii.h'.
24014 (ASCII_BITMAP_SIZE): New macro.
24015 (ascii_font_glyph): Define.
24016 (ascii_glyph_lookup): New function.
24017 (grub_font_get_string_width): Change comment. If glyph not found, use
24018 ascii_glyph_lookup.
24019 (grub_font_get_glyph_with_fallback): If glyph not available returns
24020 ascii_glyph_lookup.
24021 * util/grub-mkfont.c (file_formats): New enum.
24022 (options): Add `ascii-bitmaps' new option.
24023 (usage): Add `asii-bitmaps' new option.
24024 (write_font_ascii_bitmap): New function.
24025 (write_font): Rename to ...
24026 (write_font_p2): ... this. Remove print_glyphs call.
24027 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24028 used. Call print_glyphs.
24029 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24030
24031 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24032
24033 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24034 (grub_bin2h_SOURCES): New variable.
24035 * util/bin2h.c: New file.
24036
24037 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24038
24039 * include/multiboot.h: Resynced with spec.
24040 * include/multiboot2.h: Likewise.
24041 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24042 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24043
24044 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24045
24046 * include/grub/term.h (grub_term_register_input,
24047 grub_term_register_output): Check return of terminal init()
24048 routines, and abort if errors are raised.
24049
24050 * commands/terminal.c: Update copyright year.
24051
24052 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24053
24054 * commands/terminal.c (grub_cmd_terminal_input)
24055 (grub_cmd_terminal_output): Check return of terminal init()
24056 routines, and abort if errors are raised.
24057
24058 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24059
24060 * include/grub/i386/bsd.h: Fix include pathes.
24061
24062 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24063
24064 Add missing *BSD copyright headers.
24065
24066 * include/grub/aout.h: Add BSD licence.
24067 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24068 * include/grub/i386/freebsd_linker.h: ... here,
24069 * include/grub/i386/freebsd_reboot.h: ... here,
24070 * include/grub/i386/netbsd_bootinfo.h: ... here,
24071 * include/grub/i386/netbsd_reboot.h: ... here,
24072 * include/grub/i386/openbsd_bootarg.h: ... here,
24073 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24074 licence to each file.
24075
24076 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24077
24078 * acinclude.m4: Remove `nop' assembly instruction; it's not
24079 implemented by all architectures.
24080
24081 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24082
24083 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24084 ELILO. This is no longer necessary.
24085
24086 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24087
24088 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24089
24090 * util/grub-script-check.c: grub-script-check tool.
24091 * conf/common.rmk: Make rules for grub-script-check.
24092
24093 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24094
24095 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24096 spotting it back in 2008. Shame on me for forgetting he did.
24097
24098 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24099
24100 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24101
24102 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24103 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24104 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24105 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24106 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24107 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24108
24109 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24110
24111 * include/grub/test.h: Add license header.
24112 * tests/example_functional_test.c: Likewise.
24113 * tests/example_unit_test.c: Likewise.
24114 * tests/lib/functional_test.c: Likewise.
24115 * tests/lib/test.c: Likewise.
24116 * tests/lib/unit_test.c: Likewise.
24117
24118 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24119
24120 Use flag-based instead of hook-based video mode selection and "auto"
24121 keyword.
24122
24123 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24124 (grub_video_set_mode): Changed prototype. All users updated.
24125 (grub_video_check_mode_flag): New inline function.
24126 * video/video.c (parse_modespec): New function.
24127 (grub_video_set_mode): Parse flags and keywords.
24128
24129 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24130
24131 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24132 fprintf call.
24133
24134 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24135
24136 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24137
24138 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24139
24140 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24141 string.
24142 * util/grub-emu.c (usage): Likewise.
24143 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24144 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24145 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24146 * util/i386/pc/grub-setup.c (usage): Likewise.
24147
24148 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24149
24150 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24151 the message.
24152 (grub_util_info): Likewise.
24153 (grub_util_error): Likewise.
24154 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24155 and/or new lines in `grub_util_warna', `grub_util_info',
24156 `grub_util_error' calls.
24157 * util/getroot.c: Likewise.
24158 * util/grub-editenv.c: Likewise.
24159 * util/grub-emu.c: Likewise.
24160 * util/grub-fstest.c: Likewise.
24161 * util/grub-mkdevicemap.c: Likewise.
24162 * util/grub-mkfont.c: Likewise.
24163 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24164 * util/grub-mkrelpath.c: Likewise.
24165 * util/grub-pe2elf.c: Likewise.
24166 * util/grub-probe.c: Likewise.
24167 * util/hostdisk.c: Likewise.
24168 * util/i386/efi/grub-mkimage.c: Likewise.
24169 * util/i386/pc/grub-mkimage.c: Likewise.
24170 * util/i386/pc/grub-setup.c: Likewise.
24171 * util/ieee1275/ofpath.c: Likewise.
24172 * util/mkisofs/eltorito.c: Likewise.
24173 * util/mkisofs/rock.c: Likewise.
24174 * util/mkisofs/write.c: Likewise.
24175 * util/raid.c: Likewise.
24176 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24177 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24178
24179 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24180
24181 Enable multiboot on non-pc.
24182
24183 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24184 multiboot.mod and multiboot2.mod to ...
24185 * conf/i386.rmk (pkglib_MODULES): ... here.
24186 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24187 Moved to ...
24188 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24189 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24190 Moved to ...
24191 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24192 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24193 Moved to ...
24194 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24195 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24196 Moved to ...
24197 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24198 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24199 relocator.mod.
24200 (ata_mod_SOURCES): Removed.
24201 (ata_mod_CFLAGS): Likewise.
24202 (ata_mod_LDFLAGS): Likewise.
24203 (relocator_mod_SOURCES): Removed.
24204 (relocator_mod_CFLAGS): Likewise.
24205 (relocator_mod_ASFLAGS): Likewise.
24206 (relocator_mod_LDFLAGS): Likewise.
24207 Include i386.mk.
24208 * include/grub/x86_64/multiboot.h: New file.
24209 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24210 Terminate EFI.
24211
24212 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24213
24214 Video multiboot support.
24215
24216 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24217 New prototype.
24218 * include/multiboot.h: Resynced with multiboot specification.
24219 * include/multiboot2.h: Likewise.
24220 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24221 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24222 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24223 (HAS_VGA_TEXT): Likewise.
24224 (accepts_video): New variable.
24225 (grub_multiboot_set_accepts_video): New function.
24226 (grub_multiboot_get_mbi_size): Account for video structures.
24227 (set_video_mode): New function.
24228 (retrieve_video_parameters): Likewise.
24229 (grub_multiboot_make_mbi): Fill video fields.
24230
24231 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24232
24233 Video driver ids.
24234
24235 * include/grub/video.h (grub_video_driver_id): New type.
24236 (grub_video_adapter): New member 'id'. All users updated.
24237 (grub_video_get_driver_id): New proto.
24238 * video/video.c (grub_video_get_driver_id): New function.
24239
24240 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24241
24242 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24243 `var=val'.
24244
24245 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24246
24247 * normal/cmdline.c (print_completion): Gettextizze.
24248
24249 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24250
24251 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24252
24253 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24254
24255 * gettext/gettext.c (grub_gettext_translate): Push and pop
24256 grub_errno.
24257 (grub_gettext_delete_list): Change comment style.
24258 * kern/err.c (grub_error): Gettextizze.
24259 (grub_fatal): Gettextizze.
24260
24261 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24262
24263 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24264 (grub_linux16_real_boot): ... this.
24265 * kern/i386/loader.S: Likewise.
24266 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24267 (grub_linux16_boot): New function. Switches to text mode and calls
24268 grub_linux16_real_boot().
24269
24270 * loader/i386/bsd.c: Include `<grub/video.h>'.
24271 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24272 text mode before calling grub_unix_real_boot().
24273
24274 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24275 (grub_multiboot_boot): Switch to text mode before calling
24276 grub_relocator32_boot().
24277
24278 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24279 (grub_chainloader_boot): Switch to text mode before calling
24280 grub_chainloader_real_boot().
24281
24282 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24283 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24284
24285 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24286 non-empty value.
24287
24288 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24289 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24290
24291 * util/grub.d/00_header.in: Define a "savedefault" function for use
24292 in menu entries.
24293 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24294
24295 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24296 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24297
24298 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24299 saved_entry if boot_once is unset.
24300 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24301 previous saved entry (i.e. grub-reboot).
24302
24303 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24304
24305 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24306
24307 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24308
24309 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24310 `var=val'.
24311 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24312
24313 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24314
24315 * util/grub-reboot.in: Fix --version output.
24316 * util/grub-set-default.in: Likewise.
24317
24318 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24319
24320 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24321 blocks.
24322
24323 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24324
24325 * util/grub.d/00_header.in: Quote the value assigned to `default',
24326 in case it contains spaces.
24327
24328 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24329
24330 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24331 `save_default_entry' call from the macosx case to the linux case.
24332
24333 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24334 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24335
24336 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24337 in `chosen' environment variable.
24338 * normal/menu_text.c (get_entry_number): Check if the variable
24339 matches the title of a menu entry.
24340 (run_menu): Pass menu to get_entry_number.
24341
24342 * util/grub-reboot.in: New file.
24343 * util/grub-set-default.in: New file.
24344 * conf/common.rmk (grub-reboot): New utility.
24345 (grub-set-default): New utility.
24346
24347 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24348 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24349 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24350 move it to `saved_entry' for the next boot. Load environment on
24351 initialisation.
24352 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24353 * util/grub.d/10_hurd.in: Likewise.
24354 * util/grub.d/10_linux.in (linux_entry): Likewise.
24355 * util/grub.d/10_windows.in: Likewise.
24356 * util/grub.d/30_os-prober.in: Likewise.
24357
24358 * util/grub-install.in: Create environment block.
24359 * util/i386/efi/grub-install.in: Likewise.
24360 * util/ieee1275/grub-install.in: Likewise.
24361 * util/sparc64/ieee1275/grub-install.in: Likewise.
24362
24363 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24364
24365 Unit testing framework for GRUB.
24366
24367 * Makefile.in: Test framework build rules for 'make check'.
24368 * conf/tests.rmk: Build rules for individual tests and framework.
24369
24370 * include/grub/test.h: Header file for whitebox tests.
24371 * tests/lib/functional_test.c: Framework support for whitebox
24372 functional tests.
24373 * tests/lib/test.c: Common whitebox testing code for unit and
24374 functional tests.
24375 * tests/lib/unit_test.c: Framework support for whitebox unit
24376 tests.
24377
24378 * tests/util/grub-shell-tester.in: Support utility for grub-script
24379 tests.
24380 * tests/util/grub-shell.in: Utility to execute grub-script
24381 commands in a Qemu instance.
24382
24383 * tests/example_functional_test.c: Example whitebox functional
24384 test.
24385 * tests/example_grub_script_test.in: Example grub-script test.
24386 * tests/example_scripted_test.in: Example scripted test.
24387 * tests/example_unit_test.c: Example whitebox unit test.
24388
24389 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24390
24391 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24392 Add loader/i386/multiboot_mbi.c.
24393 (multiboot2_mod_SOURCES): Likewise.
24394 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24395 (multiboot2_mod_SOURCES): Likewise.
24396 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24397 (grub_multiboot_make_mbi): Likewise.
24398 (grub_multiboot_free_mbi): Likewise.
24399 (grub_multiboot_init_mbi): Likewise.
24400 (grub_multiboot_add_module): Likewise.
24401 (grub_multiboot_set_bootdev): Likewise.
24402 * loader/i386/multiboot.c (mbi): Removed.
24403 (mbi_dest): Likewise.
24404 (alloc_mbi): New variable.
24405 (grub_multiboot_payload_size): Removed. All users updated.
24406 (grub_multiboot_pure_size): New variable.
24407 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24408 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24409 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24410 (grub_fill_multiboot_mmap): Likewise.
24411 (grub_multiboot_get_bootdev): Likewise.
24412 (grub_multiboot): Use multiboot_mbi functions.
24413 * loader/i386/multiboot_mbi.c: New file.
24414
24415 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24416
24417 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24418 it would result in module crash.
24419
24420 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24421
24422 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24423 (grub_ofconsole_getwh): Split to ...
24424 (grub_ofconsole_getwh): ... this.
24425 (grub_ofconsole_dimensions): ...and this.
24426 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24427
24428 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24429
24430 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24431
24432 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24433
24434 * loader/i386/pc/multiboot2.c: Removed stalled file.
24435
24436 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24437
24438 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24439 Reported by: Grégoire Sutre
24440
24441 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24442
24443 * util/misc.c (canonicalize_file_name): New function.
24444 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24445 instead of realpath().
24446
24447 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24448
24449 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24450 and make it clearer that it's optional. Based on confusion
24451 witnessed on IRC.
24452
24453 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24454
24455 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24456 in premature implicit newline.
24457
24458 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24459
24460 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24461 which resulted in garbled command line at the end of screen.
24462
24463 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24464
24465 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24466 initialization with similar approach as with other Linux loaders.
24467
24468 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24469
24470 Fix i386-ieee1275 build.
24471
24472 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24473 and grub_term_height() for video_{width,height} initialization.
24474
24475 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24476
24477 Fix grub-emu build.
24478
24479 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24480
24481 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24482 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24483
24484 Support for multiple terminals.
24485
24486 * Makefile.in (pkglib_DATA): terminal.lst.
24487 (terminal.lst): New target.
24488 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24489 (GRUB_MOD_INIT(handler)): Likewise.
24490 (GRUB_MOD_FINI(handler)): Likewise.
24491 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24492 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24493 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24494 (grub_cmd_sleep): Use grub_term_save_pos.
24495 * commands/terminal.c: New file.
24496 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24497 commands/terminal.c and lib/charset.c.
24498 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24499 (pkglib_MODULES): Add terminal.mod.
24500 (terminal_mod_SOURCES): New variable.
24501 (terminal_mod_CFLAGS): Likewise.
24502 (terminal_mod_LDFLAGS): Likewise.
24503 * genhandlerlist.sh: Don't handle terminals.
24504 * genmk.rb: Generate terminal-*.lst.
24505 * genterminallist.sh: New file.
24506 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24507 (grub_is_valid_utf8): Likewise.
24508 (grub_utf8_to_ucs4_alloc): Likewise.
24509 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24510 (grub_menu_register_viewer): Changed argument.
24511 (grub_menu_try_text): New proto.
24512 (grub_gfxmenu_try_hook): New declaration.
24513 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24514 (grub_menu_init_page): Additional argument term.
24515 (grub_normal_init_page): Likewise.
24516 (grub_cmdline_get): Arguments simplified.
24517 (grub_utf8_to_ucs4_alloc): Removed.
24518 (grub_print_ucs4): Additional argument term.
24519 (grub_getstringwidth): Likewise.
24520 (grub_print_message_indented): Likewise.
24521 (grub_menu_text_register_instances): New proto.
24522 (grub_show_menu): Likewise.
24523 (read_terminal_list): Likewise.
24524 (grub_set_more): Likewise.
24525 * include/grub/parser.h: Include handler.h.
24526 * include/grub/reader.h: Rewritten.
24527 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24528 (GRUB_TERM_WIDTH): Changed to function.
24529 (GRUB_TERM_HEIGHT): Likewise.
24530 (GRUB_TERM_BORDER_WIDTH): Likewise.
24531 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24532 (GRUB_TERM_NUM_ENTRIES): Likewise.
24533 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24534 (GRUB_TERM_CURSOR_X): Likewise.
24535 (grub_term_input_class): Likewise.
24536 (grub_term_output_class): Likewise.
24537 (grub_term_outputs_disabled): New declaration.
24538 (grub_term_inputs_disabled): Likewise.
24539 (grub_term_outputs): Likewise.
24540 (grub_term_inputs): Likewise.
24541 (grub_term_register_input): Rewritten.
24542 (grub_term_register_output): Likewise.
24543 (grub_term_unregister_input): Likewise.
24544 (grub_term_unregister_output): Likewise.
24545 (FOR_ACTIVE_TERM_INPUTS): New macro.
24546 (FOR_DISABLED_TERM_INPUTS): Likewise.
24547 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24548 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24549 * include/grub/terminfo.h: Add oterm argument to all protypes.
24550 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24551 Use grub_rescue_run.
24552 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24553 All users updated.
24554 * kern/reader.c: Removed. All users updated.
24555 * kern/rescue_reader.c (grub_rescue_init): Removed.
24556 (grub_rescue_reader): Likewise.
24557 (grub_register_rescue_reader): Likewise.
24558 (grub_rescue_run): New function based on kern/reader.c.
24559 * kern/term.c: Adapted for multiterm.
24560 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24561 (grub_is_valid_utf8): Likewise.
24562 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24563 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24564 right terminal.
24565 * loader/i386/linux.c (grub_linux_boot): Likewise.
24566 * normal/auth.c (grub_username_get): New function.
24567 (grub_auth_check_authentication): Use grub_username_get.
24568 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24569 * normal/color.c: Adapt for multiterm.
24570 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24571 (grub_normal_init_page): Additional argument term.
24572 (read_lists): Call read_terminal_lists.
24573 (grub_enter_normal_mode): Call grub_cmdline_run.
24574 Handle grub_normal_exit_level.
24575 (grub_cmd_normal): Make reentrant.
24576 (grub_cmd_normal_exit): New function.
24577 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24578 * normal/menu.c: Adapt for multiterm.
24579 * normal/menu_entry.c: Likewise.
24580 * normal/menu_text.c: Likewise.
24581 * normal/menu_viewer.c: Removed. All users updated.
24582 * normal/term.c: New file.
24583 * util/console.c: Change order of includes to workaround a bug in
24584 ncurses headers.
24585 * term/terminfo.c: New argument oterm on all exported functions.
24586 All users updated.
24587 * util/grub-editenv.c (grub_term_input_class): Removed.
24588 (grub_term_output_class): Likewise.
24589
24590 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24591
24592 Make loader output a bit more user-friendly.
24593
24594 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24595 is being loaded. Likewise for the Hurd.
24596
24597 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24598 that kernel of FreeBSD ${version} is being loaded.
24599
24600 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24601 grub_dprintf().
24602 (grub_cmd_initrd): Likewise.
24603 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24604 that Linux ${version} is being loaded. Likewise for initrd.
24605
24606 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24607
24608 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24609
24610 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24611
24612 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24613 (GRUB_MOD_INIT): Gettextizze.
24614 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24615 (GRUB_MOD_INIT): Gettextizze.
24616 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24617 (grub_cmd_linux): Capitalise Linux.
24618 (GRUB_MOD_INIT): Gettextizze.
24619 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24620 (grub_cmd_linux): Capitalise Linux.
24621 (GRUB_MOD_INIT): Gettextizze.
24622 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24623 (grub_cmd_linux): Capitalise Linux.
24624 (GRUB_MOD_INIT): Gettextizze.
24625 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24626 (GRUB_MOD_INIT): Gettextizze.
24627 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24628 (grub_cmd_linux): Capitalise Linux.
24629 (GRUB_MOD_INIT): Gettextizze.
24630 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24631 (grub_cpu_xnu_init): Gettextizze.
24632 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24633 (GRUB_MOD_INIT): Gettextizze.
24634 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24635 (GRUB_MOD_INIT): Gettextizze.
24636 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24637 (grub_linux_load64): Capitalise Linux.
24638 (GRUB_MOD_INIT): Gettextizze.
24639 * loader/xnu.c: Include `<grub/i18n.h>'.
24640 (GRUB_MOD_INIT): Gettextizze.
24641 * po/POTFILES: Add `loader/efi/appleloader.c',
24642 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24643 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24644 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24645 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24646 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24647 and `loader/xnu.c'.
24648
24649 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24650
24651 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24652
24653 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24654
24655 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24656 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24657 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24658
24659 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24660
24661 Reset Multiboot 2 support. New loader implements the draft in
24662 /branches/multiboot2 and shares as much code as possible with the
24663 production Multiboot 1 implementation.
24664
24665 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24666 * loader/multiboot2.c: Likewise.
24667 * loader/i386/multiboot_helper.S: Likewise.
24668 * include/multiboot2.h: Replace with latest version from the draft
24669 in /branches/multiboot2.
24670
24671 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24672 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24673 and `loader/multiboot2.c'.
24674 (pkglib_MODULES): Add `multiboot2.mod'.
24675 (multiboot2_mod_SOURCES): New variable.
24676 (multiboot2_mod_LDFLAGS): Likewise.
24677 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24678
24679 * conf/i386-pc.rmk: Likewise.
24680
24681 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24682 (multiboot_mod_SOURCES): Remove variable.
24683 (multiboot_mod_LDFLAGS): Likewise.
24684 (multiboot_mod_CFLAGS): Likewise.
24685
24686 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24687 `<multiboot2.h>' instead of `<multiboot.h>'.
24688 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24689 (MULTIBOOT_HEADER_MAGIC): New macros.
24690
24691 * loader/multiboot_loader.c (module_version_status): Remove variable.
24692 (find_multi_boot2_header): Remove function.
24693 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24694 logic. Always check for the Multiboot version we're compiling for.
24695 (grub_cmd_module_loader): Likewise.
24696 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24697 command instead of `multiboot'.
24698
24699 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24700
24701 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24702 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24703 all users.
24704
24705 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24706 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24707
24708 Fix breakage introduced with previous commit.
24709
24710 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24711 commands.
24712 * normal/handler.c (read_handler_list): Revert part of previous commit
24713 affecting this file.
24714 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24715 (grub_normal_execute): ... here.
24716
24717 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24718
24719 Merge prefix-redefinition-fix branch.
24720
24721 * normal/autofs.c (read_fs_list): Make function capable of being
24722 run multiple times, gracefuly replacing the previous data
24723 structures.
24724 * normal/dyncmd.c (read_command_list): Likewise.
24725 * normal/handler.c (read_handler_list): Likewise.
24726 * normal/main.c (read_lists): New function. Calls all the
24727 list reading functions.
24728 (grub_normal_execute): Use read_lists() instead of calling all
24729 list reading functions explicitly. Register read_lists() as a
24730 variable hook attached to ${prefix}.
24731
24732 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24733
24734 Merge crypto branch.
24735
24736 * Makefile.in (pkglib_DATA): Add crypto.lst.
24737 (crypto.lst): New target.
24738 * commands/hashsum.c: New file.
24739 * commands/password.c (check_password): Use grub_crypto_memcmp.
24740 * commands/password_pbkdf2.c: New file.
24741 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24742 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24743 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24744 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24745 -I$(srcdir)/lib/libgcrypt_wrap.
24746 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24747 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24748 password_pbkdf2.mod.
24749 (crypto_mod_SOURCES): New variable.
24750 (crypto_mod_CFLAGS): Likewise.
24751 (crypto_mod_LDFLAGS): Likewise.
24752 (hashsum_mod_SOURCES): New variable.
24753 (hashsum_mod_CFLAGS): Likewise.
24754 (hashsum_mod_LDFLAGS): Likewise.
24755 (pbkdf2_mod_SOURCES): New variable.
24756 (pbkdf2_mod_CFLAGS): Likewise.
24757 (pbkdf2_mod_LDFLAGS): Likewise.
24758 (password_pbkdf2_mod_SOURCES): New variable.
24759 (password_pbkdf2_mod_CFLAGS): Likewise.
24760 (password_pbkdf2_mod_LDFLAGS): Likewise.
24761 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24762 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24763 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24764 Include conf/gcry.rmk.
24765 * include/grub/auth.h: Rewritten.
24766 * include/grub/crypto.h: New file.
24767 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24768 * include/grub/normal.h (read_crypto_list): New prototype.
24769 * lib/crypto.c: New file.
24770 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24771 * lib/pbkdf2.c: Likewise.
24772 * normal/auth.c (grub_auth_strcmp): Removed.
24773 (grub_iswordseparator): Likewise.
24774 (grub_auth_strword): Likewise.
24775 (is_authenticated): Use grub_strword.
24776 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24777 and grub_strword. Pass entered password to authentication callback.
24778 * normal/crypto.c: New file.
24779 * normal/main.c: Call read_crypto_list.
24780 * util/grub-mkpasswd-pbkdf2.c: New file.
24781 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24782
24783 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24784
24785 Fix descent and ascent calculation.
24786
24787 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24788 (options): New option "asce".
24789 (usage): Likewise.
24790 (add_char): Ignore invalid glyphs for descent calculation.
24791 Calculate ascent from actual content.
24792 (print_glyphs): Use 'asce'.
24793 (write_font): Likewise. Allow ascent override.
24794 (main): Handle "asce" option.
24795
24796 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24797
24798 * kern/err.c: Include `<grub/i18n.h>'.
24799 (grub_print_error): Add full stop. Gettextizze.
24800 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24801 (grub_bsd_load_elf): Capitalise ELF.
24802 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24803 (grub_cmd_freebsd_module): Likewise.
24804 (grub_cmd_freebsd_module_elf): Likewise.
24805 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24806
24807 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24808
24809 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24810 * commands/search_file.c (HELP_MESSAGE): New macro.
24811 * commands/search_label.c (HELP_MESSAGE): Likewise.
24812 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24813 * po/POTFILES: Add `commands/search_file.c',
24814 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24815 `commands/search.c'.
24816
24817 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24818
24819 * config.rpath: Update from Gnulib.
24820
24821 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24822
24823 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24824
24825 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24826
24827 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24828
24829 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24830
24831 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24832 arguments to fread so that we get a return value in bytes, rather
24833 than something that will normally be rounded down to 0.
24834 Adjust error handling to avoid producing garbage when size_t is not
24835 the same size as long long.
24836
24837 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24838
24839 * util/mkisofs/write.c (padblock_write): Check return value of
24840 fread.
24841
24842 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24843
24844 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24845 floppy images now.
24846
24847 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24848
24849 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24850
24851 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24852 instead of manual alignment.
24853 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24854 verbose). Avoid attempts to read past end of the device
24855 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24856 but GRUB_DISK_CACHE_SIZE may exceed that).
24857
24858 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24859
24860 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24861 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24862 it to upper layer.
24863
24864 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24865
24866 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24867 New constant.
24868 (grub_efi_piwg_device_path): New structure
24869 (grub_efi_piwg_device_path_t): New type.
24870 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24871 (devpath_1): Transform to a structure. All users updated.
24872 (devpath_2): Likewise.
24873 (devpath_3): Likewise.
24874 (devpath_4): Likewise.
24875 (devpath_5): Likewise.
24876
24877 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24878
24879 * loader/efi/appleloader.c: Restored. Update all users.
24880
24881 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24882
24883 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24884
24885 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24886 (struct boot_blocklist): Move from here ...
24887 * include/grub/i386/pc/boot.h [ASM_FILE]
24888 (struct grub_boot_blocklist): ... to here. Update all users.
24889 (setup): Only initialize `start' member of `first_block'
24890 structure. Add assert() calls to verify the other members.
24891
24892 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
24893 (generate_image): Fix broken blocklist length initialization.
24894 Add assert() call to verify blocklist `segment' field.
24895
24896 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24897
24898 * loader/efi/appleloader.c: Remove. Update all users.
24899
24900 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24901
24902 * boot/i386/pc/boot.S: Update copyright year.
24903 * boot/i386/pc/cdboot.S: Likewise.
24904 * boot/i386/pc/diskboot.S: Likewise.
24905 * boot/i386/pc/lnxboot.S: Likewise.
24906 * boot/i386/pc/pxeboot.S: Likewise.
24907 * bus/pci.c: Likewise.
24908 * commands/cmp.c: Likewise.
24909 * commands/help.c: Likewise.
24910 * commands/hexdump.c: Likewise.
24911 * commands/i386/pc/halt.c: Likewise.
24912 * commands/i386/pc/play.c: Likewise.
24913 * commands/i386/pc/vbeinfo.c: Likewise.
24914 * commands/ls.c: Likewise.
24915 * commands/test.c: Likewise.
24916 * disk/dmraid_nvidia.c: Likewise.
24917 * disk/i386/pc/biosdisk.c: Likewise.
24918 * disk/ieee1275/nand.c: Likewise.
24919 * disk/ieee1275/ofdisk.c: Likewise.
24920 * disk/lvm.c: Likewise.
24921 * disk/raid.c: Likewise.
24922 * disk/raid6_recover.c: Likewise.
24923 * disk/scsi.c: Likewise.
24924 * fs/affs.c: Likewise.
24925 * fs/cpio.c: Likewise.
24926 * fs/ext2.c: Likewise.
24927 * fs/hfs.c: Likewise.
24928 * fs/iso9660.c: Likewise.
24929 * fs/ntfs.c: Likewise.
24930 * fs/sfs.c: Likewise.
24931 * fs/udf.c: Likewise.
24932 * fs/ufs.c: Likewise.
24933 * fs/xfs.c: Likewise.
24934 * gencmdlist.sh: Likewise.
24935 * genmk.rb: Likewise.
24936 * include/grub/disk.h: Likewise.
24937 * include/grub/efi/api.h: Likewise.
24938 * include/grub/efi/efi.h: Likewise.
24939 * include/grub/efi/pe32.h: Likewise.
24940 * include/grub/elf.h: Likewise.
24941 * include/grub/fs.h: Likewise.
24942 * include/grub/i386/at_keyboard.h: Likewise.
24943 * include/grub/i386/pc/memory.h: Likewise.
24944 * include/grub/i386/pc/vbe.h: Likewise.
24945 * include/grub/i386/pci.h: Likewise.
24946 * include/grub/i386/tsc.h: Likewise.
24947 * include/grub/ieee1275/ieee1275.h: Likewise.
24948 * include/grub/ntfs.h: Likewise.
24949 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24950 * include/grub/sparc64/libgcc.h: Likewise.
24951 * include/grub/symbol.h: Likewise.
24952 * include/grub/types.h: Likewise.
24953 * include/multiboot2.h: Likewise.
24954 * io/gzio.c: Likewise.
24955 * kern/device.c: Likewise.
24956 * kern/disk.c: Likewise.
24957 * kern/efi/efi.c: Likewise.
24958 * kern/efi/mm.c: Likewise.
24959 * kern/elf.c: Likewise.
24960 * kern/file.c: Likewise.
24961 * kern/i386/dl.c: Likewise.
24962 * kern/i386/pc/init.c: Likewise.
24963 * kern/i386/pc/startup.S: Likewise.
24964 * kern/ieee1275/ieee1275.c: Likewise.
24965 * kern/ieee1275/init.c: Likewise.
24966 * kern/main.c: Likewise.
24967 * kern/mm.c: Likewise.
24968 * kern/powerpc/dl.c: Likewise.
24969 * kern/sparc64/dl.c: Likewise.
24970 * kern/x86_64/dl.c: Likewise.
24971 * lib/hexdump.c: Likewise.
24972 * loader/efi/appleloader.c: Likewise.
24973 * loader/i386/ieee1275/linux.c: Likewise.
24974 * loader/i386/pc/chainloader.c: Likewise.
24975 * loader/i386/pc/linux.c: Likewise.
24976 * loader/i386/pc/multiboot2.c: Likewise.
24977 * loader/ieee1275/multiboot2.c: Likewise.
24978 * loader/multiboot2.c: Likewise.
24979 * loader/multiboot_loader.c: Likewise.
24980 * loader/powerpc/ieee1275/linux.c: Likewise.
24981 * normal/completion.c: Likewise.
24982 * normal/menu_entry.c: Likewise.
24983 * partmap/apple.c: Likewise.
24984 * util/grub.d/10_hurd.in: Likewise.
24985 * util/hostfs.c: Likewise.
24986 * video/readers/png.c: Likewise.
24987
24988 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
24989
24990 * include/grub/misc.h (GNUC_PREREQ): New macro.
24991 (ATTRIBUTE_ERROR): New macro.
24992 * include/grub/list.h (grub_bad_type_cast_real): Use
24993 ATTRIBUTE_ERROR.
24994
24995 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24996
24997 * normal/menu_text.c (print_message): Change messages.
24998
24999 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25000
25001 * normal/menu_entry.c (store_completion): Gettextizze.
25002
25003 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25004
25005 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25006
25007 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25008
25009 * po/POTFILES: Sort correctly.
25010
25011 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25012
25013 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25014 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25015 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25016 full stop.
25017 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25018 summary. Gettextizze the strings.
25019 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25020 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25021 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25022 full stop.
25023 (GRUB_MOD_INIT): Remove command name from summary.
25024 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25025 summary.
25026 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25027 * term/i386/pc/serial.c (options): Add full stops.
25028 (GRUB_MOD_INIT): Remove command name from the summary.
25029
25030 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25031
25032 * commands/acpi.c: Gettextizze help strings and/or options. Include
25033 `grub/i18n.h' if needed.
25034 * commands/blocklist.c: Likewise.
25035 * commands/boot.c: Likewise.
25036 * commands/cat.c: Likewise.
25037 * commands/cmp.c: Likewise.
25038 * commands/configfile.c: Likewise.
25039 * commands/crc.c: Likewise.
25040 * commands/date.c: Likewise.
25041 * commands/echo.c: Likewise.
25042 * commands/efi/fixvideo.c: Likewise.
25043 * commands/efi/loadbios.c: Likewise.
25044 * commands/gptsync.c: Likewise.
25045 * commands/halt.c: Likewise.
25046 * commands/handler.c: Likewise.
25047 * commands/hdparm.c: Likewise.
25048 * commands/hexdump.c: Likewise.
25049 * commands/i386/cpuid.c: Likewise.
25050 * commands/i386/pc/drivemap.c: Likewise.
25051 * commands/i386/pc/halt.c: Likewise.
25052 * commands/i386/pc/pxecmd.c: Likewise.
25053 * commands/i386/pc/vbeinfo.c: Likewise.
25054 * commands/i386/pc/vbetest.c: Likewise.
25055 * commands/ieee1275/suspend.c: Likewise.
25056 * commands/keystatus.c: Likewise.
25057 * commands/loadenv.c: Likewise.
25058 * commands/ls.c: Likewise.
25059 * commands/lsmmap.c: Likewise.
25060 * commands/lspci.c: Likewise.
25061 * commands/memrw.c: Likewise.
25062 * commands/minicmd.c: Likewise.
25063 * commands/parttool.c: Likewise.
25064 * commands/password.c: Likewise.
25065 * commands/probe.c: Likewise.
25066 * commands/read.c: Likewise.
25067 * commands/reboot.c: Likewise.
25068 * commands/search.c: Likewise.
25069 * commands/sleep.c: Likewise.
25070 * commands/test.c: Likewise.
25071 * commands/true.c: Likewise.
25072 * commands/usbtest.c: Likewise.
25073 * commands/videotest.c: Likewise.
25074 * commands/xnu_uuid.c: Likewise.
25075 * disk/loopback.c: Likewise.
25076 * hello/hello.c: Likewise.
25077 * loader/i386/bsd.c: Likewise.
25078 * term/i386/pc/serial.c: Likewise.
25079 * po/POTFILES: Add new files.
25080
25081 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25082
25083 * term/i386/pc/at_keyboard.c
25084 (keyboard_controller_wait_untill_ready): Rename to ...
25085 (keyboard_controller_wait_until_ready): ... this. Update all users.
25086
25087 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25088
25089 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25090 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25091 string using string width.
25092 * normal/menu_text.c (grub_print_message_indented): Use
25093 grub_print_spaces and not print_spaces.
25094 (print_timeout): Likewise.
25095 (print_spaces): Move to...
25096 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25097
25098 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25099
25100 Import from Gnulib.
25101
25102 * gnulib/getdelim.c: New file.
25103 * gnulib/getline.c: Likewise.
25104
25105 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25106
25107 * include/grub/list.h (grub_assert_fail): Removed.
25108 (grub_bad_type_cast_real): New function.
25109 (grub_bad_type_cast): New macro.
25110 (GRUB_AS_LIST): Use grub_bad_type_cast.
25111 (GRUB_AS_LIST_P): Likewise.
25112 (GRUB_AS_NAMED_LIST): Likewise.
25113 (GRUB_AS_NAMED_LIST_P): Likewise.
25114 (GRUB_AS_PRIO_LIST): Likewise.
25115 (GRUB_AS_PRIO_LIST_P): Likewise.
25116 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25117
25118 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25119
25120 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25121 Fix syntax error.
25122
25123 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25124
25125 * configure.ac: Check for TARGET_CFLAGS initialization before we
25126 initialize it ourselves (sigh).
25127 Move a few modifications to TARGET_CFLAGS to be unconditional
25128 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25129 eh_frame)
25130
25131 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25132 * term/i386/pc/at_keyboard.c
25133 (keyboard_controller_wait_untill_ready): Likewise.
25134 (keyboard_controller_led): Rename `led_status' paramter to avoid
25135 name conflict.
25136
25137 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25138
25139 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25140 quotes.
25141
25142 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25143
25144 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25145
25146 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25147
25148 * normal/menu_text.c (grub_print_message_indented): Prevent
25149 past-the-end-of-array dereference.
25150
25151 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25152
25153 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25154 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25155
25156 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25157
25158 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25159 * normal/main.c (grub_normal_read_line): Remove a space from the
25160 default prompt.
25161
25162 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25163
25164 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25165 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25166 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25167 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25168 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25169 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25170 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25171
25172 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25173
25174 * video/readers/jpeg.c (cmd): Declare.
25175 (grub_cmd_jpegtest): Use `grub_command_t' type.
25176 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25177 Assign to `cmd'.
25178 (GRUB_MOD_FINI): Use `cmd' to unregister.
25179 * video/readers/png.c (cmd): Declare.
25180 (grub_cmd_pngtest): Use `grub_command_t' type.
25181 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25182 Assign to `cmd'.
25183 (GRUB_MOD_FINI): Use `cmd' to unregister.
25184 * video/readers/tga.c (cmd): Declare.
25185 (grub_cmd_tgatest): Use `grub_command_t' type.
25186 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25187 Assign to `cmd'.
25188 (GRUB_MOD_FINI): Use `cmd' to unregister.
25189
25190 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25191
25192 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25193 stops.
25194 * kern/corecmd.c (grub_register_core_commands): Likewise.
25195 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25196 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25197 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25198 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25199 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25200 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25201 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25202 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25203 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25204 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25205 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25206 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25207 * normal/handler.c (insert_handler): Likewise.
25208 * normal/main.c (GRUB_MOD_INIT): Likewise.
25209 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25210
25211 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25212
25213 * commands/help.c (grub_cmd_help): Print the command name before the
25214 summary.
25215 (GRUB_MOD_INIT): Remove command name from the summary.
25216 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25217 string as summary.
25218 * lib/arg.c (find_long): Print the command name before the summary.
25219 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25220 summary.
25221 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25222 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25223 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25224 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25225 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25226 * commands/date.c (GRUB_MOD_INIT): Likewise.
25227 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25228 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25229 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25230 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25231 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25232 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25233 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25234 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25235 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25236 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25237 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25238 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25239 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25240 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25241 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25242 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25243 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25244 * commands/password.c (GRUB_MOD_INIT): Likewise.
25245 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25246 * commands/read.c (GRUB_MOD_INIT): Likewise.
25247 * commands/search.c (GRUB_MOD_INIT): Likewise.
25248 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25249 * commands/test.c (GRUB_MOD_INIT): Likewise.
25250 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25251 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25252 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25253 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25254 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25255 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25256 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25257 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25258 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25259 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25260 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25261 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25262 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25263 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25264
25265 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25266
25267 Use search command for preliminar UUID search.
25268
25269 * commands/search.c: Split into ...
25270 * commands/search_wrap.c: ...this
25271 * commands/search.c: ...and this.
25272 * commands/search_file.c: New file.
25273 * commands/search_label.c: New file.
25274 * commands/search_uuid.c: New file.
25275 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25276 Add commands/search_wrap.c, commands/search_file.c,
25277 commands/search_label.c and commands/search_uuid.c.
25278 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25279 (search_mod_SOURCES): Set to commands/search_wrap.c.
25280 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25281 search_label.mod.
25282 (search_fs_file_mod_SOURCES): New variable.
25283 (search_fs_file_mod_CFLAGS): Likewise.
25284 (search_fs_file_mod_LDFLAGS): Likewise.
25285 (search_label_mod_SOURCES): Likewise.
25286 (search_label_mod_CFLAGS): Likewise.
25287 (search_label_mod_LDFLAGS): Likewise.
25288 (search_fs_uuid_mod_SOURCES): New variable.
25289 (search_fs_uuid_mod_CFLAGS): Likewise.
25290 (search_fs_uuid_mod_LDFLAGS): Likewise.
25291 (fs_file_mod_SOURCES): Removed.
25292 (fs_file_mod_CFLAGS): Likewise.
25293 (fs_file_mod_LDFLAGS): Likewise.
25294 (fs_uuid_mod_SOURCES): Removed.
25295 (fs_uuid_mod_CFLAGS): Likewise.
25296 (fs_uuid_mod_LDFLAGS): Likewise.
25297 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25298 Set to util/grub-install.in.
25299 * disk/fs_file.c: Removed.
25300 * disk/fs_uuid.c: Likewise.
25301 * include/grub/search.h: New file.
25302 * util/grub-install.in: Handle sparc64.
25303 Create and use load.cfg.
25304 * util/sparc64/ieee1275/grub-install.in: Removed.
25305
25306 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25307
25308 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25309 Ignore return status if CF is cleared.
25310 (grub_biosdisk_get_diskinfo_standard): Likewise.
25311
25312 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25313
25314 * term/i386/pc/at_keyboard.c
25315 (keyboard_controller_wait_untill_ready): New function.
25316 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25317 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25318 for keyboard polling, rather than duplicate the same loop. This
25319 saves a few bytes in code size.
25320
25321 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25322
25323 Support for (pxe[:server[:gateway]]) syntax and
25324 use environment variable for PXE.
25325
25326 * commands/i386/pc/pxecmd.c (options): Removed.
25327 (print_ip): Removed.
25328 (grub_cmd_pxe): Removed
25329 (grub_cmd_pxe_unload): New function.
25330 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25331 (grub_pxe_your_ip): Made static.
25332 (grub_pxe_default_server_ip): Likewise.
25333 (grub_pxe_default_gateway_ip): Likewise.
25334 (grub_pxe_blksize): Likewise.
25335 (parse_ip): New function.
25336 (grub_pxe_open): Support server and gateway specification.
25337 (grub_pxe_close): Free disk->data.
25338 (grub_pxefs_open): Use disk->data.
25339 (grub_pxefs_read): Likewise.
25340 (grub_env_write_readonly): New function.
25341 (set_mac_env): Likewise.
25342 (set_env_limn_ro): Likewise.
25343 (parse_dhcp_vendor): Likewise.
25344 (grub_pxe_detect): Set the environment variables.
25345 (set_ip_env): New function.
25346 (write_ip_env): Likewise.
25347 (grub_env_write_pxe_default_server): Likewise.
25348 (grub_env_write_pxe_default_gateway): Likewise.
25349 (grub_env_write_pxe_blocksize): Likewise.
25350 (GRUB_MOD_INIT(pxe)): Set environment variables.
25351 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25352 (grub_pxe_mac_addr_t): ... this. All users updated.
25353 (grub_pxe_your_ip): Removed.
25354 (grub_pxe_server_ip): Likewise.
25355 (grub_pxe_gateway_ip): Likewise.
25356 (grub_pxe_blksize): Likewise.
25357
25358 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25359
25360 * commands/help.c: Include `<grub/i18n.h>'.
25361 (grub_cmd_help): Gettextizze.
25362 (GRUB_MOD_INIT): Likewise.
25363 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25364 (GRUB_MOD_INIT): Gettextizze.
25365 * commands/search.c: Include `<grub/i18n.h>'.
25366 (options): Gettextizze.
25367 (GRUB_MOD_INIT): Gettextizze.
25368 * lib/arg.c: Include `<grub/i18n.h>'.
25369 (help_options): Gettextizze.
25370 (find_long): Likewise.
25371 (grub_arg_show_help): Likewise.
25372 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25373 (read_command_list): Gettextizze.
25374 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25375 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25376
25377 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25378
25379 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25380 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25381 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25382 (led_status): New variable.
25383 (keyboard_controller_led): New function.
25384 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25385 update led status for caps lock, num lock and scroll lock.
25386
25387 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25388
25389 * util/hostdisk.c (open_device): Fix a comment.
25390
25391 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25392
25393 * util/grub-install.in (host_os): New variable.
25394 * util/i386/efi/grub-install.in (host_os): Likewise.
25395
25396 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25397
25398 * util/mkisofs/write.c (padblock_write): Abort when given an
25399 excedingly large embed image, instead of silently truncating it.
25400
25401 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25402
25403 * include/multiboot.h: Indentation fixes.
25404
25405 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25406
25407 * include/multiboot.h (struct multiboot_aout_symbol_table)
25408 (struct multiboot_elf_section_header_table): New structure
25409 declarations (stolen from GRUB Legacy).
25410 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25411 table information.
25412
25413 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25414 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25415 type aliases.
25416
25417 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25418
25419 * include/multiboot.h: Make comments src2texi-friendly.
25420
25421 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25422
25423 For consistency with [multiboot]/docs/boot.S.
25424
25425 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25426 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25427 (MULTIBOOT_MAGIC2): Rename from this ...
25428 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25429
25430 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25431
25432 * include/multiboot.h: Remove `<grub/types.h>'.
25433 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25434 types. Update all users.
25435
25436 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25437
25438 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25439 `couldn't' and `can not' by `cannot'.
25440 * commands/i386/pc/drivemap.c: Likewise.
25441 * disk/ata.c: Likewise.
25442 * disk/ieee1275/nand.c: Likewise.
25443 * fs/affs.c: Likewise.
25444 * fs/fat.c: Likewise.
25445 * fs/hfs.c: Likewise.
25446 * fs/hfsplus.c: Likewise.
25447 * fs/iso9660.c: Likewise.
25448 * fs/jfs.c: Likewise.
25449 * fs/minix.c: Likewise.
25450 * fs/reiserfs.c: Likewise.
25451 * fs/sfs.c: Likewise.
25452 * fs/udf.c: Likewise.
25453 * fs/ufs.c: Likewise.
25454 * fs/xfs.c: Likewise.
25455 * loader/powerpc/ieee1275/linux.c: Likewise.
25456 * loader/sparc64/ieee1275/linux.c: Likewise.
25457 * util/grub-probe.c: Likewise.
25458 * util/misc.c: Likewise.
25459
25460 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25461
25462 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25463 grub_errno calls.
25464 * commands/acpi.c: Likewise.
25465 * commands/blocklist.c: Likewise.
25466 * commands/efi/loadbios.c: Likewise.
25467 * commands/i386/pc/drivemap.c: Likewise.
25468 * commands/loadenv.c: Likewise.
25469 * commands/memrw.c: Likewise.
25470 * commands/password.c: Likewise.
25471 * commands/videotest.c: Likewise.
25472 * disk/ata.c: Likewise.
25473 * disk/ata_pthru.c: Likewise.
25474 * disk/dmraid_nvidia.c: Likewise.
25475 * disk/ieee1275/nand.c: Likewise.
25476 * disk/ieee1275/ofdisk.c: Likewise.
25477 * disk/loopback.c: Likewise.
25478 * disk/lvm.c: Likewise.
25479 * disk/mdraid_linux.c: Likewise.
25480 * disk/raid.c: Likewise.
25481 * disk/raid6_recover.c: Likewise.
25482 * disk/scsi.c: Likewise.
25483 * efiemu/main.c: Likewise.
25484 * efiemu/mm.c: Likewise.
25485 * efiemu/pnvram.c: Likewise.
25486 * efiemu/symbols.c: Likewise.
25487 * font/font.c: Likewise.
25488 * fs/cpio.c: Likewise.
25489 * fs/hfsplus.c: Likewise.
25490 * fs/iso9660.c: Likewise.
25491 * fs/jfs.c: Likewise.
25492 * fs/minix.c: Likewise.
25493 * fs/ntfs.c: Likewise.
25494 * fs/ntfscomp.c: Likewise.
25495 * fs/reiserfs.c: Likewise.
25496 * fs/ufs.c: Likewise.
25497 * fs/xfs.c: Likewise.
25498 * gettext/gettext.c: Likewise.
25499 * include/grub/auth.h: Likewise.
25500 * kern/elf.c: Likewise.
25501 * kern/file.c: Likewise.
25502 * kern/ieee1275/init.c: Likewise.
25503 * kern/ieee1275/mmap.c: Likewise.
25504 * kern/ieee1275/openfw.c: Likewise.
25505 * kern/powerpc/dl.c: Likewise.
25506 * kern/sparc64/dl.c: Likewise.
25507 * lib/arg.c: Likewise.
25508 * loader/i386/bsd.c: Likewise.
25509 * loader/i386/bsdXX.c: Likewise.
25510 * loader/i386/efi/linux.c: Likewise.
25511 * loader/i386/efi/xnu.c: Likewise.
25512 * loader/i386/ieee1275/linux.c: Likewise.
25513 * loader/i386/linux.c: Likewise.
25514 * loader/i386/multiboot.c: Likewise.
25515 * loader/i386/pc/linux.c: Likewise.
25516 * loader/i386/pc/multiboot2.c: Likewise.
25517 * loader/i386/xnu.c: Likewise.
25518 * loader/ieee1275/multiboot2.c: Likewise.
25519 * loader/macho.c: Likewise.
25520 * loader/machoXX.c: Likewise.
25521 * loader/multiboot2.c: Likewise.
25522 * loader/multiboot_loader.c: Likewise.
25523 * loader/powerpc/ieee1275/linux.c: Likewise.
25524 * loader/sparc64/ieee1275/linux.c: Likewise.
25525 * loader/xnu.c: Likewise.
25526 * loader/xnu_resume.c: Likewise.
25527 * mmap/i386/pc/mmap.c: Likewise.
25528 * normal/menu_viewer.c: Likewise.
25529 * partmap/acorn.c: Likewise.
25530 * partmap/amiga.c: Likewise.
25531 * partmap/apple.c: Likewise.
25532 * script/lexer.c: Likewise.
25533 * term/gfxterm.c: Likewise.
25534 * term/i386/pc/serial.c: Likewise.
25535 * term/i386/pc/vga.c: Likewise.
25536 * term/ieee1275/ofconsole.c: Likewise.
25537 * term/terminfo.c: Likewise.
25538 * video/bitmap.c: Likewise.
25539 * video/efi_gop.c: Likewise.
25540 * video/efi_uga.c: Likewise.
25541 * video/fb/video_fb.c: Likewise.
25542 * video/i386/pc/vbe.c: Likewise.
25543 * video/readers/tga.c: Likewise.
25544 * video/video.c: Likewise.
25545
25546 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25547
25548 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25549 * commands/lspci.c: Likewise.
25550 * commands/probe.c: Likewise.
25551 * commands/xnu_uuid.c: Likewise.
25552 * conf/i386-coreboot.rmk: Likewise.
25553 * conf/i386-efi.rmk: Likewise.
25554 * conf/i386-ieee1275.rmk: Likewise.
25555 * conf/i386-pc.rmk: Likewise.
25556 * conf/powerpc-ieee1275.rmk: Likewise.
25557 * conf/sparc64-ieee1275.rmk: Likewise.
25558 * conf/x86_64-efi.rmk: Likewise.
25559 * fs/i386/pc/pxe.c: Likewise.
25560 * gettext/gettext.c: Likewise.
25561 * include/grub/efi/graphics_output.h: Likewise.
25562 * include/grub/i386/pc/memory.h: Likewise.
25563 * kern/env.c: Likewise.
25564 * kern/i386/qemu/startup.S: Likewise.
25565 * lib/i386/pc/biosnum.c: Likewise.
25566 * lib/i386/relocator.c: Likewise.
25567 * lib/i386/relocator_asm.S: Likewise.
25568 * lib/relocator.c: Likewise.
25569 * loader/i386/bsd.c: Likewise.
25570 * loader/i386/multiboot.c: Likewise.
25571 * loader/i386/pc/chainloader.c: Likewise.
25572 * loader/i386/xnu.c: Likewise.
25573 * loader/xnu.c: Likewise.
25574 * normal/main.c: Likewise.
25575 * normal/menu_text.c: Likewise.
25576 * util/getroot.c: Likewise.
25577 * util/grub-mkconfig_lib.in: Likewise.
25578 * util/grub.d/00_header.in: Likewise.
25579 * util/i386/pc/grub-mkimage.c: Likewise.
25580 * util/mkisofs/eltorito.c: Likewise.
25581 * util/mkisofs/exclude.h: Likewise.
25582 * util/mkisofs/hash.c: Likewise.
25583 * util/mkisofs/iso9660.h: Likewise.
25584 * util/mkisofs/joliet.c: Likewise.
25585 * util/mkisofs/mkisofs.c: Likewise.
25586 * util/mkisofs/mkisofs.h: Likewise.
25587 * util/mkisofs/multi.c: Likewise.
25588 * util/mkisofs/name.c: Likewise.
25589 * util/mkisofs/rock.c: Likewise.
25590 * util/mkisofs/tree.c: Likewise.
25591 * util/mkisofs/write.c: Likewise.
25592 * video/efi_gop.c: Likewise.
25593
25594 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25595
25596 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25597 size counting.
25598
25599 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25600
25601 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25602 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25603
25604 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25605
25606 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25607 (GRUB_MOD_INIT(memrw)): Update help line.
25608
25609 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25610
25611 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25612 Use grub_extcmd_t. All users updated.
25613 (options): New variable.
25614 (grub_cmd_read): Restructure for readability. Support "-v" option.
25615 (grub_cmd_write): Restructure for readability.
25616
25617 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25618
25619 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25620
25621 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25622
25623 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25624 with the actual contents of the correspondending make variable.
25625 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25626 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25627 specifying `*.lst' and `efiemu??.o'
25628
25629 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25630
25631 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25632 after function name.
25633 Noticed by Rene Engelhard <rene@debian.org>.
25634
25635 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25636
25637 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25638 (options): New variable.
25639 (iospace): Likewise.
25640 (grub_lspci_iter): List IO spaces if "-i" was given.
25641 (grub_cmd_lspci): Parse options.
25642 (GRUB_MOD_INIT(lspci)): Use extcmd.
25643 (GRUB_MOD_FINI(lspci)): Likewise.
25644
25645 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25646
25647 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25648 `function' keyword.
25649 Patch by Tony Mancill <tmancill@debian.org>.
25650
25651 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25652
25653 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25654 (grub_uhci_portstatus): Likewise.
25655 (grub_uhci_portstatus): Add necessary delay.
25656 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25657
25658 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25659
25660 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25661 (GRUB_MOD_INIT): Likewise.
25662 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25663 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25664 * commands/echo.c (options): Fix capitalizations and/or full stops.
25665 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25666 (enable_rom_area): Likewise.
25667 (GRUB_MOD_INIT): Likewise.
25668 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25669 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25670 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25671 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25672 * commands/hexdump.c (options): Likewise.
25673 * commands/i386/cpuid.c (options): Likewise.
25674 (GRUB_MOD_INIT): Likewise.
25675 * commands/i386/pc/drivemap.c (options): Likewise.
25676 (GRUB_MOD_INIT): Likewise.
25677 * commands/i386/pc/halt (options): Likewise.
25678 (GRUB_MOD_INIT): Likewise.
25679 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25680 * commands/i386/pc/pxecmd.c (options): Likewise.
25681 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25682 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25683 * commands/keystatus.c (options): Likewise.
25684 (GRUB_MOD_INIT): Likewise.
25685 * commands/loadenv.c (options): Likewise.
25686 * commands/ls.c (options): Likewise.
25687 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25688 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25689 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25690 * commands/parttool.c (helpmsg): Likewise.
25691 * commands/probe.c (options): Likewise.
25692 * commands/read.c (GRUB_MOD_INIT): Likewise.
25693 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25694 * commands/search.c (options): Likewise.
25695 * commands/sleep.c (options): Likewise.
25696 * commands/test.c (GRUB_MOD_INIT): Likewise.
25697 * commands/true.c (GRUB_MOD_INIT): Likewise.
25698 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25699 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25700 * lib/arg.c (help_options): Likewise.
25701 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25702 `$(XGETTEXT)'.
25703 * po/POTFILES: Add `commands/loadenv.c'.
25704
25705 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25706
25707 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25708 instead of specifying them explicit.
25709
25710 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25711
25712 * NEWS: Add grub-probe support for GNU/Hurd.
25713
25714 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25715
25716 * NEWS: gettext was added after 1.97.
25717
25718 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25719
25720 * util/mkisofs/msdos_partition.h: New file (based on
25721 include/grub/msdos_partition.h).
25722 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25723 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25724 (ld_options, main): Recognize --protective-msdos-label.
25725 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25726 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25727 (padblock_write): If `use_protective_msdos_label' is set, patch a
25728 protective DOS-style label in the output image.
25729
25730 * util/grub-mkrescue.in: Use --protective-msdos-label.
25731
25732 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25733
25734 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25735 boot.
25736
25737 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25738
25739 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25740 variables.
25741 (ld_options, main): Recognize `--embedded-boot'.
25742 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25743 declarations.
25744 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25745 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25746 (padblock_write): Likewise. Rewrite to support embedded boot image.
25747
25748 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25749 for BIOS-based disk boot instead of only ElTorito.
25750
25751 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25752
25753 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25754 build (not needed for bootstrap).
25755
25756 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25757
25758 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25759 from i386-pc build (not needed for bootstrap).
25760 Rewrite a pair of strings.
25761
25762 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25763
25764 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25765
25766 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
25767
25768 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25769
25770 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25771
25772 * kern/env.c (grub_env_context_open): Mark exported variable for
25773 reexport.
25774
25775 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25776
25777 * kern/env.c (grub_env_export): Create nonexistent variables before
25778 exporting.
25779
25780 2009-12-20 Carles Pina i Estany <carles@pina.cat>
25781
25782 * include/grub/auth.h: Include `<grub/i18n.h>'.
25783 (GRUB_GET_PASSWORD): Gettextizze string.
25784 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25785 menu_text.c.
25786 (grub_utf8_to_ucs4_alloc): Fix indentation.
25787 (grub_print_ucs4): Likewise.
25788 (grub_getstringwidth): Likewise.
25789 (print_message_indented): New declaration.
25790 * normal/auth.c: Include `<grub/i18n.h>'.
25791 (grub_auth_check_authentication): Gettexttize string.
25792 * normal/cmdline.c: Include `<grub/i18n.h>'.
25793 (grub_cmdline_get): Gettextizze.
25794 * normal/color.c: Include `<grub/i18n.h>'.
25795 (grub_parse_color_name_pair): Gettexttize strings.
25796 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25797 string (use `print_message_indented').
25798 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25799 `include/grub/normal.h'.
25800 (print_message_indented): Renamed to ...
25801 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25802 used in normal/main.c).
25803 (print_message): Use `grub_print_message_indented' instead of
25804 `print_message_indented'.
25805 (print_timeout): Likewise.
25806 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25807 (grub_normal_print_device_info): Gettexttize strings.
25808 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25809
25810 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25811
25812 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25813 of arguments. Return number of tokens and not arguments. All users
25814 updated.
25815
25816 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25817
25818 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25819 non-MSDOS paritions.
25820
25821 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25822
25823 * include/grub/types.h (UNUSED): Removed since it conflicts with
25824 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25825 Reported by Grégoire Sutre.
25826
25827 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25828
25829 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25830 (grub_print_ucs4_alloc): Likewise.
25831 (grub_getstringwidth): Likewise.
25832 * normal/main.c (grub_normal_init_page): Gettextize version string.
25833 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25834 (getstringwidth): Renamed to ...
25835 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25836 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25837 (grub_print_ucs4): Remove `static' qualifer (now used in
25838 normal/main.c).
25839 * po/POTFILES: Add normal/main.c.
25840
25841 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25842
25843 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25844 (print_message_indented): Add `margin_left' and `margin_right'
25845 parameters.
25846 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25847 strings.
25848 (print_timeout): Use `print_message_indented' to print the message.
25849 Deletes `second_stage' parameter.
25850 (run_menu): Update `print_timeout' calls.
25851
25852 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25853
25854 Fix console palette on OpenFirmware.
25855
25856 * term/ieee1275/ofconsole.c (MAX): Removed.
25857 (colors): Redone based on VGA palette.
25858 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25859 colors are supported.
25860 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25861
25862 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25863
25864 Fix potential EfiEmu double prepare.
25865
25866 * efiemu/main.c (prepared): New variable
25867 (grub_efiemu_unload): Set prepare to '0'.
25868 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25869
25870 set_virtual_address_map support.
25871
25872 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25873 prototype.
25874 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25875 prototype.
25876 (grub_efiemu_crc32): Likewise.
25877 (grub_efiemu_crc64): Likewise.
25878 (grub_efiemu_set_virtual_address_map): Likewise.
25879 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25880 New definition.
25881 (grub_autoefi_set_virtual_address_map): Likewise.
25882 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25883 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25884 Restructure flow to accomodate it.
25885 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25886 (grub_efiemu_crc): Recompute CRC32.
25887 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
25888 (efiemu_ptv_relocated): ... this. Made global. All users updated.
25889 * efiemu/symbols.c (relocated_handle): New variable.
25890 (grub_efiemu_free_syms): Free relocated_handle.
25891 (grub_efiemu_alloc_syms): Allocate relocated_handle.
25892 (grub_efiemu_write_sym_markers): New function.
25893 (grub_efiemu_set_virtual_address_map): Likewise.
25894
25895 Newer XNU parameters.
25896
25897 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
25898 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
25899 (grub_xnu_fill_devicetree): New prototype.
25900 (grub_xnu_heap_real_start): New variable.
25901 * loader/xnu.c (get_name_ptr): New function.
25902 (grub_xnu_load_driver): Fill namelen and name.
25903
25904 64-bit xnu support.
25905
25906 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
25907 and 'loader/macho64.c'.
25908 * conf/i386-pc.rmk: Likewise.
25909 * conf/x86_64-efi.rmk: Likewise.
25910 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
25911 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
25912 * include/grub/macho.h (grub_macho_segment64): New structure.
25913 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
25914 (grub_macho_size32): ... to this.
25915 (grub_macho32_get_entry_point): Renamed from ...
25916 (grub_macho_get_entry_point32): ... to this.
25917 (grub_macho_contains_macho64): New prototype.
25918 (grub_macho_size64): Likewise.
25919 (grub_macho_get_entry_point64): Likewise.
25920 (grub_macho32_load): Renamed from ...
25921 (grub_macho_load32): ... to this.
25922 (grub_macho32_filesize): Renamed from ...
25923 (grub_macho_filesize32): ... to this.
25924 (grub_macho32_readfile): Renamed from ...
25925 (grub_macho_readfile32): ... to this.
25926 (grub_macho_filesize64): New prototype.
25927 (grub_macho_readfile64): Likewise.
25928 (grub_macho_parse32): Likewise.
25929 (grub_macho_parse64): Likewise.
25930 * loader/macho.c: Split into ...
25931 * loader/machoXX.c: ... and this. Replace 32 with XX.
25932 * loader/macho32.c: New file.
25933 * loader/macho64.c: Likewise.
25934 * loader/xnu.c (grub_xnu_is_64bit): New variable.
25935 (grub_cmd_xnu_kernel): Make 32-bit only.
25936 (grub_cmd_xnu_kernel64): New function.
25937 (grub_xnu_load_driver): Support Mach-O 64.
25938 (grub_cmd_xnu_mkext): Likewise.
25939 * util/grub.d/30_os-prober.in (osx_entry): New function.
25940 Generate entries for 64-bit boot too.
25941
25942 Eliminate ad-hoc tree format in XNU and EfiEmu.
25943
25944 * efiemu/main.c (grub_efiemu_prepare): Update comment.
25945 * efiemu/pnvram.c: Rewritten to use environment variables.
25946 All users updated.
25947
25948 Inline utf16_to_utf8.
25949
25950 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
25951 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
25952 All users updated.
25953 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
25954
25955 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
25956 * commands/usbtest.c (grub_usb_get_string): ... move here.
25957 (usb_print_str): Fix error handling.
25958 * include/grub/usb.h (grub_usb_get_string): Remove.
25959
25960 UTF-8 to UTF-16 transformation.
25961
25962 * conf/common.rmk (pkglib_MODULES): Add charset.mod
25963 (charset_mod_SOURCES): New variable.
25964 (charset_mod_CFLAGS): Likewise.
25965 (charset_mod_LDFLAGS): Likewise.
25966 * include/grub/utf.h: New file.
25967 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
25968
25969 Support for device properties.
25970
25971 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
25972 (grub_xnu_devprop_device_header): Likewise.
25973 (grub_xnu_devprop_device_descriptor): Likewise.
25974 (grub_xnu_devprop_add_device): New prototype.
25975 (grub_xnu_devprop_remove_device): Likewise.
25976 (grub_xnu_devprop_remove_property): Likewise.
25977 (grub_xnu_devprop_add_property_utf8): Likewise.
25978 (grub_xnu_devprop_add_property_utf16): Likewise.
25979 (grub_cpu_xnu_init): Likewise.
25980 (grub_cpu_xnu_fini): Likewise.
25981 (grub_cpu_xnu_unload): Likewise.
25982 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
25983 (property_descriptor): Likewise.
25984 (devices): New variable.
25985 (grub_xnu_devprop_remove_property): New function.
25986 (grub_xnu_devprop_add_device): Likewise.
25987 (grub_xnu_devprop_remove_device): Likewise.
25988 (grub_xnu_devprop_add_property): Likewise.
25989 (grub_xnu_devprop_add_property_utf8): Likewise.
25990 (grub_xnu_devprop_add_property_utf16): Likewise.
25991 (hextoval): Likewise.
25992 (grub_cpu_xnu_fill_devprop): Likewise.
25993 (grub_cmd_devprop_load): Likewise.
25994 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
25995 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
25996 (cmd_devprop_load): New variable.
25997 (grub_cpu_xnu_init): New function.
25998 (grub_cpu_xnu_fini): Likewise.
25999 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26000 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26001 (grub_cmd_xnu_devtree): Likewise.
26002 (hextoval): New function.
26003 (unescape): Likewise.
26004 (grub_xnu_fill_devicetree): Likewise.
26005
26006 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26007 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26008
26009 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26010
26011 Workaround for broken ATI VBE.
26012
26013 * video/i386/pc/vbe.c (last_set_mode): New variable.
26014 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26015 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26016 (grub_video_vbe_setup): Don't check for reserved flag.
26017
26018 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26019
26020 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26021 the `find' command.
26022
26023 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26024
26025 UUID support for HFS.
26026
26027 * fs/hfs.c (grub_hfs_uuid): New function.
26028 (grub_hfs_fs): New value .uuid.
26029 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26030
26031 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26032
26033 Fix a segfault with parsing unknown long options.
26034
26035 * util/grub-mkrelpath.c (options): Zero terminate it.
26036
26037 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26038
26039 * include/grub/misc.h (grub_puts): New declaration.
26040 (grub_puts_): Likewise.
26041 * kern/misc.c (grub_puts): New definition.
26042 (grub_puts_): Likewise.
26043
26044 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26045
26046 * util/grub-probe.c (probe): Improve error message.
26047
26048 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26049
26050 * loader/i386/multiboot_elfxx.c
26051 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26052 initialization.
26053
26054 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26055
26056 Relocator framework
26057
26058 * loader/i386/xnu_helper.S: Removed. All users updated.
26059 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26060 (relocator_mod_SOURCES): New variable.
26061 (relocator_mod_CFLAGS): Likewise.
26062 (relocator_mod_LDFLAGS): Likewise.
26063 (relocator_mod_ASFLAGS): Likewise.
26064 * conf/x86_64.rmk: Likewise.
26065 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26066 (grub_multiboot_payload_entry_offset): Likewise.
26067 (grub_multiboot_forward_relocator): Likewise.
26068 (grub_multiboot_forward_relocator_end): Likewise.
26069 (grub_multiboot_backward_relocator): Likewise.
26070 (grub_multiboot_backward_relocator_end): Likewise.
26071 (grub_multiboot_payload_eip): New variable.
26072 (grub_multiboot_payload_orig): Likewise.
26073 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26074 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26075 * include/grub/i386/memory.h
26076 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26077 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26078 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26079 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26080 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26081 * include/grub/i386/relocator.h: New file.
26082 * include/grub/x86_64/relocator.h: Likewise.
26083 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26084 (XNU_RELOCATOR): New macro.
26085 (grub_xnu_launcher_start): Remove.
26086 (grub_xnu_launcher_end): Likewise.
26087 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26088 (grub_xnu_heap_real_start): Remove.
26089 (grub_xnu_heap_start): Change to void *. All users updated.
26090 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26091 * lib/i386/relocator.c: New file.
26092 * lib/i386/relocator_asm.S: Likewise.
26093 * lib/i386/relocator_backward.S: Likewise.
26094 * lib/mips/relocator.c: Likewise.
26095 * lib/mips/relocator_asm.S: Likewise.
26096 * lib/relocator.c: Likewise.
26097 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26098 (entry): Removed.
26099 (playground): Likewise.
26100 (grub_multiboot_payload_orig): New variable.
26101 (grub_multiboot_payload_dest): Likewise.
26102 (grub_multiboot_payload_size): Likewise.
26103 (grub_multiboot_payload_eip): Likewise.
26104 (grub_multiboot_payload_esp): Likewise.
26105 (grub_multiboot_boot): Use grub_relocator32_boot.
26106 (grub_multiboot_unload): Free relocators.
26107 (grub_multiboot): Setup stack. Use relocators.
26108 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26109 (grub_multiboot_load_elfXX): Use relocators.
26110 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26111 (grub_multiboot_payload_size): Likewise.
26112 (grub_multiboot_payload_dest): Likewise.
26113 (grub_multiboot_payload_entry_offset): Likewise.
26114 (grub_multiboot_forward_relocator): Likewise.
26115 (grub_multiboot_backward_relocator): Likewise.
26116 (grub_multiboot_real_boot): Likewise.
26117 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26118 (grub_xnu_entry_point): Likewise.
26119 (grub_xnu_arg1): Likewise.
26120 (grub_xnu_stack): Likewise.
26121 (grub_xnu_launch): Removed.
26122 (grub_xnu_boot_resume): New function.
26123 (grub_xnu_boot): Use relocators.
26124 * loader/i386/xnu_helper.S: Removed.
26125 * loader/xnu.c (grub_xnu_heap_start): New variable.
26126 (grub_xnu_heap_size): Likewise.
26127 (grub_xnu_heap_malloc): Use relocators.
26128 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26129
26130 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26131
26132 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26133 anything.
26134
26135 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26136
26137 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26138 GRUB_ERR_NONE before calling grub_env_set.
26139
26140 2009-12-12 Robert Millan <rmh@aybabtu.com>
26141
26142 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26143 * genmk.rb (video): New variable.
26144 (CLEANFILES, VIDEOFILES): Add #{video}.
26145 (#{video}): New target rule.
26146 * genvideolist.sh: New file.
26147 * Makefile.in (pkglib_DATA): Add video.lst.
26148 (video.lst): New target rule.
26149 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26150 `video.lst'.
26151 * util/grub.d/30_os-prober.in: Replace `vbe' with
26152 ${GRUB_VIDEO_BACKEND}.
26153
26154 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26155
26156 * THANKS: Add David Miller.
26157
26158 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26159
26160 libpciaccess support.
26161
26162 * Makefile.in (LIBPCIACCESS): New variable.
26163 (enable_grub_emu_pci): Likewise.
26164 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26165 util/pci.c and commands/lspci.c.
26166 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26167 * configure.ac (grub-emu-pci): New option.
26168 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26169 (grub_pci_device_unmap_range): Likewise.
26170 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26171 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26172 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26173 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26174 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26175 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26176 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26177 * include/grub/pciutils.h: New file.
26178 * util/pci.c: Likewise.
26179
26180 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26181
26182 * util/misc.c: Don't include <errno.h> twice.
26183
26184 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26185
26186 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26187 name in an error message.
26188 (grub_biosdisk_rw): Likewise.
26189
26190 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26191
26192 Eliminate NTFS 4Gib barrier.
26193
26194 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26195 (read_run_data): Likewise.
26196 (grub_ntfs_read_run_list): Likewise.
26197 (grub_ntfs_read_block): Likewise.
26198 (grub_ntfs_iterate_dir): Likewise.
26199 (read_mft): Likewise.
26200 (read_data): Likewise.
26201 Use COM_LOG_LEN.
26202 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26203 to avoid 64-bit division
26204 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26205 (grub_ntfs_rlst): Use grub_disk_addr_t.
26206
26207 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26208
26209 Eliminate grub-fstest 4Gib barrier.
26210
26211 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26212 (read_file): Fix error reporting.
26213
26214 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26215
26216 Eliminate hexdump 4Gib barrier.
26217
26218 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26219 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26220
26221 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26222
26223 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26224 Fixes amarsh bug.
26225
26226 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26227
26228 Remove miscellaneous files in distclean target.
26229
26230 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26231
26232 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26233
26234 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26235 if they're already set. This resolves the conflict between my
26236 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26237 fixing the --grub-probe option again.
26238 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26239 change on 2009-10-06, so that we now once again source
26240 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26241
26242 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26243
26244 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26245 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26246 `util/devicemap.c'.
26247
26248 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26249
26250 * include/grub/misc.h (grub_printf_): New declaration.
26251 * kern/misc.c (grub_printf_): New definition.
26252 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26253 instead of `grub_printf' and `_'.
26254 * normal/menu_entry.c (store_completion): Likewise.
26255 (run): Likewise.
26256 (grub_menu_entry_run): Likewise.
26257 * normal/menu_text.c (grub_wait_after_message): Likewise.
26258 (notify_booting): Likewise.
26259 (notify_fallback): Likewise.
26260 (notify_execution_failure): Likewise.
26261
26262 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26263
26264 * configure.ac: Check for vasprintf.
26265 * util/misc.c (asprintf): Move allocation from here ...
26266 (vasprintf): ... to here. New function.
26267 (xasprintf): New function.
26268 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26269 prototypes.
26270 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26271 * util/grub-mkfont.c (write_font): Likewise.
26272 * util/grub-probe.c (probe): Likewise.
26273 * util/hostdisk.c (make_device_name): Likewise.
26274
26275 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26276
26277 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26278 anything even prefixed with 'cdrom' as a cdrom.
26279
26280 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26281
26282 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26283 mount points.
26284
26285 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26286
26287 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26288 grub_gettext_msg_list.
26289 (grub_gettext_gettranslation_from_position): Return const char *
26290 and not char *.
26291 (grub_gettext_translate): Add the translated strings into a list,
26292 returns from the list if existing there.
26293 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26294 (grub_gettext_delete_list): Delete the list.
26295 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26296 lang environment variable is changed.
26297 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26298
26299 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26300
26301 Rename kernel.mod to kernel.img.
26302
26303 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26304 (kernel_mod_EXPORTS): Rename to ...
26305 (kernel_img_EXPORTS): ... this.
26306 (kernel_mod_SOURCES): Rename to ...
26307 (kernel_img_SOURCES): ... this.
26308 (kernel_mod_HEADERS): Rename to ...
26309 (kernel_img_HEADERS): ... this. All users updated.
26310 (kernel_mod_CFLAGS): Rename to ...
26311 (kernel_img_CFLAGS): ... this.
26312 (kernel_mod_ASFLAGS): Rename to ...
26313 (kernel_img_ASFLAGS): ... this.
26314 (kernel_mod_LDFLAGS): Rename to ...
26315 (kernel_img_LDFLAGS): ... this.
26316 * conf/x86_64-efi.rmk: Likewise.
26317 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26318 (read_kernel_image): ... this. All users updated.
26319 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26320
26321 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26322
26323 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26324 (print_spaces): New function.
26325 (grub_print_ucs4): New function.
26326 (getstringwidth): New function.
26327 (print_message_indented): New function.
26328 (print_message): Gettexttize strings using print_message_indented.
26329 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26330 width.
26331 (get_entry_number): Gettextize and uses dynamic terminal width.
26332 (notify_booting, notify_fallback, notify_execution_failure):
26333 Gettextize.
26334 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26335 string.
26336 (run): Likewise.
26337 (grub_menu_entry_run): Likewise.
26338 * PO/POTFILES: Add normal/menu_entry.c.
26339
26340 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26341
26342 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26343
26344 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26345
26346 * util/grub-install.in: Install gettext .mo files.
26347 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26348
26349 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26350
26351 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26352 grub_dprintf.
26353
26354 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26355
26356 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26357 non-firmware-dependant one in realmode.S takes precedence.
26358
26359 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26360
26361 * commands/halt.c: Replace misc arch-specific headers with
26362 `<grub/misc.h>'.
26363 * commands/reboot.c: Likewise.
26364 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26365 `<grub/misc.h>'.
26366 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26367 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26368 (kernel_img_SOURCES): ... to here.
26369
26370 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26371 * include/grub/i386/pc/init.h: Likewise.
26372 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26373 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26374
26375 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26376
26377 * include/grub/i386/halt.h: Remove.
26378 * include/grub/i386/reboot.h: Likewise.
26379
26380 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26381
26382 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26383
26384 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26385 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26386 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26387 "progname.h"
26388 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26389 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26390 (usage): Add missing comma in printf.
26391
26392 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26393
26394 Use the same reboot approach on i386 coreboot and qemu as we do on
26395 BIOS.
26396
26397 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26398 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26399 * kern/i386/reboot.c: Remove.
26400 * include/grub/i386/reboot.h (grub_reboot): Export function.
26401 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26402 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26403 0xf000:0xfff0 instead of 0xffff:0x0000.
26404 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26405 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26406
26407 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26408
26409 Fix $srcdir != $objdir build.
26410
26411 * Makefile.in (po/%.po): Rewrite as ...
26412 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26413
26414 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26415
26416 Fix GNU/Hurd grub-install crash.
26417 * util/grub-probe.c (probe): Try to access `path' only when it is not
26418 NULL.
26419
26420 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26421
26422 Correct module naming.
26423
26424 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26425 (GRUB_MOD_INIT(efi_uga)): ... to this
26426 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26427 (GRUB_MOD_FINI(efi_uga)): ... to this
26428 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26429 (GRUB_MOD_INIT(efi_gop)): ... to this
26430 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26431 (GRUB_MOD_FINI(efi_gop)): ... to this
26432
26433 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26434
26435 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26436 translatable.
26437 (usage): Translate `arg' strings using gettext().
26438 Thanks to Jordi Mallach for the suggestion.
26439
26440 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26441
26442 GOP support. Based on patch from Bean
26443 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26444
26445 * video/efi_gop.c: New file.
26446 * include/grub/efi/graphics_output.h: Likewise.
26447 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26448 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26449 variables.
26450 * conf/x86_64-efi.rmk: Likewise.
26451
26452 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26453
26454 Rename efi_fb to efi_uga.
26455
26456 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26457 'efi_uga.mod'.
26458 (efi_fb_mod_SOURCES): Rename this ...
26459 (efi_uga_mod_SOURCES): ... to this.
26460 (efi_fb_mod_CFLAGS): Rename this ...
26461 (efi_uga_mod_CFLAGS): ... to this.
26462 (efi_fb_mod_LDFLAGS): Rename this ...
26463 (efi_uga_mod_LDFLAGS): ... to this.
26464 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26465 'efi_uga.mod'.
26466 (efi_fb_mod_SOURCES): Rename this ...
26467 (efi_uga_mod_SOURCES): ... to this.
26468 (efi_fb_mod_CFLAGS): Rename this ...
26469 (efi_uga_mod_CFLAGS): ... to this.
26470 (efi_fb_mod_LDFLAGS): Rename this ...
26471 (efi_uga_mod_LDFLAGS): ... to this.
26472 * video/efi_fb.c: Move this ...
26473 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26474
26475 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26476
26477 * po/README: New file. Explain our PO file workflow.
26478
26479 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26480
26481 * po/ChangeLog: Remove. Move relevant entries back to ...
26482 * ChangeLog: ... here.
26483 * po/ca.po: Remove (now handled by TLP).
26484 * po/id.po: Likewise.
26485 * po/zh_CN.po: Likewise.
26486 * Makefile.in (LINGUAS): Initialize in a way that supports
26487 empty set.
26488
26489 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26490
26491 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26492 reliing on po/LINGUAS.
26493 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26494 (po/%.po): ... this.
26495
26496 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26497
26498 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26499 (main): Use `program_name' instead of nonexistent `progname'.
26500
26501 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26502
26503 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26504 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26505
26506 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26507
26508 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26509 commit.
26510 * conf/i386-efi.rmk: Likewise.
26511 * conf/i386-ieee1275.rmk: Likewise.
26512 * conf/powerpc-ieee1275.rmk: Likewise.
26513 * conf/sparc64-ieee1275.rmk: Likewise.
26514 * conf/x86_64-efi.rmk: Likewise.
26515
26516 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26517
26518 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26519
26520 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26521
26522 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26523
26524 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26525
26526 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26527 (grub_mkdevicemap_SOURCES): New variable.
26528 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26529 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26530 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26531 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26532 (grub_mkdevicemap_SOURCES): Remove.
26533 * conf/i386-efi.rmk: Likewise.
26534 * conf/i386-ieee1275.rmk: Likewise.
26535 * conf/i386-pc.rmk: Likewise.
26536 * conf/powerpc-ieee1275.rmk: Likewise.
26537 * conf/sparc64-ieee1275.rmk: Likewise.
26538 * conf/x86_64-efi.rmk: Likewise.
26539 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26540 (usage): Fix strings to use `program_name'.
26541 (main): Initialize gettext.
26542 * util/grub-editenv.c: Likewise.
26543 * util/grub-emu.c: Likewise.
26544 * util/grub-fstest.c: Likewise.
26545 * util/grub-mkdevicemap.c: Likewise.
26546 * util/grub-mkfont.c: Likewise.
26547 * util/grub-mkrelpath.c: Likewise.
26548 * util/grub-pe2elf.c: Likewise.
26549 * util/grub-probe.c: Likewise.
26550 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26551 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26552 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26553
26554 * util/misc.c: Include `"progname.h"'.
26555 (progname): Remove variable.
26556 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26557
26558 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26559
26560 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26561 printf and print a newline after the menuentry header line.
26562 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26563
26564 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26565
26566 autoconf >= 2.60 support $(localedir).
26567
26568 * INSTALL: Note that autoconf 2.60 is required.
26569 * configure.ac (AC_PREREQ): Bump to 2.60.
26570 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26571 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26572
26573 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26574
26575 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26576 aclocal is run.
26577
26578 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26579
26580 * normal/main.c (grub_normal_read_line): Fix off-by-one
26581 buffer overflow.
26582
26583 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26584
26585 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26586 "parser.grub" in grub_command_execute() call.
26587
26588 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26589
26590 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26591 * conf/i386-efi.rmk: Likewise.
26592 * conf/i386-ieee1275.rmk: Likewise.
26593 * conf/i386-pc.rmk: Likewise.
26594 * conf/powerpc-ieee1275.rmk: Likewise.
26595 * conf/sparc64-ieee1275.rmk: Likewise.
26596 * conf/x86_64-efi.rmk: Likewise.
26597 * gettext/gettex.c: Include <grub/i18n.h>.
26598 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26599 here ...
26600 * include/grub/i18n.h: ... to here
26601 * include/grub/i18n.h: ... to here.
26602 * kern/misc.c: Include <grub/i18n.h>
26603 (grub_gettext_dummy): Move above user.
26604
26605 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26606
26607 * util/Makefile.in (install-local): Convert a `for' into a normal
26608 shell expansion.
26609
26610 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26611
26612 * autogen.sh: Add automake call.
26613 * config.guess: Remove.
26614 * config.sub: Likewise.
26615 * install-sh: Likewise.
26616
26617 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26618
26619 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26620
26621 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26622
26623 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26624 function to a normal shell `for'.
26625
26626 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26627
26628 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26629
26630 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26631
26632 * util/grub-mkrelpath.c: New file.
26633 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26634 (grub_mkrelpath_SOURCES): New variable.
26635 * include/grub/util/misc.h: New function prototype.
26636 * util/misc.c (make_system_path_relative_to_its_root): New function.
26637
26638 * util/grub-mkconfig_lib.in (bindir): New variable.
26639 (grub_mkrelpath): Likewise.
26640 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26641
26642 * util/probe.c (probe): Make the file path relative to its root.
26643 Change a info message to use the GRUB path. Enable again the
26644 check if we can read the file with GRUB facilities.
26645
26646 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26647 to its root.
26648
26649 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26650
26651 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26652 platform.
26653
26654 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26655
26656 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26657 strncmp().
26658
26659 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26660
26661 * util/getroot.c (grub_util_is_dmraid): New function.
26662 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26663 devices as normal ones, not as LVM.
26664
26665 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26666
26667 * conf/common.rmk: Add grub-gettext_lib target and updates
26668 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26669 LDFLAGS.
26670 * gettext/gettext.c: New file. (Reads mo files).
26671 * include/grub/file.h (grub_file_pread): New prototype.
26672 * include/grub/i18n.h (_): New prototype.
26673 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26674 prototypes.
26675 * kern/misc.c (grub_gettext_dummy): New function.
26676 * normal/menu_text.c: Include <grub/i18n.h>.
26677 * normal/menu_text.c (print_timeout): Gettexttize string.
26678 * normal/menu_text.c (print_message): Gettexttize string.
26679 * po/POTFILES: Add `normal/menu_text.c'.
26680 * po/ca.po: Add new translations.
26681 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26682 gettext module and defines locale_dir and lang in grub.cfg.
26683 * NEWS: Add gettext support.
26684
26685 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26686
26687 * util/hostdisk.c: Include `<grub/i18n.h>'.
26688 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26689 (make_device_name): Rewrite using asprintf.
26690 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26691 (find_system_device): If a device is not found, generate one just
26692 by reusing the OS path name.
26693 (read_device_map): Make it permissible for device.map not to exist.
26694
26695 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26696
26697 * script/sh/execute.c: Move from here ...
26698 * script/execute.c: ... to here. Update all users.
26699 * script/sh/function.c: Move from here ...
26700 * script/function.c: ... to here. Update all users.
26701 * script/sh/lexer.c: Move from here ...
26702 * script/lexer.c: ... to here. Update all users.
26703 * script/sh/main.c: Move from here ...
26704 * script/main.c: ... to here. Update all users.
26705 * script/sh/parser.y: Move from here ...
26706 * script/parser.y: ... to here. Update all users.
26707 * script/sh/script.c: Move from here ...
26708 * script/script.c: ... to here. Update all users.
26709
26710 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26711
26712 * configure.ac: Detect all `emu' platforms. Define
26713 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26714 --enable-grub-emu logic. Disable include/grub/machine
26715 symlink on `emu' platforms.
26716
26717 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26718 * gensymlist.sh.in: Likewise.
26719
26720 * include/grub/i386/coreboot/machine.h: Remove file.
26721 * include/grub/i386/efi/machine.h: Likewise.
26722 * include/grub/i386/ieee1275/machine.h: Likewise.
26723 * include/grub/i386/pc/machine.h: Likewise.
26724 * include/grub/i386/qemu/machine.h: Likewise.
26725 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26726 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26727 * include/grub/x86_64/efi/machine.h: Likewise.
26728
26729 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26730 * commands/halt.c: Likewise.
26731 * commands/reboot.c: Likewise.
26732 * include/grub/autoefi.h: Likewise.
26733 * include/grub/i386/at_keyboard.h: Likewise.
26734 * include/grub/i386/kernel.h: Likewise.
26735 * include/grub/i386/loader.h: Likewise.
26736 * include/grub/i386/pc/memory.h: Likewise.
26737 * kern/dl.c: Likewise.
26738 * kern/i386/coreboot/init.c: Likewise.
26739 * loader/i386/bsd.c: Likewise.
26740 * loader/i386/linux.c: Likewise.
26741 * loader/multiboot_loader.c: Likewise.
26742 * term/i386/pc/serial.c: Likewise.
26743 * term/usb_keyboard.c: Likewise.
26744
26745 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26746 `<grub/machine/machine.h>'
26747 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26748 * util/misc.c: Remove `<grub/machine/machine.h>' and
26749 `<grub/machine/time.h>'.
26750
26751 * Makefile.in (enable_grub_emu): Remove variable.
26752 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26753
26754 * conf/any-emu.rmk: New file.
26755 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26756 (grub_emu_init.c): Move from here ...
26757 * conf/any-emu.rmk: ... to here.
26758
26759 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26760 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26761 * conf/any-emu.rmk: ... to here.
26762
26763 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26764
26765 * include/grub/parser.h (grub_parser_register): Document need
26766 of `name' parameter.
26767 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26768 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26769 "sh" to "grub".
26770
26771 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26772
26773 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26774 `$(XGETTEXT)'.
26775 * include/grub/i18n.h (N_): New macro.
26776 * util/mkisofs/mkisofs.h: Likewise.
26777 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26778 around N_().
26779 (usage): Use gettext() to translate help strings when printing them.
26780
26781 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26782
26783 Based on patch from Bean
26784 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26785
26786 * video/efi_fb.c: New file.
26787 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26788 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26789 variables.
26790 * conf/x86_64-efi.rmk: Likewise.
26791
26792 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26793
26794 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26795 * util/i386/pc/grub-setup.c: Likewise.
26796
26797 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26798
26799 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26800 <hurd/fs.h>
26801 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26802 file_get_storage_info to implement grub_guess_root_device.
26803
26804 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26805
26806 * Makefile.in (target): Use make's builtin $(shell) function
26807 instead of calling directly $(SHELL) to create the locale directories,
26808 inside the $(foreach) function.
26809
26810 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26811
26812 * util/grub-mkrescue.in: Print an error and usage if output option
26813 has not been given.
26814
26815 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26816
26817 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26818 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26819 root and /boot are on different devices.
26820
26821 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26822
26823 Fix build for srcdir != objdir.
26824
26825 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26826 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26827 $(srcdir).
26828 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26829 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26830 reference for input.
26831
26832 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26833
26834 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26835 or hardlinking it). Remove -J option, Joliet is not compatible with
26836 multiple source directories.
26837
26838 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26839 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26840
26841 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26842 (process_input_dir): New function. Process an arbitrary input
26843 directory.
26844 Misc adjustments to support both "override mode" and system-wide mode.
26845
26846 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26847
26848 * configure.ac (UNIFONT_BDF): Rename to ...
26849 (FONT_SOURCE): ... this. Update all users.
26850
26851 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26852
26853 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26854 to the list of unifont files to look for.
26855
26856 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26857
26858 Patch from Joe Auricchio <jauricchio@gmail.com>
26859 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26860 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26861 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26862
26863 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26864
26865 * Makefile.in (install-local): Add a missing backslash.
26866
26867 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26868
26869 * include/grub/x86_64/io.h: New file.
26870
26871 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26872
26873 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26874 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26875 Include `"progname.h"'.
26876 (main): Initialize gettext.
26877 * util/i386/pc/grub-setup.c: Gettexttize.
26878 * util/i386/pc/grub-mkimage.c: Likewise.
26879
26880 * Makefile.in (po/*.po): Redefine as ...
26881 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26882
26883 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26884
26885 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26886
26887 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
26888 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
26889 (program_name): Remove.
26890 (main): Initialize gettext support.
26891 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
26892 Include `<libintl.h>'.
26893 (_): New macro.
26894
26895 * util/mkisofs/eltorito.c: Gettexttize.
26896 * util/mkisofs/joliet.c: Likewise.
26897 * util/mkisofs/mkisofs.c: Likewise.
26898 * util/mkisofs/multi.c: Likewise.
26899 * util/mkisofs/rock.c: Likewise.
26900 * util/mkisofs/tree.c: Likewise.
26901 * util/mkisofs/write.c: Likewise.
26902
26903 * po/POTFILES: Update with new files.
26904
26905 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26906
26907 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
26908 * util/mkisofs/iso9660.h: Likewise.
26909 * util/mkisofs/joliet.c: Likewise.
26910 * util/mkisofs/mkisofs.c: Likewise.
26911 * util/mkisofs/mkisofs.h: Likewise.
26912 * util/mkisofs/rock.c: Likewise.
26913 * util/mkisofs/tree.c: Likewise.
26914 * util/mkisofs/write.c: Likewise.
26915
26916 * util/mkisofs/eltorito.c (rcsid): Remove.
26917 * util/mkisofs/hash.c: Likewise.
26918 * util/mkisofs/joliet.c: Likewise.
26919 * util/mkisofs/name.c: Likewise.
26920 * util/mkisofs/rock.c: Likewise.
26921 * util/mkisofs/tree.c: Likewise.
26922 * util/mkisofs/write.c: Likewise.
26923
26924 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26925
26926 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
26927 instead of static allocation.
26928 * util/mkisofs/match.h: Likewise.
26929
26930 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26931
26932 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
26933 and `util/grub.d/10_linux.in'.
26934 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
26935 translatable Shell files.
26936
26937 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26938
26939 * Makefile.in ($(srcdir)/aclocal.m4): New target.
26940
26941 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26942
26943 * INSTALL: Document Automake is needed for bootstrap.
26944 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
26945 * util/grub.d/10_kfreebsd.in (bindir): New variable.
26946 Add gettext initialization.
26947 (kfreebsd_entry): Make menuentry output translatable.
26948
26949 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26950
26951 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
26952 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
26953 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
26954 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
26955 (LINGUAS): Auto-generate using `po/LINGUAS'.
26956 * po/LINGUAS: New file.
26957
26958 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26959
26960 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
26961 other things).
26962 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
26963 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
26964 bindtextdomain() calls for gettext initialization.
26965
26966 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26967
26968 * gnulib/progname.c: New file (imported from Gnulib).
26969 * gnulib/progname.h: Likewise.
26970 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26971 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
26972 (usage): Replace `progname' with `program_name'.
26973 (main): Use set_program_name() for program name initialization.
26974
26975 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26976
26977 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
26978 from here ...
26979 * Makefile.in (CPPFLAGS): ... to here.
26980
26981 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26982
26983 * aclocal.m4: Move from here ...
26984 * acinclude.m4: ... to here.
26985 * autogen.sh: Add call to `aclocal'.
26986 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
26987
26988 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26989
26990 * Makefile.in (CLEANFILES): Add `po/*.mo'.
26991 (LINGUAS): New variable.
26992 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
26993 (install-local): Install MO files.
26994 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
26995 * include/grub/i18n.h: New file.
26996 * po/POTFILES: New file.
26997 * po/ca.po: New file.
26998 * util/grub.d/10_linux.in (bindir): New variable.
26999 Add gettext initialization.
27000 (linux_entry): Make menuentry output translatable.
27001 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27002 (usage): Make --help output translatable.
27003 (main): Initialize gettext.
27004
27005 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27006
27007 * import_gcry.py: New file (written by Vladimir with minor
27008 adjustments).
27009 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27010 ciphers.
27011 * INSTALL: Document that Python is required for bootstrap.
27012
27013 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27014
27015 Import ciphers from libgcrypt 1.4.4.
27016
27017 * lib/libgcrypt/cipher/ChangeLog
27018 * lib/libgcrypt/cipher/ac.c
27019 * lib/libgcrypt/cipher/arcfour.c
27020 * lib/libgcrypt/cipher/bithelp.h
27021 * lib/libgcrypt/cipher/blowfish.c
27022 * lib/libgcrypt/cipher/camellia-glue.c
27023 * lib/libgcrypt/cipher/camellia.c
27024 * lib/libgcrypt/cipher/camellia.h
27025 * lib/libgcrypt/cipher/cast5.c
27026 * lib/libgcrypt/cipher/cipher.c
27027 * lib/libgcrypt/cipher/crc.c
27028 * lib/libgcrypt/cipher/des.c
27029 * lib/libgcrypt/cipher/dsa.c
27030 * lib/libgcrypt/cipher/ecc.c
27031 * lib/libgcrypt/cipher/elgamal.c
27032 * lib/libgcrypt/cipher/hash-common.c
27033 * lib/libgcrypt/cipher/hash-common.h
27034 * lib/libgcrypt/cipher/hmac-tests.c
27035 * lib/libgcrypt/cipher/md.c
27036 * lib/libgcrypt/cipher/md4.c
27037 * lib/libgcrypt/cipher/md5.c
27038 * lib/libgcrypt/cipher/primegen.c
27039 * lib/libgcrypt/cipher/pubkey.c
27040 * lib/libgcrypt/cipher/rfc2268.c
27041 * lib/libgcrypt/cipher/rijndael-tables.h
27042 * lib/libgcrypt/cipher/rijndael.c
27043 * lib/libgcrypt/cipher/rmd.h
27044 * lib/libgcrypt/cipher/rmd160.c
27045 * lib/libgcrypt/cipher/rsa.c
27046 * lib/libgcrypt/cipher/seed.c
27047 * lib/libgcrypt/cipher/serpent.c
27048 * lib/libgcrypt/cipher/sha1.c
27049 * lib/libgcrypt/cipher/sha256.c
27050 * lib/libgcrypt/cipher/sha512.c
27051 * lib/libgcrypt/cipher/tiger.c
27052 * lib/libgcrypt/cipher/twofish.c
27053 * lib/libgcrypt/cipher/whirlpool.c
27054
27055 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27056
27057 Fix build for systems without error().
27058
27059 * gnulib/error.c: New file (imported from Gnulib).
27060 * gnulib/error.h: Likewise.
27061 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27062 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27063 (this variable is now used by error()).
27064
27065 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27066
27067 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27068 instead of relying that char is signed.
27069
27070 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27071
27072 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27073 blocksize different from specified.
27074 (grub_pxefs_read): Likewise.
27075
27076 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27077
27078 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27079
27080 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27081 (grub_ata_readwrite): Likewise. Update 2 format strings.
27082 (grub_atapi_read): Likewise.
27083
27084 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27085 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27086 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27087 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27088 (ata_mod_LDFLAGS): Move from here ...
27089 * conf/i386.rmk: ... to here ...
27090 * conf/x86_64-efi.rmk: ... and here.
27091 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27092 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27093
27094 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27095
27096 Relicense multiboot.h, with RMS' blessing.
27097
27098 * include/multiboot.h: Change to X11 license.
27099
27100 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27101
27102 Support --version in grub-mkisofs.
27103
27104 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27105 (OPTION_VERSION): New macro.
27106 (ld_options): Recognize --version.
27107 (usage): Move `program_name' from here ...
27108 (program_name): ... to here. Add `static' qualifier.
27109 (main): Recognize `OPTION_VERSION'.
27110
27111 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27112
27113 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27114 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27115
27116 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27117
27118 Fix help2man generation for mkisofs.
27119
27120 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27121 (usage): Send output to stdout (rather than stderr).
27122
27123 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27124
27125 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27126 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27127 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27128 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27129 (bin_SCRIPTS): Add `grub-mkfloppy'.
27130 (grub_mkfloppy_SOURCES): New variable.
27131
27132 * util/grub-mkrescue.in: New file.
27133 * util/i386/pc/grub-mkfloppy.in: New file.
27134
27135 * util/i386/coreboot/grub-mkrescue.in: Remove.
27136 * util/i386/pc/grub-mkrescue.in: Remove.
27137
27138 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27139
27140 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27141 from here ...
27142 * include/multiboot.h (struct multiboot_header): ... to here. Update
27143 all users.
27144 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27145 from here ...
27146 * include/multiboot.h (struct multiboot_info): ... to here. Update
27147 all users.
27148 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27149 from here ...
27150 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27151 Update all users.
27152 * include/grub/multiboot.h (struct grub_mod_list): Move
27153 from here ...
27154 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27155 Update all users.
27156
27157 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27158
27159 * include/multiboot2.h (multiboot_word): Rename from this ...
27160 (multiboot2_word): ... to this. Update all users.
27161 (multiboot_header): Rename from this ...
27162 (multiboot2_header): ... to this. Update all users.
27163 (multiboot_tag_header): Rename from this ...
27164 (multiboot2_tag_header): ... to this. Update all users.
27165 (multiboot_tag_start): Rename from this ...
27166 (multiboot2_tag_start): ... to this. Update all users.
27167 (multiboot_tag_name): Rename from this ...
27168 (multiboot2_tag_name): ... to this. Update all users.
27169 (multiboot_tag_module): Rename from this ...
27170 (multiboot2_tag_module): ... to this. Update all users.
27171 (multiboot_tag_memory): Rename from this ...
27172 (multiboot2_tag_memory): ... to this. Update all users.
27173 (multiboot_tag_unused): Rename from this ...
27174 (multiboot2_tag_unused): ... to this. Update all users.
27175 (multiboot_tag_end): Rename from this ...
27176 (multiboot2_tag_end): ... to this. Update all users.
27177
27178 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27179
27180 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27181 this platform we should support Multiboot1 first.
27182
27183 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27184 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27185 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27186
27187 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27188
27189 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27190 of write calls (converting them to fwrite() if they aren't already).
27191 (get_torito_desc): Likewise.
27192 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27193
27194 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27195
27196 * util/i386/pc/grub-install.in: Move from here ...
27197 * util/grub-install.in: ... to here. Update all users.
27198
27199 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27200
27201 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27202
27203 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27204
27205 Support for El Torito without floppy emulation.
27206
27207 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27208 (init_boot_catalog): Improve error handling.
27209 (get_torito_desc): Don't use floppy emulation unless requested by
27210 user. Patch boot information table when requested via
27211 `-boot-info-table'.
27212 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27213 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27214 (use_boot_info_table): New variables.
27215 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27216 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27217 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27218 `--eltorito-emul-floppy'.
27219 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27220 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27221 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27222 (use_boot_info_table, get_731): New prototypes.
27223 * util/mkisofs/write.c (get_731): New function.
27224
27225 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27226
27227 Fix the generation of the man page.
27228
27229 * util/pc/i386/grub-install.in: Source
27230 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27231
27232 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27233
27234 Large file support for grub-mkisofs.
27235
27236 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27237 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27238 (session_start): Upgrade type to `uint64_t'. Update all users.
27239 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27240 (struct directory_entry): Upgrade type of `starting_block' and
27241 `size' to `uint64_t'. Update all users.
27242 (struct deferred): Remove unused structure.
27243 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27244 Update all users.
27245 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27246 file is larger than `UINT32_MAX'.
27247 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27248 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27249 return value.
27250 (struct deferred_write): Upgrade type of `extent' and `size' to
27251 `uint64_t'. Update all users.
27252 (last_extent_written): Upgrade type to `uint64_t'. Update all
27253 users.
27254 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27255 Update all users. Upgrade type of `remain' to `int64_t' and
27256 `use' to `size_t'. Use error() to handle fread() errors.
27257 (write_files): Rely on write_one_file() rather than calling
27258 xfwrite() directly.
27259
27260 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27261
27262 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27263
27264 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27265
27266 * util/mkisofs/fnmatch.c: Remove.
27267 * util/mkisofs/getopt1.c: Likewise.
27268 * util/mkisofs/getopt.c: Likewise.
27269 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27270 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27271 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27272 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27273 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27274
27275 * configure.ac: Detect `mingw32msvc' host_os.
27276 Check for lstat(), getuid() and getgid().
27277
27278 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27279 instances of `u_char' with `uint8_t'.
27280
27281 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27282 [!HAVE_GETUID] (getuid): New function (stub).
27283 [!HAVE_GETGID] (getgid): Likewise.
27284 [!HAVE_LSTAT] (lstat): Likewise.
27285 [!S_IROTH] (S_IROTH): New macro (dummy).
27286 [!S_IRGRP] (S_IRGRP): Likewise.
27287
27288 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27289
27290 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27291 conditional expression).
27292
27293 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27294
27295 Import from Gnulib.
27296
27297 * gnulib/fnmatch.c: New file.
27298 * gnulib/fnmatch.h: Likewise.
27299 * gnulib/fnmatch_loop.c: Likewise.
27300 * gnulib/getopt.c: Likewise.
27301 * gnulib/getopt.h: Likewise.
27302 * gnulib/getopt1.c: Likewise.
27303 * gnulib/getopt_int.h: Likewise.
27304 * gnulib/gettext.h: Likewise.
27305
27306 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27307
27308 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27309 * normal/handler.c (read_handler_list): Likewise.
27310
27311 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27312
27313 Misc cleanup.
27314
27315 * kern/command.c (grub_register_command_prio): Use
27316 grub_zalloc() instead of explicitly zeroing data.
27317 * kern/list.c: Include `<grub/mm.h>'.
27318 (grub_named_list_find): Replace `0' with `NULL'.
27319 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27320 (fs_module_list): Change type to `grub_named_list_t'. Update all
27321 users.
27322 * normal/dyncmd.c (read_command_list): Add space between function
27323 call and parenthesis.
27324 * normal/handler.c (read_handler_list): Likewise.
27325
27326 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27327
27328 * normal/auth.c (punishment_delay): Moved from here ...
27329 (grub_auth_strcmp): ... to here (inside function).
27330
27331 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27332
27333 * include/grub/list.h (struct grub_named_list): Remove `const'
27334 qualifier from `name'.
27335 (struct grub_prio_list): Likewise.
27336
27337 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27338
27339 * normal/auth.c: Include `<grub/time.h>'.
27340 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27341
27342 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27343
27344 * normal/auth.c (punishment_delay): New variable.
27345 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27346 (grub_auth_check_authentication): Punish failed login attempts with
27347 an incremental (2^N) delay.
27348
27349 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27350
27351 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27352 path with $(srcdir).
27353
27354 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27355
27356 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27357
27358 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27359
27360 * util/i386/coreboot/grub-mkrescue.in: New file.
27361 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27362 variables.
27363
27364 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27365 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27366 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27367 requirements.
27368 * util/mkisofs/defaults.h: New file.
27369 * util/mkisofs/eltorito.c: Likewise.
27370 * util/mkisofs/exclude.h: Likewise.
27371 * util/mkisofs/fnmatch.c: Likewise.
27372 * util/mkisofs/getopt.c: Likewise.
27373 * util/mkisofs/getopt1.c: Likewise.
27374 * util/mkisofs/hash.c: Likewise.
27375 * util/mkisofs/include/fctldefs.h: Likewise.
27376 * util/mkisofs/include/mconfig.h: Likewise.
27377 * util/mkisofs/include/prototyp.h: Likewise.
27378 * util/mkisofs/include/statdefs.h: Likewise.
27379 * util/mkisofs/iso9660.h: Likewise.
27380 * util/mkisofs/joliet.c: Likewise.
27381 * util/mkisofs/match.c: Likewise.
27382 * util/mkisofs/match.h: Likewise.
27383 * util/mkisofs/mkisofs.c: Likewise.
27384 * util/mkisofs/mkisofs.h: Likewise.
27385 * util/mkisofs/multi.c: Likewise.
27386 * util/mkisofs/name.c: Likewise.
27387 * util/mkisofs/rock.c: Likewise.
27388 * util/mkisofs/tree.c: Likewise.
27389 * util/mkisofs/write.c: Likewise.
27390
27391 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27392
27393 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27394 being insecure.
27395
27396 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27397
27398 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27399 `grub-mkimage' (and use $0 when possible).
27400
27401 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27402
27403 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27404 error message for excessively large memory map.
27405
27406 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27407
27408 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27409 executable bit.
27410
27411 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27412
27413 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27414 message for coreboot users.
27415
27416 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27417
27418 Fix build with GNU gold.
27419
27420 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27421 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27422 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27423 link addresses.
27424 * aclocal.m4: Likewise.
27425
27426 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27427
27428 * configure.ac (AC_PREREQ): Bump to 2.59d.
27429 * INSTALL: Make it more clear when Autoconf and Ruby are
27430 needed and when to run `./autogen.sh'.
27431
27432 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27433
27434 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27435 OSes.
27436
27437 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27438
27439 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27440
27441 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27442
27443 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27444 giving it to GNU Mach.
27445
27446 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27447
27448 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27449 GNU partition number to get internal GRUB partition number.
27450
27451 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27452
27453 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27454 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27455
27456 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27457
27458 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27459 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27460 case.
27461
27462 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27463
27464 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27465
27466 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27467
27468 Fix build problem.
27469
27470 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27471 `-isystem=$(srcdir)/include'.
27472
27473 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27474
27475 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27476 checked (grub-install doesn't currently rely on it).
27477
27478 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27479
27480 Revert SVN r2660.
27481
27482 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27483 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27484 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27485 * conf/i386-ieee1275.rmk: Likewise.
27486 * conf/i386-pc.rmk: Likewise.
27487 * conf/powerpc-ieee1275.rmk: Likewise.
27488 * conf/sparc64-ieee1275.rmk: Likewise.
27489 * conf/x86_64-efi.rmk: Likewise.
27490
27491 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27492
27493 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27494
27495 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27496
27497 * include/grub/misc.h: Stop checking for APPLE_CC.
27498
27499 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27500
27501 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27502 doesn't cause an infinite call loop.
27503
27504 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27505
27506 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27507 strings.
27508
27509 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27510
27511 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27512 variable.
27513 * Makefile.in: Likewise.
27514
27515 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27516
27517 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27518
27519 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27520
27521 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27522
27523 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27524
27525 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27526
27527 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27528
27529 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27530 from here ...
27531 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27532
27533 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27534
27535 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27536 in $(MAKEINFO) invocation. This makes it clear in output that
27537 errors are being ignored.
27538
27539 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27540
27541 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27542 from here ...
27543 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27544 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27545 * conf/i386-ieee1275.rmk: Likewise.
27546 * conf/i386-pc.rmk: Likewise.
27547 * conf/powerpc-ieee1275.rmk: Likewise.
27548 * conf/sparc64-ieee1275.rmk: Likewise.
27549 * conf/x86_64-efi.rmk: Likewise.
27550
27551 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27552
27553 * util/grub-editenv.c (main): If only a command is given, use
27554 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27555 (usage): FILENAME is now optional and has a default.
27556
27557 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27558
27559 Improve grub-mkconfig performance when there are several menu
27560 entries on a single filesystem.
27561
27562 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27563 prepare_grub_to_access_device.
27564 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27565 * util/grub.d/30_os-prober.in: Likewise.
27566
27567 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27568
27569 * util/grub.d/10_freebsd.in: Remove.
27570 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27571 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27572
27573 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27574
27575 * docs/grub.cfg: Fix example usage of *BSD loaders.
27576
27577 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27578
27579 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27580 grub_util_error() call.
27581
27582 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27583
27584 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27585 `reserved_first_sector' member.
27586 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27587 `reserved_first_sector' to 1.
27588 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27589 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27590 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27591 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27592 filesystems which begin at first sector.
27593 (options): New option --skip-fs-probe.
27594 (main): Handle --skip-fs-probe and pass it to setup().
27595
27596 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27597
27598 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27599 (memset): Fix function prototype.
27600
27601 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27602 2009-10-25 Vasily Averin <vvs@parallels.com>
27603
27604 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27605 `dirent.direntlen == 0'.
27606
27607 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27608
27609 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27610 `cpio'.
27611 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27612
27613 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27614
27615 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27616 `__trampoline_setup' and `__ucmpdi2'.
27617 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27618 that libgcc provides.
27619
27620 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27621
27622 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27623 * include/grub/sparc64/libgcc.h (memset): Likewise.
27624 * include/grub/misc.h (memset, memcmp): New function prototypes.
27625
27626 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27627
27628 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27629 `cpio'.
27630 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27631
27632 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27633
27634 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27635 * docs/grub.cfg: Compensate for recent change in multiboot
27636 loader (since 2009-08-14 it won't pass filename to payload).
27637 * util/grub.d/10_hurd.in: Likewise.
27638
27639 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27640
27641 * config.guess: Update to latest version from config git
27642 repository.
27643 * config.sub: Likewise.
27644
27645 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27646
27647 Fix build on sparc64.
27648
27649 * configure.ac: Perform checks for libgcc symbols before
27650 adding `-nostdlib' to LDFLAGS.
27651
27652 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27653
27654 Let user specify OpenBSD root device.
27655
27656 * loader/i386/bsd.c (openbsd_root): New variable.
27657 (openbsd_opts): New option 'root'.
27658 (OPENBSD_ROOT_ARG): New macro.
27659 (grub_openbsd_boot): Use 'openbsd_root'.
27660 (grub_cmd_openbsd): Fill 'openbsd_root'.
27661
27662 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27663
27664 * NEWS: Misc adjustments.
27665
27666 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27667
27668 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27669
27670 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27671
27672 * configure.ac: Bump version to 1.97.
27673
27674 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27675
27676 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27677 -mno-3dnow on x86 architectures. Some toolchains enable these
27678 features by default, but they rely on registers that aren't enabled
27679 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27680
27681 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27682
27683 Make entry text a bit more readable.
27684
27685 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27686
27687 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27688
27689 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27690
27691 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27692
27693 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27694 operations.
27695
27696 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27697
27698 * configure.ac: Add missing dollar.
27699
27700 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27701
27702 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27703
27704 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27705 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27706 exports.
27707 * include/grub/sparc64/libgcc.h: Likewise. Use
27708 preprocessor conditionals.
27709
27710 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27711
27712 * conf/common.rmk (grub-dumpbios): Remove rule.
27713 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27714 * util/grub-dumpbios.in: Remove file.
27715
27716 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27717
27718 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27719 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27720
27721 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27722 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27723 users.
27724
27725 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27726 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27727 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27728 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27729 users.
27730
27731 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27732
27733 * term/tparm.c: Switch to GPLv3.
27734
27735 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27736
27737 * include/grub/i386/cpuid.h: Add header protection.
27738
27739 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27740
27741 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27742
27743 * include/grub/i386/cpuid.h: New file.
27744 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27745 (has_longmode): Rename to ...
27746 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27747 `static' attribute.
27748 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27749 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27750 on a CPU that doesn't implement AMD64 instruction set.
27751
27752 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27753
27754 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27755 that version.texi is rebuilt on version number changes.
27756
27757 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27758
27759 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27760 Fixes bug #27602.
27761
27762 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27763
27764 * util/i386/pc/grub-install.in: Source
27765 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27766 that the --grub-probe option will work.
27767 * util/sparc64/ieee1275/grub-install.in: Likewise.
27768
27769 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27770
27771 * configure.ac: Bump version to 1.97~beta4.
27772
27773 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27774
27775 Resync grub-mkdevicemap in x86_64-efi.
27776
27777 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27778 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27779 `util/devicemap.c'.
27780
27781 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
27782
27783 * util/grub-editenv.c (create_envblk_file): Write new block with a
27784 .new suffix and then rename it into place, to ensure atomic
27785 creation.
27786
27787 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27788
27789 Do not automatically install headers.
27790
27791 * Makefile.in (include_DATA): Remove. Update all users.
27792
27793 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27794
27795 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27796 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27797
27798 * util/osdetect.lua: Remove.
27799 * script/lua/lauxlib.c: Likewise.
27800 * script/lua/ldebug.c: Likewise.
27801 * script/lua/grub_main.c: Likewise.
27802 * script/lua/lauxlib.h: Likewise.
27803 * script/lua/ldebug.h: Likewise.
27804 * script/lua/ltablib.c: Likewise.
27805 * script/lua/liolib.c: Likewise.
27806 * script/lua/lstrlib.c: Likewise.
27807 * script/lua/lualib.h: Likewise.
27808 * script/lua/ldo.c: Likewise.
27809 * script/lua/ldump.c: Likewise.
27810 * script/lua/ldo.h: Likewise.
27811 * script/lua/loslib.c: Likewise.
27812 * script/lua/lundump.c: Likewise.
27813 * script/lua/grub_lib.c: Likewise.
27814 * script/lua/ldblib.c: Likewise.
27815 * script/lua/lundump.h: Likewise.
27816 * script/lua/lmem.c: Likewise.
27817 * script/lua/grub_lib.h: Likewise.
27818 * script/lua/lmathlib.c: Likewise.
27819 * script/lua/lstate.c: Likewise.
27820 * script/lua/ltm.c: Likewise.
27821 * script/lua/lvm.c: Likewise.
27822 * script/lua/lmem.h: Likewise.
27823 * script/lua/lstate.h: Likewise.
27824 * script/lua/ltm.h: Likewise.
27825 * script/lua/ltable.c: Likewise.
27826 * script/lua/lvm.h: Likewise.
27827 * script/lua/llex.c: Likewise.
27828 * script/lua/lgc.c: Likewise.
27829 * script/lua/grub_lua.h: Likewise.
27830 * script/lua/loadlib.c: Likewise.
27831 * script/lua/lfunc.c: Likewise.
27832 * script/lua/lopcodes.c: Likewise.
27833 * script/lua/lparser.c: Likewise.
27834 * script/lua/ltable.h: Likewise.
27835 * script/lua/llex.h: Likewise.
27836 * script/lua/lgc.h: Likewise.
27837 * script/lua/lfunc.h: Likewise.
27838 * script/lua/lbaselib.c: Likewise.
27839 * script/lua/lopcodes.h: Likewise.
27840 * script/lua/lparser.h: Likewise.
27841 * script/lua/lzio.c: Likewise.
27842 * script/lua/linit.c: Likewise.
27843 * script/lua/lobject.c: Likewise.
27844 * script/lua/llimits.h: Likewise.
27845 * script/lua/lstring.c: Likewise.
27846 * script/lua/lzio.h: Likewise.
27847 * script/lua/lapi.c: Likewise.
27848 * script/lua/lcode.c: Likewise.
27849 * script/lua/lua.h: Likewise.
27850 * script/lua/lobject.h: Likewise.
27851 * script/lua/lstring.h: Likewise.
27852 * script/lua/lapi.h: Likewise.
27853 * script/lua/lcode.h: Likewise.
27854 * script/lua/luaconf.h: Likewise.
27855
27856 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27857
27858 * docs/grub.texi (Command-line and menu entry commands): Document
27859 date and echo commands.
27860
27861 2009-09-24 Pavel Roskin <proski@gnu.org>
27862
27863 * include/grub/kernel.h (struct grub_module_header): Remove
27864 `grub_module_header_types'. Make `type' unsigned. Make `size'
27865 32-bit on all platforms.
27866 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27867 8-bit field. Use grub_host_to_target32() for `size'.
27868 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27869 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27870 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27871
27872 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27873
27874 Fix "lost keypress" bug in at_keyboard.
27875
27876 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27877 Checks for readyness of input buffer (without flushing it).
27878 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27879 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27880
27881 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27882
27883 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27884 size check within GRUB_MACHINE_PCBIOS section.
27885
27886 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27887
27888 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
27889 return value.
27890 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
27891 KEYBOARD_ISREADY check.
27892 (grub_at_keyboard_checkkey): Rename to ...
27893 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
27894 Remove gratuitous cast.
27895
27896 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
27897
27898 * configure.ac: Call AC_PROG_MKDIR_P.
27899 * Makefile.in (docs/stamp-vti): Create docs directory. Create
27900 version.texi in $(builddir) rather than $(srcdir).
27901 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
27902 to makeinfo's @include search path.
27903
27904 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27905
27906 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
27907
27908 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27909
27910 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
27911 for `*.dpkg-new'.
27912
27913 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
27914
27915 Build info documentation. Some code borrowed from Automake.
27916
27917 * configure.ac: Check for makeinfo.
27918 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
27919 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
27920 docs/version.texi.
27921 (MOSTLYCLEANFILES): Add vti.tmp.
27922 (docs/version.texi, docs/stamp-vti): Update automatically.
27923 (docs/grub.info): Build info documentation. Use --force and ignore
27924 errors for now.
27925 (all-local): Add $(INFOS).
27926 (install-local): Install info files.
27927 (uninstall): Uninstall info files.
27928 * docs/version.texi: Remove from revision control. This file is
27929 automatically generated on build now.
27930 * gendistlist.sh: Add `*.info'.
27931
27932 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27933
27934 * kern/term.c: Fix indentation.
27935
27936 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27937
27938 * util/hostdisk.c: Fix a comment.
27939
27940 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
27941
27942 Fix regression introduced in r2539.
27943
27944 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
27945 to 0xA1.
27946
27947 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
27948
27949 * util/grub.d/30_os-prober.in: Don't throw away stderr from
27950 os-prober. Under normal operation, it does not print anything to
27951 stderr; if it does, we need to debug it, and throwing away stderr
27952 makes that excessively difficult.
27953
27954 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
27955
27956 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27957
27958 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27959
27960 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
27961 AC_LANG_PROGRAM from autoconf.
27962 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
27963 prototypes (fixes warning).
27964
27965 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
27966 `--disable-werror' was used.
27967
27968 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27969
27970 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
27971 uninitialized `lastaddr'.
27972
27973 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
27974
27975 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
27976
27977 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27978
27979 * commands/test.c (get_fileinfo): Return immediately if
27980 grub_fs_probe fails.
27981
27982 2009-09-14 José Martínez <xosemp@gmail.com>
27983
27984 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
27985
27986 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27987
27988 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
27989 output.
27990
27991 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
27992
27993 * configure.ac: Remove --enable-grub-pe2elf. Only build
27994 grub-pe2elf when needed by the build system itself.
27995 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
27996
27997 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27998
27999 * configure.ac: Bump version to 1.97~beta3.
28000 * docs/version.texi: Likewise.
28001
28002 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28003
28004 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28005 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28006 from here ...
28007 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28008 (grub_linux_setup_video): ... to here (with some adjustments).
28009
28010 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28011
28012 Fix memory corruption issue (spotted by Colin Watson).
28013
28014 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28015 causing returned size to be stored in an incorrect memory location.
28016 Fix use of uninitialized value when storing the returned size.
28017
28018 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28019
28020 Change clean rules to properly remove files
28021
28022 * genmk.rb: add new clean rules
28023 * Makefile.in (clean): add the new targets
28024 (mostlyclean): likewise
28025
28026 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28027
28028 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28029 to grub_uint64_t.
28030 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28031 non-resident files.
28032
28033 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28034
28035 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28036 part of bug #27349.
28037
28038 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28039
28040 * util/grub-mkconfig.in: Make the created config mode 400 and
28041 print a warning if it fails.
28042
28043 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28044
28045 * util/grub.d/40_custom.in: Ask user to type custom entries below
28046 comment, rather than below 'exec tail' line.
28047
28048 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28049
28050 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28051 visible in grub.cfg.
28052
28053 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28054
28055 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28056 file.
28057
28058 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28059
28060 * docs/grub.cfg: Add an example menu entry for memtest86+.
28061
28062 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28063
28064 * config.guess: Update to latest version from config git.
28065 * config.sub: Likewise.
28066
28067 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28068
28069 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28070 unknown-command case. Fixes bug #27320.
28071
28072 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28073
28074 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28075 `help' if the command exists.
28076
28077 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28078
28079 * INSTALL: Require GCC 4.1.3 or later.
28080
28081 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28082
28083 * Makefile.in (RMKFILES): add i386-qemu.rmk
28084 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28085 $(srcdir)/stamp-h.in
28086
28087 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28088
28089 * util/grub-probe.c (probe): Comment out buggy codepath, which
28090 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28091 should be re-enabled after 1.97.
28092
28093 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28094
28095 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28096 find searches for.
28097
28098 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28099
28100 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28101 unnecessary calls to grub_error.
28102
28103 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28104
28105 * NEWS: Mention `keystatus' and Unicode fonts.
28106
28107 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28108
28109 * configure.ac: Bump version to 1.97~beta2.
28110 * docs/version.texi: Likewise.
28111
28112 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28113
28114 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28115 containing unwind information in some cases where it previously did
28116 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28117 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28118 discussion.
28119
28120 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28121
28122 Embedding loadenv module into grub-emu
28123
28124 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28125 commands/loadenv.c
28126 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28127 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28128 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28129 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28130 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28131 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28132
28133 2009-09-03 Magnus Granberg <zorry@ume.nu>
28134
28135 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28136 include -fPIE in the default specs.
28137 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28138 to TARGET_CFLAGS.
28139
28140 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28141
28142 * INSTALL: Note that GNU Bison 2.3 or later is required.
28143
28144 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28145
28146 * kern/i386/pc/startup.S: Fix typo.
28147
28148 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28149
28150 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28151 according to GCS.
28152
28153 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28154
28155 * docs/grub.texi (Naming convention): Describe one-based partition
28156 numbering.
28157 (Device syntax): Likewise.
28158 (File name syntax): Likewise.
28159 (Block list syntax): Likewise.
28160 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28161 menu.lst.
28162 (File name syntax): Likewise.
28163 (Command-line and menu entry commands): Document acpi, blocklist,
28164 crc, export, insmod, keystatus, ls, set, and unset commands.
28165
28166 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28167
28168 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28169 to avoid implying that only one of --shift, --ctrl, or --alt may be
28170 used.
28171
28172 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28173
28174 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28175 rather than comparing against S_IFREG, which will almost never work.
28176
28177 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28178
28179 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28180 (write_blocklists): Likewise.
28181
28182 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28183
28184 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28185 argument to grub_printf.
28186
28187 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28188
28189 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28190 non GNU test.
28191
28192 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28193
28194 * kern/file.c (grub_file_read): Spelling fix
28195
28196 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28197
28198 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28199 loading of headers in some cases.
28200
28201 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28202
28203 * configure.ac: Bump version to 1.97~beta1.
28204 * docs/version.texi: Likewise.
28205
28206 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28207
28208 * include/grub/i386/xnu.h: Add license header.
28209 include grub/err.h explicitly.
28210
28211 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28212
28213 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28214 to `ufs' in the vfs.root.mountfrom kernel parameter.
28215
28216 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28217
28218 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28219
28220 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28221 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28222
28223 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28224 `ARRAY_SIZE' macro.
28225
28226 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28227
28228 * kern/file.c (grub_file_read): Check offset.
28229 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28230 * fs/jfs.c (grub_jfs_read_file): Likewise.
28231 * fs/ntfs.c (grub_ntfs_read): Likewise.
28232 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28233 * fs/minix.c (grub_minix_read_file): Correct offset check.
28234 * fs/ufs.c (grub_ufs_read_file): Likewise.
28235
28236 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28237
28238 * term/i386/pc/console.c (bios_data_area): Cast
28239 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28240
28241 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28242
28243 1-bit optimised blitters.
28244
28245 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28246 prototype.
28247 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28248 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28249 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28250 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28251 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28252 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28253 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28254 function.
28255 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28256 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28257 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28258 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28259 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28260 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28261 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28262 when possible.
28263 * video/video.c (grub_video_get_blit_format): Return
28264 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28265
28266 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28267
28268 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28269 the first argument to grub_printf.
28270
28271 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28272 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28273
28274 Add `getkeystatus' terminal method. Add a new `keystatus' command
28275 to query it.
28276
28277 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28278 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28279 modifier key bitmasks.
28280 (struct grub_term_input): Add `getkeystatus' member.
28281 (grub_getkeystatus): Add prototype.
28282 * kern/term.c (grub_getkeystatus): New function.
28283
28284 * include/grub/i386/pc/memory.h
28285 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28286 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28287 Data Area layout.
28288 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28289 (grub_console_term_input): Set `getkeystatus' member.
28290 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28291 constants.
28292 (grub_usb_keyboard_getreport): Likewise.
28293 (grub_usb_keyboard_checkkey): Likewise.
28294 (grub_usb_keyboard_getkeystatus): New function.
28295 (grub_usb_keyboard_term): Set `getkeystatus' member.
28296
28297 * commands/keystatus.c: New file.
28298 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28299 (keystatus_mod_SOURCES): New variable.
28300 (keystatus_mod_CFLAGS): Likewise.
28301 (keystatus_mod_LDFLAGS): Likewise.
28302 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28303 commands/keystatus.c.
28304 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28305 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28306 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28307 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28308 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28309 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28310
28311 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28312
28313 Split befs.mod and afs.mod into *_be.mod and *.mod
28314
28315 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28316 (grub_fstest_SOURCES): Likewise.
28317 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28318 (afs_be_mod_SOURCES): New variable.
28319 (afs_be_mod_CFLAGS): Likewise.
28320 (afs_be_mod_LDFLAGS): Likewise.
28321 (befs_be_mod_SOURCES): Likewise.
28322 (befs_be_mod_CFLAGS): Likewise.
28323 (befs_be_mod_LDFLAGS): Likewise.
28324 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28325 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28326 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28327 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28328 (grub_emu_SOURCES): Likewise.
28329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28330 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28331 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28332 * fs/afs_be.c: New file.
28333 * fs/befs_be.c: New file.
28334 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28335 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28336 (U16): Replaced with ...
28337 (grub_afs_to_cpu16): ...this. All users updated.
28338 (U32): Replaced with ...
28339 (grub_afs_to_cpu32): ...this. All users updated.
28340 (U64): Replaced with ...
28341 (grub_afs_to_cpu64): ...this. All users updated.
28342 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28343 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28344 (grub_afs_validate_sblock): Check only one endianness.
28345 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28346 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28347 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28348 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28349 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28350 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28351 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28352 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28353
28354 2009-08-26 Bean <bean123ch@gmail.com>
28355
28356 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28357 64-bit number.
28358 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28359 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28360 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28361
28362 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28363
28364 NetBSD memory map support.
28365
28366 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28367 (grub_netbsd_btinfo_mmap_header): New structure.
28368 (grub_netbsd_btinfo_mmap_entry): Likewise.
28369 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28370
28371 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28372
28373 Enable bsd.mod on coreboot.
28374
28375 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28376 (bsd_mod_SOURCES): New variable.
28377 (bsd_mod_CFLAGS): Likewise.
28378 (bsd_mod_LDFLAGS): Likewise.
28379 (bsd_mod_ASFLAGS): Likewise.
28380 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28381 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28382
28383 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28384
28385 Cleanup NetBSD root support.
28386
28387 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28388 grub_bsd_get_device.
28389 Fix typo.
28390
28391 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28392
28393 * util/grub.d/00_header.in: Move check for the video backend of
28394 gfxterm from here ...
28395 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28396 a suitable video backend.
28397
28398 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28399
28400 Fix breakage in grub-setup.
28401
28402 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28403 "msdos_partition_map".
28404
28405 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28406
28407 Fix breakage in normal/auth.c.
28408
28409 * normal/auth.c (grub_iswordseparator): New function.
28410
28411 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28412
28413 Authentication support.
28414
28415 * commands/password.c: New file.
28416 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28417 (password_mod_SOURCES): New variable.
28418 (password_mod_CFLAGS): Likewise.
28419 (password_mod_LDFLAGS): Likewise.
28420 (normal_mod_SOURCES): Add normal/auth.c.
28421 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28422 normal/auth.c.
28423 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28424 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28425 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28427 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28428 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28429 * include/grub/auth.h: New file.
28430 * include/grub/err.h (grub_err_t): New enum value
28431 GRUB_ERR_ACCESS_DENIED.
28432 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28433 'users'.
28434 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28435 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28436 users updated.
28437 * normal/auth.c: New file.
28438 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28439 (grub_cmdline_run): Don't allow to go to command line without
28440 authentication.
28441 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28442 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28443 menuentry without superuser rights.
28444 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28445 user isn't a superuser.
28446
28447 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28448
28449 Save space by inlining misc.c functions.
28450
28451 * kern/misc.c (grub_iswordseparator): Made static.
28452 * kern/misc.c (grub_strcat): Moved from here ...
28453 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28454 * kern/misc.c (grub_strncat): Moved from here ...
28455 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28456 * kern/misc.c (grub_strcasecmp): Moved from here ...
28457 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28458 * kern/misc.c (grub_strncasecmp): Moved from here ...
28459 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28460 * kern/misc.c (grub_isalpha): Moved from here ...
28461 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28462 * kern/misc.c (grub_isdigit): Moved from here ...
28463 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28464 * kern/misc.c (grub_isgraph): Moved from here ...
28465 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28466 * kern/misc.c (grub_tolower): Moved from here ...
28467 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28468
28469 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28470
28471 * script/sh/function.c (grub_script_function_find): Cut error message
28472 not to flood terminal.
28473 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28474 limit.
28475 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28476
28477 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28478
28479 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28480 `report' grub_uint8_t *.
28481 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28482 Use a 50-millisecond timeout rather than just repeating
28483 grub_usb_keyboard_getreport 50 times.
28484 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28485
28486 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28487
28488 Rename *_partition_map to part_*
28489
28490 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28491 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28492 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28493 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28494 All users updated.
28495 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28496 All users updated.
28497 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28498 * util/grub-probe.c (probe_partmap): Don't transform partition name
28499 to get module name.
28500
28501 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28502
28503 Fix OpenBSD and NetBSD support.
28504
28505 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28506 memory address conflict.
28507 (OPENBSD_MMAP_ACPI): New definition.
28508 (OPENBSD_MMAP_NVS): Likewise.
28509 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28510 and OPENBSD_MMAP_NVS.
28511 Add memory map terminator
28512 Explicit cast when calling grub_unix_real_boot.
28513 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28514
28515 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28516
28517 Let user specify NetBSD root device.
28518
28519 * loader/i386/bsd.c (netbsd_root): New variable.
28520 (netbsd_opts): New option 'root'.
28521 (NETBSD_ROOT_ARG): New macro.
28522 (grub_netbsd_boot): Use 'netbsd_root'.
28523 (grub_bsd_unload): Free 'netbsd_root'.
28524 (grub_cmd_netbsd): Fill 'netbsd_root'.
28525
28526 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28527
28528 Support for 64-bit NetBSD.
28529
28530 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28531 point when booting non-FreeBSD.
28532
28533 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28534
28535 Support --no-smp and --no-acpi for NetBSD.
28536
28537 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28538 (NETBSD_AB_NOACPI): Likewise.
28539 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28540 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28541
28542 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28543
28544 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28545 errors.
28546 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28547 errors. Call grub_error when needed.
28548
28549 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28550
28551 * commands/search.c (search_fs): Try searching without autoload first.
28552 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28553 filesystem module explicitly for faster booting.
28554
28555 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28556
28557 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28558
28559 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28560
28561 * util/grub.d/30_os-prober.in: Disable os-prober if
28562 `GRUB_DISABLE_OS_PROBER' was set to true.
28563
28564 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28565
28566 * partmap/pc.c: Rename to ...
28567 * partmap/msdos.c: ... this. Update all users.
28568 (grub_pc_partition_map): Rename to ...
28569 (grub_msdos_partition_map): ... this. Update all users.
28570
28571 * parttool/pcpart.c: Rename to ...
28572 * parttool/msdospart.c: ... this. Update all users.
28573
28574 * include/grub/pc_partition.h: Rename to ...
28575 * include/grub/msdos_partition.h: ... this. Update all users.
28576 (grub_pc_partition_bsd_entry): Rename to ...
28577 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28578 (grub_pc_partition_disk_label): Rename to ...
28579 (grub_msdos_partition_disk_label): ... this. Update all users.
28580 (grub_pc_partition_entry): Rename to ...
28581 (grub_msdos_partition_entry): ... this. Update all users.
28582 (grub_pc_partition_mbr): Rename to ...
28583 (grub_msdos_partition_mbr): ... this. Update all users.
28584 (grub_pc_partition): Rename to ...
28585 (grub_msdos_partition): ... this. Update all users.
28586 (grub_pc_partition_is_empty): Rename to ...
28587 (grub_msdos_partition_is_empty): ... this. Update all users.
28588 (grub_pc_partition_is_extended): Rename to ...
28589 (grub_msdos_partition_is_extended): ... this. Update all users.
28590 (grub_pc_partition_is_bsd): Rename to ...
28591 (grub_msdos_partition_is_bsd): ... this. Update all users.
28592
28593 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28594 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28595 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28596 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28597 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28598 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28599 (gpt_mod_LDFLAGS): Rename to ...
28600 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28601 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28602 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28603 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28604 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28605 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28606 (part_gpt_mod_LDFLAGS): ... this.
28607 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28608 `pcpart.mod' to `msdospart.mod'.
28609 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28610 to ...
28611 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28612 (msdospart_mod_LDFLAGS): ... this.
28613
28614 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28615
28616 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28617 (openbsd_opts): Likewise.
28618 (netbsd_opts): Likewise.
28619 (freebsd_flags): Added 0 terminator.
28620 (openbsd_flags): Likewise.
28621 (netbsd_flags): Likewise.
28622 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28623 (grub_cmd_freebsd): Transformed into extended command.
28624 (grub_cmd_openbsd): Likewise.
28625 (grub_cmd_netbsd): Likewise.
28626 (cmd_freebsd): Changed type to grub_extcmd_t.
28627 (cmd_openbsd): Likewise.
28628 (cmd_netbsd): Likewise.
28629 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28630 grub_cmd_openbsd as extended commands.
28631 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28632 cmd_netbsd and cmd_openbsd
28633
28634 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28635
28636 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28637
28638 2009-08-21 Pavel Roskin <proski@gnu.org>
28639
28640 * Makefile.in (install-local): When checking if a file is in the
28641 build directory, use "test -e" to detect symlinks.
28642
28643 * Makefile.in (install-local): Remove all files in
28644 $(DESTDIR)$(pkglibdir) before installing new files there.
28645
28646 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28647
28648 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28649 grub-mkelfimage.
28650
28651 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28652
28653 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28654 explicitly specified by the user.
28655
28656 2009-08-18 Pavel Roskin <proski@gnu.org>
28657
28658 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28659 grub_uint8_t pointer for data.
28660 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28661 Likewise.
28662 * video/fb/fbutil.c: Remove unnecessary casts.
28663
28664 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28665
28666 VBE cleanup.
28667
28668 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28669 (grub_vbe_set_video_mode): Save active mode info
28670 only after setting the mode.
28671 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28672 second argument.
28673
28674 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28675
28676 Rename variables for clarity.
28677
28678 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28679 (active_vbe_mode_info): ... this. All users updated.
28680 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28681 All users updated.
28682 (initial_mode): Rename to ...
28683 (initial_vbe_mode): ... this. All users updated.
28684 (mode_in_use): Rename to ..
28685 (vbe_mode_in_use): ... this. All users updated.
28686 (mode_list): Rename to ..
28687 (vbe_mode_list): ... this. All users updated.
28688 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28689 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28690 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28691 'mode_list_size' to 'vbe_mode_list_size'.
28692 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28693 'best_mode_info' to 'best_vbe_mode_info' and
28694 'best_mode' to 'best_vbe_mode'
28695
28696 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28697
28698 Remove duplicate grub_video_fb_get_video_ptr.
28699
28700 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28701 (grub_video_fb_get_video_ptr): ... this.
28702 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28703 * video/fb/fbutil.c: Add comment about addressing.
28704 (get_data_ptr): Rename to ...
28705 (grub_video_fb_get_video_ptr): ... this. All users updated.
28706 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28707
28708 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28709
28710 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28711 grub_dprintf() that was just added.
28712
28713 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28714
28715 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28716 (DEFAULT_VIDEO_MODE): Remove macros.
28717 (grub_linux_boot): Remove assumption that Linux has FB support,
28718 and use "text" as default video mode.
28719
28720 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28721
28722 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28723 grub_dprintf.
28724 * fs/fat.c (grub_fat_read_data): Likewise.
28725
28726 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28727
28728 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28729 payload.
28730 (grub_module): Likewise.
28731
28732 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28733
28734 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28735 mbi->cmdline but free playground.
28736
28737 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28738
28739 Handle group offset on UFS1.
28740
28741 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28742 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28743
28744 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28745
28746 Split ufs.mod into ufs1.mod and ufs2.mod.
28747
28748 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28749 (grub_fstest_SOURCES): Likewise.
28750 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28751 (ufs_mod_SOURCES): Remove.
28752 (ufs_mod_CFLAGS): Likewise.
28753 (ufs_mod_LDFLAGS): Likewise.
28754 (ufs1_mod_SOURCES): New variable.
28755 (ufs1_mod_CFLAGS): Likewise.
28756 (ufs1_mod_LDFLAGS): Likewise.
28757 (ufs2_mod_SOURCES): New variable.
28758 (ufs2_mod_CFLAGS): Likewise.
28759 (ufs2_mod_LDFLAGS): Likewise.
28760 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28761 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28762 Likewise.
28763 (grub_emu_SOURCES): Likewise.
28764 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28765 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28766 (grub_setup_SOURCES): Likewise.
28767 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28768 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28769 (grub_setup_SOURCES): Likewise.
28770 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28771 Likewise.
28772 * fs/ufs2.c: New file.
28773 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28774
28775 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28776
28777 Framebuffer split.
28778
28779 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28780 subsystem at the end.
28781 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28782 (video_fb_mod_SOURCES): New variable.
28783 (video_fb_mod_CFLAGS): Likewise.
28784 (video_fb_mod_LDFLAGS): Likewise.
28785 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28786 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28787 * video/i386/pc/vbeblit.c: Moved from here ...
28788 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28789 * video/i386/pc/vbefill.c: Moved from here ...
28790 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28791 * video/i386/pc/vbeutil.c: Moved from here ...
28792 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28793 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28794 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28795 * include/grub/i386/pc/vbefill.h: Moved from here ...
28796 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28797 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28798 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28799 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28800 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28801 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28802 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28803 (grub_video_adapter): Added 'get_info_and_fini'.
28804 (grub_video_get_info_and_fini): New prototype.
28805 (grub_video_set_mode): make modestring const char *.
28806 * loader/i386/linux.c (grub_linux_setup_video): Use
28807 grub_video_get_info_and_fini.
28808 (grub_linux_boot): Move modesetting just before booting.
28809 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28810 grub_video_get_info_and_fini.
28811 * video/i386/pc/vbe.c: Moved framebuffer part ...
28812 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28813 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28814 grub_video_fbstd_colors and grub_video_fb_set_palette.
28815 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28816 grub_video_fb_init.
28817 (grub_video_vbe_fini): Use grub_video_fb_fini.
28818 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28819 render_target and use grub_video_fb_set_active_render_target and
28820 grub_video_fb_set_palette.
28821 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28822 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28823 (grub_video_vbe_adapter): Use framebuffer.
28824 * video/video.c (grub_video_get_info_and_fini): New function.
28825 (grub_video_set_mode): Make modestring const char *.
28826 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28827 values are already initialised.
28828
28829 2009-08-14 Pavel Roskin <proski@gnu.org>
28830
28831 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28832 ABS and APPLE_CC.
28833 * boot/i386/pc/diskboot.S: Likewise.
28834 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28835 sectors allow compilation on MacOSX.
28836 * conf/i386-pc.rmk: Enable unconditional compilation of
28837 lnxboot.img.
28838
28839 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28840
28841 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28842 * util/grub.d/00_header.in: Enter interruptible sleep if
28843 GRUB_HIDDEN_TIMEOUT is set.
28844
28845 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28846
28847 * include/grub/symbol.h: Add the LOCAL macro.
28848 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28849 starting with "L_".
28850
28851 2009-08-13 Pavel Roskin <proski@gnu.org>
28852
28853 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28854 any modern compilers we support.
28855
28856 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28857 Use local labels starting with "L_" so that Apple assembler
28858 knows they are local.
28859
28860 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28861
28862 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28863 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28864 (bsd_kernel_types): ... this enum.
28865
28866 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28867 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28868 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28869
28870 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28871 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28872 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28873 messages.
28874
28875 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28876
28877 * util/grub-dumpdevtree: Moved from here ...
28878 * util/i386/efi/grub-dumpdevtree: ... to here.
28879 (hexify): New function. Converts a string to its hex version.
28880 Generate hex versions of "efi" and "device-properties" by calling
28881 hexify() on the ASCII strings rather than by hardcoding numbers.
28882
28883 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28884
28885 * fs/jfs.c: Update copyright year.
28886
28887 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28888
28889 * util/grub.d/00_header.in: Fix a comment.
28890 * util/grub.d/10_linux.in: Likewise.
28891 * util/grub.d/10_windows.in: Likewise.
28892 * util/grub.d/10_hurd.in: Likewise.
28893
28894 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28895
28896 * util/grub-mkconfig.in: Allow the user to specify the used font
28897 with GRUB_FONT.
28898
28899 2009-08-08 Pavel Roskin <proski@gnu.org>
28900
28901 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
28902 available, xfs.mod needs it now.
28903
28904 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
28905 the "g" modifier in sed when the intention is to strip something
28906 once. This fixes comparison of kernels with multiple dashes.
28907
28908 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
28909 on it. Add missing space before closing bracket. Fix
28910 misleading formatting.
28911
28912 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28913
28914 * docs/grub.texi: Major overhaul. Remove all sections that are
28915 specific to GRUB Legacy, or mostly composed of Legacy-specific
28916 information.
28917
28918 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28919
28920 * docs/version.texi: New file. Provides version information for
28921 grub.texi.
28922
28923 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28924
28925 * docs/grub.texi: Update CVS information to SVN.
28926 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
28927
28928 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28929
28930 * util/grub-mkconfig.in: Remove a wrong `fi'.
28931
28932 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28933
28934 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
28935 (grub_jfs_uuid): New function.
28936 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
28937
28938 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28939
28940 * util/grub-mkconfig_lib.in (font_path): Move the functionality
28941 of it to ...
28942 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
28943 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
28944
28945 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28946
28947 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
28948 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
28949 Update all users.
28950
28951 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
28952 not just "vmlinu[zx]".
28953 Moved from here ...
28954 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
28955 all users.
28956
28957 * util/grub.d/10_linux.in (find_latest): Moved from here ...
28958 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
28959 all users.
28960
28961 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28962
28963 * util/grub.d/10_freebsd.in: Use an absolute device path for
28964 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
28965
28966 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
28967
28968 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
28969 handling of multiple abstraction modules.
28970
28971 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
28972
28973 Fix a bug resulting in black screen when loading Linux using a
28974 packed video mode.
28975
28976 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
28977 function.
28978
28979 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
28980 (grub_vbe_bios_getset_dac_palette_width): New function.
28981 (grub_vbe_bios_get_dac_palette_width)
28982 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
28983 grub_vbe_bios_getset_dac_palette_width()).
28984
28985 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
28986 check for return status.
28987 (grub_vbe_get_video_mode_info): When getting information for a packed
28988 mode (<= 8 bpp), obtain DAC palette width using
28989 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
28990 {red,green,blue}_mark_size.
28991
28992 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
28993
28994 * commands/search.c (options): Fix help output to match actual code.
28995
28996 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
28997
28998 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
28999 of homegrown code.
29000
29001 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29002
29003 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29004 on XFS or ReiserFS.
29005
29006 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29007
29008 Support Apple partition map with sector size different from 512 bytes.
29009
29010 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29011 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29012 and 'apart.partmap_size'.
29013
29014 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29015 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29016
29017 Fix cpuid command.
29018
29019 * commands/i386/cpuid.c (options): New variable.
29020 (grub_cmd_cpuid): Return real error.
29021 (GRUB_MOD_INIT(cpuid)): Declare options.
29022
29023 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29024
29025 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29026 valid.
29027
29028 2009-07-31 Bean <bean123ch@gmail.com>
29029
29030 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29031 log2_inode.
29032 (grub_fshelp_node): Move inode field to the end.
29033 (grub_xfs_data): Remove inode field.
29034 (grub_xfs_inode_block): Calculate inode size using sblock.
29035 (grub_xfs_inode_offset): Likewise.
29036 (grub_xfs_read_inode): Calculate inode size using sblock.
29037 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29038 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29039 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29040 to match inode size.
29041 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29042 not accessible when data is null.
29043 (grub_xfs_open): Likewise.
29044
29045 2009-07-31 Bean <bean123ch@gmail.com>
29046
29047 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29048 Don't change pv->disk if it's already set.
29049
29050 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29051 (grub_raid_register): ... here.
29052 (grub_raid_rescan): Removed.
29053
29054 * include/grub/raid.h (grub_raid_rescan): Removed.
29055
29056 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29057 (fstest): Replace grub_raid_rescan with module fini function followed
29058 by init function.
29059
29060 * util/grub-probe.c: Add include file <grub/raid.h>.
29061 (probe_raid_level): New function.
29062 (probe): Detect abstraction by walking the disk device, support two
29063 level of abstraction (LVM on RAID) when detecting partition map.
29064
29065 2009-07-31 Pavel Roskin <proski@gnu.org>
29066
29067 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29068 to grub_zalloc(), it was erroneous.
29069 Reported by Bean <bean123ch@gmail.com>
29070
29071 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29072
29073 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29074 embedding zone, not only the first one.
29075
29076 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29077
29078 * term/gfxterm.c (clear_char): New function.
29079 (grub_virtual_screen_setup): Use clear_char.
29080 (scroll_up): Likewise.
29081 (grub_virtual_screen_cls): Likewise.
29082
29083 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29084
29085 * util/deviceiter.c (get_acceleraid_disk_name): New static
29086 function.
29087 (grub_util_iterate_devices): Handle Accelraid devices.
29088 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29089
29090 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29091
29092 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29093 separator for the suggested gfxpayload string (';' collides with the
29094 parser and needs escaping).
29095
29096 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29097
29098 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29099 Clear direction flag before jumping to OS.
29100 (grub_multiboot2_real_boot): Likewise.
29101
29102 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29103
29104 * util/i386/pc/grub-install: Fix parsing of --disk-module
29105 option.
29106
29107 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29108
29109 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29110 when embedding.
29111
29112 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29113
29114 * util/grub-mkconfig.in (package_version): New variable.
29115 Use it do display the version.
29116
29117 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29118
29119 * kern/file.c (grub_file_open): Revert to previous check with
29120 grub_errno.
29121
29122 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29123
29124 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29125 from help line. It's out of sync with code.
29126
29127 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29128
29129 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29130 entries on failed boot.
29131
29132 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29133
29134 * kern/file.c (grub_file_open): Fix an error check.
29135
29136 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29137
29138 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29139 partition map couldn't be identified.
29140
29141 2009-07-23 Pavel Roskin <proski@gnu.org>
29142
29143 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29144 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29145 case of little endian words becomes just an optimization.
29146 Respect const modifier.
29147 (md5_final): Use code that doesn't depend on endianness.
29148
29149 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29150 to avoid loss of upper bits if align is unsigned and shorter
29151 than addr.
29152
29153 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29154
29155 UUID support for UFS
29156
29157 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29158 (grub_ufs_uuid): New function.
29159 (grub_ufs_fs): add .uuid
29160
29161 2009-07-21 Pavel Roskin <proski@gnu.org>
29162
29163 * kern/dl.c (grub_dl_check_header): Make static.
29164
29165 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29166
29167 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29168 add drivemap for Vista. It breaks Windows 7.
29169
29170 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29171
29172 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29173 128 bytes
29174
29175 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29176
29177 Add BFS support
29178
29179 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29180 (grub_fstest_SOURCES): Likewise.
29181 (pkglib_MODULES): Add befs.mod.
29182 (befs_mod_SOURCES): New variable.
29183 (befs_mod_CFLAGS): Likewise.
29184 (befs_mod_LDFLAGS): Likewise.
29185 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29186 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29187 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29188 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29189 (grub_setup_SOURCES): Likewise.
29190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29191 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29192 (grub_setup_SOURCES): Likewise.
29193 * fs/befs.c: New file.
29194 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29195 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29196 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29197 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29198 (B_KEY_INDEX_ALIGN): New declaration.
29199 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29200 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29201 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29202 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29203 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29204 (grub_afs_mount) [MODE_BFS]: Likewise.
29205 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29206 (grub_afs_fs): Use GRUB_AFS_FSNAME
29207 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29208 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29209 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29210 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29211
29212 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29213
29214 * util/getroot.c (find_root_device): Add support for MacOSX.
29215 * util/hostdisk.c: Likewise.
29216
29217 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29218
29219 * font/font.c (find_glyph): Check whether a font is present to avoid
29220 segmentation fault.
29221
29222 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29223
29224 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29225
29226 2009-07-20 Pavel Roskin <proski@gnu.org>
29227
29228 * configure.ac: Trim excessively wordy excuses.
29229
29230 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29231
29232 Add symlink, mtime and label support to AtheFS.
29233
29234 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29235 (grub_afs_iterate_dir): Handle symlinks.
29236 (grub_afs_open): Use grub_afs_read_symlink.
29237 (grub_afs_dir): Likewise.
29238 Pass mtime.
29239 (grub_afs_label): New function.
29240 (grub_afs_fs): Add grub_afs_label.
29241 (grub_afs_read_symlink): New function.
29242
29243 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29244
29245 Fix AtheFS support.
29246
29247 * fs/afs.c: Fix comments style.
29248 (grub_afs_blockrun): Declare as packed.
29249 (grub_afs_datastream): Likewise.
29250 (grub_afs_bnode): Likewise.
29251 (grub_afs_btree): Likewise.
29252 (grub_afs_sblock): Likewise.
29253 Declare `name' as char.
29254 (grub_afs_inode): Declare as packed.
29255 Change void *vnode to grub_uint32_t unused.
29256 (grub_afs_iterate_dir): Check that key_size is positive.
29257 (grub_afs_mount): Don't read superblock twice.
29258 (grub_afs_dir): Don't free node in case of error,
29259 grub_fshelp_find_file already handles this.
29260 (grub_afs_open): Likewise.
29261
29262 2009-07-19 Pavel Roskin <proski@gnu.org>
29263
29264 * Makefile.in: Remove LIBLZO and enable_lzo.
29265 * conf/i386-pc.rmk: Remove lzo support.
29266 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29267 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29268 support.
29269 * kern/i386/pc/lzo1x.S: Remove.
29270 * kern/i386/pc/startup.S: Remove lzo support.
29271 * util/i386/pc/grub-mkimage.c: Likewise.
29272
29273 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29274
29275 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29276 * fs/xfs.c (grub_xfs_dir): Likewise.
29277 * fs/afs.c (grub_afs_dir): Likewise.
29278 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29279 (grub_iso9660_open): Likewise.
29280 * fs/jfs.c (grub_jfs_open): Likewise.
29281 * fs/ext2.c (grub_ext2_dir): Likewise.
29282 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29283 * script/sh/lexer.c (grub_script_yylex): Likewise.
29284
29285 2009-07-16 Pavel Roskin <proski@gnu.org>
29286
29287 * configure.ac: Never add "-c" to CFLAGS.
29288
29289 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29290
29291 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29292 grub_cv_cc_efiemu should be used.
29293
29294 * configure.ac: Typo fixes.
29295
29296 * kern/mm.c (grub_zalloc): New function.
29297 (grub_debug_zalloc): Likewise.
29298 * include/grub/mm.h: Declare grub_zalloc() and
29299 grub_debug_zalloc().
29300 * util/misc.c (grub_zalloc): New function.
29301 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29302 instead of grub_malloc(), remove unneeded initializations.
29303 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29304 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29305 * commands/parttool.c (grub_cmd_parttool): Likewise.
29306 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29307 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29308 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29309 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29310 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29311 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29312 (grub_cmd_efiemu_pnvram): Likewise.
29313 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29314 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29315 (grub_iso9660_iterate_dir): Likewise.
29316 * fs/jfs.c (grub_jfs_opendir): Likewise.
29317 * fs/ntfs.c (list_file): Likewise.
29318 (grub_ntfs_mount): Likewise.
29319 * kern/disk.c (grub_disk_open): Likewise.
29320 * kern/dl.c (grub_dl_load_core): Likewise.
29321 * kern/elf.c (grub_elf_file): Likewise.
29322 * kern/env.c (grub_env_context_open): Likewise.
29323 (grub_env_set): Likewise.
29324 (grub_env_set_data_slot): Likewise.
29325 * kern/file.c (grub_file_open): Likewise.
29326 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29327 * loader/i386/multiboot.c (grub_module): Likewise.
29328 * loader/xnu.c (grub_xnu_create_key): Likewise.
29329 (grub_xnu_create_value): Likewise.
29330 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29331 (read_config_file): Likewise.
29332 * normal/menu_entry.c (make_screen): Likewise.
29333 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29334 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29335 * script/sh/script.c (grub_script_parse): Likewise.
29336 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29337 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29338 * video/readers/png.c (grub_png_output_byte): Likewise.
29339 (grub_video_reader_png): Likewise.
29340
29341 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29342
29343 Enable all targets that can be built by default
29344
29345 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29346 grub-mkfont and grub-fstest if they can be built
29347
29348 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29349
29350 Fix hang and segmentation fault in grub-emu-usb
29351
29352 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29353 * util/usb.c (grub_libusb_devices): likewise
29354 (grub_libusb_init): rename to ...
29355 (GRUB_MOD_INIT (libusb)):...this
29356 (grub_libusb_fini): rename to ..
29357 (GRUB_MOD_FINI (libusb)):...this
29358 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29359 * include/grub/disk.h (grub_raid_init): removed, it's useless
29360 (grub_raid_fini): likewise
29361 (grub_lvm_init): likewise
29362 (grub_lvm_fini): likewise
29363 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29364 by grub_init_all
29365
29366 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29367
29368 Fix libusb
29369
29370 * Makefile.in (LIBUSB): new macro
29371 * genmk.rb (Utility/print_tail): new method
29372 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29373 (top level): call util.print_tail at the end.
29374
29375 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29376
29377 Make FreeBSD accept zpool.cache
29378
29379 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29380 type is /boot/zfs/zpool.cache
29381
29382 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29383
29384 Fix 64-bit efiemu
29385
29386 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29387 correct wrong typedef
29388 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29389
29390 2009-07-15 Pavel Roskin <proski@gnu.org>
29391
29392 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29393 * kern/disk.c (struct grub_disk_cache): Likewise.
29394
29395 * commands/probe.c (options): Typo fix.
29396
29397 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29398 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29399 accordingly.
29400 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29401
29402 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29403 the end of "Error" to make the message more readable.
29404
29405 * boot/i386/pc/boot.S (kernel_segment): Remove.
29406 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29407 for destination.
29408
29409 * boot/i386/pc/boot.S (boot_version): Remove.
29410 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29411 Remove.
29412
29413 * include/grub/i386/pc/boot.h: Sort all offsets.
29414 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29415 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29416 * boot/i386/pc/boot.S: Assert location of every offset listed in
29417 include/grub/i386/pc/boot.h.
29418
29419 2009-07-13 Pavel Roskin <proski@gnu.org>
29420
29421 * include/grub/i386/coreboot/machine.h: Rename
29422 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29423 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29424 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29425
29426 * kern/dl.c: Force native word size to suppress warnings when
29427 compiling grub-emu.
29428
29429 * kern/device.c (grub_device_iterate): Change struct part_ent to
29430 hold the name, not a pointer to it. Use one grub_malloc() per
29431 partition, not two. Free partition_name if grub_malloc() fails.
29432 Set ents to NULL only before grub_partition_iterate() is called.
29433
29434 2009-07-11 Bean <bean123ch@gmail.com>
29435
29436 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29437 childname.
29438
29439 2009-07-10 Bean <bean123ch@gmail.com>
29440 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29441
29442 * kern/ieee1275/openfw.c (grub_children_iterate)
29443 (grub_devalias_iterate): Fix size evaluation for property or path
29444 strings, which was broken since r2132.
29445
29446 2009-07-07 Pavel Roskin <proski@gnu.org>
29447
29448 * commands/search.c (search_file): Merge into ...
29449 (search_fs): ... this. Accept search type as argument.
29450 (grub_cmd_search): Pass search type to search_fs().
29451
29452 * include/grub/util/console.h: New file.
29453 * util/console.c: Use it instead of grub/machine/console.h.
29454 * util/grub-emu.c: Likewise.
29455
29456 * lib/arg.c (find_long_option): Remove.
29457 (find_long): Add `len' argument, make `s' const char *.
29458 (grub_arg_parse): Parse long options in place, not in a
29459 temporary buffer.
29460
29461 2009-07-06 Pavel Roskin <proski@gnu.org>
29462
29463 * commands/search.c (search_fs): Fix potential NULL pointer
29464 dereference.
29465
29466 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29467 function pointer.
29468
29469 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29470
29471 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29472 comparison.
29473
29474 2009-07-05 Pavel Roskin <proski@gnu.org>
29475
29476 * include/grub/i386/linux.h (struct linux_kernel_params):
29477 Restore padding3, it's still needed.
29478
29479 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29480 FreeBSD.
29481 * util/osdetect.lua: Likewise.
29482
29483 2009-07-05 Bean <bean123ch@gmail.com>
29484
29485 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29486
29487 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29488 (grub_lua_getenv): Likewise.
29489 (grub_lua_setenv): Likewise.
29490 (save_errno): New function.
29491 (push_result): Likewise.
29492 (grub_lua_enum_device): Likewise.
29493 (grub_lua_enum_file): Likewise.
29494 (grub_lua_file_open): Likewise.
29495 (grub_lua_file_close): Likewise.
29496 (grub_lua_file_seek): Likewise.
29497 (grub_lua_file_read): Likewise.
29498 (grub_lua_file_getline): Likewise.
29499 (grub_lua_file_getsize): Likewise.
29500 (grub_lua_file_getpos): Likewise.
29501 (grub_lua_file_eof): Likewise.
29502 (grub_lua_file_exist): Likewise.
29503 (grub_lua_add_menu): Likewise.
29504
29505 * script/lua/grub_lua.h (isupper): New inline function.
29506 (islower): Likewise.
29507 (ispunct): Likewise.
29508 (isxdigit): Likewise.
29509 (strcspn): Change to normal function.
29510 (strpbkr): New function declaration.
29511 (memchr): Likewise.
29512
29513 * script/lua/grub_main.c (scan_str): New function.
29514 (strcspn): Likewise.
29515 (strpbrk): Likewise.
29516 (memchr): Likewise.
29517
29518 * script/lua/linit.c (lualibs): Enable the string library.
29519
29520 * util/osdetect.lua: New file.
29521
29522 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29523
29524 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29525 `capabilities' member.
29526
29527 2009-07-02 Pavel Roskin <proski@gnu.org>
29528
29529 * genparttoollist.sh: Add missing newline at the end.
29530
29531 2009-07-01 Pavel Roskin <proski@gnu.org>
29532
29533 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29534
29535 * util/hostdisk.c (open_device): Remove `const' from
29536 `sysctl_size', as sysctlbyname() can change it (in this case it
29537 doesn't actually happen).
29538
29539 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29540 using signed long int constants.
29541
29542 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29543 constant to avoid a warning on FreeBSD.
29544
29545 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29546 where it's needed.
29547
29548 * Makefile.in: Install include/grub/machine symlink.
29549
29550 * Makefile.in: When installing symlinks, use "cp -fR", which
29551 works on FreeBSD and MacOSX.
29552 From Yves Blusseau <cl7m42e02@sneakemail.com>
29553
29554 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29555 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29556
29557 * util/misc.c: Move grub_reboot() and grub_halt() ...
29558 * util/grub-emu.c: ... here. Make main_env static.
29559 * include/grub/util/misc.h: Remove main_env.
29560
29561 * kern/mm.c: Use correct format to print size_t.
29562
29563 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29564 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29565 * kern/powerpc/dl.c: Likewise.
29566 * kern/sparc64/dl.c: Likewise.
29567 * kern/x86_64/dl.c: Likewise.
29568
29569 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29570
29571 Fix grub-emu build on sparc64-ieee1275.
29572
29573 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29575
29576 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29577
29578 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29579 (grub_reboot, grub_halt): New functions.
29580
29581 * util/i386/pc/misc.c: Delete. Update all users.
29582 * util/sparc64/ieee1275/misc.c: Likewise.
29583 * util/powerpc/ieee1275/misc.c: Likewise.
29584
29585 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29586
29587 * conf/i386.rmk (setjmp_mod_SOURCES)
29588 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29589 * conf/common.rmk (setjmp_mod_SOURCES)
29590 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29591 to use $(target_cpu).
29592 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29593 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29594 * conf/powerpc-ieee1275.rmk: Likewise.
29595 * conf/sparc64-ieee1275.rmk: Likewise.
29596
29597 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29598 $(target_cpu) for kern/$(target_cpu)/dl.c.
29599 * conf/i386-efi.rmk: Likewise.
29600 * conf/i386-ieee1275.rmk: Likewise.
29601 * conf/x86_64-efi.rmk: Likewise.
29602 * conf/i386-coreboot.rmk: Likewise.
29603 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29604 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29605 kern/$(target_cpu)/cache.S.
29606 * conf/sparc64-ieee1275.rmk: Likewise.
29607
29608 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29609
29610 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29611 type to `grub_uint8_t', and adjust `padding9' accordingly.
29612
29613 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29614
29615 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29616
29617 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29618 assembly in final jump, using register constraints.
29619
29620 (grub_linux_boot): For text mode, initialize `have_vga' using
29621 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29622
29623 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29624 right before the final jump.
29625
29626 Set `video_mode' to 0x3.
29627
29628 Document initialization of `video_page', `video_mode' and
29629 `video_ega_bx'.
29630
29631 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29632
29633 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29634 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29635 and set GRUB_LINUX_FLAG_QUIET appropriately.
29636
29637 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29638
29639 Fix build on Debian / sparc.
29640
29641 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29642
29643 2009-06-28 Pavel Roskin <proski@gnu.org>
29644
29645 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29646 fix a warning.
29647
29648 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29649
29650 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29651
29652 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29653 `err'.
29654
29655 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29656
29657 Revert r2338.
29658
29659 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29660 file can't be opened. grub_file_open() is already supposed to set
29661 grub_errno / grub_errmsg appropriately.
29662 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29663
29664 2009-06-27 Pavel Roskin <proski@gnu.org>
29665 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29666
29667 * include/grub/dl.h: Include grub/elf.h.
29668 (struct grub_dl): Add symtab field.
29669 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29670 GRUB_MODULES_MACHINE_READONLY.
29671 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29672 of the header for read-only modules.
29673 (grub_dl_unload): Free mod->symtab for read-only modules.
29674 * kern/i386/dl.c: Use mod->symtab.
29675 * kern/powerpc/dl.c: Likewise.
29676 * kern/sparc64/dl.c: Likewise.
29677 * kern/x86_64/dl.c: Likewise.
29678
29679 * conf/i386-qemu.rmk: New file.
29680 * kern/i386/qemu/startup.S: Likewise.
29681 * kern/i386/qemu/mmap.c: Likewise.
29682 * boot/i386/qemu/boot.S: Likewise.
29683 * include/grub/i386/qemu/time.h: Likewise.
29684 * include/grub/i386/qemu/serial.h: Likewise.
29685 * include/grub/i386/qemu/kernel.h: Likewise.
29686 * include/grub/i386/qemu/console.h: Likewise.
29687 * include/grub/i386/qemu/boot.h: Likewise.
29688 * include/grub/i386/qemu/init.h: Likewise.
29689 * include/grub/i386/qemu/machine.h: Likewise.
29690 * include/grub/i386/qemu/loader.h: Likewise.
29691 * include/grub/i386/qemu/memory.h: Likewise.
29692
29693 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29694 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29695 [qemu] (pkglib_IMAGES): Add `boot.img'.
29696 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29697 [qemu] (boot_img_FORMAT): New variables.
29698 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29699 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29700 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29701 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29702 [qemu] (kernel_img_FORMAT): New variables.
29703
29704 * configure.ac: Recognise `i386-qemu'.
29705
29706 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29707 (for no compression).
29708 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29709 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29710 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29711 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29712 ifdefs).
29713
29714 2009-06-27 Pavel Roskin <proski@gnu.org>
29715
29716 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29717 read.
29718 * efiemu/prepare32.c: Likewise.
29719 * efiemu/prepare64.c: Likewise.
29720
29721 2009-06-26 Pavel Roskin <proski@gnu.org>
29722
29723 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29724 * include/grub/elf.h: Define symbols without "32" or "64" based
29725 on GRUB_TARGET_WORDSIZE.
29726 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29727 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29728 ELF definitions.
29729 * efiemu/loadcore64.c: Likewise.
29730 * loader/i386/bsd32.c: Likewise.
29731 * loader/i386/bsd64.c: Likewise.
29732 * kern/dl.c: Remove own ELF definitions.
29733 * util/i386/efi/grub-mkimage.c: Likewise.
29734
29735 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29736
29737 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29738 segment 0x0 unconditionally, because the reference generated by
29739 GAS is an absolute address.
29740
29741 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29742
29743 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29744 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29745
29746 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29747
29748 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29749 indexes. Check for -f explicitly.
29750 (search_file): Improve error message.
29751 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
29752
29753 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29754
29755 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29756 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29757
29758 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29759
29760 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29761 * conf/i386-ieee1275.rmk: Likewise.
29762 * conf/i386-coreboot.rmk: Likewise.
29763
29764 * kern/i386/pc/startup.S (grub_stop): Remove function.
29765 * kern/i386/ieee1275/startup.S: Likewise.
29766 * kern/i386/coreboot/startup.S: Likewise.
29767 * kern/i386/misc.S (grub_stop): New function.
29768
29769 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29770
29771 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29772 * kern/i386/realmode.S (real_to_prot): ... to here.
29773
29774 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29775
29776 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29777 with `kernel.img'.
29778 (kernel_elf_SOURCES): Rename to ...
29779 (kernel_img_SOURCES): ... this.
29780 (kernel_elf_HEADERS): Rename to ...
29781 (kernel_img_HEADERS): ... this. Update all users.
29782 (kernel_elf_ASFLAGS): Rename to ...
29783 (kernel_img_ASFLAGS): ... this.
29784 (kernel_elf_CFLAGS): Rename to ...
29785 (kernel_img_CFLAGS): ... this.
29786 (kernel_elf_LDFLAGS): Rename to ...
29787 (kernel_img_LDFLAGS): ... this.
29788 * conf/i386-coreboot.rmk: Likewise.
29789 * conf/powerpc-ieee1275.rmk: Likewise.
29790
29791 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29792 with "kernel.img".
29793
29794 2009-06-21 Pavel Roskin <proski@gnu.org>
29795
29796 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29797 to match nested functions.
29798 * loader/sparc64/ieee1275/linux.c: Likewise.
29799
29800 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29801
29802 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29803
29804 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29805 all i386 platforms.
29806
29807 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29808
29809 Fix asm file handling on ELF, and remove workarounds.
29810
29811 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29812 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29813 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29814 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29815
29816 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29817
29818 Load BSD ELF modules
29819
29820 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29821 and loader/i386/bsd64.c
29822 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29823 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29824 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29825 (grub_freebsd_load_elfmodule32): New declaration
29826 (grub_freebsd_load_elfmoduleobj64): Likewise
29827 (grub_freebsd_load_elf_meta32): Likewise
29828 (grub_freebsd_load_elf_meta64): Likewise
29829 (grub_freebsd_add_meta): Likewise
29830 (grub_freebsd_add_meta_module): Likewise
29831 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29832 (grub_freebsd_add_meta_module): Likewise and move module-specific
29833 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29834 (grub_cmd_freebsd): Add elf-kernel specific parts
29835 based on grub_freebsd_add_meta_module
29836 (grub_cmd_freebsd_module): Add type parsing moved from
29837 grub_freebsd_add_meta_module
29838 (grub_cmd_freebsd_module_elf): New function
29839 (cmd_freebsd_module_elf): New variable
29840 (GRUB_MOD_INIT): Register freebsd_module_elf
29841 * loader/i386/bsd32.c: New file
29842 * loader/i386/bsd64.c: Likewise
29843 * loader/i386/bsdXX.c: Likewise
29844 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29845 (grub_elf64_load): Likewise
29846 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29847 All users updated
29848 (grub_elf64_load_hook_t): Likewise
29849
29850 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29851
29852 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29853 variable.
29854 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29855 don't write a menu entry for recovery mode.
29856
29857 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29858
29859 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29860 after it's no longer needed.
29861
29862 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29863
29864 * include/grub/i386/loader.h (grub_linux_prot_size)
29865 (grub_linux_tmp_addr, grub_linux_real_addr)
29866 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29867 GRUB_MACHINE_PCBIOS.
29868 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29869 common grub_util_info() call to ...
29870 (generate_image): ... here.
29871 Fix use of uninitialized memory, comparison of signed with
29872 unsigned integers and memory leak.
29873 Remove bogus module address message.
29874
29875 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29876
29877 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29878 grub_raid_register
29879 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29880
29881 2009-06-19 Pavel Roskin <proski@gnu.org>
29882
29883 * configure.ac: Remove stray AC_MSG_CHECKING.
29884
29885 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29886
29887 * disk/scsi.c (grub_scsi_open): use continue instead of big if
29888
29889 2009-06-18 Pavel Roskin <proski@gnu.org>
29890
29891 * conf/common.rmk: Add fs_file.mod.
29892 * disk/fs_file.c: New file.
29893 * include/grub/disk.h (enum grub_disk_dev_id): Add
29894 GRUB_DISK_DEVICE_FILE_ID.
29895
29896 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29897
29898 Fix build with Apple's toolchain. Part 2
29899
29900 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
29901 a fake start
29902
29903 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29904
29905 Fix build with Apple's toolchain. Part 1
29906
29907 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
29908 for long calls
29909 * configure.ac: remove a leftover AC_MSG_RESULT
29910 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
29911 Apple's toolchain
29912
29913 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29914
29915 Fix warnings
29916
29917 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
29918 (decomp_block): initialize ch
29919 use grub_memcpy instead of memcpy
29920
29921 2009-06-17 Pavel Roskin <proski@gnu.org>
29922
29923 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
29924 version, use declarations needed to use vga_text as the startup
29925 console.
29926
29927 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
29928 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
29929 the kernel.
29930 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
29931 and grub_at_keyboard_fini(), it's done on module load and
29932 unload.
29933
29934 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
29935
29936 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
29937 file can't be found.
29938 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29939
29940 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29941
29942 Fix newline handling
29943
29944 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
29945 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
29946 (grub_script_yylex): don't segfault on unterminated script
29947 newline terminates command and variable
29948
29949 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29950
29951 avoid double grub_adjust_range call. Bug reported by David Simner
29952
29953 * kern/disk.c (grub_disk_write): change to raw disk access before
29954 calling disk_read
29955
29956 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
29957
29958 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
29959 spaces, for the benefit of help2man.
29960 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29961
29962 2009-06-16 Pavel Roskin <proski@gnu.org>
29963
29964 * kern/i386/halt.c: Include grub/machine/init.h.
29965 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
29966
29967 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
29968
29969 * util/grub.d/30_os-prober.in: Use ${root} in the generated
29970 drivemap menuentry.
29971
29972 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
29973
29974 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
29975 `echo' command.
29976
29977 2009-06-16 Pavel Roskin <proski@gnu.org>
29978
29979 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
29980 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
29981 save %dx, we only need %dl and we never change it.
29982 * boot/i386/pc/cdboot.S: Don't set the root drive.
29983 * boot/i386/pc/pxeboot.S: Likewise.
29984 * include/grub/i386/pc/boot.h: Remove
29985 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
29986 GRUB_BOOT_MACHINE_DRIVE_CHECK.
29987 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
29988 * kern/i386/pc/init.c (make_install_device): Remove references
29989 to grub_root_drive.
29990 * kern/i386/pc/startup.S: Likewise.
29991 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
29992
29993 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29994
29995 xnu_uuid command
29996
29997 * commands/xnu_uuid.c: new file
29998 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
29999 (xnu_uuid_mod_SOURCES): new variable
30000 (xnu_uuid_mod_CFLAGS): likewise
30001 (xnu_uuid_mod_LDFLAGS): likewise
30002 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30003 * conf/i386-ieee1275.rmk: likewise
30004 * conf/i386-pc.rmk: likewise
30005 * conf/powerpc-ieee1275.rmk: likewise
30006 * conf/sparc64-ieee1275.rmk: likewise
30007 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30008
30009 2009-06-16 Pavel Roskin <proski@gnu.org>
30010
30011 * configure.ac: Avoid '==' in test command, it's not portable.
30012
30013 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30014
30015 Probe command
30016
30017 * commands/probe.c: new file
30018 * conf/common.rmk (pkglib_MODULES): add probe.mod
30019 (probe_mod_SOURCES): new variable
30020 (probe_mod_CFLAGS): likewise
30021 (probe_mod_LDFLAGS): likewise
30022 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30023 * conf/i386-ieee1275.rmk: likewise
30024 * conf/i386-pc.rmk: likewise
30025 * conf/powerpc-ieee1275.rmk: likewise
30026 * conf/sparc64-ieee1275.rmk: likewise
30027
30028 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30029
30030 Fix handling of string like \"hello\" and "a
30031 b"
30032
30033 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30034 (grub_script_yylex): fix parsing of quoting, escaping and newline
30035
30036 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30037
30038 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30039 handling
30040
30041 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30042
30043 * util/grub-mkconfig.in: Fix parsing of --output option.
30044
30045 2009-06-12 Pavel Roskin <proski@gnu.org>
30046
30047 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30048 genmk.rb don't need to be generated or installed.
30049
30050 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30051
30052 * commands/i386/pc/drivemap_int13h.S: add more comments
30053
30054 2009-06-11 Pavel Roskin <proski@gnu.org>
30055
30056 * Makefile.in (uninstall): Uninstall manuals.
30057
30058 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30059 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30060 and update-grub_lib in two places.
30061 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30062
30063 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30064 a compiler warning.
30065
30066 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30067 `entry_lo' to fix variable shadowing.
30068
30069 2009-06-11 Christian Franke <franke@computer.org>
30070
30071 * kern/misc.c (__enable_execute_stack): Add missing return type
30072 to prevent gcc warning.
30073
30074 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30075
30076 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30077
30078 2009-06-11 Pavel Roskin <proski@gnu.org>
30079
30080 * Makefile.in: Don't rely on any scripts being executable.
30081 Always use $(SHELL) to run shell scripts.
30082
30083 * configure.ac: Always define ___main if using -nostdlib. This
30084 fixes tests on Cygwin.
30085
30086 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30087
30088 UDF fix
30089
30090 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30091 is in bytes and not in blocks
30092
30093 2009-06-11 Pavel Roskin <proski@gnu.org>
30094
30095 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30096 warning.
30097
30098 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30099
30100 * util/grub.d/30_os-prober.in: Fix a comment. Source
30101 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30102 to set the root device. Place drivemap command in the generated
30103 chain entry.
30104
30105 2009-06-11 Pavel Roskin <proski@gnu.org>
30106
30107 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30108 have long been resolved.
30109
30110 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30111
30112 * util/grub.d/10_linux.in: Capitalise "Linux".
30113
30114 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30115
30116 2009-06-11 Pavel Roskin <proski@gnu.org>
30117
30118 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30119 fix a gcc warning and ensure that the function won't ever exit.
30120
30121 * kern/i386/ieee1275/init.c: Add missing prototype for
30122 grub_stop_floppy().
30123
30124 * loader/ieee1275/multiboot2.c [__i386__]: Include
30125 grub/cpu/multiboot.h.
30126
30127 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30128 casts to short - they are not portable and cause warnings. Fix
30129 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30130
30131 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30132
30133 Drivemap fixes
30134
30135 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30136 new function
30137 (grub_get_root_biosnumber_saved): new variable
30138 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30139 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30140 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30141 %dx after the call if necessary
30142 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30143 (boot_mod_SOURCES): remove
30144 (boot_mod_CFLAGS): remove
30145 (boot_mod_LDFLAGS): remove
30146 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30147 (boot_mod_SOURCES): new variable
30148 (boot_mod_CFLAGS): likewise
30149 (boot_mod_LDFLAGS): likewise
30150 * conf/i386-efi.rmk: likewise
30151 * conf/i386-ieee1275.rmk: likewise
30152 * conf/i386-pc.rmk: likewise
30153 * conf/powerpc-ieee1275.rmk: likewise
30154 * conf/sparc64-ieee1275.rmk: likewise
30155 * conf/x86_64-efi.rmk: likewise
30156 * include/grub/i386/pc/biosnum.h: new file
30157 * lib/i386/pc/biosnum.c: likewise
30158 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30159 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30160 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30161
30162 2009-06-10 Pavel Roskin <proski@gnu.org>
30163
30164 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30165 Use separate variables. Read only the file size at the end, but
30166 not the checksum that we don't use.
30167
30168 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30169 Adjust all callers.
30170
30171 * kern/ieee1275/openfw.c: Remove libc includes.
30172 * kern/ieee1275/cmain.c: Likewise.
30173 * include/grub/ieee1275/ieee1275.h: Likewise.
30174
30175 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30176 compiler warnings.
30177
30178 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30179
30180 * Makefile.in: Remove all trailing whitespace.
30181 * conf/i386-pc.rmk: Likewise.
30182 * conf/powerpc-ieee1275.rmk: Likewise.
30183 * conf/sparc64-ieee1275.rmk: Likewise.
30184 * docs/grub.texi: Likewise.
30185 * docs/texinfo.tex: Likewise.
30186 * disk/fs_uuid.c: Likewise.
30187 * disk/lvm.c: Likewise.
30188 * disk/scsi.c: Likewise.
30189 * disk/ata.c: Likewise.
30190 * disk/ieee1275/ofdisk.c: Likewise.
30191 * disk/i386/pc/biosdisk.c: Likewise.
30192 * disk/host.c: Likewise.
30193 * disk/raid.c: Likewise.
30194 * disk/efi/efidisk.c: Likewise.
30195 * disk/usbms.c: Likewise.
30196 * disk/memdisk.c: Likewise.
30197 * disk/loopback.c: Likewise.
30198 * kern/powerpc/dl.c: Likewise.
30199 * kern/device.c: Likewise.
30200 * kern/dl.c: Likewise.
30201 * kern/sparc64/dl.c: Likewise.
30202 * kern/ieee1275/ieee1275.c: Likewise.
30203 * kern/term.c: Likewise.
30204 * kern/fs.c: Likewise.
30205 * kern/i386/dl.c: Likewise.
30206 * kern/i386/pc/startup.S: Likewise.
30207 * kern/i386/pc/init.c: Likewise.
30208 * kern/i386/pc/mmap.c: Likewise.
30209 * kern/i386/pc/lzo1x.S: Likewise.
30210 * kern/i386/ieee1275/init.c: Likewise.
30211 * kern/i386/realmode.S: Likewise.
30212 * kern/i386/tsc.c: Likewise.
30213 * kern/partition.c: Likewise.
30214 * kern/corecmd.c: Likewise.
30215 * kern/file.c: Likewise.
30216 * kern/efi/efi.c: Likewise.
30217 * kern/efi/init.c: Likewise.
30218 * kern/efi/mm.c: Likewise.
30219 * kern/main.c: Likewise.
30220 * kern/err.c: Likewise.
30221 * kern/env.c: Likewise.
30222 * kern/disk.c: Likewise.
30223 * kern/generic/millisleep.c: Likewise.
30224 * kern/generic/rtc_get_time_ms.c: Likewise.
30225 * kern/misc.c: Likewise.
30226 * kern/parser.c: Likewise.
30227 * genmk.rb: Likewise.
30228 * configure.ac: Likewise.
30229 * boot/i386/pc/diskboot.S: Likewise.
30230 * boot/i386/pc/pxeboot.S: Likewise.
30231 * boot/i386/pc/boot.S: Likewise.
30232 * boot/i386/pc/lnxboot.S: Likewise.
30233 * boot/i386/pc/cdboot.S: Likewise.
30234 * parttool/pcpart.c: Likewise.
30235 * video/readers/tga.c: Likewise.
30236 * video/video.c: Likewise.
30237 * video/bitmap.c: Likewise.
30238 * lib/envblk.c: Likewise.
30239 * lib/i386/setjmp.S: Likewise.
30240 * fs/xfs.c: Likewise.
30241 * fs/afs.c: Likewise.
30242 * fs/fat.c: Likewise.
30243 * fs/ntfs.c: Likewise.
30244 * fs/udf.c: Likewise.
30245 * fs/affs.c: Likewise.
30246 * fs/iso9660.c: Likewise.
30247 * fs/hfs.c: Likewise.
30248 * fs/fshelp.c: Likewise.
30249 * fs/ext2.c: Likewise.
30250 * fs/jfs.c: Likewise.
30251 * fs/reiserfs.c: Likewise.
30252 * fs/hfsplus.c: Likewise.
30253 * fs/minix.c: Likewise.
30254 * fs/cpio.c: Likewise.
30255 * fs/sfs.c: Likewise.
30256 * fs/ufs.c: Likewise.
30257 * efiemu/prepare.c: Likewise.
30258 * efiemu/loadcore_common.c: Likewise.
30259 * efiemu/runtime/efiemu.sh: Likewise.
30260 * efiemu/runtime/efiemu.S: Likewise.
30261 * efiemu/runtime/efiemu.c: Likewise.
30262 * efiemu/pnvram.c: Likewise.
30263 * efiemu/main.c: Likewise.
30264 * efiemu/i386/pc/cfgtables.c: Likewise.
30265 * efiemu/i386/loadcore64.c: Likewise.
30266 * efiemu/i386/loadcore32.c: Likewise.
30267 * efiemu/loadcore.c: Likewise.
30268 * efiemu/symbols.c: Likewise.
30269 * efiemu/mm.c: Likewise.
30270 * include/grub/autoefi.h: Likewise.
30271 * include/grub/datetime.h: Likewise.
30272 * include/grub/term.h: Likewise.
30273 * include/grub/hfs.h: Likewise.
30274 * include/grub/lvm.h: Likewise.
30275 * include/grub/i386/tsc.h: Likewise.
30276 * include/grub/i386/linux.h: Likewise.
30277 * include/grub/i386/xnu.h: Likewise.
30278 * include/grub/i386/efiemu.h: Likewise.
30279 * include/grub/i386/pc/biosdisk.h: Likewise.
30280 * include/grub/i386/pc/memory.h: Likewise.
30281 * include/grub/i386/pc/vbe.h: Likewise.
30282 * include/grub/parttool.h: Likewise.
30283 * include/grub/video.h: Likewise.
30284 * include/grub/memory.h: Likewise.
30285 * include/grub/fs.h: Likewise.
30286 * include/grub/partition.h: Likewise.
30287 * include/grub/xnu.h: Likewise.
30288 * include/grub/efi/api.h: Likewise.
30289 * include/grub/efi/pe32.h: Likewise.
30290 * include/grub/efi/memory.h: Likewise.
30291 * include/grub/multiboot.h: Likewise.
30292 * include/grub/usbdesc.h: Likewise.
30293 * include/grub/multiboot2.h: Likewise.
30294 * include/grub/acpi.h: Likewise.
30295 * include/grub/efiemu/efiemu.h: Likewise.
30296 * include/grub/disk.h: Likewise.
30297 * include/grub/ieee1275/ieee1275.h: Likewise.
30298 * include/grub/net.h: Likewise.
30299 * include/grub/machoload.h: Likewise.
30300 * include/grub/macho.h: Likewise.
30301 * include/multiboot.h: Likewise.
30302 * genmoddep.awk: Likewise.
30303 * normal/main.c: Likewise.
30304 * normal/menu_entry.c: Likewise.
30305 * normal/menu_viewer.c: Likewise.
30306 * normal/completion.c: Likewise.
30307 * normal/cmdline.c: Likewise.
30308 * normal/misc.c: Likewise.
30309 * normal/datetime.c: Likewise.
30310 * bus/usb/usbtrans.c: Likewise.
30311 * bus/usb/ohci.c: Likewise.
30312 * bus/usb/uhci.c: Likewise.
30313 * bus/usb/usb.c: Likewise.
30314 * mmap/efi/mmap.c: Likewise.
30315 * mmap/i386/pc/mmap_helper.S: Likewise.
30316 * mmap/i386/pc/mmap.c: Likewise.
30317 * mmap/i386/mmap.c: Likewise.
30318 * mmap/i386/uppermem.c: Likewise.
30319 * mmap/mmap.c: Likewise.
30320 * commands/acpi.c: Likewise.
30321 * commands/echo.c: Likewise.
30322 * commands/blocklist.c: Likewise.
30323 * commands/loadenv.c: Likewise.
30324 * commands/usbtest.c: Likewise.
30325 * commands/boot.c: Likewise.
30326 * commands/parttool.c: Likewise.
30327 * commands/search.c: Likewise.
30328 * commands/cat.c: Likewise.
30329 * commands/i386/pc/play.c: Likewise.
30330 * commands/i386/pc/drivemap.c: Likewise.
30331 * commands/i386/pc/vbeinfo.c: Likewise.
30332 * commands/i386/pc/acpi.c: Likewise.
30333 * commands/i386/pc/vbetest.c: Likewise.
30334 * commands/ls.c: Likewise.
30335 * commands/cmp.c: Likewise.
30336 * commands/test.c: Likewise.
30337 * commands/efi/acpi.c: Likewise.
30338 * commands/gptsync.c: Likewise.
30339 * commands/help.c: Likewise.
30340 * partmap/amiga.c: Likewise.
30341 * partmap/apple.c: Likewise.
30342 * partmap/acorn.c: Likewise.
30343 * partmap/pc.c: Likewise.
30344 * partmap/sun.c: Likewise.
30345 * partmap/gpt.c: Likewise.
30346 * script/sh/lexer.c: Likewise.
30347 * script/sh/function.c: Likewise.
30348 * font/font.c: Likewise.
30349 * font/font_cmd.c: Likewise.
30350 * loader/powerpc/ieee1275/linux.c: Likewise.
30351 * loader/efi/chainloader.c: Likewise.
30352 * loader/multiboot_loader.c: Likewise.
30353 * loader/macho.c: Likewise.
30354 * loader/i386/multiboot.c: Likewise.
30355 * loader/i386/linux.c: Likewise.
30356 * loader/i386/pc/linux.c: Likewise.
30357 * loader/i386/pc/multiboot2.c: Likewise.
30358 * loader/i386/pc/chainloader.c: Likewise.
30359 * loader/i386/pc/xnu.c: Likewise.
30360 * loader/i386/bsd_trampoline.S: Likewise.
30361 * loader/i386/efi/linux.c: Likewise.
30362 * loader/i386/multiboot_elfxx.c: Likewise.
30363 * loader/i386/bsd_helper.S: Likewise.
30364 * loader/i386/bsd.c: Likewise.
30365 * loader/i386/linux_trampoline.S: Likewise.
30366 * loader/i386/xnu_helper.S: Likewise.
30367 * loader/i386/xnu.c: Likewise.
30368 * loader/i386/bsd_pagetable.c: Likewise.
30369 * loader/i386/multiboot_helper.S: Likewise.
30370 * loader/xnu.c: Likewise.
30371 * loader/xnu_resume.c: Likewise.
30372 * io/gzio.c: Likewise.
30373 * term/efi/console.c: Likewise.
30374 * term/terminfo.c: Likewise.
30375 * term/ieee1275/ofconsole.c: Likewise.
30376 * term/i386/pc/serial.c: Likewise.
30377 * term/i386/pc/vesafb.c: Likewise.
30378 * term/i386/pc/vga.c: Likewise.
30379 * term/usb_keyboard.c: Likewise.
30380 * term/gfxterm.c: Likewise.
30381 * aclocal.m4: Likewise.
30382 * util/lvm.c: Likewise.
30383 * util/grub.d/30_os-prober.in: Likewise.
30384 * util/grub.d/10_hurd.in: Likewise.
30385 * util/console.c: Likewise.
30386 * util/grub-macho2img.c: Likewise.
30387 * util/grub-probe.c: Likewise.
30388 * util/hostfs.c: Likewise.
30389 * util/i386/pc/grub-mkimage.c: Likewise.
30390 * util/i386/pc/grub-setup.c: Likewise.
30391 * util/i386/efi/grub-mkimage.c: Likewise.
30392 * util/grub-mkconfig.in: Likewise.
30393 * util/raid.c: Likewise.
30394 * util/resolve.c: Likewise.
30395 * util/grub-mkdevicemap.c: Likewise.
30396 * util/grub-emu.c: Likewise.
30397 * util/getroot.c: Likewise.
30398 * util/hostdisk.c: Likewise.
30399 * util/usb.c: Likewise.
30400 * util/grub-editenv.c: Likewise.
30401 * util/misc.c: Likewise.
30402
30403 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30404
30405 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30406 `genparttoollist.sh'.
30407 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30408 Add `*.sh' to the list find searches for and change `mdate.sh'
30409 to `mdate-sh'.
30410
30411 2009-06-10 Pavel Roskin <proski@gnu.org>
30412
30413 * include/grub/multiboot2.h: Provide compatibility defines for
30414 multiboot2.h.
30415 * include/multiboot2.h: Include stdint.h only if needed, using
30416 angle brackets.
30417 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30418 grub/multiboot2.h.
30419 * loader/ieee1275/multiboot2.c: Likewise.
30420 * loader/multiboot2.c: Likewise.
30421 * loader/multiboot_loader.c: Likewise.
30422
30423 * configure.ac: Use -nostdlib when probing for the target. It
30424 should not be required to have libc for the target.
30425
30426 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30427 they fail without libc headers for the target.
30428 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30429 exports.
30430 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30431 preprocessor conditionals.
30432
30433 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30434 build system doesn't need to be aware of the tar.c internals.
30435
30436 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30437
30438 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30439
30440 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30441
30442 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30443 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30444
30445 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30446
30447 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30448 aren't available if ata.mod gets used.
30449
30450 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30451
30452 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30453 initialising controller.
30454 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30455
30456 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30457
30458 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30459 to choose between ata and biosdisk module on i386-pc.
30460
30461 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30462
30463 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30464 Subclass and Programming Interface fields in terms of the 3 byte
30465 Class Code register.
30466 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30467
30468 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30469 interface is OHCI. Add grub_dprintf for symmetry with
30470 bus/usb/uhci.c.
30471 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30472 interface is UHCI. Add interf variable for programming
30473 interface. Print interface with class/subclass.
30474
30475 * bus/usb/ohci.c: Set interf with correct field.
30476
30477 * bus/usb/uhci.c: Remove unneeded doubled lines.
30478 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30479 Remove whitespace inside comment.
30480
30481 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30482
30483 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30484 as fallback an equivalent option without depth.
30485
30486 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30487
30488 Not fail if unable to retrieve C/H/S on LBA disks
30489
30490 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30491 if unable to retrieve C/H/S on LBA disks
30492
30493 2009-06-08 Pavel Roskin <proski@gnu.org>
30494
30495 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30496 about aliasing.
30497
30498 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30499
30500 * Makefile.in (uninstall): Remove all $lib_DATA files.
30501
30502 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30503
30504 Bugfix: install on partitionless device
30505
30506 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30507 is a whole disk
30508
30509 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30510
30511 * Makefile.in (uninstall): Remove all $include_DATA files.
30512
30513 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30514
30515 * commands/true.c: New file. Implement the true and false commands.
30516 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30517 (true_mod_SOURCES): New variable.
30518 (true_mod_CFLAGS): Likewise.
30519 (true_mod_LDFLAGS): Likewise.
30520
30521 2009-06-05 Colin D Bennett <colin@gibibit.com>
30522
30523 Optimized font character lookup using binary search instead of linear
30524 search. Fonts now are required to have the character index ordered by
30525 code point.
30526
30527 * font/font.c (load_font_index): Verify that fonts have ordered
30528 character indices.
30529 (find_glyph): Use binary search instead of linear search to find a
30530 character in a font.
30531
30532 2009-06-05 Michael Scherer <misc@mandriva.org>
30533
30534 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30535 uses case sensitive btree.
30536 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30537 only for case insensitive filesystems.
30538
30539 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30540
30541 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30542 * conf/common.rmk (search_mod_CFLAGS): likewise
30543
30544 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30545
30546 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30547 compensate a compiler bug
30548
30549 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30550
30551 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30552 instead of '\b'
30553
30554 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30555
30556 Definitions for creating asm symbols with Apple's CC
30557
30558 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30559 [APPLE_CC] (VARIABLE): likewise
30560
30561 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30562
30563 Disable lnxboot.img when compiled
30564 with Apple's CC
30565
30566 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30567 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30568 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30569 [! APPLE_CC] (CODE_LENG): skip
30570 [! APPLE_CC] (setup_sects): likewise
30571 [! APPLE_CC]: skip filling
30572
30573 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30574
30575 Address in trampolines based on 32-bit registers when compiled
30576 with Apple's CC
30577
30578 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30579 for addresses
30580 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30581
30582 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30583
30584 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30585
30586 * kern/misc.c [APPLE_CC] (memcpy): new function
30587 [APPLE_CC] (memmove): likewise
30588 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30589 (memcpy): define alias conditionally on !APPLE_CC
30590 (memset): likewise
30591 (abort): likewise
30592 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30593 APPLE_CC are defined
30594 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30595 (grub_assert_fail): make prototype conditional
30596
30597 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30598
30599 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30600
30601 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30602 grub-macho2img
30603 (CLEANFILES): add grub-macho2img
30604 (grub_macho2img_SOURCES): new variable
30605 * kern/i386/pc/startup.S (bss_start): new variable
30606 (bss_end): likewise
30607 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30608 * util/grub-macho2img.c: new file
30609
30610 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30611
30612 Use objconv when compiling with Apple's CC
30613
30614 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30615 (efiemu64.o): likewise
30616 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30617 when compiling with Apple's CC
30618 (efiemu64_s.o): likewise
30619 * configure.ac: check for objconv when compiling with Apple's CC
30620 * genmk.rb: use objconv for modules when compiled with Apple's CC
30621
30622 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30623
30624 Define segment as well as section when compiling with
30625 Apple's CC
30626
30627 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30628 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30629 (efiemu_convert_pointer): likewise
30630 (efiemu_set_virtual_address_map): likewise
30631 (efiemu_convert_pointer): likewise
30632 (efiemu_getcrc32): likewise
30633 (init_crc32_table): likewise
30634 (reflect): likewise
30635 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30636 (GRUB_MOD_DEP): likewise
30637
30638 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30639
30640 Allow a compilation without -mcmodel=large
30641
30642 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30643 when compiled without -mcmodel=large
30644 (filter_memory_map): remove memory post 4 GiB when compiled
30645 without -mcmodel=large
30646 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30647 TARGET_CFLAGS when -mcmodel=large isn't supported
30648
30649 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30650
30651 Remove nested functions in efiemu core
30652
30653 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30654
30655 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30656
30657 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30658
30659 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30660 temporary storage
30661 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30662 using Apple's CC
30663 (grub_cpu_is_tsc_supported): likewise
30664 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30665
30666 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30667
30668 Absolute addressing through constant with Apple's cc
30669
30670 * kern/i386/pc/startup.S: Define necessary constants
30671 and address through it when using ABS with Apple's CC
30672 * boot/i386/pc/diskboot.S: likewise
30673 * boot/i386/pc/boot.S: likewise
30674 * boot/i386/pc/lnxboot.S: likewise
30675 * boot/i386/pc/cdboot.S: likewise
30676 * mmap/i386/pc/mmap_helper.S: likewise
30677 * commands/i386/pc/drivemap_int13h.S: likewise
30678
30679 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30680
30681 Check if compiler is apple cc
30682
30683 * Makefile.in (ASFLAGS): new variable
30684 (TARGET_ASFLAGS): likewise
30685 (TARGET_MODULE_FORMAT): likewise
30686 (TARGET_APPLE_CC): likewise
30687 (OBJCONV): likewise
30688 (TARGET_IMG_CFLAGS): likewise
30689 (TARGET_CPPFLAGS): add includedir
30690 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30691 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30692 Check for linker script only if compiler isn't Apple's CC
30693 (TARGET_MODULE_FORMAT): set
30694 (TARGET_APPLE_CC): likewise
30695 (TARGET_ASFLAGS): likewise
30696 (ASFLAGS): likewise
30697 Check for objcopy only if compiler isn't Apple's CC
30698 Check for BSS symbol only if compiler isn't Apple's CC
30699 * genmk.rb: adapt nm options if we use Apple's utils
30700 * aclocal.m4 (grub_apple_cc): new test
30701 (grub_apple_target_cc): likewise
30702
30703 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30704
30705 Simplify sed expressions and improve awk
30706
30707 * Makefile.in (install-local): simplify sed expression
30708 * gencmdlist.sh: likewise
30709 * genmoddep.awk: avoid adding module as a dependency of itself
30710
30711 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30712
30713 Add missing start symbols
30714
30715 * boot/i386/pc/boot.S: add start
30716 * boot/i386/pc/pxeboot.S: likewise
30717
30718 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30719
30720 Fix wrong assumptions with grub-mkimage on EFI
30721
30722 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30723 (relocate_addresses): consider both r_addend and value at offset
30724 (make_mods_section): zerofill modinfo and header
30725 (convert_elf): write prefix here
30726
30727 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30728
30729 Use .asciz instead of .string
30730
30731 * i386/pc/diskboot.S: use .asciz instead of .string
30732 * i386/pc/boot.S: likewise
30733 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30734 (GRUB_MOD_NAME): likewise
30735
30736 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30737
30738 gfxpayload support
30739
30740 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30741 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30742 (grub_video_setup): remove
30743 (grub_video_set_mode): new prototype
30744 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30745 (vid_mode): remove
30746 (linux_vesafb_res): compile only on PCBIOS
30747 (grub_linux_boot): support gfxpayload
30748 * loader/i386/pc/xnu.c (video_hook): new function
30749 (grub_xnu_set_video): support gfxpayload
30750 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30751 (DEFAULT_VIDEO_HEIGHT): likewise
30752 (DEFAULT_VIDEO_FLAGS): likewise
30753 (DEFAULT_VIDEO_MODE): new definition
30754 (video_hook): new function
30755 (grub_gfxterm_init): use grub_video_set_mode
30756 * util/grub.d/30_os-prober.in: remove explicit modesetting before
30757 loading xnu
30758 * video/video.c (grub_video_setup): removed
30759 (grub_video_set_mode): new function based on grub_gfxterm_init and
30760 grub_video_setup
30761
30762 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30763
30764 Avoid calling biosdisk in drivemap
30765
30766 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30767 (revparse_biosdisk): likewise
30768 (list_mappings): derive name from id directly
30769 (grub_cmd_drivemap): use tryparse_diskstring
30770
30771 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30772
30773 Script fixes
30774
30775 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30776 (grub_lexer_param): add tokenonhold
30777 (grub_script_create_cmdline): remove cmdline. All callers updated
30778 (grub_script_function_create): make functionname
30779 grub_script_arg. All callers updated
30780 (grub_script_execute_argument_to_string): new prototype
30781 * kern/parser.c (state_transitions): reorder
30782 (grub_parser_cmdline_state): fix a bug and make more compact
30783 * script/sh/execute.c (grub_script_execute_argument_to_string):
30784 make global
30785 (grub_script_execute_cmdline): use new format
30786 * script/sh/function.c (grub_script_function_create): make functionname
30787 grub_script_arg. All callers updated
30788 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
30789 (grub_script_yylex): remove
30790 (grub_script_yylex2): renamed to ...
30791 (grub_script_yylex): ...renamed
30792 parse the expressions like a${b}c
30793 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30794 (GRUB_PARSER_TOKEN_VAR): remove
30795 (GRUB_PARSER_TOKEN_NAME): likewise
30796 ("if"): declare as typeless
30797 ("while"): likewise
30798 ("function"): likewise
30799 ("else"): likewise
30800 ("then"): likewise
30801 ("fi"): likewise
30802 (text): remove
30803 (argument): likewise
30804 (script): accept empty scripts and make exit on error
30805 (arguments): use GRUB_PARSER_TOKEN_ARG
30806 (function): likewise
30807 (command): move error handling to script
30808 (menuentry): move grub_script_lexer_ref before
30809 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30810 argument. All callers updated
30811
30812 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30813
30814 Prevent GRUB from probing floppies during boot.
30815
30816 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30817 * commands/search.c (options): Add --no-floppy.
30818 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30819 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30820 --no-floppy when searching for UUIDs.
30821
30822 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30823
30824 Simplify the code duplication in commands/search.c.
30825
30826 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30827 (search_fs): ... this. Update all users.
30828
30829 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30830
30831 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30832
30833 2009-05-28 Pavel Roskin <proski@gnu.org>
30834
30835 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30836 Remove the original symlink explicitly.
30837
30838 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30839 just one slash. That's how grub_fshelp_find_file() does it.
30840
30841 2009-05-26 Pavel Roskin <proski@gnu.org>
30842
30843 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30844 to `str'.
30845
30846 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30847 possibly unused.
30848
30849 2009-05-25 Christian Franke <franke@computer.org>
30850
30851 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30852 register.
30853 (grub_atapi_identify): Add wait after drive select.
30854 (grub_ata_identify): Do more strict status register check before
30855 calling grub_atapi_identify (). Suppress error message if status
30856 register is 0x00 after command failure. Add status register
30857 check after PIO read to avoid bogus identify due to stuck DRQ.
30858 Thanks to Pavel Roskin for testing.
30859 (grub_device_initialize): Remove unsafe status register check.
30860 Thanks to 'phcoder' for problem report and patch.
30861 Prevent sign extension in debug message.
30862
30863 2009-05-23 Colin D Bennett <colin@gibibit.com>
30864
30865 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30866 definition file, and functions defined in `normal/menu.c' have had
30867 their prototypes moved to `include/grub/menu.h' for consistency.
30868
30869 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30870 from normal.h.
30871 (grub_menu_get_entry): Likewise.
30872 (grub_menu_get_timeout): Likewise.
30873 (grub_menu_set_timeout): Likewise.
30874 (grub_menu_execute_entry): Likewise.
30875 (grub_menu_execute_with_fallback): Likewise.
30876 (grub_menu_entry_run): Likewise.
30877
30878 * include/grub/normal.h: Re-ordered and grouped function
30879 prototypes by file that the function is defined in.
30880 (grub_menu_execute_callback): Removed; moved to menu.h.
30881 (grub_menu_get_entry): Likewise.
30882 (grub_menu_get_timeout): Likewise.
30883 (grub_menu_set_timeout): Likewise.
30884 (grub_menu_execute_entry): Likewise.
30885 (grub_menu_execute_with_fallback): Likewise.
30886 (grub_menu_entry_run): Likewise.
30887 (grub_menu_addentry): Renamed from this ...
30888 (grub_normal_add_menu_entry): ... to this.
30889
30890 * normal/main.c (grub_menu_addentry): Renamed from this ...
30891 (grub_normal_add_menu_entry): ... to this.
30892
30893 * script/sh/execute.c (grub_script_execute_menuentry): Update
30894 reference to renamed grub_menu_addentry function.
30895
30896 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
30897
30898 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
30899
30900 2009-05-22 Pavel Roskin <proski@gnu.org>
30901
30902 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
30903 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
30904 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
30905 compiling for the i386 targets, but not for the utilities.
30906
30907 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
30908 to grub_uint8_t.
30909 (grub_root_drive): Likewise.
30910 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
30911 remove alignment.
30912 (grub_root_drive): Change size to byte.
30913 (grub_start_addr): Remove.
30914 (grub_end_addr): Likewise.
30915 (grub_apm_bios_info): Likewise.
30916
30917 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
30918
30919 * normal/i386: Remove.
30920 * normal/powerpc: Likewise.
30921 * normal/sparc64: Likewise.
30922 * normal/x86_64: Likewise.
30923
30924 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
30925
30926 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
30927 * loader/i386/linux_trampoline.S: Fix indentation
30928 * loader/i386/xnu_helper.S: Likewise
30929
30930 2009-05-18 Colin D Bennett <colin@gibibit.com>
30931
30932 Display error messages when parsing a Lua statement fails.
30933 Previously, executing a syntactically invalid statement like
30934 ")foo" or "bar;" would silently fail.
30935
30936 * script/lua/grub_main.c (handle_lua_error): New function.
30937 (grub_lua_parse_line): Improved reporting of Lua parser and
30938 execution errors.
30939
30940 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30941
30942 Remove -Werror which causes build to fail on some systems
30943
30944 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
30945 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
30946 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
30947
30948 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30949
30950 trampoline for linux on 64-bit platform
30951
30952 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
30953 loader/i386/efi/linux_trampoline.S
30954 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
30955 declaration
30956 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
30957 here
30958 * loader/i386/linux_trampoline.S: moved here
30959 * loader/i386/efi/linux.c (allocate_pages): reserve space for
30960 trampoline
30961 (jumpvector): removed
30962 (grub_linux_trampoline_start): new declaration
30963 (grub_linux_trampoline_end): likewise
30964 (grub_linux_boot): use trampoline when on 64-bit platform
30965 * loader/i386/linux.c: likewise
30966
30967 2009-05-16 Pavel Roskin <proski@gnu.org>
30968
30969 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
30970 const to avoid a warning.
30971 (grub_lua_setenv): Likewise.
30972 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
30973 lmsg to fix a warning.
30974
30975 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30976
30977 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
30978 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30979 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
30980 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30981 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30982 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30983 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30984 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30985
30986 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30987
30988 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
30989
30990 2009-05-16 Bean <bean123ch@gmail.com>
30991
30992 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
30993 (lua_mod_SOURCES): New variable.
30994 (lua_mod_CFLAGS): Likewise.
30995 (lua_mod_LDFLAGS): Likewise.
30996
30997 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
30998 (setjmp_mod_SOURCES): New variable.
30999 (setjmp_mod_CFLAGS): Likewise.
31000 (setjmp_LDFLAGS): Likewise.
31001
31002 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31003 (setjmp_mod_SOURCES): New variable.
31004 (setjmp_mod_CFLAGS): Likewise.
31005 (setjmp_LDFLAGS): Likewise.
31006
31007 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31008 (setjmp_mod_SOURCES): New variable.
31009 (setjmp_mod_CFLAGS): Likewise.
31010 (setjmp_LDFLAGS): Likewise.
31011
31012 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31013 (setjmp_mod_SOURCES): New variable.
31014 (setjmp_mod_CFLAGS): Likewise.
31015 (setjmp_LDFLAGS): Likewise.
31016
31017 * normal/i386/setjmp.S: Moved from here ...
31018 * lib/i386/setjmp.S: ... Moved here
31019 * normal/x86_64/setjmp.S: Moved from here ...
31020 * lib/x86_64/setjmp.S: ... Moved here
31021 * normal/powerpc/setjmp.S: Moved from here ...
31022 * lib/powerpc/setjmp.S: ... Moved here
31023 * normal/sparc64/setjmp.S: Moved from here ...
31024 * lib/sparc64/setjmp.S: ... Moved here
31025
31026 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31027 returns_twice in mingw.
31028
31029 * script/lua/grub_lib.c: New file.
31030 * script/lua/grub_lib.h: Likewise.
31031 * script/lua/grub_lua.h: Likewise.
31032 * script/lua/grub_main.c: Likewise.
31033 * script/lua/lapi.c: Likewise.
31034 * script/lua/lapi.h: Likewise.
31035 * script/lua/lauxlib.c: Likewise.
31036 * script/lua/lauxlib.h: Likewise.
31037 * script/lua/lbaselib.c: Likewise.
31038 * script/lua/lcode.c: Likewise.
31039 * script/lua/lcode.h: Likewise.
31040 * script/lua/ldblib.c: Likewise.
31041 * script/lua/ldebug.c: Likewise.
31042 * script/lua/ldebug.h: Likewise.
31043 * script/lua/ldo.c: Likewise.
31044 * script/lua/ldo.h: Likewise.
31045 * script/lua/ldump.c: Likewise.
31046 * script/lua/lfunc.c: Likewise.
31047 * script/lua/lfunc.h: Likewise.
31048 * script/lua/lgc.c: Likewise.
31049 * script/lua/lgc.h: Likewise.
31050 * script/lua/linit.c: Likewise.
31051 * script/lua/liolib.c: Likewise.
31052 * script/lua/llex.c: Likewise.
31053 * script/lua/llex.h: Likewise.
31054 * script/lua/llimits.h: Likewise.
31055 * script/lua/lmathlib.c: Likewise.
31056 * script/lua/lmem.c: Likewise.
31057 * script/lua/lmem.h: Likewise.
31058 * script/lua/loadlib.c: Likewise.
31059 * script/lua/lobject.c: Likewise.
31060 * script/lua/lobject.h: Likewise.
31061 * script/lua/lopcodes.c: Likewise.
31062 * script/lua/lopcodes.h: Likewise.
31063 * script/lua/loslib.c: Likewise.
31064 * script/lua/lparser.c: Likewise.
31065 * script/lua/lparser.h: Likewise.
31066 * script/lua/lstate.c: Likewise.
31067 * script/lua/lstate.h: Likewise.
31068 * script/lua/lstring.c: Likewise.
31069 * script/lua/lstring.h: Likewise.
31070 * script/lua/lstrlib.c: Likewise.
31071 * script/lua/ltable.c: Likewise.
31072 * script/lua/ltable.h: Likewise.
31073 * script/lua/ltablib.c: Likewise.
31074 * script/lua/ltm.c: Likewise.
31075 * script/lua/ltm.h: Likewise.
31076 * script/lua/lua.h: Likewise.
31077 * script/lua/luaconf.h: Likewise.
31078 * script/lua/lualib.h: Likewise.
31079 * script/lua/lundump.c: Likewise.
31080 * script/lua/lundump.h: Likewise.
31081 * script/lua/lvm.c: Likewise.
31082 * script/lua/lvm.h: Likewise.
31083 * script/lua/lzio.c: Likewise.
31084 * script/lua/lzio.h: Likewise.
31085
31086 2009-05-16 Bean <bean123ch@gmail.com>
31087
31088 * include/grub/kernel.h (grub_module_header_types): Add type
31089 OBJ_TYPE_CONFIG.
31090
31091 * kern/main.c (grub_load_config): New function.
31092 (grub_main): Call grub_load_config to read boot config.
31093
31094 * grub-mkimage (generate_image): New parameter config_path.
31095 (options): New option --config.
31096 (main): Parse --config option, and pass it to generate_image.
31097
31098 2009-05-14 Christian Franke <franke@computer.org>
31099
31100 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31101 This fixes build on Cygwin.
31102
31103 2009-05-14 Pavel Roskin <proski@gnu.org>
31104
31105 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31106 jump. This saves two bytes, so the typical case of 2 swapped
31107 drives would fit 32 bytes.
31108
31109 2009-05-13 Pavel Roskin <proski@gnu.org>
31110
31111 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31112 grub_uint32_t to avoid a warning.
31113
31114 * loader/i386/linux.c (allocate_pages): When assigning
31115 real_mode_mem, cast through grub_size_t to fix a warning. The
31116 code already makes sure that the value would fit a pointer.
31117 (grub_linux_setup_video): Cast render_target->data to
31118 grub_size_t to fix a warning.
31119
31120 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31121
31122 * commands/i386/pc/drivemap.c: New file - implement drivemap
31123 command.
31124 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31125 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31126
31127 2009-05-13 Pavel Roskin <proski@gnu.org>
31128
31129 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31130 embedding_area_exists.
31131
31132 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31133
31134 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31135 it easier to understand / work with.
31136 Improve warning messages for cases where there's no embedding area,
31137 or when it is too small (or core.img too large).
31138
31139 2009-05-13 Pavel Roskin <proski@gnu.org>
31140
31141 * loader/i386/pc/multiboot2.c: Add necessary includes for
31142 grub_multiboot2_real_boot().
31143
31144 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31145 PX record is always little-endian. We only need the lower 2
31146 bytes of the mode.
31147
31148 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31149 facilitate code reuse.
31150 (grub_cpio_mount): Use "struct head", not a char buffer. This
31151 fixes a warning reported by gcc 4.4.
31152
31153 * kernel/disk.c (grub_disk_read): Use void pointer for the
31154 buffer.
31155 (grub_disk_write): Use const void pointer for the buffer.
31156 Adjust all callers. Remove unnecessary casts.
31157
31158 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31159
31160 * util/i386/pc/grub-install.in: Update copyright year.
31161
31162 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31163
31164 gptsync
31165
31166 * commands/gptsync.c: new file
31167 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31168 (gptsync_mod_SOURCES): new variable
31169 (gptsync_mod_CFLAGS): likewise
31170 (gptsync_mod_LDFLAGS): likewise
31171 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31172 new definition
31173 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31174 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31175 * conf/i386-ieee1275.rmk: likewise
31176 * conf/i386-pc.rmk: likewise
31177 * conf/powerpc-ieee1275.rmk: likewise
31178
31179 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31180
31181 Fixed grub-emu
31182
31183 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31184 (grub_dl_ref): likewise
31185
31186 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31187
31188 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31189 split in two functions (one for msdos and one for gpt).
31190
31191 2009-05-08 Pavel Roskin <proski@gnu.org>
31192
31193 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31194 not modified.
31195
31196 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31197 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31198 Initialize them with -1. Add sanity check for bad1. Eliminate
31199 nerr variable.
31200
31201 2009-05-08 David S. Miller <davem@davemloft.net>
31202
31203 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31204
31205 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31206
31207 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31208 existence.
31209
31210 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31211
31212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31213 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31214
31215 2009-05-05 David S. Miller <davem@davemloft.net>
31216
31217 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31218
31219 2009-05-05 Pavel Roskin <proski@gnu.org>
31220
31221 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31222 of grub_dl_ref() and grub_dl_unref().
31223 * commands/parttool.c: Remove preprocessor conditionals around
31224 grub_dl_ref() and grub_dl_unref().
31225 * fs/affs.c: Likewise.
31226 * fs/afs.c: Likewise.
31227 * fs/cpio.c: Likewise.
31228 * fs/ext2.c: Likewise.
31229 * fs/fat.c: Likewise.
31230 * fs/hfs.c: Likewise.
31231 * fs/hfsplus.c: Likewise.
31232 * fs/iso9660.c: Likewise.
31233 * fs/jfs.c: Likewise.
31234 * fs/minix.c: Likewise.
31235 * fs/ntfs.c: Likewise.
31236 * fs/reiserfs.c: Likewise.
31237 * fs/sfs.c: Likewise.
31238 * fs/udf.c: Likewise.
31239 * fs/ufs.c: Likewise.
31240 * fs/xfs.c: Likewise.
31241 * include/grub/dl.h: Likewise.
31242 * loader/xnu.c: Likewise.
31243
31244 2009-05-04 Pavel Roskin <proski@gnu.org>
31245
31246 * commands/acpi.c: Remove unused variable my_mod.
31247 * partmap/amiga.c: Likewise.
31248 * partmap/apple.c: Likewise.
31249 * partmap/gpt.c: Likewise.
31250 * partmap/pc.c: Likewise.
31251 * partmap/sun.c: Likewise.
31252 * term/gfxterm.c: Likewise.
31253 * term/i386/pc/vesafb.c: Likewise.
31254 * term/i386/pc/vga.c: Likewise.
31255
31256 2009-05-04 David S. Miller <davem@davemloft.net>
31257
31258 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31259 pointer args to grub_ieee1275_get_property().
31260
31261 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31262
31263 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31264 devices, and do not traverse down under controller nodes.
31265
31266 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31267 (grub_ofdisk_open): Use it to un-escape "," characters.
31268 * kern/disk.c (find_part_sep): New.
31269 (grub_disk_open): Use it to find the first non-escaped ','
31270 character in the disk name.
31271 * util/ieee1275/devicemap.c (escape_of_path): New.
31272 (grub_util_emit_devicemap_entry): Use it.
31273 * util/sparc64/ieee1275/grub-install.in: Update script to
31274 strip partition specifiers properly by not triggering on
31275 '\' escaped ',' characters.
31276
31277 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31278
31279 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31280 to 0x300.
31281 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31282 resolutions.
31283 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31284 on documentation from Wikipedia).
31285
31286 2009-05-04 Pavel Roskin <proski@gnu.org>
31287
31288 * disk/ata.c: Spelling fixes.
31289 * disk/raid.c: Likewise.
31290 * disk/usbms.c: Likewise.
31291 * disk/dmraid_nvidia.c: Likewise.
31292 * kern/ieee1275/openfw.c: Likewise.
31293 * kern/ieee1275/init.c: Likewise.
31294 * kern/ieee1275/cmain.c: Likewise.
31295 * boot/i386/pc/cdboot.S: Likewise.
31296 * video/readers/png.c: Likewise.
31297 * video/i386/pc/vbe.c: Likewise.
31298 * fs/udf.c: Likewise.
31299 * fs/hfs.c: Likewise.
31300 * fs/reiserfs.c: Likewise.
31301 * efiemu/runtime/efiemu.c: Likewise.
31302 * efiemu/main.c: Likewise.
31303 * efiemu/mm.c: Likewise.
31304 * include/grub/elf.h: Likewise.
31305 * include/grub/xnu.h: Likewise.
31306 * include/grub/usbdesc.h: Likewise.
31307 * include/grub/usb.h: Likewise.
31308 * include/grub/script_sh.h: Likewise.
31309 * include/grub/lib/LzmaEnc.h: Likewise.
31310 * include/grub/efiemu/efiemu.h: Likewise.
31311 * include/grub/command.h: Likewise.
31312 * normal/menu.c: Likewise.
31313 * normal/main.c: Likewise.
31314 * normal/datetime.c: Likewise.
31315 * bus/usb/uhci.c: Likewise.
31316 * mmap/i386/uppermem.c: Likewise.
31317 * mmap/mmap.c: Likewise.
31318 * commands/acpi.c: Likewise.
31319 * commands/test.c: Likewise.
31320 * partmap/apple.c: Likewise.
31321 * font/font.c: Likewise.
31322 * loader/sparc64/ieee1275/linux.c: Likewise.
31323 * loader/macho.c: Likewise.
31324 * loader/i386/bsd_trampoline.S: Likewise.
31325 * loader/i386/bsd.c: Likewise.
31326 * loader/xnu.c: Likewise.
31327 * term/i386/pc/vesafb.c: Likewise.
31328 * term/usb_keyboard.c: Likewise.
31329 * util/resolve.c: Likewise.
31330 * util/getroot.c: Likewise.
31331
31332 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31333
31334 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31335
31336 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31337
31338 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31339 build error.
31340
31341 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31342
31343 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31344 parameter only available on BIOS.
31345
31346 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31347
31348 Removed wrong semicolon in declaration
31349
31350 * grub/misc.h (grub_dprintf): remove semicolon
31351
31352 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31353
31354 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31355 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31356 is done by grub_cmd_linux() now).
31357 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31358 restore video to text mode.
31359 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31360 indicates lack of "vga=" parameter. "vga=0" is mapped to
31361 `GRUB_LINUX_VID_MODE_NORMAL'.
31362
31363 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31364
31365 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31366 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31367 and `normal/script.c'. Add `kern/rescue_reader.c',
31368 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31369 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31370 `grub_script.tab.c'.
31371
31372 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31373 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31375 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31376 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31377
31378 * Makefile.in: Remove duplicated 2008 in Copyright line.
31379
31380 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31381
31382 * util/misc.c (grub_util_warn): New function. Emits a warning
31383 unconditionally.
31384 * include/grub/util/misc.h (grub_util_warn): New declaration.
31385
31386 * util/i386/pc/grub-install.in: Understand --force and pass it down
31387 to grub-setup.
31388
31389 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31390 down to setup().
31391 (setup): Improve error messages and add warnings when requested to
31392 install in odd layouts. Refuse to install using blocklists unless
31393 --force was set.
31394
31395 2009-05-04 martin f. krafft <madduck@madduck.net>
31396
31397 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31398
31399 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31400
31401 Updated copyright year
31402
31403 * fs/hfsplus.c: updated copyright year
31404
31405 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31406
31407 HFS+ UUID
31408
31409 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31410 in the space previously used by unused3
31411 (grub_hfsplus_uuid): new function
31412 (grub_hfsplus_fs): added uuid field
31413
31414 2009-05-03 Pavel Roskin <proski@gnu.org>
31415
31416 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31417 suppress warnings. It's no longer needed.
31418 * disk/host.c: Likewise.
31419 * disk/ata_pthru.c: Likewise.
31420 * disk/loopback.c: Likewise.
31421 * hook/datehook.c: Likewise.
31422 * parttool/pcpart.c: Likewise.
31423 * fs/i386/pc/pxe.c: Likewise.
31424 * fs/ntfscomp.c: Likewise.
31425 * efiemu/main.c: Likewise.
31426 * mmap/mmap.c: Likewise.
31427 * commands/crc.c: Likewise.
31428 * commands/hexdump.c: Likewise.
31429 * commands/hdparm.c: Likewise.
31430 * commands/acpi.c: Likewise.
31431 * commands/echo.c: Likewise.
31432 * commands/minicmd.c: Likewise.
31433 * commands/blocklist.c: Likewise.
31434 * commands/memrw.c: Likewise.
31435 * commands/loadenv.c: Likewise.
31436 * commands/usbtest.c: Likewise.
31437 * commands/lsmmap.c: Likewise.
31438 * commands/boot.c: Likewise.
31439 * commands/parttool.c: Likewise.
31440 * commands/configfile.c: Likewise.
31441 * commands/search.c: Likewise.
31442 * commands/ieee1275/suspend.c: Likewise.
31443 * commands/cat.c: Likewise.
31444 * commands/i386/pc/pxecmd.c: Likewise.
31445 * commands/i386/pc/play.c: Likewise.
31446 * commands/i386/pc/halt.c: Likewise.
31447 * commands/i386/pc/vbeinfo.c: Likewise.
31448 * commands/i386/pc/vbetest.c: Likewise.
31449 * commands/lspci.c: Likewise.
31450 * commands/date.c: Likewise.
31451 * commands/handler.c: Likewise.
31452 * commands/ls.c: Likewise.
31453 * commands/test.c: Likewise.
31454 * commands/cmp.c: Likewise.
31455 * commands/efi/loadbios.c: Likewise.
31456 * commands/efi/fixvideo.c: Likewise.
31457 * commands/halt.c: Likewise.
31458 * commands/help.c: Likewise.
31459 * commands/reboot.c: Likewise.
31460 * hello/hello.c: Likewise.
31461 * script/sh/main.c: Likewise.
31462 * loader/xnu.c: Likewise.
31463 * term/terminfo.c: Likewise.
31464 * term/i386/pc/serial.c: Likewise.
31465 * term/usb_keyboard.c: Likewise.
31466
31467 2009-05-03 David S. Miller <davem@davemloft.net>
31468
31469 * normal/menu.c: Include grub/parser.h
31470
31471 2009-05-03 Pavel Roskin <proski@gnu.org>
31472
31473 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31474 not char*.
31475 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31476 Suggested by Javier Martín <lordhabbit@gmail.com>
31477
31478 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31479 efiemu??.o doesn't exist.
31480 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31481 copying.
31482
31483 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31484
31485 FreeBSD 64-bit support
31486
31487 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31488 and loader/i386/bsd_trampoline.S
31489 (bsd_mod_ASFLAGS): new variable
31490 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31491 (FREEBSD_MODTYPE_KERNEL64): likewise
31492 (grub_bsd64_trampoline_start): likewise
31493 (grub_bsd64_trampoline_end): likewise
31494 (grub_bsd64_trampoline_selfjump): likewise
31495 (grub_bsd64_trampoline_gdt): likewise
31496 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31497 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31498 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31499 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31500 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31501 of "attrib" member
31502 * loader/i386/bsd_pagetable.c: new file
31503 * loader/i386/bsd_trampoline.S: likewise
31504 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31505 (ALIGN_VAR): likewise
31506 (entry_hi): new variable
31507 (kern_end_mdofs): likewise
31508 (is_64bit): likewise
31509 (grub_freebsd_add_meta): use ALIGN_VAR
31510 (grub_e820_mmap): new declaration
31511 (grub_freebsd_add_mmap): new function
31512 (grub_freebsd_add_meta_module): support 64 bit kernels
31513 (grub_freebsd_list_modules): use ALIGN_VAR
31514 (gdt_descriptor): new declaration
31515 (grub_freebsd_boot): support 64 bit kernels
31516 (grub_bsd_elf64_hook): new function
31517 (grub_bsd_load_elf): support elf64
31518
31519 2009-05-03 Bean <bean123ch@gmail.com>
31520
31521 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31522 after we get the result of if statement.
31523
31524 2009-05-03 Bean <bean123ch@gmail.com>
31525
31526 * Makefile.in (enable_efiemu): New variable.
31527
31528 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31529 set.
31530 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31531 path.
31532 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31533 path, add -mno-red-zone option.
31534 (efiemu64_s.o): Likewise.
31535 (efiemu64.o): Use macro $^ for source file.
31536
31537 * configure.ac (--enable-efiemu): New option.
31538
31539 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31540
31541 xnu support
31542
31543 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31544 (pkglib_MODULES): add xnu.mod
31545 (xnu_mod_SOURCES): new variable
31546 (xnu_mod_CFLAGS): likewise
31547 (xnu_mod_LDFLAGS): likewise
31548 (xnu_mod_ASFLAGS): likewise
31549 * conf/i386-pc.rmk: likewise
31550 * conf/x86_64-efi.rmk: likewise
31551 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31552 new declaration
31553 * include/grub/i386/macho.h: new file
31554 * include/grub/i386/xnu.h: likewise
31555 * include/grub/macho.h: likewise
31556 * include/grub/machoload.h: likewise
31557 * include/grub/x86_64/macho.h: likewise
31558 * include/grub/x86_64/xnu.h: likewise
31559 * include/grub/xnu.h: likewise
31560 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31561 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31562 * loader/i386/efi/xnu.c: new file
31563 * loader/i386/pc/xnu.c: likewise
31564 * loader/i386/xnu.c: likewise
31565 * loader/i386/xnu_helper.S: likewise
31566 * loader/macho.c: likewise
31567 * loader/xnu.c: likewise
31568 * loader/xnu_resume.c: likewise
31569 * util/grub-dumpdevtree: likewise
31570 * include/grub/i386/pit.h: include grub/err.h
31571 (grub_pit_wait): export
31572 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31573
31574 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31575
31576 Efiemu
31577
31578 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31579 _linux_efi, linux_efi.
31580 new files in grub-emu
31581 new targets efiemu32.o and efiemu64.o
31582 * loader/linux_normal_efiemu.c: likewise
31583 * loader/i386/efi/linux.c: added preliminary efiemu support
31584 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31585 files to copy
31586 * include/grub/autoefi.h: new file
31587 * include/grub/i386/efiemu.h: likewise
31588 * include/grub/i386/pc/efiemu.h: likewise
31589 * include/grub/efi/api.h: add LL suffix when necessary
31590 new definitions relating to tables
31591 * include/grub/efiemu/efiemu.h: new file
31592 * include/grub/efiemu/runtime.h: likewise
31593 * efiemu/prepare.c: likewise
31594 * efiemu/loadcore_common.c: likewise
31595 * efiemu/loadcore64.c: likewise
31596 * efiemu/runtime/efiemu.sh: likewise
31597 * efiemu/runtime/efiemu.S: likewise
31598 * efiemu/runtime/efiemu.c: likewise
31599 * efiemu/runtime/config.h: likewise
31600 * efiemu/prepare32.c: likewise
31601 * efiemu/main.c: likewise
31602 * efiemu/modules/pnvram.c: likewise
31603 * efiemu/modules/i386: likewise
31604 * efiemu/modules/i386/pc: likewise
31605 * efiemu/modules/acpi.c: likewise
31606 * efiemu/i386/pc/cfgtables.c: likewise
31607 * efiemu/i386/loadcore64.c: likewise
31608 * efiemu/i386/loadcore32.c: likewise
31609 * efiemu/prepare64.c: likewise
31610 * efiemu/loadcore.c: likewise
31611 * efiemu/symbols.c: likewise
31612 * efiemu/mm.c: likewise
31613 * efiemu/loadcore32.c: likewise
31614
31615 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31616
31617 ACPI spoofing
31618
31619 * commands/acpi.c: new file
31620 * commands/i386/pc/acpi.c: likewise
31621 * commands/efi/acpi.c: likewise
31622 * include/grub/acpi.h: likewise
31623 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31624 (acpi_mod_SOURCES): new variable
31625 (acpi_mod_CFLAGS): likewise
31626 (acpi_mod_LDFLAGS): likewise
31627 * conf/i386-efi.rmk: likewise
31628 * conf/x86_64-efi.rmk: likewise
31629
31630 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31631
31632 Missing part from mmap patch
31633
31634 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31635 (grub_mmap_unregister)
31636 (grub_mmap_free_and_unregister): use grub_mmap_register
31637
31638 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31639
31640 Mmap services
31641
31642 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31643 * loader/i386/linux.c (find_mmap_size): likewise
31644 (allocate_pages): likewise
31645 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31646 (grub_fill_multiboot_mmap): likewise
31647 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31648 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31649 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31650 (OPENBSD_MMAP_RESERVED): likewise
31651 * include/grub/i386/pc/memory.h: include grub/memory.h
31652 (grub_lower_mem): removed
31653 (grub_upper_mem): likewise
31654 (GRUB_MACHINE_MEMORY_ACPI): new definition
31655 (GRUB_MACHINE_MEMORY_NVS): likewise
31656 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31657 (GRUB_MACHINE_MEMORY_HOLE): likewise
31658 (grub_machine_mmap_register): likewise
31659 (grub_machine_mmap_unregister): likewise
31660 (grub_machine_get_upper): likewise
31661 (grub_machine_get_lower): likewise
31662 (grub_machine_get_post64): likewise
31663 * include/grub/i386/efi/memory.h: new file
31664 * include/grub/x86_64/efi/memory.h: likewise
31665 * include/grub/efi/memory.h: likewise
31666 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31667 (mmap_mod_SOURCES): new variable
31668 (mmap_mod_LDFLAGS): likewise
31669 (mmap_mod_ASFLAGS): likewise
31670 * conf/i386-coreboot.rmk: likewise
31671 * conf/i386-ieee1275.rmk: likewise
31672 * conf/i386-efi.rmk: likewise
31673 * conf/x86_64-efi.rmk: likewise
31674 * include/grub/types.h (UINT_TO_PTR): new macro
31675 (PTR_TO_UINT32): likewise
31676 (PTR_TO_UINT64): likewise
31677 * include/grub/memory.h: new file
31678 * mmap/i386/pc/mmap.c: likewise
31679 * mmap/i386/pc/mmap_helper.S: likewise
31680 * mmap/i386/uppermem.c: likewise
31681 * mmap/mmap.c: likewise
31682 * mmap/efi/mmap.c: likewise
31683 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31684 grub_upper_mem
31685 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31686 (grub_upper_mem): likewise
31687 (grub_machine_init): don't use grub_upper_mem,
31688 make grub_lower_mem local
31689 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31690 grub_mmap_iterate and grub_mmap_get_upper
31691 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31692
31693 2009-05-02 Bean <bean123ch@gmail.com>
31694
31695 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31696 script/sh/parser.y.
31697 (pkglib_MODULES): Add normal.mod and sh.mod.
31698 (normal_SOURCES): New variable.
31699 (normal_mod_CFLAGS): Likewise.
31700 (normal_mod_LDFLAGS): Likewise.
31701 (sh_mod_SOURCES): Likewise.
31702 (sh_mod_CFLAGS): Likewise.
31703 (sh_mod_LDFLAGS): Likewise.
31704
31705 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31706 script/sh/lexer.c_DEPENDENCIES.
31707 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31708 kern/rescue_reader.c and kern/rescue_parser.c.
31709 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31710 (grub_emu_SOURCES): Change source files.
31711 (pkglib_MODULES): Remove normal.mod.
31712 (normal_SOURCES): Removed.
31713 (normal_mod_CFLAGS): Likewise.
31714 (normal_mod_LDFLAGS): Likewise.
31715 * conf/i386-coreboot.rmk: Likewise.
31716 * conf/i386-efi.rmk: Likewise.
31717 * conf/i386-ieee1276.rmk: Likewise.
31718 * conf/powerpc-ieee1275.rmk: Likewise.
31719 * conf/sparc64-ieee1275.rmk: Likewise.
31720 * conf/x86_64-efi.rmk: Likewise.
31721
31722 * include/grub/command.h (grub_command_execute): New inline function.
31723
31724 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31725
31726 * include/grub/normal.h: Remove <grub/setjmp.h>.
31727 (grub_fs_module_list): Moved to normal/autofs.c.
31728 (grub_exit_env): Removed.
31729 (grub_command_execute): Likewise.
31730 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31731 parameter script.
31732 (read_command_list): New function declaration.
31733 (read_fs_list): Likewise.
31734
31735 * include/parser.h: Include <grub/reader.h>.
31736 (grub_parser_split_cmdline): Change type of getline parameter.
31737 (grub_parser): New structure.
31738 (grub_parser_class): New variable.
31739 (grub_parser_execute): New function declaration.
31740 (grub_register_rescue_parser): Likewise.
31741 (grub_parser_register): New inline function.
31742 (grub_parser_unregister): Likewise.
31743 (grub_parser_get_current): Likewise.
31744 (grub_parser_set_current): Likewise.
31745
31746 * include/grub/reader.h: New file.
31747 * kern/reader.c: Likewise.
31748 * kern/rescue_parser.c: Likewise.
31749 * kern/rescue_reader.c: Likewise.
31750 * normal/autofs.c: Likewise.
31751 * normal/dyncmd.c: Likewise.
31752
31753 * include/grub/rescue.h: Removed.
31754 * normal/command.h: Likewise.
31755
31756 * include/grub/script.h: Moved to ...
31757 * include/grub/script_sh.h: ... Moved here.
31758 * normal/execute.c: Moved to ...
31759 * script/sh/execute.c: ... Moved here.
31760 * normal/function.c: Moved to ...
31761 * script/sh/function.c: ... Moved here.
31762 * normal/lexer.c: Moved to ...
31763 * script/sh/lexer.c: ... Moved here.
31764 * normal/parser.y: Moved to ...
31765 * script/sh/parser.y: ... Moved here.
31766 * normal/script.c: Moved to ...
31767 * script/sh/script.c: ... Moved here.
31768
31769 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31770 <grub/reader.h>.
31771 (grub_exit_env): Removed.
31772 (fs_module_list): Moved to normal/autofs.c.
31773 (grub_file_getline): Don't handle comment here.
31774 (free_menu): Skip removed field entry->commands.
31775 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31776 script parameter.
31777 (read_config_file): Removed nested parameter, change getline function.
31778 (grub_enter_normal_mode): Removed.
31779 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31780 (read_command_list): Likewise.
31781 (autoload_fs_module): Moved to normal/autofs.c.
31782 (read_fs_list): Likewise.
31783 (reader_nested): New variable.
31784 (grub_normal_execute): Run parser.sh to switch to sh parser.
31785 (grub_cmd_rescue): Removed.
31786 (cmd_normal): Removed.
31787 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31788 rescue command.
31789 (grub_cmdline_run): New function.
31790 (grub_normal_reader_init): Likewise.
31791 (grub_normal_read_line): Likewise.
31792 (grub_env_write_pager): Likewise.
31793 (cmdline): New variable.
31794 (grub_normal_reader): Likewise.
31795 (GRUB_MOD_INIT): Register normal reader and set as current, register
31796 pager hook, register normal command with grub_register_command_prio,
31797 so that it won't show up in command.lst.
31798 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31799 grub_fs_autoload_hook.
31800
31801 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31802 (grub_menu_execute_entry): Replace grub_script_execute with
31803 grub_parser_execute, change parameter to grub_command_execute.
31804
31805 * normal/menu_text.c: Remove <grub/script.h>.
31806
31807 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31808 and <grub/parser.h>.
31809 (run): Change editor_getline to use new parser interface. Change
31810 parameter to grub_command_execute.
31811
31812 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31813 <grub/reader.h> and <grub/parser.h>.
31814 (grub_load_normal_mode): Execute normal command.
31815 (grub_main): Call grub_register_core_commands,
31816 grub_register_rescue_parser and grub_register_rescue_reader, use
31817 grub_reader_loop to enter input loop.
31818
31819 * kern/parser.c (grub_parser_split_cmdline): Change type of
31820 getline parameter.
31821 (grub_parser_class): New variable.
31822 (grub_parser_execute): New function.
31823
31824 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31825 * loader/multiboot2.c: Likewise.
31826 * loader/sparc64/ieee1275/linux.c: Likewise.
31827
31828 * util/grub-emu.c (read_command_list): New dummy function.
31829
31830 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31831
31832 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31833 count to 16 for CCISS and IDA.
31834
31835 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31836
31837 * normal/menu_text.c (grub_wait_after_message): Print a newline
31838 after waiting for user input.
31839
31840 * loader/i386/linux.c: Include `<grub/normal.h>'.
31841 (grub_cmd_linux): Improve the error message about `ask' mode, by
31842 waiting for user input so it's not missed (we can do this, since
31843 user requested interaction).
31844
31845 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31846
31847 Added missing lst to grub-mkrescue
31848
31849 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31850 and ${input_dir}/parttool.lst
31851
31852 2009-04-30 David S. Miller <davem@davemloft.net>
31853
31854 * util/hostdisk.c (device_is_wholedisk): New function.
31855 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31856 zero only if device_is_wholedisk() returns true.
31857
31858 * util/hostdisk.c (convert_system_partition_to_system_disk):
31859 Handle virtual disk devices named /dev/vdiskX as found on sparc
31860 and powerpc.
31861
31862 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31863 lettered partition specifier is found, convert to numbered.
31864
31865 2009-04-29 David S. Miller <davem@davemloft.net>
31866
31867 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31868 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31869
31870 * normal/command.c: Add missing newline at end of file.
31871
31872 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31873 warnings.
31874 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31875 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31876 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31877 ihandles have a 32-bit type but need to be stored in a "void *".
31878
31879 2009-04-28 Pavel Roskin <proski@gnu.org>
31880
31881 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31882 not disk. Adjust all dependencies.
31883 (grub_fs_uuid_close): Use grub_device_close(), not
31884 grub_disk_close().
31885
31886 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
31887 parent's partition, don't copy it by reference, as it gets freed
31888 on close.
31889
31890 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31891
31892 Preboot hooks support
31893
31894 * commands/boot.c (struct grub_preboot_t): new declaration
31895 (preboots_head): new variable
31896 (preboots_tail): likewise
31897 (grub_loader_register_preboot_hook): new function
31898 (grub_loader_unregister_preboot_hook): likewise
31899 (grub_loader_set): launch preboot hooks
31900 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
31901 (grub_loader_register_preboot_hook): new declaration
31902 (grub_loader_unregister_preboot_hook): likewise
31903
31904 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31905
31906 Warning fix
31907
31908 * disk/scsi.c (grub_scsi_open): added missing cast when
31909 calling grub_dprintf
31910
31911 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
31912
31913 Bug and warning fixes
31914
31915 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
31916 declaration
31917 * commands/test.c (test_parse): fixed bug with file tests and corrected
31918 declaration of find_file
31919
31920 2009-04-26 Pavel Roskin <proski@gnu.org>
31921
31922 * Makefile.in: Don't install empty manual pages if help2man is
31923 missing. Use help2man option for output, not shell redirection.
31924
31925 2009-04-26 David S. Miller <davem@davemloft.net>
31926
31927 * util/grub-mkdevicemap.c (make_device_map): Add missing
31928 NESTED_FUNC_ATTR to process_device().
31929
31930 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31931
31932 Test command
31933
31934 * commands/test.c: rewritten to use bash-like test
31935
31936 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31937
31938 Parttool autoloading and improvements
31939
31940 * Makefile.in (pkglib_DATA): add parttool.lst
31941 (parttool.lst): new target
31942 * genmk.rb: generate parttool-*
31943 (CLEANFILES): add #{parttool}
31944 (PARTTOOLFILES): new variable
31945 * genparttoollist.sh: new file
31946 * parttool/pcpart.c (grub_pcpart_boot): more feedback
31947 (grub_pcpart_type): likewise
31948 * commands/parttool.c (helpmsg): new variable
31949 (grub_cmd_parttool): output help if not enough arguments are supplied
31950 autoload modules
31951 (GRUB_MOD_INIT(parttool)): use helpmsg
31952
31953 2009-04-24 David S. Miller <davem@davemloft.net>
31954
31955 Avoiding opening same device multiple times in device iterator.
31956
31957 * kern/device.c: (grub_device_iterate): Define struct part_ent,
31958 and use it to build a list of partitions in iterate_disk() and
31959 iterate_partition().
31960
31961 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
31962 on disk->data.
31963
31964 * disk/ieee1275/nand.c (grub_nand_iterate): Return
31965 grub_devalias_iterate() result instead of unconditional 0.
31966 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
31967 Also, capture hook return value, either directly or via
31968 grub_children_iterate(), and propagate to caller.
31969 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
31970 grub_children_iterate): Return value is now 'int' instead of
31971 'grub_err_t'.
31972 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
31973 like a proper iterator, stopping when hooks return non-zero.
31974 (grub_devalias_iterate): Likewise.
31975
31976 2009-04-23 David S. Miller <davem@davemloft.net>
31977
31978 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
31979
31980 2009-04-22 David S. Miller <davem@davemloft.net>
31981
31982 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
31983 is larger than address_cells, use that value for address_cells too.
31984
31985 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
31986 IEEE1275_MAX_PATH_LEN): Define.
31987 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
31988 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
31989 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
31990 'devtype'. Explicitly NULL terminate devalias expansion.
31991
31992 * util/sparc64/ieee1275/misc.c: New file.
31993 * util/sparc64/ieee1275/grub-setup.c: New file.
31994 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
31995 * util/sparc64/ieee1275/grub-mkimage.c: New file.
31996 * util/sparc64/ieee1275/grub-install.in: New file.
31997 * util/ieee1275/ofpath.c: New file.
31998 * util/ieee1275/devicemap.c: New file.
31999 * util/devicemap.c: New file.
32000 * util/deviceiter.c: New file.
32001 * kern/sparc64/ieee1275/init.c: New file.
32002 * include/grub/util/ofpath.h: New file.
32003 * include/grub/util/deviceiter.h: New file.
32004 * util/grub-mkdevicemap.c: Include deviceiter.h.
32005 Implement using grub_util_emit_devicemap_entry and
32006 grub_util_iterate_devices.
32007 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32008 util/devicemap.c into grub-mkdevicemap
32009 * conf/i386-efi.rmk: Likewise.
32010 * conf/i386-ieee1275.rmk: Likewise.
32011 * conf/i386-pc.rmk: Likewise.
32012 * conf/powerpc-ieee1275.rmk: Likewise.
32013 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32014 images and installation utilities. Build kernel as image
32015 instead of as elf binary. Use common rules as much as possible.
32016
32017 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32018
32019 Correct GPT definition
32020
32021 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32022 of "attrib" member
32023
32024 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32025
32026 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32027
32028 2009-04-19 David S. Miller <davem@davemloft.net>
32029
32030 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32031 (grub_rescue_cmd_linux): Rename to...
32032 (grub_cmd_linux): and fix prototype.
32033 (grub_rescue_cmd_initrd): Rename to...
32034 (grub_cmd_initrd): and fix prototype.
32035 (cmd_linux, cmd_initrd): New.
32036 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32037 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32038
32039 2009-04-17 Pavel Roskin <proski@gnu.org>
32040
32041 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32042 format.
32043 (grub_ohci_transfer): Likewise.
32044
32045 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32046
32047 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32048 return without a value. Fix inconsistent indentation.
32049
32050 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32051 match struct grub_fs.
32052
32053 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32054 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32055 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32056 * commands/lspci.c (grub_lspci_iter): Likewise.
32057
32058 2009-04-16 Bean <bean123ch@gmail.com>
32059
32060 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32061 value.
32062
32063 2009-04-15 Pavel Roskin <proski@gnu.org>
32064
32065 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32066 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32067 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32068 definitions.
32069
32070 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32071
32072 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32073 that no multiple data or metadata areas are supported and `Unknown
32074 metadata header'.
32075
32076 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32077
32078 Move loader out of the kernel
32079
32080 * kern/loader.c: moved to ...
32081 * commands/boot.c: ... moved here
32082 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32083 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32084 * include/grub/kernel.h (grub_machine_fini): export
32085 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32086 (grub_loader_set): likewise
32087 (grub_loader_unset): likewise
32088 (grub_loader_boot): likewise
32089 * conf/common.rmk: new module boot.mod
32090 (pkglib_MODULES): add boot.mod
32091 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32092 (grub_emu_SOURCES): likewise
32093 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32094 (grub_emu_SOURCES): likewise
32095 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32096 (grub_emu_SOURCES): likewise
32097 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32098 (grub_emu_SOURCES): likewise
32099 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32100 (grub_emu_SOURCES): likewise
32101 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32102 (grub_emu_SOURCES): likewise
32103 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32104 (grub_emu_SOURCES): likewise
32105
32106 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32107
32108 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32109
32110 * kern/misc.c (grub_itoa): Removed function
32111 (grub_ltoa): likewise
32112 (grub_vsprintf): use grub_lltoa
32113
32114 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32115
32116 Restore grub-emu
32117
32118 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32119 * conf/i386-coreboot.rmk: likewise
32120 * conf/i386-ieee1275.rmk: likewise
32121 * conf/powerpc-ieee1275.rmk: likewise
32122
32123 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32124
32125 * INSTALL: Add that `./autogen.sh' needs to be run before
32126 `./configure.'.
32127
32128 2009-04-14 Bean <bean123ch@gmail.com>
32129
32130 * Makefile.in (pkglib_DATA): Add handler.lst.
32131 (handler.lst): New rule.
32132
32133 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32134 * conf/i386-coreboot.rmk: Likewise.
32135 * conf/i386-ieee1275.rmk: Likewise.
32136 * conf/i386-efi.rmk: Likewise.
32137 * conf/x86_64-efi.rmk: Likewise.
32138 * conf/powerpc-ieee1275.rmk: Likewise.
32139 * conf/sparc64-ieee1275.rmk: Likewise.
32140
32141 * genhandlerlist.sh: New file.
32142
32143 * genmk.rb: Add rules to generate handler.lst.
32144
32145 * include/grub/normal.h (grub_file_getline): New function definition.
32146 (read_handler_list): Likewise.
32147 (free_handler_list): Likewise.
32148
32149 * include/grub/term.h (grub_term_register_input): Add name parameter
32150 for auto generation of handler.lst.
32151 (grub_term_register_output): Likewise.
32152
32153 * normal/handler.c: New file.
32154
32155 * normal/main.c (get_line): Renamed to grub_file_getline.
32156 (read_config_file): Use the newly renamed grub_file_getline.
32157 (read_command_list): Likewise.
32158 (read_fs_list): Likewise.
32159 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32160 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32161
32162 * term/efi/console.c (grub_console_init): Add name parameter for auto
32163 generation of handler.lst.
32164 * term/gfxterm.c: Likewise.
32165 * term/i386/pc/at_keyboard.c: Likewise.
32166 * term/i386/pc/console.c: Likewise.
32167 * term/i386/pc/serial.c: Likewise.
32168 * term/i386/pc/vesafb.c: Likewise.
32169 * term/i386/pc/vga.c: Likewise.
32170 * term/i386/pc/vga_text.c: Likewise.
32171 * term/ieee1275/ofconsole.c: Likewise.
32172 * term/usb_keyboard.c: Likewise.
32173
32174 2009-04-14 Bean <bean123ch@gmail.com>
32175
32176 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32177 properly with null character.
32178
32179 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32180
32181 * configure: Remove.
32182 * config.h.in: Likewise.
32183 * stamp-h.in: Likewise.
32184 * DISTLIST: Likewise.
32185 * conf/common.mk: Likewise.
32186 * conf/i386-coreboot.mk: Likewise.
32187 * conf/i386-efi.mk: Likewise.
32188 * conf/i386-ieee1275.mk: Likewise.
32189 * conf/i386.mk: Likewise.
32190 * conf/i386-pc.mk: Likewise.
32191 * conf/powerpc-ieee1275.mk: Likewise.
32192 * conf/sparc64-ieee1275.mk: Likewise.
32193 * conf/x86_64-efi.mk: Likewise.
32194
32195 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32196 develop on GRUB.
32197
32198 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32199 David S. Miller <davem@davemloft.net>
32200
32201 * util/hostdisk.c (make_device_name): Fix buffer length
32202 calculations.
32203
32204 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32205
32206 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32207 <sys/param.h> and <sys/sysctl.h>.
32208 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32209 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32210 opening the device and reset them afterwards.
32211
32212 2009-04-13 Pavel Roskin <proski@gnu.org>
32213
32214 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32215 Reported by John Stanley <jpsinthemix@verizon.net>
32216
32217 2009-04-13 Robert Millan <rmh@aybabtu.com>
32218
32219 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32220 that name for menuentries when appropriate.
32221
32222 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32223
32224 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32225
32226 2009-04-13 Robert Millan <rmh@aybabtu.com>
32227
32228 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32229 to Linux, simply abort telling the user it's no longer supported.
32230
32231 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32232
32233 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32234 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32235 `freebsd_loadenv' only when devices.hints exist.
32236
32237 2009-04-13 Pavel Roskin <proski@gnu.org>
32238
32239 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32240
32241 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32242
32243 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32244 partition number.
32245 (grub_drive): Likewise.
32246
32247 2009-04-13 David S. Miller <davem@davemloft.net>
32248
32249 * kern/sparc64/ieee1275/ieee1275.c: New file.
32250 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32251 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32252 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32253 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32254 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32255 grub_ieee1275_alloc_physmem): Declare new exported functions.
32256
32257 * include/grub/sparc64/ieee1275/loader.h: New file.
32258 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32259 * include/grub/sparc64/kernel.h: Likewise.
32260 * loader/sparc64/ieee1275/linux.c: Likewise.
32261
32262 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32263 (grub_fstest_SOURCES): Likewise.
32264
32265 * util/hostdisk.c (make_device_name): Do not make any assumptions
32266 about the length of drive names.
32267
32268 * kern/dl.c (grub_dl_load_file): Close file immediately when
32269 we are done using it.
32270
32271 2009-04-12 David S. Miller <davem@davemloft.net>
32272
32273 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32274 values. Noticed by Pavel Roskin.
32275
32276 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32277 target compiler.
32278
32279 * genmk.rb: Add more flexible image type specification, also
32280 pass --strip-unneeded to objcopy.
32281 * conf/i386-pc.rmk: Use *_FORMAT.
32282 * conf/i386-pc.mk: Rebuilt.
32283
32284 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32285 (OFDISK_HASH_SZ): Define.
32286 (ofdisk_hash): New hash table.
32287 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32288 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32289 instead of device phandle which is not unique.
32290
32291 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32292 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32293 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32294 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32295 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32296 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32297 GRUB_KERNEL_MACHINE_DATA_END): Define.
32298 (grub_kernel_image_size, grub_total_module_size): Declare.
32299
32300 2009-04-12 Pavel Roskin <proski@gnu.org>
32301
32302 * configure.ac: Change the logic when we check for target tools.
32303 Do it when the target is specified and it's different from the
32304 specified value of the host.
32305
32306 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32307
32308 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32309 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32310 GNU/kFreeBSD. Check if a device is a character device. Use
32311 DIOCGMEDIASIZE to get the size.
32312 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32313 support for GNU/kFreeBSD.
32314 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32315 is a character device instead of a block device. Add support for
32316 FreeBSD device names.
32317
32318 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32319 is a character device instead of a block device.
32320
32321 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32322 is a character device instead of a block device.
32323
32324 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32325
32326 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32327 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32328 FreeBSD. Check if a device is a character device. Use
32329 DIOCGMEDIASIZE to get the size.
32330 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32331 support for FreeBSD.
32332 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32333 is a character device instead of a block device. Add support for
32334 FreeBSD device names.
32335
32336 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32337 a character device instead of a block device.
32338 (grub_util_check_char_device): New function.
32339
32340 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32341 a character device instead of a block device.
32342
32343 * include/grub/util/getroot.h (grub_util_check_char_device): New
32344 prototype.
32345
32346 2009-04-11 David S. Miller <davem@davemloft.net>
32347
32348 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32349 static libgcc.
32350 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32351 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32352 function, if present.
32353 (__bswapdi2): Likewise.
32354
32355 * include/grub/sparc64/ieee1275/boot.h: New file.
32356 * boot/sparc64/ieee1275/boot.S: Likewise.
32357 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32358
32359 * kern/misc.c (grub_ltoa): New function.
32360 (grub_vsprintf): Use it to format 'long' integers.
32361
32362 2009-04-10 David S. Miller <davem@davemloft.net>
32363
32364 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32365 slots are of type grub_ieee1275_cell_t.
32366 (grub_nand_read): Likewise.
32367 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32368 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32369 macros are used to compare values in arg/ret block of the call.
32370 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32371 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32372 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32373 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32374 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32375 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32376 grub_ieee1275_close, grub_ieee1275_set_property,
32377 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32378 grub_ieee1275_cell_t.
32379 * kern/ieee1275/openfw.c (grub_map): Likewise.
32380 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32381 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32382
32383 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32384 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32385 (grub_devalias_iterate): Likewise.
32386
32387 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32388
32389 UFS improvements
32390
32391 * fs/ufs.c (INODE_NBLOCKS): new definition
32392 (struct grub_ufs_dirent): added fields for non-BSD dirents
32393 (grub_ufs_get_file_block): fixed double indirect handling
32394 (grub_ufs_lookup_symlink): use more robust way to determine whether
32395 symlink is inline
32396 (grub_ufs_find_file): support for non-BSD dirents
32397 (grub_ufs_dir): support for non-BSD dirents
32398
32399 2009-04-10 Bean <bean123ch@gnail.com>
32400
32401 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32402 attribute, otherwise the size would be wrong for i386 platform.
32403
32404 * include/grub/pci.h (grub_pci_read_word): New inline function.
32405 (grub_pci_read_byte): Likewise.
32406 (grub_pci_write): Likewise.
32407 (grub_pci_write_word): Likewise.
32408 (grub_pci_write_byte): Likewise.
32409
32410 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32411
32412 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32413 (find_framebuf): Scan pci to locate the frame buffer address.
32414
32415 * commands/efi/fixvideo.c: New file.
32416
32417 * commands/efi/loadbios.c: Likewise.
32418
32419 * commands/memrw.c: Likewise.
32420
32421 * util/grub-dumpbios.in: Likewise.
32422
32423 * conf/common.rmk (grub-dumpbios): New utility.
32424 (pkglib_MODULES): New module memrw.mod.
32425 (memrw_mod_SOURCE): New macro.
32426 (memrw_mod_CFLAGS): Likewise.
32427 (memrw_mod_LDFLAGS): Likewise.
32428
32429 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32430 fixvideo.mod.
32431 (loadbios_mod_SOURCE): New macro.
32432 (loadbios_mod_CFLAGS): Likewise.
32433 (loadbios_mod_LDFLAGS): Likewise.
32434 (fixvideo_mod_SOURCE): Likewise.
32435 (fixvideo_mod_CFLAGS): Likewise.
32436 (fixvideo_mod_LDFLAGS): Likewise.
32437
32438 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32439 fixvideo.mod.
32440 (loadbios_mod_SOURCE): New macro.
32441 (loadbios_mod_CFLAGS): Likewise.
32442 (loadbios_mod_LDFLAGS): Likewise.
32443 (fixvideo_mod_SOURCE): Likewise.
32444 (fixvideo_mod_CFLAGS): Likewise.
32445 (fixvideo_mod_LDFLAGS): Likewise.
32446
32447 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32448
32449 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32450
32451 2009-04-07 David S. Miller <davem@davemloft.net>
32452
32453 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32454 support for R_SPARC_OLO10 relocations. Fix compile warning for
32455 R_SPARC_WDISP30 case.
32456 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32457
32458 2009-04-06 Pavel Roskin <proski@gnu.org>
32459
32460 * include/grub/misc.h (ARRAY_SIZE): New macro.
32461 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32462 New macro.
32463 * loader/i386/linux.c (allocate_pages): Use free_pages().
32464 (grub_linux_unload): Don't use free_pages().
32465 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32466 wrong index. Treat all other modes as text modes.
32467 (grub_cmd_linux): Initialize vid_mode unconditionally to
32468 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32469
32470 * commands/help.c (print_command_help): Use cmd->prio, not
32471 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32472
32473 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32474
32475 Parttool
32476
32477 * parttool/pcpart.c: new file
32478 * commands/parttool.c: likewise
32479 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32480 (parttool_mod_SOURCES): new variable
32481 (parttool_mod_CFLAGS): likewise
32482 (parttool_mod_LDFLAGS): likewise
32483 (pcpart_mod_SOURCES): likewise
32484 (pcpart_mod_CFLAGS): likewise
32485 (pcpart_mod_LDFLAGS): likewise
32486 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32487 and parttool/pcpart.c
32488 * conf/i386-efi.rmk: likewise
32489 * conf/i386-ieee1275.rmk: likewise
32490 * conf/i386-pc.rmk: likewise
32491 * conf/powerpc-ieee1275.rmk: likewise
32492 * conf/sparc64-ieee1275.rmk: likewise
32493 * conf/x86_64-ieee1275.rmk: likewise
32494
32495 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32496
32497 Support for mtime and further expandability of dir command
32498
32499 * include/grub/lib/datetime.h: moved to ...
32500 * include/grub/datetime.h: ... moved here and added
32501 declaration of grub_unixtime2datetime. All users updated
32502 * include/grub/fs.h: new syntax for dir and mtime functions in
32503 struct grub_fs
32504 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32505 and GRUB_FSHELP_FLAGS_MASK
32506 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32507 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32508 (grub_ext2_mtime): new function
32509 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32510 (grub_hfsplus_mtime): new function
32511 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32512 (GRUB_UFS_ATTR_FILE): likewise
32513 (GRUB_UFS_ATTR_LNK): likewise
32514 (struct grub_ufs_sblock): new fields mtime
32515 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32516 all users updated
32517 (grub_ufs_dir): mtime support
32518 (grub_ufs_mtime): new function
32519 * fs/affs.c (grub_affs_dir): use new dir syntax
32520 * fs/afs.c (grub_afs_dir): likewise
32521 * fs/cpio.c (grub_cpio_dir): likewise
32522 * fs/fat.c (grub_fat_find_dir): likewise
32523 * fs/hfs.c (grub_hfs_dir): likewise
32524 * fs/iso9660.c (grub_iso9660_dir): likewise
32525 * fs/jfs.c (grub_jfs_dir): likewise
32526 * fs/minix.c (grub_minix_dir): likewise
32527 * fs/ntfs.c (grub_ntfs_dir): likewise
32528 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32529 * fs/sfs.c (grub_sfs_dir): likewise
32530 * fs/xfs.c (grub_xfs_dir): likewise
32531 * util/hostfs.c (grub_hostfs_dir): likewise
32532 * lib/datetime.c: moved to ...
32533 * normal/datetime.c: ... moved here
32534 (grub_unixtime2datetime): new function
32535 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32536 * normal/completion.c (iterate_dir): use new dir syntax
32537 * normal/misc.c (grub_normal_print_device_info): tell the
32538 last modification time of a volume
32539 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32540 * conf/common.rmk: added lib/datetime.c to ls.mod
32541 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32542 (normal_mod_SOURCES): likewise
32543 (datetime_mod_SOURCES): Removed lib/datetime.c
32544 * conf/i386-efi.rmk: likewise
32545 * conf/i386-ieee1275.rmk: likewise
32546 * conf/i386-pc.rmk: likewise
32547 * conf/powerpc-ieee1275.rmk: likewise
32548 * conf/sparc64-ieee1275.rmk: likewise
32549 * conf/x86_64-efi.rmk: likewise
32550
32551 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32552
32553 Trim trailing spaces in FAT label and support mtools-like labels
32554
32555 * fs/fat.c (grub_fat_iterate_dir): New function based
32556 on grub_fat_find_dir
32557 (grub_fat_find_dir): use grub_fat_iterate_dir
32558 (grub_fat_label): likewise
32559
32560 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32561
32562 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32563 and command.h
32564 remove extraneous kernel_elf_HEADERS
32565
32566 2009-04-04 Bean <bean123ch@gnail.com>
32567
32568 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32569
32570 * util/misc.c: Likewise.
32571
32572 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32573
32574 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32575 instead of grub_printf.
32576
32577 2009-04-03 Robert Millan <rmh@aybabtu.com>
32578
32579 * loader/i386/linux.c (grub_linux_setup_video): Fill
32580 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32581 values from `mode info' structure instead of hardcoded
32582 values.
32583
32584 2009-04-01 Pavel Roskin <proski@gnu.org>
32585
32586 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32587 unused now.
32588 * genmk.rb: Likewise.
32589 * configure.ac: Likewise.
32590
32591 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32592
32593 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32594 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32595
32596 2009-04-01 David S. Miller <davem@davemloft.net>
32597
32598 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32599 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32600 (grub_setjmp): Mark with 'returns_twice' attribute.
32601 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32602 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32603 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32604
32605 2009-04-01 Robert Millan <rmh@aybabtu.com>
32606
32607 Reapply fix from 2008-07-28 which was accidentally reverted; also
32608 perform the same fix to a similar check in same function.
32609
32610 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32611 with the same number are found, just use issue a warning with
32612 grub_dprintf(), as this error has been reported to be non-fatal.
32613
32614 2009-03-31 Pavel Roskin <proski@gnu.org>
32615
32616 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32617 for cross-compilation.
32618
32619 2009-03-30 Robert Millan <rmh@aybabtu.com>
32620
32621 Fix i386-ieee1275 build.
32622
32623 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32624 Remove declaration.
32625
32626 2009-03-30 Pavel Roskin <proski@gnu.org>
32627
32628 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32629 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32630 zero-terminated, rely only on the strlen value. Fix comparison
32631 of strings differing in length.
32632
32633 2009-03-30 Robert Millan <rmh@aybabtu.com>
32634
32635 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32636 checking for abi version. Improve error messages on BIOS to notify
32637 user about `linux16' command.
32638
32639 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32640
32641 Leak fixes
32642
32643 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32644 in case of collision
32645 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32646
32647 2009-03-29 Robert Millan <rmh@aybabtu.com>
32648
32649 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32650 set `vid_mode' accordingly.
32651 (grub_linux_boot): Process `vid_mode' and set video mode.
32652
32653 2009-03-29 Robert Millan <rmh@aybabtu.com>
32654
32655 * util/grub.d/10_linux.in (linux_entry): New function.
32656 Factorize generation of Linux boot entries.
32657
32658 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32659
32660 Make the format of Environment Block plain text. The boot loader
32661 part is not tested well yet.
32662
32663 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32664 (buffer): Removed.
32665 (envblk): Likewise.
32666 (usage): Remove "info" and "clear". Add "unset". Update the
32667 description of "set", as this does not delete variables any
32668 longer.
32669 (create_envblk_file): Complete rewrite.
32670 (open_envblk_file): Likewise.
32671 (cmd_info): Removed.
32672 (cmd_list): Likewise.
32673 (cmd_set): Likewise.
32674 (cmd_clear): Likewise.
32675 (list_variables): New function.
32676 (write_envblk): Likewise.
32677 (set_variables): Likewise.
32678 (unset_variables): Likewise.
32679 (main): Complete rewrite.
32680
32681 * commands/loadenv.c (buffer): Removed.
32682 (envblk): Likewise.
32683 (open_envblk_file): New function.
32684 (read_envblk_file): Complete rewrite.
32685 (grub_cmd_load_env): Likewise.
32686 (grub_cmd_list_env): Likewise.
32687 (struct blocklist): New struct.
32688 (free_blocklists): New function.
32689 (check_blocklists): Likewise.
32690 (write_blocklists): Likewise.
32691 (grub_cmd_save_env): Complete rewrite.
32692
32693 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32694 a plain text signature.
32695 (GRUB_ENVBLK_MAXLEN): Removed.
32696 (struct grub_envblk): Complete rewrite.
32697 (grub_envblk_find): Removed.
32698 (grub_envblk_insert): Likewise.
32699 (grub_envblk_open): New prototype.
32700 (grub_envblk_set): Likewise.
32701 (grub_envblk_delete): Put const to VALUE.
32702 (grub_envblk_iterate): Put const to NAME and VALUE.
32703 (grub_envblk_close): New prototype.
32704 (grub_envblk_buffer): New inline function.
32705 (grub_envblk_size): Likewise.
32706
32707 * lib/envblk.c: Include grub/mm.h.
32708 (grub_env_find): Removed.
32709 (grub_envblk_open): New function.
32710 (grub_envblk_close): Likewise.
32711 (escaped_value_len): Likewise.
32712 (find_next_line): Likewise.
32713 (grub_envblk_insert): Removed.
32714 (grub_envblk_set): New function.
32715 (grub_envblk_delete): Complete rewrite.
32716 (grub_envblk_iterate): Likewise.
32717
32718 2009-03-28 Robert Millan <rmh@aybabtu.com>
32719
32720 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32721 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32722 variables. Use 16-bit loader.
32723 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32724 loader.
32725 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32726 (grub_linux16_boot): ... this. Update all users.
32727 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32728 (grub_linux_boot): ... this. Update all users.
32729
32730 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32731 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32732 commands to `linux16' and `initrd16'.
32733 (GRUB_MOD_FINI(linux)): Rename to ...
32734 (GRUB_MOD_FINI(linux16)): ... this.
32735
32736 2009-03-24 Pavel Roskin <proski@gnu.org>
32737
32738 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32739 not just for compilation.
32740
32741 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32742
32743 Move multiboot helper out of kernel
32744
32745 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32746 `loader/i386/multiboot_helper.S'.
32747 * conf/i386-coreboot.rmk: Likewise
32748 * conf/i386-ieee1275.rmk: Likewise
32749
32750 * kern/i386/loader.S: Move multiboot helpers from here...
32751 * loader/i386/multiboot_helper.S: ...moved here
32752 * include/grub/i386/loader.h: Move declarations of multiboot
32753 helpers from here...
32754 * include/grub/i386/multiboot.h: ...moved here
32755 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32756
32757 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32758
32759 * kern/env.c (grub_env_context_open): Added an argument to specify
32760 whether a new context inherits exported variables from current
32761 one. This is useful when making a sandbox to interpret a config
32762 file.
32763 All callers updated.
32764
32765 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32766
32767 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32768
32769 * kern/env.c (grub_env_context_close): Fix memory leaks.
32770
32771 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32772
32773 * normal/main.c (grub_normal_execute): Added an argument
32774 BATCH to specify if an interactive interface should be provided
32775 after reading a config file.
32776 All callers updated.
32777 (read_command_list): Prevent being executed twice.
32778 (read_fs_list): Likewise.
32779
32780 * include/grub/normal.h (grub_normal_execute): Updated the
32781 prototype.
32782
32783 2009-03-22 Pavel Roskin <proski@gno.org>
32784
32785 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32786 _start.
32787 * kern/i386/pc/startup.S: Likewise.
32788 * kern/i386/efi/startup.S: Likewise.
32789 * kern/i386/ieee1275/startup.S: Likewise.
32790 * kern/i386/coreboot/startup.S: Likewise.
32791 * kern/x86_64/efi/startup.S: Likewise.
32792
32793 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32794 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32795 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32796
32797 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32798
32799 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32800
32801 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32802 limit detection.
32803 Use vaddr of correct segment for entry_point.
32804
32805 2009-03-21 Bean <bean123ch@gmail.com>
32806
32807 * commands/blocklist.c: Add include file <grub/command.h>, remove
32808 <grub/normal.h> and <grub/arg.h>.
32809 (grub_cmd_blocklist): Use the new command interface.
32810 (GRUB_MOD_INIT): Likewise.
32811 (GRUB_MOD_FINI): Likewise.
32812 * commands/boot.c: Likewise.
32813 * commands/cat.c: Likewise.
32814 * commands/cmp.c: Likewise.
32815 * commands/configfile.c: Likewise.
32816 * commands/crc.c: Likewise.
32817 * commands/echo.c: Likewise.
32818 * commands/halt.c: Likewise.
32819 * commands/handler.c: Likewise.
32820 * commands/hdparm.c: Likewise.
32821 * commands/help.c: Likewise.
32822 * commands/hexdump.c: Likewise.
32823 * commands/loadenv.c: Likewise.
32824 * commands/ls.c: Likewise.
32825 * commands/lsmmap.c: Likewise.
32826 * commands/lspci.c: Likewise.
32827 * commands/loadenv.c: Likewise.
32828 * commands/read.c: Likewise.
32829 * commands/reboot.c: Likewise.
32830 * commands/search.c: Likewise.
32831 * commands/sleep.c: Likewise.
32832 * commands/test.c: Likewise.
32833 * commands/usbtest.c: Likewise.
32834 * commands/videotest.c: Likewise.
32835 * commands/i386/cpuid.c: Likewise.
32836 * commands/i386/pc/halt.c: Likewise.
32837 * commands/i386/pc/play.c: Likewise.
32838 * commands/i386/pc/pxecmd.c: Likewise.
32839 * commands/i386/pc/vbeinfo.c: Likewise.
32840 * commands/i386/pc/vbetest.c: Likewise.
32841 * commands/ieee1275/suspend.c: Likewise.
32842 * disk/loopback.c: Likewise.
32843 * font/font_cmd.c: Likewise.
32844 * hello/hello.c: Likewise.
32845 * loader/efi/appleloader.c: Likewise.
32846 * loader/efi/chainloader.c: Likewise.
32847 * loader/i386/bsd.c: Likewise.
32848 * loader/i386/efi/linux.c: Likewise.
32849 * loader/i386/ieee1275/linux.c: Likewise.
32850 * loader/i386/linux.c: Likewise.
32851 * loader/i386/pc/chainloader.c: Likewise.
32852 * loader/i386/pc/linux.c: Likewise.
32853 * loader/powerpc/ieee1275/linux.c: Likewise.
32854 * loader/multiboot_loader.c: Likewise.
32855 * term/gfxterm.c: Likewise.
32856 * term/i386/pc/serial.c: Likewise.
32857 * term/terminfo.c: Likewise.
32858
32859 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32860 * term/i386/pc/vga.c: Likewise.
32861 * video/readers/jpeg.c: Likewise.
32862 * video/readers/png.c: Likewise.
32863 * video/readers/tga.c: Likewise.
32864
32865 * util/grub-fstest (cmd_loopback): Removed.
32866 (cmd_blocklist): Likewise.
32867 (cmd_ls): Likewise.
32868 (grub_register_command): Likewise.
32869 (grub_unregister_command): Likewise.
32870 (execute_command): Use grub_command_find to locate command and execute
32871 it.
32872
32873 * include/grub/efi/chainloader.h: Removed.
32874 * loader/efi/chainloader_normal.c: Likewise.
32875 * loader/i386/bsd_normal.c: Likewise.
32876 * loader/i386/pc/chainloader_normal.c: Likewise.
32877 * loader/i386/pc/multiboot_normal.c: Likewise.
32878 * loader/linux_normal.c: Likewise.
32879 * loader/multiboot_loader_normal.c: Likewise.
32880 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32881
32882 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32883 and grub_register_command_p1.
32884
32885 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32886 kern/command.c, lib/arg.c and commands/extcmd.c.
32887 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
32888 (minicmd_mod_SOURCES): New variable.
32889 (minicmd_mod_CFLAGS): Likewise.
32890 (minicmd_mod_LDFLAGS): Likewise.
32891 (extcmd_mod_SOURCES): Likewise.
32892 (extcmd_mod_CFLAGS): Likewise.
32893 (extcmd_mod_LDFLAGS): Likewise.
32894 (boot_mod_SOURCES): Removed.
32895 (boot_mod_CFLAGS): Likewise.
32896 (boot_mod_LDFLAGS): Likewise.
32897
32898 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
32899 kern/corecmd.c.
32900 (kernel_img_HEADERS): Add command.h.
32901 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
32902 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
32903 and lib/arg.c.
32904 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
32905 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
32906 remove the corresponding normal mode command.
32907 (normal_mod_SOURCES): Remove normal/arg.c.
32908 * conf/i386-coreboot.rmk: Likewise.
32909 * conf/i386-efi.rmk: Likewise.
32910 * conf/i386-ieee1275.rmk: Likewise.
32911 * conf/powerpc-ieee1275.rmk: Likewise.
32912 * conf/x86_64-efi.rmk: Likewise.
32913
32914 * include/grub/arg.h: Move from here ...
32915 * include/grub/lib/arg.h: ... to here.
32916
32917 * normal/arg.c: Move from here ...
32918 * lib/arg.c: ... to here.
32919
32920 * commands/extcmd.c: New file.
32921 * commands/minicmd.c: Likewise.
32922 * include/grub/command.h: Likewise.
32923 * include/grub/extcmd.h: Likewise.
32924 * kern/command.c: Likewise.
32925 * kern/corecmd.c: Likewise.
32926
32927 * kern/list.c (grub_list_iterate): Return int instead of void.
32928 (grub_list_insert): New function.
32929 (grub_prio_list_insert): Likewise.
32930
32931 * kern/rescue.c (grub_rescue_command): Removed.
32932 (grub_rescue_command_list): Likewise.
32933 (grub_rescue_register_command): Likewise.
32934 (grub_rescue_unregister_command): Likewise.
32935 (grub_rescue_cmd_boot): Move to minicmd.c
32936 (grub_rescue_cmd_help): Likewise.
32937 (grub_rescue_cmd_info): Likewise.
32938 (grub_rescue_cmd_boot): Likewise.
32939 (grub_rescue_cmd_testload): Likewise.
32940 (grub_rescue_cmd_dump): Likewise.
32941 (grub_rescue_cmd_rmmod): Likewise.
32942 (grub_rescue_cmd_lsmod): Likewise.
32943 (grub_rescue_cmd_exit): Likewise.
32944 (grub_rescue_print_devices): Moved to corecmd.c.
32945 (grub_rescue_print_files): Likewise.
32946 (grub_rescue_cmd_ls): Likewise.
32947 (grub_rescue_cmd_insmod): Likewise.
32948 (grub_rescue_cmd_set): Likewise.
32949 (grub_rescue_cmd_unset): Likewise.
32950 (attempt_normal_mode): Use grub_command_find to get normal module.
32951 (grub_enter_rescue_mode): Use grub_register_core_commands to register
32952 commands, remove grub_rescue_register_command calls.
32953
32954 * normal/command.c (grub_register_command): Removed.
32955 (grub_unregister_command): Likewise.
32956 (grub_command_find): Likewise.
32957 (grub_iterate_commands): Likewise.
32958 (rescue_command): Likewise.
32959 (export_command): Moved to corecmd.c.
32960 (set_command): Removed.
32961 (unset_command): Likewise.
32962 (insmod_command): Likewise.
32963 (rmmod_command): Likewise.
32964 (lsmod_command): Likewise.
32965 (grub_command_init): Likewise.
32966
32967 * normal/completion.c (iterate_command): Use cmd->prio to check for
32968 active command.
32969 (complete_arguments): Use grub_extcmd_t structure to find options.
32970 (grub_normal_do_completion): Change function grub_iterate_commands to
32971 grub_command_iterate.
32972
32973 * normal/execute.c (grub_script_execute_cmd): No need to parse
32974 argument here.
32975
32976 * normal/main.c (grub_dyncmd_dispatcher): New function.
32977 (read_command_list): Register unload commands as dyncmd.
32978 (grub_cmd_normal): Use new command interface, register rescue,
32979 unregister normal at entry, register normal, unregister rescue at exit.
32980
32981 * include/grub/list.h (grub_list_test_t): New type.
32982 (grub_list_iterate): Return int instead of void.
32983 (grub_list_insert): New function.
32984 (GRUB_AS_NAMED_LIST_P): New macro.
32985 (GRUB_AS_PRIO_LIST): Likewise.
32986 (GRUB_AS_PRIO_LIST_P): Likewise.
32987 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
32988 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
32989 (grub_prio_list): New structure.
32990 (grub_prio_list_insert): New function.
32991 (grub_prio_list_remove): New inline function.
32992
32993 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
32994 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
32995 (GRUB_COMMAND_FLAG_MENU): Likewise.
32996 (GRUB_COMMAND_FLAG_BOTH): Likewise.
32997 (GRUB_COMMAND_FLAG_TITLE): Likewise.
32998 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
32999 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33000 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33001 (grub_command): Likewise.
33002 (grub_register_command): Likewise.
33003 (grub_command_find): Likewise.
33004 (grub_iterate_commands): Likewise.
33005 (grub_command_init): Likewise.
33006 (grub_arg_parse): Likewise.
33007 (grub_arg_show_help): Likewise.
33008
33009 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33010 (grub_rescue_unregister_command): Likewise.
33011
33012 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33013 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33014 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33015
33016 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33017 grub_rescue_cmd_initrd.
33018 * include/grub/i386/loader.h: Likewise.
33019 * include/grub/x86_64/loader.h: Likewise.
33020
33021 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33022
33023 2009-03-21 Bean <bean123ch@gmail.com>
33024
33025 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33026 instead of stat in mingw environment.
33027
33028 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33029
33030 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33031
33032 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33033 AC_CONFIG_LINKS.
33034
33035 2009-03-21 Bean <bean123ch@gmail.com>
33036
33037 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33038 out of range error.
33039
33040 2009-03-18 Michel Dänzer <michel@daenzer.net>
33041
33042 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33043 checking inode flags for EXT4_EXTENTS_FLAG.
33044
33045 2009-03-18 Robert Millan <rmh@aybabtu.com>
33046
33047 * loader/i386/linux.c: Include `<grub/video.h>' and
33048 `<grub/i386/pc/vbe.h>'..
33049 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33050 (grub_linux32_boot): Attempt to configure video settings with
33051 grub_linux_setup_video().
33052 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33053 to avoid grub_console_fini() which would step out of graphical mode
33054 unconditionally.
33055
33056 2009-03-14 Robert Millan <rmh@aybabtu.com>
33057
33058 Fix build on powerpc.
33059 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33060
33061 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33062
33063 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33064 background image command.
33065
33066 2009-03-12 Colin D Bennett <colin@gibibit.com>
33067
33068 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33069 (grub_gfxterm_putchar): Extract pairs of identical calls to
33070 draw_cursor out of conditional blocks.
33071
33072 2009-03-11 Pavel Roskin <proski@gnu.org>
33073
33074 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33075 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33076
33077 2009-03-11 Robert Millan <rmh@aybabtu.com>
33078
33079 * loader/i386/multiboot_elfxx.c
33080 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33081
33082 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33083
33084 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33085 `kern/handler.c'.
33086
33087 2009-03-11 Robert Millan <rmh@aybabtu.com>
33088
33089 * loader/i386/multiboot.c (code_size): New variable.
33090 (grub_multiboot): Define offsets by adding to `code_size' rather
33091 than subtracting from `grub_multiboot_payload_size'. Provide
33092 4-byte alignment to MBI and others by increasing
33093 `boot_loader_name_length' appropriately.
33094
33095 * loader/i386/multiboot_elfxx.c
33096 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33097
33098 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33099
33100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33101 `fs/ext2.c'.
33102
33103 2009-03-08 Robert Millan <rmh@aybabtu.com>
33104
33105 Make loader/i386/linux.c usable on i386-pc again.
33106
33107 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33108 memory to heap.
33109 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33110 `#error' stanza.
33111
33112 2009-03-07 Bean <bean123ch@gmail.com>
33113
33114 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33115 allocation.
33116
33117 2009-03-06 Robert Millan <rmh@aybabtu.com>
33118
33119 Fix display issue on terminals with screen size other than 80x25
33120 (e.g. gfxterm with resolution higher than 640x480).
33121
33122 * normal/main.c (grub_normal_init_page): Display title text in a
33123 position relative to the center of the terminal instead of relying
33124 on a hardcoded offset.
33125
33126 2009-03-04 Robert Millan <rmh@aybabtu.com>
33127
33128 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33129 installed.
33130
33131 * Makefile.in (host_kernel): New variable.
33132 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33133 scripts instead of just the windows one.
33134 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33135
33136 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33137
33138 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33139 `kern/handler.c'.
33140 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33141 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33142 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33144 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33145 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33146
33147 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33148
33149 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33150 or if there's no space for the disk label and print the partition number on a
33151 invalid magic.
33152
33153 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33154
33155 * util/misc.c: Include <time.h>.
33156 (grub_millisleep): New function.
33157
33158 2009-03-04 Bean <bean123ch@gmail.com>
33159
33160 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33161 another option -mno-red-zone.
33162
33163 * commands/handler.c: Change module description.
33164
33165 * kern/handler.c: Add missing space at the end of description line.
33166
33167 * kern/list.c: Likewise.
33168
33169 2009-03-03 Robert Millan <rmh@aybabtu.com>
33170
33171 Move more components to the relocation area, and fix mbi pointer
33172 handling to use the destination rather than the origin (thanks to
33173 Vladimir Serbinenko for spotting).
33174
33175 * loader/i386/multiboot.c (mbi_dest): New variable.
33176 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33177 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33178 relocation area.
33179
33180 2009-03-01 Bean <bean123ch@gmail.com>
33181
33182 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33183 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33184 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33185 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33186
33187 * loader/i386/efi/linux.c (acpi_guid): New variable.
33188 (acpi_guid): Likewise.
33189 (EBDA_SEG_ADDR): New constant.
33190 (LOW_MEM_ADDR): Likewise.
33191 (FAKE_EBDA_SEG): Likewise.
33192 (fake_bios_data): New function.
33193 (grub_linux_boot): Call fake_bios_data.
33194
33195 2009-03-01 Bean <bean123ch@gmail.com>
33196
33197 * commands/terminal.c: Removed.
33198
33199 * commands/handler.c: New file.
33200
33201 * include/grub/list.h: Likewise.
33202
33203 * include/grub/handler.h: Likewise.
33204
33205 * kern/list.c: Likewise.
33206
33207 * kern/handler.c: Likewise.
33208
33209 * kern/term.h: Include header file <grub/handler.h>.
33210 (grub_term_input): Move next field to the beginning.
33211 (grub_term_output): Likewise.
33212 (grub_term_input_class): New variable.
33213 (grub_term_output_class): Likewise.
33214 (grub_term_register_input): Changed to inline function.
33215 (grub_term_register_output): Likewise.
33216 (grub_term_unregister_input): Likewise.
33217 (grub_term_unregister_output): Likewise.
33218 (grub_term_set_current_input): Likewise.
33219 (grub_term_set_current_output): Likewise.
33220 (grub_term_get_current_input): Likewise.
33221 (grub_term_get_current_output): Likewise.
33222 (grub_term_iterate_input): Removed.
33223 (grub_term_iterate_output): Likewise.
33224
33225 * kern/term.c (grub_term_list_input): Removed.
33226 (grub_term_list_output): Likewise.
33227 (grub_term_input_class): New variable.
33228 (grub_term_output_class): Likewise.
33229 (grub_cur_term_input): Change variable as macro.
33230 (grub_cur_term_output): Likewise.
33231 (grub_term_register_input): Removed.
33232 (grub_term_register_output): Likewise.
33233 (grub_term_unregister_input): Likewise.
33234 (grub_term_unregister_output): Likewise.
33235 (grub_term_set_current_input): Likewise.
33236 (grub_term_set_current_output): Likewise.
33237 (grub_term_iterate_input): Likewise.
33238 (grub_term_iterate_output): Likewise.
33239 (grub_term_get_current_input): Likewise.
33240 (grub_term_get_current_output): Likewise.
33241
33242 * util/grub-editenv.c: Include header file <grub/handler.h>.
33243 (grub_term_get_current_input): Removed.
33244 (grub_term_get_current_output): Likewise.
33245 (grub_term_input_class): New variable.
33246 (grub_term_output_class): Likewise.
33247
33248 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33249 (grub_term_get_current_output): Likewise.
33250 (grub_term_input_class): New variable.
33251 (grub_term_output_class): Likewise.
33252
33253 * util/grub-probe.c (grub_term_get_current_input): Removed.
33254 (grub_term_get_current_output): Likewise.
33255 (grub_term_input_class): New variable.
33256 (grub_term_output_class): Likewise.
33257
33258 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33259 (grub_term_get_current_output): Likewise.
33260 (grub_term_input_class): New variable.
33261 (grub_term_output_class): Likewise.
33262
33263 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33264 (terminal_mod_SOURCES): Likewise.
33265 (terminal_mod_CFLAGS): Likewise.
33266 (terminal_mod_LDFLAGS): Likewise.
33267
33268 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33269 handler.c.
33270 (kernel_img_SOURCES): Add list.c and handler.c.
33271 (kernel_img_HEADERS): Add list.h and handler.h.
33272
33273 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33274 handler.c.
33275 (kernel_mod_SOURCES): Add list.c and handler.c.
33276 (kernel_mod_HEADERS): Add list.h and handler.h.
33277
33278 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33279 handler.c.
33280 (kernel_elf_SOURCES): Add list.c and handler.c.
33281 (kernel_elf_HEADERS): Add list.h and handler.h.
33282
33283 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33284 handler.c.
33285 (kernel_elf_SOURCES): Add list.c and handler.c.
33286 (kernel_elf_HEADERS): Add list.h and handler.h.
33287
33288 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33289 handler.c.
33290 (kernel_mod_SOURCES): Add list.c and handler.c.
33291 (kernel_mod_HEADERS): Add list.h and handler.h.
33292
33293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33294 handler.c.
33295 (kernel_elf_SOURCES): Add list.c and handler.c.
33296 (kernel_elf_HEADERS): Add list.h and handler.h.
33297
33298 2009-02-27 Robert Millan <rmh@aybabtu.com>
33299
33300 Factorize elf32 / elf64 code in Multiboot loader. This will
33301 prevent it from getting out of sync again.
33302
33303 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33304 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33305 grub_multiboot_load_elf64): Move from here ...
33306 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33307 grub_multiboot_load_elf): ... to here (new file).
33308
33309 2009-02-27 Robert Millan <rmh@aybabtu.com>
33310
33311 * util/grub.d/10_linux.in: Rename "single-user mode" to
33312 "recovery mode".
33313
33314 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33315
33316 Don't leak in SCSI code.
33317 * disk/scsi.c (grub_scsi_close): free `scsi'.
33318
33319 2009-02-27 Robert Millan <rmh@aybabtu.com>
33320
33321 * loader/i386/pc/multiboot.c: Move from here ...
33322 * loader/i386/multiboot.c: ... to here. Update all users.
33323
33324 2009-02-27 Robert Millan <rmh@aybabtu.com>
33325
33326 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33327 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33328
33329 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33330
33331 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33332 b-tree.
33333
33334 2009-02-27 Robert Millan <rmh@aybabtu.com>
33335
33336 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33337 `0x' qualifier as 0 when base is specified as parameter).
33338
33339 2009-02-24 Bean <bean123ch@gmail.com>
33340
33341 * configure.ac: Check for -mcmodel=large in x86_64 target.
33342
33343 * include/grub/efi/api.h (efi_call_10): New macro.
33344 (efi_wrap_10): New function.
33345
33346 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33347 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33348 (GRUB_PE32_REL_BASED_LOW): Likewise.
33349 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33350 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33351 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33352 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33353 (GRUB_PE32_REL_BASED_REL): Likewise.
33354 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33355 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33356 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33357
33358 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33359 issue.
33360
33361 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33362 (efi_wrap_10): New function.
33363
33364 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33365
33366 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33367 MB/MBP model (NV chipset).
33368 (devdata_devs): Add devpath_5 to the list.
33369
33370 * load/i386/efi/linux.c (video_base): Remove variable.
33371 (RGB_MASK): New macro.
33372 (RGB_MAGIC): Likewise.
33373 (LINE_MIN): Likewise.
33374 (LINE_MAX): Likewise.
33375 (FBTEST_STEP): Likewise.
33376 (FBTEST_COUNT): Likewise.
33377 (fb_list): New variable.
33378 (grub_find_video_card): Remove function.
33379 (find_framebuf): New function.
33380 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33381 line length.
33382
33383 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33384 problem for x86_64.
33385
33386 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33387
33388 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33389
33390 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33391 coding tool name.
33392
33393 2009-02-22 Robert Millan <rmh@aybabtu.com>
33394
33395 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33396 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33397 in our relocation, instead of using it directly from heap. Also
33398 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33399
33400 2009-02-21 Robert Millan <rmh@aybabtu.com>
33401
33402 Implement USB keyboard support (based on patch by Marco Gerards)
33403
33404 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33405 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33406 (usb_keyboard_mod_LDFLAGS): New variables.
33407
33408 * term/usb_keyboard.c: New file.
33409
33410 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33411
33412 Corrected wrong declaration
33413
33414 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33415
33416 2009-02-14 Christian Franke <franke@computer.org>
33417
33418 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33419 (grub_lspci_iter): Print class code and programming interface byte.
33420
33421 2009-02-14 Christian Franke <franke@computer.org>
33422
33423 * gendistlist.sh: Ignore `.svn' directories.
33424
33425 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33426
33427 * fs/fat.c: Add 2009 to Copyright line.
33428
33429 2009-02-14 Christian Franke <franke@computer.org>
33430
33431 * commands/hdparm.c: New file. Provides `hdparm' command
33432 which sends ATA commands via grub_disk_ata_pass_through ().
33433
33434 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33435
33436 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33437 and <grub/cpu/io.h> to include/grub/ata.h.
33438 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33439 (GRUB_CDROM_SECTOR_SIZE): Remove.
33440 (GRUB_ATA_*): Move to include/grub/ata.h.
33441 (GRUB_ATAPI_*): Likewise.
33442 (enum grub_ata_commands): Likewise.
33443 (enum grub_ata_timeout_milliseconds): Likewise.
33444 (struct grub_ata_device): Likewise.
33445 (grub_ata_regset): Likewise.
33446 (grub_ata_regget): Likewise.
33447 (grub_ata_regset2): Likewise.
33448 (grub_ata_regget2): Likewise.
33449 (grub_ata_check_ready): Likewise.
33450 (grub_ata_wait_not_busy): Remove static, exported in
33451 include/grub/ata.h.
33452 (grub_ata_wait_drq): Likewise.
33453 (grub_ata_pio_read): Likewise.
33454
33455 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33456 function for hdparm.mod.
33457
33458 * include/grub/ata.h: New file, contains declarations from
33459 disk/ata.c.
33460 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33461
33462 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33463 (grub_disk_ata_pass_through): New exported variable.
33464
33465 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33466
33467 2009-02-13 Colin D Bennett <colin@gibibit.com>
33468
33469 Support multiple fallback entries, and provide an API to support
33470 executing default+fallback menu entries. Renamed the `terminal' menu
33471 viewer to `text'.
33472
33473 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33474 variable declaration.
33475 (grub_menu_execute_callback): New structure declaration.
33476 (grub_menu_execute_callback_t): New typedef.
33477 (grub_menu_execute_with_fallback): New function declaration.
33478 (grub_menu_get_entry): Likewise.
33479 (grub_menu_get_timeout): Likewise.
33480 (grub_menu_set_timeout): Likewise.
33481
33482 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33483
33484 * normal/menu.c (grub_wait_after_message): Moved to
33485 `normal/menu_text.c'.
33486 (draw_border): Likewise.
33487 (print_message): Likewise.
33488 (print_entry): Likewise.
33489 (print_entries): Likewise.
33490 (grub_menu_init_page): Likewise.
33491 (get_entry_number): Likewise.
33492 (print_timeout): Likewise.
33493 (run_menu): Likewise.
33494 (grub_menu_execute_entry): Likewise.
33495 (show_text_menu): Likewise.
33496 (get_and_remove_first_entry_number): New function.
33497 (grub_menu_execute_with_fallback): Likewise.
33498 (get_entry): Renamed to ...
33499 (grub_menu_get_entry): .. this and made it global.
33500 (get_timeout): Renamed to ...
33501 (grub_menu_get_timeout): ... this and made it global.
33502 (set_timeout): Renamed to ...
33503 (grub_menu_set_timeout): ... this and made it global.
33504 (grub_normal_terminal_menu_viewer): Renamed to ...
33505 (grub_normal_text_menu_viewer): ... this.
33506
33507 * normal/menu_text.c: New file. Extracted text-menu-specific code
33508 from normal/menu.c.
33509
33510 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33511 (normal_mod_SOURCES): Likewise.
33512
33513 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33514 (normal_mod_SOURCES): Likewise.
33515
33516 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33517 (normal_mod_SOURCES): Likewise.
33518
33519 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33520 (normal_mod_SOURCES): Likewise.
33521
33522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33523 (normal_mod_SOURCES): Likewise.
33524
33525 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33526 (normal_mod_SOURCES): Likewise.
33527
33528 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33529 (normal_mod_SOURCES): Likewise.
33530
33531 2009-02-11 Robert Millan <rmh@aybabtu.com>
33532
33533 * util/grub.d/00_header.in: Update old reference to `font' command.
33534
33535 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33536
33537 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33538
33539 Based on patch from Javier Martín.
33540
33541 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33542
33543 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33544 to avoid false positives with FAT.
33545 (grub_fstest_SOURCES): Likewise.
33546 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33547 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33548 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33549 * conf/i386-coreboot.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-09 Felix Zielcke <fzielcke@z-51.de>
33554
33555 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33556 bpb.version_specific.fat12_or_fat16.fstype and
33557 bpb.version_specific.fat32.fstype.
33558
33559 2009-02-08 Robert Millan <rmh@aybabtu.com>
33560
33561 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33562
33563 2009-02-08 Robert Millan <rmh@aybabtu.com>
33564
33565 * Makefile.in (host_os, host_cpu): New variables.
33566 (target_os): Remove. Update all users.
33567
33568 2009-02-08 Marco Gerards <marco@gnu.org>
33569
33570 * Makefile.in (enable_grub_emu_usb): New variable.
33571 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33572 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33573 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33574 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33575 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33576 `usbtest.mod' and `usbms.mod'.
33577 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33578 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33579 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33580 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33581 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33582 variables.
33583
33584 * disk/usbms.c: New file.
33585
33586 * include/grub/usb.h: Likewise.
33587
33588 * include/grub/usbtrans.h: Likewise.
33589
33590 * include/grub/usbdesc.h: Likewise.
33591
33592 * bus/usb/usbtrans.c: Likewise.
33593
33594 * bus/usb/ohci.c: Likewise.
33595
33596 * bus/usb/uhci.c: Likewise.
33597
33598 * bus/usb/usbhub.c: Likewise.
33599
33600 * bus/usb/usb.c: Likewise.
33601
33602 * commands/usbtest.c: Likewise.
33603
33604 * util/usb.c: Likewise.
33605
33606 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33607
33608 * configure.ac: Test for libusb presence.
33609
33610 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33611
33612 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33613
33614 * kern/mm.c: Add more comments.
33615
33616 2009-02-08 Robert Millan <rmh@aybabtu.com>
33617
33618 Patch from Javier Martín.
33619 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33620 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33621
33622 2009-02-08 Robert Millan <rmh@aybabtu.com>
33623
33624 * fs/cpio.c: Split tar functionality to ...
33625 * fs/tar.c: ... here (new file). Update all users.
33626
33627 2009-02-07 Robert Millan <rmh@aybabtu.com>
33628
33629 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33630 backward-incompatible features.
33631
33632 Based on patch from Javier Martín, with some adjustments.
33633
33634 2009-02-07 Michael Scherer <misc@mandriva.org>
33635
33636 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33637
33638 2009-02-07 Robert Millan <rmh@aybabtu.com>
33639
33640 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33641 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33642 after the RAID stuff.
33643
33644 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33645
33646 Fixes problem when running vbetest command as reported by
33647 Vladimir Serbinenko <phcoder@gmail.com>.
33648
33649 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33650
33651 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33652
33653 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33654 /dev/md/NpN style mdraid devices.
33655
33656 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33657
33658 * util/unifont2pff.rb: Remove.
33659
33660 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33661
33662 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33663 `#'.
33664
33665 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33666
33667 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33668 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33669 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33670 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33672 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33673 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33674
33675 2009-02-02 Christian Franke <franke@computer.org>
33676
33677 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33678
33679 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33680
33681 * INSTALL: Note that we now require at least autoconf 2.59 and
33682 that LZO is optional.
33683
33684 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33685
33686 Base on patch on bug #24154 created by Tomas Tintera
33687 <trosos@seznam.cz>.
33688
33689 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33690
33691 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33692
33693 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33694 <bero@arklinux.org>.
33695
33696 * normal/parser.y (script_init): Add missing semicolon.
33697
33698 2009-01-31 Colin D Bennett <colin@gibibit.com>
33699
33700 * normal/main.c: Add include to grub/menu_viewer.h.
33701 (free_menu_entry_classes): Added.
33702 (grub_normal_menu_addentry): Added class property handling.
33703 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33704 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33705
33706 * normal/menu_viewer.c: New file.
33707
33708 * normal/menu.c (run_menu_entry): Renamed to ...
33709 (grub_menu_execute_entry): ... this and made it as global.
33710 (grub_menu_run): Renamed to ...
33711 (show_text_menu): ... this and made it local.
33712 (show_text_menu): Adapt to new function names.
33713 (grub_normal_terminal_menu_viewer): New global variable.
33714
33715 * include/grub/menu.h: New file.
33716
33717 * include/grub/menu_viewer.h: New file.
33718
33719 * include/grub/normal.h: Added include to grub/menu.h.
33720 (grub_menu_entry): Moved to include/grub/menu.h.
33721 (grub_menu_entry_t): Likewise.
33722 (grub_menu): Likewise.
33723 (grub_menu_t): Likewise.
33724 (grub_normal_terminal_menu_viewer): Added.
33725 (grub_menu_execute_entry): Likewise.
33726 (grub_menu_run): Removed.
33727
33728 * DISTLIST: Added include/grub/menu.h.
33729 Added include/grub/menu_viewer.h.
33730 Added normal/menu_viewer.c.
33731
33732 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33733
33734 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33735 arglist for menutitle arguments.
33736
33737 * normal/main.c (grub_normal_menu_addentry): Likewise.
33738
33739 * normal/parser.y (menuentry): Likewise.
33740
33741 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33742
33743 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33744 (grub_script_create_cmdmenu): Likewise.
33745
33746 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33747
33748 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33749 changes.
33750
33751 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33752
33753 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33754
33755 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33756
33757 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33758
33759 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33760
33761 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33762
33763 2009-01-30 Christian Franke <franke@computer.org>
33764
33765 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33766 in option help text.
33767
33768 2009-01-27 Pavel Roskin <proski@gnu.org>
33769
33770 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33771
33772 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33773
33774 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33775
33776 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33777
33778 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33779 unregister function.
33780
33781 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33782
33783 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33784
33785 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33786
33787 * util/grub-mkfont.c (usage): Fix typo.
33788
33789 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33790
33791 2009-01-26 Daniel Mierswa <impulze@impulze.org>
33792
33793 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33794
33795 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33796
33797 * kern/misc.c (grub_strcasecmp): New function.
33798 (grub_strcasecmp): Use grub_size_t instead of int for length.
33799 Fix return value.
33800 * include/grub/misc.h: Update function prototypes.
33801
33802 2009-01-26 Robert Millan <rmh@aybabtu.com>
33803
33804 * configure.ac: Fix cross-compilation check.
33805
33806 2009-01-22 Christian Franke <franke@computer.org>
33807
33808 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33809 (precision) digit string. Allow `.format2' without `format1' (width).
33810 Limit input chars for `%s' output to `format2' if specified. This is
33811 compatible with standard printf ().
33812
33813 2009-01-22 Christian Franke <franke@computer.org>
33814
33815 * disk/ata.c (grub_ata_wait_status): Replace by ...
33816 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33817 other status bits may be invalid while BSY is asserted.
33818 (grub_ata_check_ready): New function.
33819 (grub_ata_cmd): Removed.
33820 (grub_ata_wait_drq): New function.
33821 (grub_ata_strncpy): Remove inline.
33822 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33823 and error check now done by grub_ata_wait_drq ().
33824 (grub_ata_pio_write): Likewise.
33825 (grub_atapi_identify): Set DEV before check for !BSY. Use
33826 grub_ata_wait_drq () to wait for data.
33827 (grub_ata_device_initialize): Add status register check to
33828 detect missing SATA slave devices. Add debug messages.
33829 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33830 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33831 transfer loop by grub_ata_pio_write ().
33832 (grub_ata_identify): Set DEV before check for !BSY. Use
33833 grub_ata_wait_drq () to wait for data.
33834 (grub_ata_setaddress): Set DEV before check for !BSY.
33835 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33836 read/write in one loop. Fix invalid command on write. Fix incomplete
33837 command on (size % batch) == 0. Add missing error check after write of
33838 last block. Add debug messages.
33839 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33840
33841 2009-01-19 Christian Franke <franke@computer.org>
33842
33843 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33844 (GRUB_ATAPI_IREASON_*): Likewise.
33845 (grub_ata_pio_write): Fix timeout error return.
33846 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33847 (grub_atapi_wait_drq): New function.
33848 (grub_atapi_packet): New parameter `size'.
33849 Use grub_atapi_wait_drq () and direct write instead of
33850 grub_ata_pio_write ().
33851 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33852 reads the number of bytes requested by the device for each DRQ
33853 assertion.
33854 (grub_atapi_write): Remove old implementation, return not
33855 implemented instead.
33856
33857 2009-01-19 Christian Franke <franke@computer.org>
33858
33859 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33860 of 512 to calculate data size.
33861 (grub_scsi_read12): Likewise.
33862 (grub_scsi_write10): Likewise.
33863 (grub_scsi_write12): Likewise.
33864 (grub_scsi_read): Adjust size according to blocksize.
33865 Add checks for invalid blocksize and unaligned transfer.
33866
33867 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33868
33869 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33870
33871 * term/gfxterm.c (write_char): Fix background rendering for wide
33872 width glyphs.
33873
33874 2009-01-19 Robert Millan <rmh@aybabtu.com>
33875
33876 * config.guess: Update to latest version from config git.
33877 * config.sub: Likewise.
33878
33879 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33880
33881 * Makefile.in: Change font compilation to use new grub-mkfont instead
33882 of java version.
33883
33884 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33885 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33886 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33887 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33888 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33889 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33890 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33891 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33892 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33893
33894 2009-01-16 Christian Franke <franke@computer.org>
33895
33896 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
33897 (enum grub_ata_timeout_milliseconds): New enum.
33898 (grub_ata_wait_status): Add parameter milliseconds.
33899 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
33900 recovery from timed-out commands.
33901 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
33902 return grub_errno instead of REG_ERROR.
33903 (grub_ata_pio_write): Add parameter milliseconds.
33904 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
33905 Pass milliseconds to grub_ata_wait_status () and
33906 grub_ata_pio_read ().
33907 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
33908 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
33909 grub_ata_wait_status (). Fix IDENTIFY timeout check.
33910 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
33911 It is not suitable for device detection, because DEV bit is ignored,
33912 the command may run too long, and not all devices set the signature
33913 properly.
33914 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
33915 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
33916 Fix device selection, DEV bit must be set first to address the registers
33917 of the correct device.
33918 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
33919 grub_ata_pio_read/write ().
33920 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
33921 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
33922
33923 2009-01-13 Carles Pina i Estany <carles@pina.cat>
33924
33925 * util/grub-editenv.c (main): Use fseeko(), not fseek().
33926
33927 2009-01-13 Bean <bean123ch@gmail.com>
33928
33929 * util/grub-mkfont.c (write_font): forget to remove some debug code.
33930
33931 2009-01-13 Bean <bean123ch@gmail.com>
33932
33933 * Makefile.in: (enable_grub_mkfont): New variable.
33934 (freetype_cflags): Likewise.
33935 (freetype_libs): Likewise.
33936
33937 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
33938 (grub_mkfont_SOURCES): New variable.
33939 (grub_mkfont_CFLAGS): Likewise.
33940 (grub_mkfont_LDFLAGS): Likewise.
33941
33942 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
33943 library if `--enable-grub-mkfont' is requested.
33944 (enable_grub_mkfont): New variable.
33945 (freetype_cflags): Likewise.
33946 (freetype_libs): Likewise.
33947
33948 * util/grub-mkfont.c: New file.
33949
33950 2009-01-12 Christian Franke <franke@computer.org>
33951
33952 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
33953 mode check. Fix setting of compat_use[].
33954
33955 2009-01-10 Robert Millan <rmh@aybabtu.com>
33956
33957 Update a few copyright years which we forgot to do in 2008 (only for
33958 files whose changes made in 2008 were copyright-significant)
33959
33960 * Makefile.in: Add 2008 to Copyright line.
33961 * disk/ieee1275/ofdisk.c: Likewise.
33962 * disk/efi/efidisk.c: Likewise.
33963 * kern/dl.c: Likewise.
33964 * kern/sparc64/ieee1275/init.c: Likewise.
33965 * kern/mm.c: Likewise.
33966 * kern/efi/mm.c: Likewise.
33967 * boot/i386/pc/boot.S: Likewise.
33968 * genfslist.sh: Likewise.
33969 * fs/iso9660.c: Likewise.
33970 * fs/hfs.c: Likewise.
33971 * fs/jfs.c: Likewise.
33972 * fs/minix.c: Likewise.
33973 * fs/ufs.c: Likewise.
33974 * gensymlist.sh.in: Likewise.
33975 * genkernsyms.sh.in: Likewise.
33976 * include/grub/misc.h: Likewise.
33977 * include/grub/types.h: Likewise.
33978 * include/grub/symbol.h: Likewise.
33979 * include/grub/elf.h: Likewise.
33980 * include/grub/kernel.h: Likewise.
33981 * include/grub/disk.h: Likewise.
33982 * include/grub/dl.h: Likewise.
33983 * include/grub/i386/linux.h: Likewise.
33984 * include/grub/i386/pc/biosdisk.h: Likewise.
33985 * include/grub/efi/api.h: Likewise.
33986 * include/grub/efi/pe32.h: Likewise.
33987 * include/grub/util/misc.h: Likewise.
33988 * normal/execute.c: Likewise.
33989 * normal/arg.c: Likewise.
33990 * normal/completion.c: Likewise.
33991 * normal/lexer.c: Likewise.
33992 * normal/parser.y: Likewise.
33993 * normal/misc.c: Likewise.
33994 * commands/i386/pc/vbeinfo.c: Likewise.
33995 * commands/hexdump.c: Likewise.
33996 * commands/terminal.c: Likewise.
33997 * commands/ls.c: Likewise.
33998 * commands/help.c: Likewise.
33999 * partmap/pc.c: Likewise.
34000 * loader/efi/chainloader.c: Likewise.
34001 * loader/multiboot_loader.c: Likewise.
34002 * loader/i386/pc/multiboot2.c: Likewise.
34003 * term/efi/console.c: Likewise.
34004 * term/i386/pc/serial.c: Likewise.
34005 * util/lvm.c: Likewise.
34006 * util/console.c: Likewise.
34007 * util/i386/efi/grub-mkimage.c: Likewise.
34008 * util/raid.c: Likewise.
34009
34010 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34011
34012 * commands/videotest.c: Removed include to grub/machine/memory.h.
34013
34014 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34015 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34016 (video_mod_SOURCES): Removed.
34017 (video_mod_CFLAGS): Likewise.
34018 (video_mod_LDFLAGS): Likewise.
34019 (gfxterm_mod_SOURCES): Likewise.
34020 (gfxterm_mod_CFLAGS): Likewise.
34021 (gfxterm_mod_LDFLAGS): Likewise.
34022 (videotest_mod_SOURCES): Likewise.
34023 (videotest_mod_CFLAGS): Likewise.
34024 (videotest_mod_LDFLAGS): Likewise.
34025 (bitmap_mod_SOURCES): Likewise.
34026 (bitmap_mod_CFLAGS): Likewise.
34027 (bitmap_mod_LDFLAGS): Likewise.
34028 (tga_mod_SOURCES): Likewise.
34029 (tga_mod_CFLAGS): Likewise.
34030 (tga_mod_LDFLAGS): Likewise.
34031 (jpeg_mod_SOURCES): Likewise.
34032 (jpeg_mod_CFLAGS): Likewise.
34033 (jpeg_mod_LDFLAGS): Likewise.
34034 (png_mod_SOURCES): Likewise.
34035 (png_mod_CFLAGS): Likewise.
34036 (png_mod_LDFLAGS): Likewise.
34037
34038 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34039 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34040 (video_mod_SOURCES): Added.
34041 (video_mod_CFLAGS): Likewise.
34042 (video_mod_LDFLAGS): Likewise.
34043 (videotest_mod_SOURCES): Likewise.
34044 (videotest_mod_CFLAGS): Likewise.
34045 (videotest_mod_LDFLAGS): Likewise.
34046 (bitmap_mod_SOURCES): Likewise.
34047 (bitmap_mod_CFLAGS): Likewise.
34048 (bitmap_mod_LDFLAGS): Likewise.
34049 (tga_mod_SOURCES): Likewise.
34050 (tga_mod_CFLAGS): Likewise.
34051 (tga_mod_LDFLAGS): Likewise.
34052 (jpeg_mod_SOURCES): Likewise.
34053 (jpeg_mod_CFLAGS): Likewise.
34054 (jpeg_mod_LDFLAGS): Likewise.
34055 (png_mod_SOURCES): Likewise.
34056 (png_mod_CFLAGS): Likewise.
34057 (png_mod_LDFLAGS): Likewise.
34058 (gfxterm_mod_SOURCES): Likewise.
34059 (gfxterm_mod_CFLAGS): Likewise.
34060 (gfxterm_mod_LDFLAGS): Likewise.
34061
34062 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34063 grub/machine/console.h.
34064
34065 2009-01-04 Jerone Young <jerone@gmail.com>
34066
34067 Make on screen instructions clearer
34068
34069 Based on patch created by Jidanni <jidanni@jidanni.org>
34070
34071 * normal/menu.c: print clearer instructions on the screen
34072
34073 2009-01-02 Colin D Bennett <colin@gibibit.com>
34074
34075 New font engine.
34076
34077 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34078 build system and fixed gfxterm.c to work with different sized fonts.
34079
34080 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34081
34082 * configure: Re-generated.
34083
34084 * DISTLIST: Removed font/manager.c.
34085 Added font/font.c.
34086 Added font/font_cmd.c.
34087
34088 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34089 compilation.
34090
34091 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34092
34093 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34094
34095 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34096
34097 * normal/menu.c: Likewise.
34098
34099 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34100 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34101
34102 * include/grub/font.h: Replaced with new file.
34103
34104 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34105 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34106 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34107 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34108 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34109 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34110 fg_red, fg_green, fg_blue, fg_alpha.
34111 (grub_video_adapter): Removed blit_glyph.
34112 (grub_video_blit_glyph): Removed.
34113
34114 * font/manager.c: Removed file.
34115
34116 * font/font.c: New file.
34117
34118 * font/font_cmd.c: Likewise.
34119
34120 * video/video.c (grub_video_blit_glyph): Removed.
34121
34122 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34123 (grub_video_vbe_map_rgba): Likewise.
34124 (grub_video_vbe_unmap_color_int): Likewise.
34125 (grub_video_vbe_blit_glyph): Removed.
34126 (grub_video_vbe_adapter): Removed blit_glyph.
34127
34128 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34129 (get_pixel): Likewise.
34130 (set_pixel): Likewise.
34131
34132 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34133
34134 * term/gfxterm.c: Adapted to new font engine.
34135
34136 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34137
34138 * term/i386/pc/vga.c: Likewise.
34139
34140 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34141
34142 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34143
34144 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34145
34146 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34147
34148 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34149
34150 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34151
34152 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34153
34154 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34155
34156 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34157
34158 * util/grub.d/00_header.in: Changed to use new loadfont command.
34159
34160 * util/grub-mkconfig_lib.in: Changed font extension.
34161
34162 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34163
34164 * util/getroot.c (grub_util_get_grub_dev): Add support for
34165 /dev/md/dNNpNN style partitionable mdraid devices.
34166
34167 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34168
34169 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34170 at a time limit of the PXE TFTP API correctly.
34171 (grub_pxefs_close): Likewise.
34172
34173 2008-11-29 Robert Millan <rmh@aybabtu.com>
34174
34175 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34176 grub_ata_device_initialize() calls.
34177
34178 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34179
34180 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34181 iteration failed.
34182 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34183
34184 2008-11-28 Robert Millan <rmh@aybabtu.com>
34185
34186 Fix build on powerpc-ieee1275. Based on patch created by
34187 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34188 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34189 `kern/ieee1275/mmap.c'.
34190 * include/grub/powerpc/ieee1275/memory.h: New file.
34191
34192 Provide grub-install on coreboot.
34193 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34194 (grub_install_SOURCES): New variable.
34195 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34196 usable on coreboot.
34197
34198 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34199
34200 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34201 to `grub_term_input_t'.
34202 (grub_term_get_current_output): Change return type to
34203 `grub_term_output_t'.
34204
34205 2008-11-22 Robert Millan <rmh@aybabtu.com>
34206
34207 Fix breakage on coreboot due to declaration mismatch.
34208 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34209 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34210 grub_vga_text_cls().
34211
34212 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34213 comments. Avoid copying one more byte than necessary (just in case).
34214
34215 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34216 to 0x200000 (avoids trouble with some OFW implementations, and matches
34217 with the one in Yaboot).
34218 Reported by Manoel Abranches
34219
34220 2008-11-20 Robert Millan <rmh@aybabtu.com>
34221
34222 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34223 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34224
34225 * util/grub-mkconfig_lib.in (grub_warn): New function.
34226 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34227 warnings, to obtain consistent formatting.
34228 * util/grub.d/00_header.in: Likewise.
34229 * util/update-grub_lib.in: Likewise.
34230
34231 * loader/i386/linux.c (allocate_pages): Fix a warning.
34232 Move comment text to `#error' stanza.
34233
34234 Harmonize ieee1275's grub_available_iterate() with the generic
34235 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34236 build problem on i386-ieee1275):
34237 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34238 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34239 parameter `type'. Update all users of this function.
34240 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34241 `kern/ieee1275/mmap.c'.
34242 * kern/ieee1275/init.c
34243 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34244 with ...
34245 (grub_machine_mmap_iterate): ... this.
34246 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34247 return type to `grub_err_t'. Update all implementations of this
34248 function prototype.
34249 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34250 Likewise.
34251
34252 Add `lsmmap' command (lists firmware-provided memory map):
34253 * commands/lsmmap.c: New file.
34254 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34255 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34256 variables.
34257 * conf/powerpc-ieee1275.rmk: Likewise.
34258 * conf/i386-coreboot.rmk: Likewise.
34259 * conf/i386-ieee1275.rmk: Likewise.
34260
34261 2008-11-19 Robert Millan <rmh@aybabtu.com>
34262
34263 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34264 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34265 constraints to initrd allocation (based on code from
34266 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34267 for Linux to find it.
34268
34269 2008-11-14 Robert Millan <rmh@aybabtu.com>
34270
34271 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34272 order to cope with duplicate slashes.
34273
34274 2008-11-14 Robert Millan <rmh@aybabtu.com>
34275
34276 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34277 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34278 don't want to mess with lower memory, because it is used in the Linux
34279 loader.
34280
34281 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34282 an appropriate place in lower memory, between 0x10000 and 0x90000,
34283 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34284 is in our heap (probably as a result of it being corrupted during
34285 decompression). Add #error instance with comment to explain why this
34286 loader isn't currently usable on PC/BIOS.
34287
34288 2008-11-14 Robert Millan <rmh@aybabtu.com>
34289
34290 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34291 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34292
34293 2008-11-12 Robert Millan <rmh@aybabtu.com>
34294
34295 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34296
34297 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34298 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34299 from here ...
34300 * include/grub/i386/pc/memory.h: ... to here.
34301
34302 2008-11-12 Robert Millan <rmh@aybabtu.com>
34303
34304 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34305 split).
34306
34307 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34308 (grub_console_cur_color, grub_console_real_putchar)
34309 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34310 (grub_console_setcolorstate, grub_console_setcolor)
34311 (grub_console_getcolor): Move from here ...
34312 * include/grub/i386/vga_common.h: ... to here (new file).
34313
34314 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34315 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34316 `<grub/i386/io.h>'.
34317 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34318 `<grub/i386/vga_common.h>'.
34319
34320 2008-11-12 Robert Millan <rmh@aybabtu.com>
34321
34322 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34323 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34324 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34325 variables.
34326 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34327 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34328
34329 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34330 grub_console_init() with call to grub_vga_text_init().
34331 (grub_machine_fini): Replace call to
34332 grub_console_fini() with call to grub_vga_text_fini() and
34333 grub_at_keyboard_fini().
34334
34335 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34336 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34337 (grub_console_setcolorstate, grub_console_setcolor)
34338 (grub_console_getcolor): New function prototypes.
34339
34340 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34341 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34342 (grub_vga_text_setcursor): Static-ize.
34343 (grub_vga_text_term): New structure.
34344 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34345
34346 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34347 (grub_console_cur_color, grub_console_standard_color)
34348 (grub_console_normal_color, grub_console_highlight_color)
34349 (map_char, grub_console_putchar, grub_console_getcharwidth)
34350 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34351 (grub_console_getcolor): Move from here ...
34352 * term/i386/vga_common.c: ... to here (same function names).
34353
34354 2008-11-12 Robert Millan <rmh@aybabtu.com>
34355
34356 Use newly-added Multiboot support in coreboot.
34357
34358 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34359 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34360
34361 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34362 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34363 (codestart): Store the MBI in `startup_multiboot_info' when we're
34364 being loaded using Multiboot.
34365
34366 * kern/i386/coreboot/init.c (grub_machine_init): Move
34367 grub_at_keyboard_init() call to beginning of function (useful for
34368 debugging). Call grub_machine_mmap_init() before attempting to use
34369 grub_machine_mmap_iterate().
34370 (grub_lower_mem, grub_upper_mem): Move from here ...
34371 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34372 here (new file).
34373
34374 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34375 function prototype.
34376
34377 2008-11-12 Robert Millan <rmh@aybabtu.com>
34378
34379 Fix a regression introduced by the at_keyboard.mod split. Because
34380 some terminals are default on some platforms and non-default on
34381 others, the first terminal being registered determines which is
34382 going to be default.
34383
34384 * kern/term.c (grub_term_register_input): If this is the first
34385 terminal being registered, set it as the current one.
34386 (grub_term_register_output): Likewise.
34387
34388 * term/efi/console.c (grub_console_init): Do not call
34389 grub_term_set_current_output() or grub_term_set_current_input().
34390 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34391 * term/i386/pc/console.c (grub_console_init): Likewise.
34392 (grub_console_fini): Do not call grub_term_set_current_input()
34393 (but leave grub_term_set_current_output() to restore text mode).
34394
34395 2008-11-10 Robert Millan <rmh@aybabtu.com>
34396
34397 * util/grub.d/00_header.in: Add backward compatibility check for
34398 versions of terminal.mod that don't understand `terminal_input' or
34399 `terminal_output'.
34400
34401 2008-11-09 Robert Millan <rmh@aybabtu.com>
34402
34403 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34404 `terminal_input' / `terminal_output', not `terminal'.
34405
34406 2008-11-08 Robert Millan <rmh@aybabtu.com>
34407
34408 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34409 (DISTCLEANFILES): Add `build_env.mk'.
34410
34411 2008-11-08 Robert Millan <rmh@aybabtu.com>
34412
34413 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34414 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34415 members. Update all users.
34416 * util/console.c (grub_ncurses_term): Split in ...
34417 (grub_ncurses_term_input): ... this, and ...
34418 (grub_ncurses_term_output): ... this. Update all users.
34419 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34420
34421 2008-11-08 Robert Millan <rmh@aybabtu.com>
34422
34423 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34424 (PKGDATA): Add $(pkgdata_SRCDIR).
34425 (pkglib_BUILDDIR): New variable.
34426 (pkgdata_SRCDIR): New variable.
34427 (build_env.mk): New target.
34428 (include_DATA): New variable.
34429 (install-local): Install $(include_DATA) files in $(includedir).
34430
34431 2008-11-07 Pavel Roskin <proski@gnu.org>
34432
34433 * gendistlist.sh: Use C locale for sorting to ensure consistent
34434 output on all systems.
34435
34436 * util/grub.d/00_header.in: Remove incorrect space before
34437 "serial".
34438
34439 2008-11-07 Robert Millan <rmh@aybabtu.com>
34440
34441 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34442 per specification.
34443 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34444 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34445 (based on find_multi_boot1_header).
34446 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34447 using find_multi_boot2_header(), and abort if neither Multiboot or
34448 Multiboot headers were found.
34449
34450 2008-11-07 Robert Millan <rmh@aybabtu.com>
34451
34452 Modularize at_keyboard.mod:
34453
34454 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34455 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34456 (at_keyboard_mod_LDFLAGS): New variables.
34457
34458 Actual terminal split:
34459
34460 * include/grub/term.h (struct grub_term): Split in ...
34461 (struct grub_term_input): ... this, and ...
34462 (struct grub_term_output): ... this. Update all users.
34463 (grub_term_set_current): Split in ...
34464 (grub_term_set_current_input): ... this, and ...
34465 (grub_term_set_current_output): ... this.
34466 (grub_term_get_current): Split in ...
34467 (grub_term_get_current_input): ... this, and ...
34468 (grub_term_get_current_output): ... this.
34469 (grub_term_register): Split in ...
34470 (grub_term_register_input): ... this, and ...
34471 (grub_term_register_output): ... this.
34472 (grub_term_unregister): Split in ...
34473 (grub_term_unregister_input): ... this, and ...
34474 (grub_term_unregister_output): ... this.
34475 (grub_term_iterate): Split in ...
34476 (grub_term_iterate_input): ... this, and ...
34477 (grub_term_iterate_output): ... this.
34478
34479 * kern/term.c (grub_term_list): Split in ...
34480 (grub_term_list_input): ... this, and ...
34481 (grub_term_list_output): ... this. Update all users.
34482 (grub_cur_term): Split in ...
34483 (grub_cur_term_input): ... this, and ...
34484 (grub_cur_term_output): ... this. Update all users.
34485 (grub_term_set_current): Split in ...
34486 (grub_term_set_current_input): ... this, and ...
34487 (grub_term_set_current_output): ... this.
34488 (grub_term_get_current): Split in ...
34489 (grub_term_get_current_input): ... this, and ...
34490 (grub_term_get_current_output): ... this.
34491 (grub_term_register): Split in ...
34492 (grub_term_register_input): ... this, and ...
34493 (grub_term_register_output): ... this.
34494 (grub_term_unregister): Split in ...
34495 (grub_term_unregister_input): ... this, and ...
34496 (grub_term_unregister_output): ... this.
34497 (grub_term_iterate): Split in ...
34498 (grub_term_iterate_input): ... this, and ...
34499 (grub_term_iterate_output): ... this.
34500
34501 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34502 a check for input and one for output (and only attempt to get keys
34503 from user when input works).
34504
34505 * util/grub-probe.c (grub_term_get_current): Split in ...
34506 (grub_term_get_current_input): ... this, and ...
34507 (grub_term_get_current_output): ... this.
34508 * util/grub-fstest.c: Likewise.
34509 * util/i386/pc/grub-setup.c: Likewise.
34510 * util/grub-editenv.c: Likewise.
34511
34512 Portability adjustments:
34513
34514 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34515 `term/i386/pc/at_keyboard.c'.
34516 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34517 grub_keyboard_controller_init() (now handled by terminal .init).
34518 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34519 grub_at_keyboard_init().
34520 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34521 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34522 at_keyboard.mod via input terminal interface).
34523 * include/grub/i386/coreboot/console.h: Convert into a stub for
34524 `<grub/i386/pc/console.h>'.
34525
34526 Migrate full terminals to new API:
34527
34528 * term/efi/console.c (grub_console_term): Split into ...
34529 (grub_console_term_input): ... this, and ...
34530 (grub_console_term_output): ... this. Update all users.
34531 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34532 (grub_ofconsole_init): Split into ...
34533 (grub_ofconsole_init_input): ... this, and ...
34534 (grub_ofconsole_init_output): ... this.
34535 (grub_ofconsole_term): Split into ...
34536 (grub_ofconsole_term_input): ... this, and ...
34537 (grub_ofconsole_term_output): ... this. Update all users.
34538 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34539 (grub_serial_term_input): ... this, and ...
34540 (grub_serial_term_output): ... this. Update all users.
34541 * term/i386/pc/console.c (grub_console_term): Split into ...
34542 (grub_console_term_input): ... this, and ...
34543 (grub_console_term_output): ... this. Update all users.
34544 (grub_console_term_input): Only enable it on PC/BIOS platform.
34545 (grub_console_init): Remove grub_keyboard_controller_init() call.
34546
34547 Migrate input terminals to new API:
34548
34549 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34550 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34551 i386-specific anyway).
34552 (grub_console_checkkey): Rename to ...
34553 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34554 users.
34555 (grub_keyboard_controller_orig): New variable.
34556 (grub_console_getkey): Rename to ...
34557 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34558 users.
34559 (grub_keyboard_controller_init): Static-ize. Save original
34560 controller value so that it can be restored ...
34561 (grub_keyboard_controller_fini): ... here (new function).
34562 (grub_at_keyboard_term): New structure.
34563 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34564 functions.
34565
34566 Migrate output terminals to new API:
34567
34568 * term/i386/pc/vga.c (grub_vga_term): Change type to
34569 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34570 members. Update all users.
34571 * term/gfxterm.c (grub_video_term): Change type to
34572 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34573 members. Update all users.
34574 * include/grub/i386/pc/console.h (grub_console_checkkey)
34575 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34576 etc).
34577
34578 Migrate `terminal' command and userland tools to new API:
34579
34580 * commands/terminal.c (grub_cmd_terminal): Split into ...
34581 (grub_cmd_terminal_input): ... this, and ...
34582 (grub_cmd_terminal_output): ... this.
34583 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34584 `terminal_input' and `terminal_output'.
34585 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34586 `terminal_input' / `terminal_output' API.
34587 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34588 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34589 provided ${GRUB_TERMINAL}, convert it).
34590
34591 2008-11-04 Robert Millan <rmh@aybabtu.com>
34592
34593 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34594 for FreeBSD.
34595 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34596
34597 2008-11-03 Bean <bean123ch@gmail.com>
34598
34599 * kern/elf.c (grub_elf32_load): Revert to previous code.
34600 (grub_elf64_load): Likewise.
34601
34602 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34603
34604 2008-11-01 Robert Millan <rmh@aybabtu.com>
34605
34606 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34607 (TARGET_CPPFLAGS): Likewise.
34608 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34609
34610 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34611
34612 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34613
34614 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34615
34616 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34617 addition of objects until the code is not going to be able to fail.
34618
34619 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34620
34621 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34622 (add a missing NULL check, and correct them by moving the pointer
34623 operations after the actual check).
34624
34625 2008-10-29 Robert Millan <rmh@aybabtu.com>
34626
34627 * util/i386/pc/grub-install.in: Handle empty string as output from
34628 make_system_path_relative_to_its_root().
34629
34630 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34631
34632 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34633 circular metadata worst case scenario. If the metadata is circular
34634 then copy the wrap in place.
34635 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34636 project lib/format_text/layout.h
34637 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34638
34639 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34640
34641 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34642
34643 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34644
34645 * util/update-grub_lib.in: Mention filename in warning message.
34646
34647 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34648
34649 * NEWS: Update for rename of update-grub to grub-mkconfig.
34650
34651 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34652
34653 * util/update-grub_lib.in: Copy to ...
34654 * util/grub-mkconfig_lib.in: ... this. Update all users.
34655 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34656 * util/update-grub.in: Rename to ...
34657 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34658 option. Add `--output' option to allow users to specify the generated
34659 configuration file. Default to stdout.
34660 (update_grub_dir): Rename to ...
34661 (grub_mkconfig_dir): ... this.
34662 (grub_cfg): Default to an empty string.
34663 * conf/common.rmk (update-grub): Rename to ...
34664 (grub-mkconfig): ... this.
34665 (update-grub_lib): Copy to ...
34666 (grub-mkconfig_lib): ... this.
34667 (update-grub_SCRIPTS): Copy to ...
34668 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34669 (update-grub_DATA): Rename to ...
34670 (grub-mkconfig_DATA): ... this.
34671
34672 2008-09-28 Robert Millan <rmh@aybabtu.com>
34673
34674 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34675 to `modified'. Add the real `created' field.
34676 (grub_iso9660_uuid): Use `modified' rather than `created' for
34677 constructing the UUID.
34678
34679 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34680
34681 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34682 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34683
34684 2008-09-28 Bean <bean123ch@gmail.com>
34685
34686 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34687 Thanks to Christian Franke for finding this bug.
34688
34689 2008-09-25 Robert Millan <rmh@aybabtu.com>
34690
34691 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34692 instances of grub_util_get_disk_name() (see previous commit).
34693
34694 2008-09-25 Robert Millan <rmh@aybabtu.com>
34695
34696 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34697 `util/i386/get_disk_name.c'.
34698 * conf/i386-efi.rmk: Likewise.
34699 * conf/x86_64-efi.rmk: Likewise.
34700 * conf/i386-coreboot.rmk: Likewise.
34701 * conf/i386-ieee1275.rmk: Likewise.
34702 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34703 `util/ieee1275/get_disk_name.c'.
34704 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34705 * util/ieee1275/get_disk_name.c: Remove file.
34706 * util/i386/get_disk_name.c: Remove file.
34707 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34708 "hd%d" for device.map entries, rather than using
34709 grub_util_get_disk_name().
34710
34711 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34712
34713 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34714 warning.
34715 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34716
34717 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34718
34719 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34720 Changed to 0x5100.
34721 (GRUB_TERM_PPAGE): Changed to 0x4900.
34722
34723 2008-09-24 Robert Millan <rmh@aybabtu.com>
34724
34725 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34726 macros (they were i386-pc specific).
34727 * include/grub/sparc64/ieee1275/console.h: Likewise.
34728 * include/grub/efi/console.h: Likewise.
34729
34730 2008-09-22 Bean <bean123ch@gmail.com>
34731
34732 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34733 resident and in attribute list.
34734
34735 * include/grub/ntfs.h (BMP_LEN): Removed.
34736
34737 2008-09-22 Bean <bean123ch@gmail.com>
34738
34739 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
34740 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34741
34742 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34743 error occurs, as grub_disk_open will call grub_disk_close, which will
34744 call p->close (scsi).
34745
34746 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34747
34748 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34749 (AC_PREREQ): Bumped to 2.59.
34750 (AC_TRY_COMPILE): Replace obsolete macro with ...
34751 (AC_COMPILE_IFELSE): ... this.
34752 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34753 (AC_LINK_IFELSE): ... this.
34754
34755 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34756
34757 * autogen.sh: Add a call to `gendistlist.sh'.
34758
34759 2008-09-19 Christian Franke <franke@computer.org>
34760
34761 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34762 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34763 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34764 Export __enable_execute_stack() to modules.
34765 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34766 New function.
34767
34768 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34769
34770 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34771 Sort the list.
34772
34773 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34774
34775 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
34776 #include <grub/util/hostdisk.h>.
34777
34778 2008-09-08 Robert Millan <rmh@aybabtu.com>
34779
34780 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34781 segments when their filesz is zero (grub_file_read() interprets
34782 zero-size as "read until EOF", which results in memory corruption).
34783 Use `lowest_segment' rather than 0 for calculating the current
34784 segment load address.
34785
34786 2008-09-08 Robert Millan <rmh@aybabtu.com>
34787
34788 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34789 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34790 clobbered useful information.
34791
34792 2008-09-08 Robert Millan <rmh@aybabtu.com>
34793
34794 * include/grub/util/biosdisk.h: Move to ...
34795 * include/grub/util/hostdisk.h: ... here. Update all users.
34796 * util/biosdisk.c: Move to ...
34797 * util/hostdisk.c: ... here. Update all users.
34798
34799 2008-09-07 Robert Millan <rmh@aybabtu.com>
34800
34801 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34802 variables.
34803 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34804 and length can be stored directly in the `mbi->mmap_addr' and
34805 `mbi->mmap_length' struct fields.
34806
34807 2008-09-07 Robert Millan <rmh@aybabtu.com>
34808
34809 * conf/i386.rmk: New file. Provides declaration for building
34810 `cpuid.mod'.
34811 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34812 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34813 variables.
34814 Include `conf/i386.mk'.
34815 * conf/i386-efi.rmk: Likewise.
34816 * conf/x86_64-efi.rmk: Likewise.
34817 * conf/i386-coreboot.rmk: Likewise.
34818 * conf/i386-ieee1275.rmk: Likewise.
34819
34820 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34821
34822 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34823 Adds optimization support for BGR based modes.
34824
34825 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34826 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34827 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34828 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34829 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34830 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34831 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34832 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34833 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34834 (grub_video_i386_vbeblit_index_index): Likewise.
34835 (grub_video_i386_vbeblit_replace_directN): Added.
34836 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34837 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34838 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34839 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34840 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34841 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34842 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34843 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34844 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34845 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34846 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34847 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34848 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34849
34850 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34851 (grub_video_i386_vbefill_R8G8B8): Likewise.
34852 (grub_video_i386_vbefill_index): Likewise.
34853 (grub_video_i386_vbefill_direct32): Added.
34854 (grub_video_i386_vbefill_direct24): Likewise.
34855 (grub_video_i386_vbefill_direct16): Likewise.
34856 (grub_video_i386_vbefill_direct8): Likewise.
34857
34858 * include/grub/video.h (grub_video_blit_format): Removed
34859 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34860 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34861 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34862 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34863 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34864
34865 * video/video.c (grub_video_get_blit_format): Updated to use new
34866 blit formats. Added handling for 16 bit color modes.
34867
34868 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34869 fillers.
34870 (common_blitter): Updated to use new blitters.
34871
34872 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34873 Removed.
34874 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34875 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34876 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34877 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34878 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34879 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34880 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34881 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34882 (grub_video_i386_vbeblit_index_index): Likewise.
34883 (grub_video_i386_vbeblit_replace_directN): Added.
34884 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34885 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34886 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34887 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34888 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34889 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34890 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34891 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34892 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34893 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34894 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34895 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34896 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34897
34898 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
34899 (grub_video_i386_vbefill_R8G8B8): Likewise.
34900 (grub_video_i386_vbefill_index): Likewise.
34901 (grub_video_i386_vbefill_direct32): Added.
34902 (grub_video_i386_vbefill_direct24): Likewise.
34903 (grub_video_i386_vbefill_direct16): Likewise.
34904 (grub_video_i386_vbefill_direct8): Likewise.
34905
34906 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
34907 types.
34908
34909 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
34910 types.
34911
34912 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
34913 blitter types.
34914
34915 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
34916 types.
34917
34918 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34919
34920 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
34921 RAID level 1.
34922
34923 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34924
34925 * fs/iso9660.c (grub_iso9660_date): New structure.
34926 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
34927 (grub_iso9660_uuid): New function.
34928
34929 2008-09-05 Bean <bean123ch@gmail.com>
34930
34931 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
34932
34933 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
34934 insensitive bit for names in Win32 and Win32 & DOS namespace.
34935
34936 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
34937
34938 * include/grub/types.h (LONG_MAX): Likewise.
34939
34940 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34941
34942 * util/getroot.c: Include <config.h>.
34943 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
34944 add support for /dev/md/N devices and handle LVM double dash escaping.
34945
34946 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34947
34948 * config.guess: Update to latest version from config git.
34949 * config.sub: Likewise.
34950
34951 2008-09-03 Robert Millan <rmh@aybabtu.com>
34952
34953 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
34954 `disk->total_sectors'.
34955
34956 2008-09-01 Colin D Bennett <colin@gibibit.com>
34957
34958 * include/grub/normal.h: Fixed incorrect comment for
34959 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
34960
34961 2008-09-01 Colin D Bennett <colin@gibibit.com>
34962
34963 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
34964 values with defines.
34965
34966 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
34967 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
34968 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
34969 (GRUB_VBE_MODEATTR_COLOR): Likewise.
34970 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
34971 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
34972 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
34973 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
34974 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
34975 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
34976 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
34977 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
34978 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
34979 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
34980 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
34981 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
34982 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
34983 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
34984 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
34985
34986 2008-08-31 Robert Millan <rmh@aybabtu.com>
34987
34988 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
34989 declaration.
34990 (grub_multiboot): Fix a few warnings.
34991
34992 2008-08-31 Robert Millan <rmh@aybabtu.com>
34993
34994 * loader/i386/pc/multiboot.c: Update comment not to say that
34995 boot_device support is unimplemented.
34996
34997 2008-08-31 Robert Millan <rmh@aybabtu.com>
34998
34999 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35000 or memory map support are unimplemented.
35001
35002 2008-08-31 Colin D Bennett <colin@gibibit.com>
35003
35004 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35005
35006 2008-08-31 Colin D Bennett <colin@gibibit.com>
35007
35008 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35009 total video memory in 'vbeinfo' output; show color format details for
35010 each video mode.
35011
35012 2008-08-30 Pavel Roskin <proski@gnu.org>
35013
35014 * util/genmoddep.c: Remove for real this time.
35015 * DISTLIST: Remove util/genmoddep.c.
35016
35017 2008-08-30 Robert Millan <rmh@aybabtu.com>
35018
35019 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35020 as required by Multiboot spec (it was already 4-byte aligned, but
35021 only by chance).
35022
35023 2008-08-29 Pavel Roskin <proski@gnu.org>
35024
35025 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35026 * kern/powerpc/ieee1275/startup.S: ... this.
35027 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35028 * DISTLIST: Likewise.
35029
35030 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35031 grub/cpu/kernel.h. Add start label for consistency with other
35032 platforms. Add grub_prefix immediately after start. Add jump
35033 to the code after grub_prefix.
35034 * include/grub/powerpc/kernel.h: Provide valid values for
35035 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35036
35037 2008-08-29 Bean <bean123ch@gmail.com>
35038
35039 * configure.ac: Change host_os to cygwin for mingw.
35040 (asprintf): New check for function.
35041
35042 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35043 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35044
35045 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35046 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35047 sync, sleep and grub_util_get_disk_size for mingw.
35048
35049 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35050 to get size in mingw.
35051 (open_device): Use flag O_BINARY if it's defined.
35052 (find_root_device): Add dummy code for mingw.
35053
35054 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35055 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35056 (get_scsi_disk_name): Return 0 for mingw.
35057
35058 * util/hostfs.c: #include <grub/util/misc.h>.
35059 (grub_hostfs_open): Use "rb" flag to open file, use
35060 grub_util_get_disk_size to get disk size for mingw.
35061
35062 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35063 (asprintf): New function if HAVE_ASPRINTF is not set.
35064 (sync): New function for mingw.
35065 (sleep): Likewise.
35066 (grub_util_get_disk_size): Likewise.
35067
35068 2008-08-28 Pavel Roskin <proski@gnu.org>
35069
35070 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35071 kern/time.c.
35072
35073 2008-08-28 Robert Millan <rmh@aybabtu.com>
35074
35075 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35076
35077 2008-08-28 Robert Millan <rmh@aybabtu.com>
35078
35079 Change find_grub_drive() syntax so it doesn't prevent it from
35080 detecting NULL names as errors.
35081
35082 * util/biosdisk.c (find_grub_drive): Move free slot search code
35083 from here ...
35084 (find_free_slot): ... to here.
35085 (read_device_map): Use find_free_slot() to search for free slots.
35086
35087 2008-08-27 Marco Gerards <marco@gnu.org>
35088
35089 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35090 (scsi_mod_SOURCES): New variable.
35091 (scsi_mod_CFLAGS): Likewise
35092 (scsi_mod_LDFLAGS): Likewise.
35093
35094 * disk/scsi.c: New file.
35095
35096 * include/grub/scsi.h: Likewise.
35097
35098 * include/grub/scsicmd.h: Likewise.
35099
35100 * disk/ata.c: Include <grub/scsi.h>.
35101 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35102 instead.
35103 (grub_ata_iterate): Skip ATAPI devices.
35104 (grub_ata_open): Only handle ATAPI devices.
35105 (struct grub_atapi_read): Removed.
35106 (grub_atapi_readsector): Likewise.
35107 (grub_ata_read): No longer handle ATAPI devices.
35108 (grub_ata_write): Likewise.
35109 (grub_atapi_iterate): New function.
35110 (grub_atapi_read): Likewise.
35111 (grub_atapi_write): Likewise.
35112 (grub_atapi_open): Likewise.
35113 (grub_atapi_close): Likewise.
35114 (grub_atapi_dev): New variable.
35115 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35116 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35117
35118 * include/grub/disk.h (enum grub_disk_dev_id): Add
35119 `GRUB_DISK_DEVICE_SCSI_ID'.
35120
35121 2008-08-26 Robert Millan <rmh@aybabtu.com>
35122
35123 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35124 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35125 descriptive.
35126
35127 2008-08-23 Bean <bean123ch@gmail.com>
35128
35129 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35130 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35131 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35132 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35133 dm_nv.mod.
35134 (raid5rec_mod_SOURCES): New macro.
35135 (raid5rec_mod_CFLAGS): Likewise.
35136 (raid5rec_mod_LDFLAGS): Likewise.
35137 (raid6rec_mod_SOURCES): Likewise.
35138 (raid6rec_mod_CFLAGS): Likewise.
35139 (raid6rec_mod_LDFLAGS): Likewise.
35140 (mdraid_mod_SOURCES): Likewise.
35141 (mdraid_mod_CFLAGS): Likewise.
35142 (mdraid_mod_LDFLAGS): Likewise.
35143 (dm_nv_mod_SOURCES): Likewise.
35144 (dm_nv_mod_CFLAGS): Likewise.
35145 (dm_nv_mod_LDFLAGS): Likewise.
35146
35147 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35148 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35149 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35150
35151 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35152 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35153
35154 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35155
35156 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35157
35158 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35159
35160 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35161
35162 * disk/raid5_recover.c: New file.
35163
35164 * disk/raid6_recover.c: Likewise.
35165
35166 * disk/mdraid_linux.c: Likewise.
35167
35168 * disk/dmraid_nvidia.c: Likewise.
35169
35170 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35171 ULONG_MAX.
35172
35173 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35174 calculate the size of raid device.
35175 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35176 different layout of raid5.
35177 (grub_raid_scan_device): Remove code specific to mdraid.
35178 (grub_raid_list): New variable.
35179 (free_array): New function.
35180 (grub_raid_register): Likewise.
35181 (grub_raid_unregister): Likewise.
35182 (grub_raid_rescan): Likewise.
35183 (GRUB_MOD_INIT): Don't iterate device here.
35184 (GRUB_MOD_FINI): Use free_array to release resource.
35185
35186 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35187 (grub_raid5_recover_func_t): New function variable type.
35188 (grub_raid6_recover_func_t): Likewise.
35189 (grub_raid5_recover_func): New variable.
35190 (grub_raid6_recover_func): Likewise.
35191 (grub_raid_register): New function.
35192 (grub_raid_unregister): Likewise.
35193 (grub_raid_rescan): Likewise.
35194 (grub_raid_block_xor): Likewise.
35195
35196 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35197 (CMD_CRC): New macro.
35198 (part): Removed.
35199 (read_file): Handle device as well as file.
35200 (cmd_crc): New function.
35201 (fstest): Handle multiple disks.
35202 (options): Remove part, raw and long, add root and diskcount.
35203 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35204 (main): Find the first non option entry and ignore subsequent options,
35205 add handling for the new options, support multiple disks.
35206
35207 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35208
35209 2008-08-23 Bean <bean123ch@gmail.com>
35210
35211 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35212
35213 * genfslist.sh: Ignore kernel.mod.
35214
35215 * genpartmaplist.sh: Likewise.
35216
35217 2008-08-23 Robert Millan <rmh@aybabtu.com>
35218
35219 * util/getroot.c (find_root_device): Skip anything that starts with
35220 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35221
35222 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35223
35224 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35225 * util/grub.d/00_header.in: Allow the administrator to change default
35226 gfxmode via ${GRUB_GFXMODE}.
35227
35228 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35229
35230 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35231
35232 2008-08-21 Robert Millan <rmh@aybabtu.com>
35233
35234 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35235 loader.
35236 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35237 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35238
35239 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35240
35241 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35242 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35243
35244 2008-08-19 Robert Millan <rmh@aybabtu.com>
35245
35246 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35247 (struct grub_virtual_screen): Remove `cursor_color'.
35248 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35249 initialization.
35250 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35251
35252 2008-08-18 Robert Millan <rmh@aybabtu.com>
35253
35254 Unify (identical) linux_normal.c files.
35255 * loader/i386/efi/linux_normal.c: Move from here ...
35256 * loader/linux_normal.c: ... to here. Update all users.
35257 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35258 * loader/i386/ieee1275/linux_normal.c: Likewise.
35259
35260 2008-08-18 Robert Millan <rmh@aybabtu.com>
35261
35262 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35263 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35264 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35265 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35266 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35267 New macros.
35268 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35269 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35270 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35271 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35272 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35273 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35274 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35275 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35276 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35277 portably using grub_getxy().
35278 Replace `-EFI' with `-bzImage' in boot message.
35279
35280 2008-08-17 Robert Millan <rmh@aybabtu.com>
35281
35282 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35283
35284 2008-08-17 Robert Millan <rmh@aybabtu.com>
35285
35286 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35287
35288 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35289 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35290 (grub_machine_mmap_iterate): New function declaration.
35291 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35292 structure.
35293 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35294 macros.
35295
35296 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35297 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35298 Move e820 parsing from here ...
35299 * kern/i386/pc/mmap.c: New file.
35300 (grub_machine_mmap_iterate): ... to here.
35301
35302 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35303 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35304 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35305 (grub_available_iterate): Redeclare to return `void', and redeclare
35306 its hook to use grub_uint64_t as addr and size parameters, and rename
35307 to ...
35308 (grub_machine_mmap_iterate): ... this. Update all users.
35309
35310 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35311 to make it more readable. Rename to ...
35312 (grub_machine_mmap_iterate): ... this.
35313
35314 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35315 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35316 (grub_multiboot): Allocate an extra region after the payload, and fill
35317 it with a Multiboot memory map. Adjust a.out loader to calculate size
35318 with the extra space.
35319 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35320 with the extra space.
35321
35322 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35323
35324 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35325
35326 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35327
35328 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35329 mdate-sh to the list `find' searches for.
35330 * DISTLIST: Regenerated.
35331
35332 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35333
35334 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35335 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35336 genmoddep.awk, gensymlist.sh.in.
35337 (DISTDIRS): Add bus, docs, hook, lib.
35338 * DISTLIST: Regenerated.
35339 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35340
35341 2008-08-16 Robert Millan <rmh@aybabtu.com>
35342
35343 * disk/raid.c (grub_raid_init): Handle/report errors set by
35344 grub_device_iterate().
35345 * disk/lvm.c (grub_lvm_init): Likewise.
35346
35347 2008-08-15 Bean <bean123ch@gmail.com>
35348
35349 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35350 and datehook.mod.
35351 (datetime_mod_SOURCES): New macro.
35352 (datetime_mod_CFLAGS): Likewise.
35353 (datetime_mod_LDFLAGS): Likewise.
35354 (date_mod_SOURCES): Likewise.
35355 (date_mod_CFLAGS): Likewise.
35356 (date_mod_LDFLAGS): Likewise.
35357 (datehook_mod_SOURCES): Likewise.
35358 (datehook_mod_CFLAGS): Likewise.
35359 (datehook_mod_LDFLAGS): Likewise.
35360
35361 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35362 and datehook.mod.
35363 (datetime_mod_SOURCES): New macro.
35364 (datetime_mod_CFLAGS): Likewise.
35365 (datetime_mod_LDFLAGS): Likewise.
35366 (date_mod_SOURCES): Likewise.
35367 (date_mod_CFLAGS): Likewise.
35368 (date_mod_LDFLAGS): Likewise.
35369 (datehook_mod_SOURCES): Likewise.
35370 (datehook_mod_CFLAGS): Likewise.
35371 (datehook_mod_LDFLAGS): Likewise.
35372
35373 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35374 and datehook.mod.
35375 (datetime_mod_SOURCES): New macro.
35376 (datetime_mod_CFLAGS): Likewise.
35377 (datetime_mod_LDFLAGS): Likewise.
35378 (date_mod_SOURCES): Likewise.
35379 (date_mod_CFLAGS): Likewise.
35380 (date_mod_LDFLAGS): Likewise.
35381 (datehook_mod_SOURCES): Likewise.
35382 (datehook_mod_CFLAGS): Likewise.
35383 (datehook_mod_LDFLAGS): Likewise.
35384
35385 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35386 and datehook.mod.
35387 (datetime_mod_SOURCES): New macro.
35388 (datetime_mod_CFLAGS): Likewise.
35389 (datetime_mod_LDFLAGS): Likewise.
35390 (date_mod_SOURCES): Likewise.
35391 (date_mod_CFLAGS): Likewise.
35392 (date_mod_LDFLAGS): Likewise.
35393 (datehook_mod_SOURCES): Likewise.
35394 (datehook_mod_CFLAGS): Likewise.
35395 (datehook_mod_LDFLAGS): Likewise.
35396
35397 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35398 and datehook.mod.
35399 (datetime_mod_SOURCES): New macro.
35400 (datetime_mod_CFLAGS): Likewise.
35401 (datetime_mod_LDFLAGS): Likewise.
35402 (date_mod_SOURCES): Likewise.
35403 (date_mod_CFLAGS): Likewise.
35404 (date_mod_LDFLAGS): Likewise.
35405 (datehook_mod_SOURCES): Likewise.
35406 (datehook_mod_CFLAGS): Likewise.
35407 (datehook_mod_LDFLAGS): Likewise.
35408
35409 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35410
35411 * commands/date.c: New file.
35412
35413 * hook/datehook.c: Likewise.
35414
35415 * include/grub/lib/datetime.h: Likewise.
35416
35417 * include/grub/i386/cmos.h: Likewise.
35418
35419 * lib/datetime.c: Likewise.
35420
35421 * lib/i386/datetime.c: Likewise.
35422
35423 * lib/efi/datetime.c: Likewise.
35424
35425 2008-08-14 Robert Millan <rmh@aybabtu.com>
35426
35427 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35428 (grub_mkelfimage_SOURCES): New variable.
35429 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35430
35431 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35432 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35433 * conf/powerpc-ieee1275.rmk: Likewise.
35434 * conf/i386-ieee1275.rmk: Likewise.
35435
35436 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35437 * kern/i386/coreboot/init.c: Likewise.
35438
35439 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35440 with `<grub/cpu/kernel.h>'.
35441 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35442 to ...
35443 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35444 * kern/i386/coreboot/startup.S: Likewise.
35445
35446 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35447 (GRUB_MOD_GAP): Remove.
35448 * include/grub/powerpc/kernel.h: New file.
35449 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35450 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35451 * include/grub/i386/kernel.h: New file.
35452 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35453 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35454 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35455
35456 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35457 `grub-mkelfimage'.
35458 Use --directory when invoking grub_mkimage.
35459
35460 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35461 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35462 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35463 and GRUB_KERNEL_CPU_PREFIX.
35464
35465 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35466
35467 * include/grub/err.h (grub_err_printf): New function prototype.
35468 * util/misc.c (grub_err_printf): New function.
35469 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35470 grub_printf.
35471 * kern/err.c (grub_print_error): Use grub_err_printf.
35472
35473 2008-08-13 Robert Millan <rmh@aybabtu.com>
35474
35475 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35476
35477 2008-08-13 Robert Millan <rmh@aybabtu.com>
35478
35479 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35480 boot entry.
35481
35482 2008-08-12 Robert Millan <rmh@aybabtu.com>
35483
35484 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35485 of the relocation code from here ...
35486 (grub_multiboot): ... to here.
35487 (forward_relocator, backward_relocator): Move from here ...
35488 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35489 (grub_multiboot_backward_relocator): ... to here.
35490 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35491 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35492 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35493 (grub_multiboot_forward_relocator_end)
35494 (grub_multiboot_backward_relocator)
35495 (grub_multiboot_backward_relocator_end): New variables.
35496
35497 2008-08-12 Bean <bean123ch@gmail.com>
35498
35499 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35500
35501 2008-08-11 Robert Millan <rmh@aybabtu.com>
35502
35503 * kern/i386/linuxbios/startup.S: Move from here ...
35504 * kern/i386/coreboot/startup.S: ... to here.
35505
35506 * kern/i386/linuxbios/init.c: Move from here ...
35507 * kern/i386/coreboot/init.c: ... to here.
35508
35509 * kern/i386/linuxbios/table.c: Move from here ...
35510 * kern/i386/coreboot/mmap.c: ... to here.
35511
35512 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35513
35514 2008-08-11 Robert Millan <rmh@aybabtu.com>
35515
35516 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35517 errors. Leave it to the upper layer to handle them.
35518
35519 2008-08-09 Christian Franke <franke@computer.org>
35520
35521 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35522 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35523 Install `grub.d/10_windows' only on Cygwin.
35524 * configure.ac: Add subst of `target_os'.
35525 Check `target_os' also before setting TARGET_OBJ2ELF.
35526 Add `--enable-grub-pe2elf'.
35527
35528 2008-08-08 Robert Millan <rmh@aybabtu.com>
35529
35530 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35531 (grub_last_time): Change type to grub_uint64_t.
35532 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35533 (grub_disk_close): Likewise.
35534
35535 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35536 (run_menu): Migrate code from to using grub_get_time_ms().
35537
35538 * util/misc.c (grub_get_time_ms): New function.
35539
35540 2008-08-08 Marco Gerards <marco@gnu.org>
35541
35542 * disk/ata.c (grub_ata_regget): Change return type to
35543 `grub_uint8_t'.
35544 (grub_ata_regget2): Likewise.
35545 (grub_ata_wait_status): New function.
35546 (grub_ata_wait_busy): Removed function, updated all users to use
35547 `grub_ata_wait_status'.
35548 (grub_ata_wait_drq): Likewise.
35549 (grub_ata_cmd): New function.
35550 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35551 error handling.
35552 (grub_ata_pio_write): Add error handling.
35553 (grub_atapi_identify): Likewise.
35554 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35555 handling.
35556 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35557 handling. Actually use the detected registers. Reorder the
35558 detection logic such that it is easier to read.
35559 (grub_ata_pciinit): Do not assign the same ID to each controller.
35560 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35561 handling.
35562 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35563
35564 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35565
35566 2008-08-08 Marco Gerards <marco@gnu.org>
35567
35568 * NEWS: Update.
35569
35570 2008-08-07 Bean <bean123ch@gmail.com>
35571
35572 * include/grub/x86_64/pci.h: New file.
35573
35574 2008-08-07 Christian Franke <franke@computer.org>
35575
35576 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35577 (TIMER2_GATE): Likewise.
35578 (grub_pit_wait): Add enable/disable of the timer2 gate
35579 bit of port 0x61. This fixes a possible infinite loop.
35580
35581 2008-08-07 Bean <bean123ch@gmail.com>
35582
35583 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35584 kern/i386/tsc.c and kern/i386/pit.c.
35585
35586 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35587 x86_64 platform.
35588
35589 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35590 <grub/i386/tsc.h>.
35591
35592 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35593
35594 2008-08-07 Bean <bean123ch@gmail.com>
35595
35596 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35597
35598 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35599
35600 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35601 multiple inclusion. Add #include <grub/types.h>.
35602
35603 2008-08-06 Christian Franke <franke@computer.org>
35604
35605 * conf/common.rmk: Build and install `10_windows'.
35606 * util/grub.d/10_windows.in: New script.
35607
35608 2008-08-06 Pavel Roskin <proski@gnu.org>
35609
35610 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35611
35612 2008-08-06 Robert Millan <rmh@aybabtu.com>
35613
35614 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35615 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35616
35617 2008-08-06 Bean <bean123ch@gmail.com>
35618
35619 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35620 (grub_pxefs_fs_int): Remove dummy definition.
35621 (grub_pxefs_open): Use data->block_size to store the current block
35622 size setting.
35623 (grub_pxefs_read): Use block size stored in data->block_size. As the
35624 value of grub_pxe_blksize can be changed after the file is opened.
35625
35626 2008-08-06 Bean <bean123ch@gmail.com>
35627
35628 * fs/i386/pc/pxe.c (curr_file): new variable.
35629 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35630 require the dummy internal file system anymore.
35631 (grub_pxefs_read): Removed.
35632 (grub_pxefs_close): Likewise.
35633 (grub_pxefs_fs_int): Likewise.
35634 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35635 connection when we switch file.
35636 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35637
35638 2008-08-06 Robert Millan <rmh@aybabtu.com>
35639
35640 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35641 `halt.mod'.
35642 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35643 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35644
35645 * kern/i386/halt.c: New file.
35646 * kern/i386/reboot.c: Likewise.
35647 * include/grub/i386/reboot.h: Likewise.
35648 * include/grub/i386/halt.h: Likewise.
35649
35650 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35651 Include `<grub/cpu/halt.h>'.
35652 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35653 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35654
35655 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35656 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35657 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35658 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35659 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35660 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35661 from here ...
35662 * include/grub/i386/at_keyboard.h: ... to here.
35663
35664 2008-08-05 Robert Millan <rmh@aybabtu.com>
35665
35666 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35667 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35668 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35669 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35670 `kern/generic/millisleep.c'.
35671
35672 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35673 instead of grub_get_rtc().
35674 (grub_tsc_init): Initialize `tsc_boot_time'.
35675
35676 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35677 (grub_machine_init): Use grub_tsc_init() rather than
35678 installing an RTC-based handler via grub_install_get_time_ms().
35679
35680 * kern/i386/pit.c: New file.
35681 * include/grub/i386/pit.h: Likewise.
35682
35683 2008-08-05 Bean <bean123ch@gmail.com>
35684
35685 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35686
35687 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35688 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35689 (pxe_mod_SOURCES): New macro.
35690 (pxe_mod_CFLAGS): Likewise.
35691 (pxe_mod_LDFLAGS): Likewise.
35692 (pxecmd_mod_SOURCES): Likewise.
35693 (pxecmd_mod_CFLAGS): Likewise.
35694 (pxecmd_mod_LDFLAGS): Likewise.
35695
35696 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35697 (grub_pxe_call): Likewise.
35698
35699 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35700
35701 * commands/i386/pc/pxecmd.c: New file.
35702
35703 * fs/i386/pc/pxe.c: Likewise.
35704
35705 * include/grub/i386/pc/pxe.h: Likewise.
35706
35707 2008-08-05 Bean <bean123ch@gmail.com>
35708
35709 * util/console.c (grub_console_cur_color): New variable.
35710 (grub_console_standard_color): Likewise.
35711 (grub_console_normal_color): Likewise.
35712 (grub_console_highlight_color): Likewise.
35713 (color_map): Likewise.
35714 (use_color): Likewise.
35715 (NUM_COLORS): New macro.
35716 (grub_ncurses_setcolorstate): Handle color properly.
35717 (grub_ncurses_setcolor): Don't change color here, just remember the
35718 settings, color will be set in grub_ncurses_setcolorstate.
35719 (grub_ncurses_getcolor): New function.
35720 (grub_ncurses_init): Initialize color pairs.
35721 (grub_ncurses_term): New member grub_ncurses_getcolor.
35722
35723 2008-08-05 Colin D Bennett <colin@gibibit.com>
35724
35725 High resolution timer support. Implemented for x86 CPUs using TSC.
35726 Extracted generic grub_millisleep() so it's linked in only as needed.
35727 This requires a Pentium compatible CPU; if the RDTSC instruction is
35728 not supported, then it falls back on the generic grub_get_time_ms()
35729 implementation that uses the machine's RTC.
35730
35731 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35732 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35733 `kern/generic/millisleep.c'.
35734
35735 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35736 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35737
35738 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35739 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35740
35741 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35742
35743 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35744 `kern/generic/millisleep.c'.
35745
35746 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35747
35748 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35749
35750 * kern/generic/rtc_get_time_ms.c: New file.
35751
35752 * kern/generic/millisleep.c: New file.
35753
35754 * kern/misc.c: Don't include
35755 <kern/time.h> anymore.
35756 (grub_millisleep_generic): Removed.
35757
35758 * commands/sleep.c (grub_interruptible_millisleep): Uses
35759 grub_get_time_ms() instead of grub_get_rtc().
35760
35761 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35762 function.
35763 (grub_cpu_is_cpuid_supported): New inline function.
35764 (grub_cpu_is_tsc_supported): New inline function.
35765 (grub_tsc_init): New function prototype.
35766 (grub_tsc_get_time_ms): New function prototype.
35767
35768 * kern/i386/tsc.c (grub_get_time_ms): New file.
35769
35770 * include/grub/time.h: Include <grub/types.h.
35771 (grub_millisleep_generic): Removed.
35772 (grub_get_time_ms): New prototype.
35773 (grub_install_get_time_ms): New prototype.
35774 (grub_rtc_get_time_ms): New prototype.
35775
35776 * kern/time.c (grub_get_time_ms): New function.
35777 (grub_install_get_time_ms): New function.
35778
35779 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35780 <grub/time.h> anymore.
35781 (grub_millisleep): Removed.
35782 (grub_machine_init): Call grub_tsc_init.
35783
35784 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35785 get_time_ms() implementation.
35786
35787 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35788 (ieee1275_get_time_ms): New function.
35789 (grub_machine_init): Install get_time_ms() implementation.
35790
35791 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35792 (grub_machine_init): Call grub_tsc_init().
35793 (grub_millisleep): Removed.
35794
35795 * kern/ieee1275/init.c (grub_millisleep): Removed.
35796 (grub_machine_init): Install ieee1275_get_time_ms()
35797 implementation.
35798 (ieee1275_get_time_ms): New function.
35799 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35800 real work.
35801
35802 2008-08-05 Marco Gerards <marco@gnu.org>
35803
35804 * disk/ata.c: Include <grub/pci.h>.
35805 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35806 (grub_ata_initialize): Rewritten.
35807 (grub_ata_device_initialize): New function.
35808
35809 2008-08-04 Pavel Roskin <proski@gnu.org>
35810
35811 * kern/main.c: Include grub/mm.h.
35812
35813 2008-08-04 Robert Millan <rmh@aybabtu.com>
35814
35815 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35816 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35817 corruption problem).
35818
35819 2008-08-04 Robert Millan <rmh@aybabtu.com>
35820
35821 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35822 warnings introduced in my last commit.
35823
35824 2008-08-03 Robert Millan <rmh@aybabtu.com>
35825
35826 Make PCI available on all i386 architectures.
35827
35828 * include/grub/i386/pc/pci.h: Move from here ...
35829 * include/grub/i386/pci.h: ... to here.
35830
35831 * include/grub/i386/pc/pci.h: Remove.
35832 * include/grub/i386/efi/pci.h: Remove.
35833 * include/grub/x86_64/efi/pci.h: Remove.
35834
35835 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35836 `<grub/cpu/pci.h>'.
35837
35838 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35839 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35840 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35841
35842 * conf/i386-ieee1275.rmk: Likewise.
35843
35844 2008-08-03 Robert Millan <rmh@aybabtu.com>
35845
35846 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35847 (grub_console_setcursor): Make it possible to set cursor off.
35848
35849 2008-08-03 Robert Millan <rmh@aybabtu.com>
35850
35851 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35852 of modules instead of assuming which platform provides what.
35853 * util/update-grub.in: Likewise.
35854
35855 2008-08-03 Robert Millan <rmh@aybabtu.com>
35856
35857 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35858 instead of `grub_install_dos_part' to determine whether a drive needs
35859 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35860 because it can be overridden when loading GRUB via Multiboot).
35861
35862 2008-08-02 Robert Millan <rmh@aybabtu.com>
35863
35864 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35865
35866 2008-08-02 Robert Millan <rmh@aybabtu.com>
35867
35868 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35869 of informational grub_dprintf() calls.
35870
35871 2008-08-02 Robert Millan <rmh@aybabtu.com>
35872
35873 * disk/memdisk.c (memdisk_size): Don't initialize.
35874 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35875
35876 * include/grub/i386/pc/kernel.h
35877 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35878 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35879 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35880 (grub_arch_memdisk_size): Remove.
35881
35882 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35883 field (was only used to transfer a constant). Add `type' field to
35884 support multiple module types.
35885 (grub_module_iterate): New function.
35886
35887 * kern/device.c (grub_device_open): Do not hide error messages
35888 when grub_disk_open() fails. Use grub_print_error() instead.
35889
35890 * kern/i386/pc/init.c (grub_arch_modules_addr)
35891 (grub_arch_memdisk_size): Remove functions.
35892 (grub_arch_modules_addr): Return the module address in high memory
35893 (now that it isn't copied anymore).
35894
35895 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
35896 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
35897 decompression routine (grub_total_module_size already includes that
35898 now). Don't copy modules back to low memory.
35899
35900 * kern/main.c: Include `<grub/mm.h>'.
35901 (grub_load_modules): Split out (and use) ...
35902 (grub_module_iterate): ... this function, which iterates through
35903 module objects and runs a hook.
35904 Comment out grub_mm_init_region() call, as it would cause non-ELF
35905 modules to be overwritten.
35906
35907 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
35908 the memdisk image in its own region, make it part of the module list.
35909 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
35910 (main): Parse --memdisk|-m option, and pass user-provided path as
35911 parameter to generate_image().
35912 (add_segments): Pass `memdisk_path' down to load_modules().
35913 (load_modules): Embed memdisk image in module section when requested.
35914 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
35915 `header.type' instead of `header.offset'.
35916
35917 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
35918 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
35919 (memdisk_mod_LDFLAGS): New variables.
35920 * conf/i386-coreboot.rmk: Likewise.
35921 * conf/i386-ieee1275.rmk: Likewise.
35922
35923 2008-08-02 Robert Millan <rmh@aybabtu.com>
35924
35925 * loader/i386/pc/multiboot.c (playground, forward_relocator)
35926 (backward_relocator): New variables. Used to allocate and relocate
35927 the payload, respectively.
35928 (grub_multiboot_load_elf32): Load into heap instead of requested
35929 address, install the appropriate relocator code in each bound of
35930 the payload, and set the entry point such that
35931 grub_multiboot_real_boot() will jump to one of them.
35932
35933 * kern/i386/loader.S (grub_multiboot_payload_size)
35934 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35935 (grub_multiboot_payload_entry_offset): New variables.
35936 (grub_multiboot_real_boot): Set cpu context to what the relocator
35937 expects, and jump to the relocator instead of the payload.
35938
35939 * include/grub/i386/loader.h (grub_multiboot_payload_size)
35940 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35941 (grub_multiboot_payload_entry_offset): Export.
35942
35943 2008-08-01 Bean <bean123ch@gmail.com>
35944
35945 * normal/menu_entry.c (editor_getline): Don't return the original
35946 string as result, as it will be released by lexer once it has done
35947 using it.
35948
35949 2008-08-01 Robert Millan <rmh@aybabtu.com>
35950
35951 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
35952 within menuentries, not before them.
35953 util/grub.d/10_hurd.in: Likewise.
35954
35955 2008-08-01 Bean <bean123ch@gmail.com>
35956
35957 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
35958 (bufio_mod_SOURCES): New macro.
35959 (bufio_mod_CFLAGS): Likewise.
35960 (bufio_mod_LDFLAGS): Likewise.
35961
35962 * include/grub/bufio.h: New file.
35963
35964 * io/bufio.c: Likewise.
35965
35966 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
35967 (grub_video_reader_png): Use grub_buffile_open to open file.
35968
35969 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
35970 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
35971
35972 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
35973 (grub_video_reader_tga): Use grub_buffile_open to open file.
35974
35975 * font/manager.c: Include <grub/bufio.h>.
35976 (add_font): Use grub_buffile_open to open file.
35977
35978 2008-07-31 Robert Millan <rmh@aybabtu.com>
35979
35980 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
35981 ELF segments, use a macro for arbitrarily accessing any of them instead
35982 of preparing a pointer that allows access to one at a time.
35983 (grub_multiboot_load_elf64): Likewise.
35984
35985 2008-07-31 Bean <bean123ch@gmail.com>
35986
35987 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
35988 GRUB_KERNEL_MACHINE_DATA_END.
35989
35990 2008-07-30 Robert Millan <rmh@aybabtu.com>
35991
35992 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
35993 Increase from 0x50 to 0x60.
35994 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
35995 use UUIDs to identify the root drive for them. If that's not
35996 possible, abort.
35997 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
35998 check, for cross-disk installs.
35999
36000 2008-07-30 Robert Millan <rmh@aybabtu.com>
36001
36002 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36003 is non-empty, use it to set the `prefix' environment variable instead
36004 of the usual approach.
36005 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36006 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36007 environment variable instead of dummy make_install_device().
36008
36009 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36010 (start): Insert a data section, with `grub_prefix' variable.
36011 * kern/i386/linuxbios/startup.S: Likewise.
36012
36013 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36014 New variable reference.
36015 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36016 New macro. Defines offset of `grub_prefix' within startup.S (relative
36017 to `start').
36018 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36019 section within startup.S (relative to `start').
36020 * include/grub/i386/coreboot/kernel.h: Likewise.
36021
36022 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36023 Overwrite grub_prefix with its contents, at the beginning of the
36024 first segment.
36025 (main): Understand -p|--prefix.
36026
36027 2008-07-30 Robert Millan <rmh@aybabtu.com>
36028
36029 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36030
36031 2008-07-30 Robert Millan <rmh@aybabtu.com>
36032
36033 * term/i386/pc/vga_text.c (grub_console_cls): Use
36034 grub_console_gotoxy() to go back to beginning of the screen.
36035 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36036
36037 2008-07-29 Christian Franke <franke@computer.org>
36038
36039 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36040 Add conversion of emulated mount points on Cygwin.
36041
36042 2008-07-29 Christian Franke <franke@computer.org>
36043
36044 * util/update-grub.in: Add a check for admin
36045 group on Cygwin.
36046 Remove old `grub.cfg.new' before creation.
36047 Add `-f' to `mv' to handle the different filesystem
36048 semantics of Windows.
36049
36050 2008-07-29 Bean <bean123ch@gmail.com>
36051
36052 * normal/main.c (get_line): Fix buffer overflow bug.
36053
36054 2008-07-28 Robert Millan <rmh@aybabtu.com>
36055
36056 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36057 (struct grub_apple_header): New struct. Describes the layout of
36058 the partmap header.
36059 (apple_partition_map_iterate): Check the header magic as well as the
36060 partition magic (which was already being checked).
36061
36062 2008-07-28 Pavel Roskin <proski@gnu.org>
36063
36064 * genmk.rb: Add a warning to the beginning of the output that
36065 it's a generated file and should not be edited.
36066
36067 2008-07-28 Robert Millan <rmh@aybabtu.com>
36068
36069 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36070 with the same number are found, just use issue a warning with
36071 grub_dprintf(), as this error has been reported to be non-fatal.
36072
36073 2008-07-27 Robert Millan <rmh@aybabtu.com>
36074
36075 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36076 information.
36077
36078 2008-07-27 Bean <bean123ch@gmail.com>
36079
36080 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36081 (grub_fat_find_dir): Ignore case when comparing filename.
36082
36083 2008-07-27 Bean <bean123ch@gmail.com>
36084
36085 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36086 smallino, as it's more descriptive, and i8count can be confused with
36087 the other field count.
36088 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36089 inode type.
36090
36091 2008-07-27 Bean <bean123ch@gmail.com>
36092
36093 * commands/crc.c: New file.
36094
36095 * lib/crc.c: Likewise.
36096
36097 * include/grub/lib/crc.h: Likewise.
36098
36099 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36100
36101 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36102 (hexdump): Move this function to ...
36103
36104 * lib/hexdump.c: ... here.
36105
36106 * include/grub/hexdump.h: Renamed to ...
36107
36108 * include/grub/lib/hexdump.h: ... this.
36109
36110 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36111
36112 * util/grub-editenv.c: Likewise.
36113
36114 * include/envblk.h: Renamed to ...
36115
36116 * include/lib/envblk.h: ... this.
36117
36118 * util/envblk.c: Renamed to ...
36119
36120 * lib/envblk.c: ... this.
36121
36122 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36123 lib/hexdump.c.
36124 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36125 (pkglib_MODULES): Add crc.mod.
36126 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36127 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36128 (crc_mod_SOURCES): New macro.
36129 (crc_mod_CFLAGS): Likewise.
36130 (crc_mod_LDFLAGS): Likewise.
36131
36132 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36133
36134 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36135
36136 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36137
36138 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36139
36140 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36141
36142 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36143
36144 * commands/help.c: Include <grub/term.h>.
36145 (TERM_WIDTH): Removed. Updated all users.
36146
36147 2008-07-27 Pavel Roskin <proski@gnu.org>
36148
36149 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36150 spurious warnings about a comment within a comment.
36151
36152 2008-07-25 Robert Millan <rmh@aybabtu.com>
36153
36154 * util/getroot.c (find_root_device): Skip devices that match
36155 /dev/dm-[0-9]. This lets the real device be found for any type of
36156 abstraction (LVM, EVMS, RAID..).
36157 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36158 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36159 device is found first, find_root_device() will now skip it.
36160
36161 2008-07-24 Pavel Roskin <proski@gnu.org>
36162
36163 * include/grub/types.h: Use __builtin_bswap32() and
36164 __builtin_bswap64() with gcc 4.3 and newer.
36165
36166 2008-07-24 Christian Franke <franke@computer.org>
36167
36168 * util/i386/pc/grub-install.in: If `--debug' is specified,
36169 pass `--verbose' to grub-setup.
36170 Abort script if make_system_path_relative_to_its_root() fails.
36171
36172 2008-07-24 Bean <bean123ch@gmail.com>
36173
36174 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36175 variable `target_platform' should be `platform'.
36176
36177 2008-07-24 Bean <bean123ch@gmail.com>
36178
36179 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36180 (grub_png_init_fixed_block): New function.
36181 (grub_png_decode_image_data): Handle fixed huffman code compression.
36182
36183 2008-07-24 Bean <bean123ch@gmail.com>
36184
36185 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36186 (grub_pe2elf_SOURCES): New macro.
36187 (CLEANFILES): Add grub-pe2elf.
36188
36189 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36190 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36191 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36192 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36193 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36194 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36195 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36196 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36197 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36198 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36199 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36200 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36201 (GRUB_PE32_DT_FUNCTION): Likewise.
36202 (GRUB_PE32_REL_I386_DIR32): Likewise.
36203 (GRUB_PE32_REL_I386_REL32): Likewise.
36204 (grub_pe32_symbol): New structure.
36205 (grub_pe32_reloc): Likewise.
36206
36207 * util/grub-pe2elf.c: New file.
36208
36209 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36210 start symbol in non pc platform.
36211
36212 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36213
36214 The following patches are from Christian Franke.
36215
36216 * include/grub/dl.h: Remove .previous, gas supports this only
36217 for ELF format.
36218
36219 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36220 Remove .type, gas supports this only for ELF format.
36221
36222 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36223 nullbytes in symbol table. This fixes an infinite loop if table is
36224 zero filled.
36225
36226 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36227 TARGET_IMG_LDFLAGS and EXEEXT.
36228
36229 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36230 TARGET_IMG_LDFLAGS_AC.
36231 (grub_CHECK_STACK_ARG_PROBE): New function.
36232
36233 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36234
36235 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36236
36237 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36238 to set TARGET_IMG_LD* accordingly.
36239 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36240 Add call to grub_CHECK_STACK_ARG_PROBE.
36241 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36242
36243 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36244
36245 * genmk.rb: Add EXEEXT to CLEANFILES.
36246
36247 2008-07-23 Robert Millan <rmh@aybabtu.com>
36248
36249 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36250 define the codes for arrows and lines used for the menu).
36251 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36252 as well.
36253
36254 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36255 fonts, because the latter are too slow.
36256
36257 2008-07-21 Bean <bean123ch@gmail.com>
36258
36259 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36260 a20. Run keyboard test last, as it will cause macbook to halt.
36261
36262 2008-07-18 Pavel Roskin <proski@gnu.org>
36263
36264 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36265 load foreign architecture modules correctly anyway. Keep
36266 support for loading host architecture modules, whether we
36267 compile them or not.
36268
36269 2008-07-17 Pavel Roskin <proski@gnu.org>
36270
36271 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36272 change target_cpu. The compiler default can mismatch target_cpu
36273 in any case.
36274
36275 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36276 * kern/efi/efi.c: Likewise.
36277
36278 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36279 target compiler is functional.
36280 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36281 are set up.
36282
36283 * configure.ac: Default to efi platform for x86_64-apple. Allow
36284 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36285 adjustments from the rest, only do them if target is not
36286 explicitly given. Merge other adjustments with the final sanity
36287 check. Remove an extraneous check for supported CPU. Be
36288 specific which CPU and which platform is not supported.
36289
36290 * configure.ac: Default to pc platform for x86_64.
36291
36292 2008-07-17 Robert Millan <rmh@aybabtu.com>
36293
36294 Partial LinuxBIOS -> Coreboot rename.
36295
36296 * conf/i386-linuxbios.rmk: Renamed to ...
36297 * conf/i386-coreboot.rmk: ... this.
36298 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36299 * configure.ac: Accept "coreboot" as input platform (but maintain
36300 compatibility with "linuxbios").
36301 * include/grub/i386/linuxbios: Renamed to ...
36302 * include/grub/i386/coreboot: ... this.
36303
36304 2008-07-17 Bean <bean123ch@gmail.com>
36305
36306 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36307 (appleldr_mod_SOURCE): New variable.
36308 (appleldr_mod_CFLAGS): Likewise.
36309 (appleldr_mod_LDFLAGS): Likewise.
36310 (pci_mod_SOURCES): Likewise.
36311 (pci_mod_CFLAGS): Likewise.
36312 (pci_mod_LDFLAGS): Likewise.
36313 (lspci_mod_SOURCES): Likewise.
36314 (lspci_mod_CFLAGS): Likewise.
36315 (lspci_mod_LDFLAGS): Likewise.
36316
36317 * conf/x86_64-efi.rmk: New file.
36318
36319 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36320 macro.
36321 (grub_efidisk_write): Likewise.
36322
36323 * include/efi/api.h (efi_call_0): New macro.
36324 (efi_call_1): Likewise.
36325 (efi_call_2): Likewise.
36326 (efi_call_3): Likewise.
36327 (efi_call_4): Likewise.
36328 (efi_call_5): Likewise.
36329 (efi_call_6): Likewise.
36330
36331 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36332 grub_rescue_cmd_chainloader.
36333
36334 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36335 (grub_pe32_optional_header): Change some fields based on i386 or
36336 x86_64 platform.
36337 (GRUB_PE32_PE32_MAGIC): Likewise.
36338
36339 * include/grub/efi/uga_draw.h: New file.
36340
36341 * include/grub/elf.h (STN_ABS): New constant.
36342 (R_X86_64_NONE): Relocation constant for x86_64.
36343 (R_X86_64_64): Likewise.
36344 (R_X86_64_PC32): Likewise.
36345 (R_X86_64_GOT32): Likewise.
36346 (R_X86_64_PLT32): Likewise.
36347 (R_X86_64_COPY): Likewise.
36348 (R_X86_64_GLOB_DAT): Likewise.
36349 (R_X86_64_JUMP_SLOT): Likewise.
36350 (R_X86_64_RELATIVE): Likewise.
36351 (R_X86_64_GOTPCREL): Likewise.
36352 (R_X86_64_32): Likewise.
36353 (R_X86_64_32S): Likewise.
36354 (R_X86_64_16): Likewise.
36355 (R_X86_64_PC16): Likewise.
36356 (R_X86_64_8): Likewise.
36357 (R_X86_64_PC8): Likewise.
36358
36359 * include/grub/i386/efi/pci.h: New file.
36360
36361 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36362 Change it value based on platform.
36363 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36364 (GRUB_E820_RAM): Likewise.
36365 (GRUB_E820_RESERVED): Likewise.
36366 (GRUB_E820_ACPI): Likewise.
36367 (GRUB_E820_NVS): Likewise.
36368 (GRUB_E820_EXEC_CODE): Likewise.
36369 (GRUB_E820_MAX_ENTRY): Likewise.
36370 (grub_e820_mmap): New structure.
36371 (linux_kernel_header): Change the efi field according to different
36372 kernel version, also field from linux_kernel_header.
36373
36374 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36375
36376 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36377 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36378 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36379 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36380 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36381 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36382 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36383 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36384 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36385 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36386
36387 * include/grub/x86_64/efi/kernel.h: New file.
36388
36389 * include/grub/x86_64/efi/loader.h: Likewise.
36390
36391 * include/grub/x86_64/efi/machine.h: Likewise.
36392
36393 * include/grub/x86_64/efi/pci.h: Likewise.
36394
36395 * include/grub/x86_64/efi/time.h: Likewise.
36396
36397 * include/grub/x86_64/linux.h: Likewise.
36398
36399 * include/grub/x86_64/setjmp.h: Likewise.
36400
36401 * include/grub/x86_64/time.h: Likewise.
36402
36403 * include/grub/x86_64/types.h: Likewise.
36404
36405 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36406 GRUB_TARGET_SIZEOF_VOID_P.
36407
36408 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36409 (grub_efi_locate_handle): Likewise.
36410 (grub_efi_open_protocol): Likewise.
36411 (grub_efi_set_text_mode): Likewise.
36412 (grub_efi_stall): Likewise.
36413 (grub_exit): Likewise.
36414 (grub_reboot): Likewise.
36415 (grub_halt): Likewise.
36416 (grub_efi_exit_boot_services): Likewise.
36417 (grub_get_rtc): Likewise.
36418
36419 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36420 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36421 (grub_efi_allocate_pages): Wrap efi calls.
36422 (grub_efi_free_pages): Wrap efi calls.
36423 (grub_efi_get_memory_map): Wrap efi calls.
36424
36425 * kern/x86_64/dl.c: New file.
36426
36427 * kern/x86_64/efi/callwrap.S: Likewise.
36428
36429 * kern/x86_64/efi/startup.S: Likewise.
36430
36431 * loader/efi/appleloader.c: Likewise.
36432
36433 * loader/efi/chainloader.c (cmdline): New variable.
36434 (grub_chainloader_unload): Wrap efi calls.
36435 (grub_chainloader_boot): Likewise.
36436 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36437 command line.
36438
36439 * loader/efi/chainloader_normal.c (chainloader_command):
36440 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36441 command line.
36442
36443 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36444 method.
36445 (grub_e820_add_region): New function.
36446 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36447 booting.
36448 (grub_find_video_card): New function.
36449 (grub_linux_setup_video): New function.
36450 (grub_rescue_cmd_linux): Probe for video information.
36451
36452 * normal/x86_64/setjmp.S: New file.
36453
36454 * term/efi/console.c (map_char): New function.
36455 (grub_console_putchar): Map unicode char.
36456 (grub_console_checkkey): Wrap efi calls.
36457 (grub_console_getkey): Likewise.
36458 (grub_console_getwh): Likewise.
36459 (grub_console_gotoxy): Likewise.
36460 (grub_console_cls): Likewise.
36461 (grub_console_setcolorstate): Likewise.
36462 (grub_console_setcursor): Likewise.
36463
36464 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36465
36466 2008-07-16 Pavel Roskin <proski@gnu.org>
36467
36468 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36469 format strings.
36470
36471 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36472 pointer, not an integer. This fixes a warning and prevents
36473 precision loss on 64-bit systems.
36474 (relocate_addresses): Remove unneeded cast.
36475
36476 2008-07-15 Pavel Roskin <proski@gnu.org>
36477
36478 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36479
36480 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36481
36482 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36483 Fix comparison between signed and unsigned.
36484
36485 * include/grub/i386/ieee1275/console.h: Declare
36486 grub_console_init() and grub_console_fini().
36487
36488 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36489 It's empty and unused.
36490
36491 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36492 beginning to avoid warnings with some compilers.
36493
36494 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36495 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36496
36497 2008-07-14 Pavel Roskin <proski@gnu.org>
36498
36499 * kern/env.c (grub_register_variable_hook): Don't copy empty
36500 string, it leaks memory. Pass "" to grub_env_set(), it should
36501 handle constant strings.
36502
36503 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36504 * commands/cmp.c (grub_cmd_cmp): Likewise.
36505 * kern/dl.c (grub_dl_flush_cache): Likewise.
36506 (grub_dl_load_core): Likewise.
36507 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36508 (grub_elf64_load_phdrs): Likewise.
36509
36510 2008-07-13 Pavel Roskin <proski@gnu.org>
36511
36512 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36513 between signed and unsigned.
36514 (LzmaEnc_Finish): Fix warning about an unused parameter.
36515
36516 2008-07-13 Bean <bean123ch@gmail.com>
36517
36518 * Makefile.in (enable_lzo): New rule.
36519
36520 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36521
36522 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36523
36524 * boot/i386/pc/lnxboot.S: #include <config.h>.
36525
36526 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36527 its value according to the compression algorithm used, lzo or lzma.
36528
36529 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36530 compression algorithm according to configure macro.
36531
36532 * kern/i386/pc/startup.S (codestart): Likewise.
36533
36534 * kern/i386/pc/lzma_decode.S: New file.
36535
36536 * include/grub/lib/LzFind.h: Likewise.
36537
36538 * include/grub/lib/LzHash.h: Likewise.
36539
36540 * include/grub/lib/LzmaDec.h: Likewise.
36541
36542 * include/grub/lib/LzmaEnc.h: Likewise.
36543
36544 * include/grub/lib/LzmaTypes.h: Likewise.
36545
36546 * lib/LzFind.c: Likewise.
36547
36548 * lib/LzmaDec.c: Likewise.
36549
36550 * lib/LzmaEnc.c: Likewise.
36551
36552 2008-07-13 Bean <bean123ch@gmail.com>
36553
36554 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36555 (grub_ext4_extent_header): New structure.
36556 (grub_ext4_extent): Likewise.
36557 (grub_ext4_extent_idx): Likewise.
36558 (grub_ext4_find_leaf): New function.
36559 (grub_ext2_read_block): Handle extents.
36560
36561 2008-07-12 Robert Millan <rmh@aybabtu.com>
36562
36563 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36564
36565 2008-07-11 Robert Millan <rmh@aybabtu.com>
36566
36567 * util/grub.d/40_custom.in: New file. Example on how to add custom
36568 entries to /etc/grub.d.
36569 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36570 40_custom (implicitly, by merging all the grub.d rules).
36571
36572 2008-07-11 Pavel Roskin <proski@gnu.org>
36573
36574 * commands/read.c (grub_getline): Fix invalid memory access.
36575 Don't add newline to the variable value.
36576
36577 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36578 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36579 (serial_hw_get_port): Check validity of the port number.
36580 (grub_cmd_serial): Check return value of serial_hw_get_port().
36581
36582 2008-07-07 Pavel Roskin <proski@gnu.org>
36583
36584 * boot/i386/pc/diskboot.S (notification_string): Replace
36585 "Loading kernel" with just "loading". This is shorter, less
36586 confusing and saves a few bytes for possible future changes.
36587
36588 2008-07-05 Pavel Roskin <proski@gnu.org>
36589
36590 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36591 size for ATAPI devices, they are undefined. Output sector
36592 number in decimal form.
36593
36594 * disk/ata.c: Use named constants for status bits.
36595
36596 2008-07-04 Pavel Roskin <proski@gnu.org>
36597
36598 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36599 grub_addr_t before casting it to the void pointer to fix a
36600 warning. Non-addressable regions are discarded earlier.
36601 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36602 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36603 (check_signature): Don't shadow table_header.
36604 (grub_linuxbios_table_iterate): Cast numeric constants to
36605 grub_linuxbios_table_header_t.
36606 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36607 grub_stop().
36608
36609 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36610 prevent warnings.
36611
36612 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36613 pointer, which can cause warnings. Support 64-bit addresses.
36614
36615 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36616 of sizeof(long). This fixes PowerPC image generation on x86_64.
36617
36618 2008-07-04 Robert Millan <rmh@aybabtu.com>
36619
36620 This fixes a performance issue when pc & gpt partmap iterators
36621 didn't abort iteration even after our hook found what it was
36622 looking for (often causing expensive probes of non-existent drives).
36623
36624 Some callers relied on previous buggy behaviour, since they would
36625 raise an error when their own hooks caused early abortion of its
36626 iteration.
36627
36628 * kern/device.c (grub_device_open): Improve error message.
36629 * disk/lvm.c (grub_lvm_open): Likewise.
36630 * disk/raid.c (grub_raid_open): Likewise.
36631
36632 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36633 when hook requests it, independently of grub_errno.
36634 (pc_partition_map_probe): Do not fail when find_func() caused
36635 early abortion of pc_partition_map_iterate().
36636
36637 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36638 when hook requests it, independently of grub_errno.
36639 (gpt_partition_map_probe): Do not fail when find_func() caused
36640 early abortion of gpt_partition_map_iterate().
36641
36642 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36643 when hook requests it, independently of grub_errno. Do not fail when
36644 part_map_iterate_hook() caused early abortion of p->iterate().
36645
36646 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36647 when grub_partition_iterate() returned with non-zero.
36648
36649 2008-07-03 Pavel Roskin <proski@gnu.org>
36650
36651 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36652 like we do in grub_ata_pio_read().
36653 (grub_ata_readwrite): Always write individual sectors. Fix the
36654 sector count for the remainder.
36655 (grub_ata_write): Enable writing to ATA devices. Correctly
36656 report error for ATAPI devices.
36657
36658 2008-07-02 Pavel Roskin <proski@gnu.org>
36659
36660 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36661 warning.
36662
36663 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36664 for every read sector, we already increment it for the whole
36665 batch. This fixes reading more than 256 sectors at once.
36666
36667 * util/grub-editenv.c (cmd_info): Cast argument to long
36668 explicitly. ptrdiff_t reduces to int on i386.
36669
36670 * util/grub-editenv.c (main): Be specific which parameter is
36671 missing.
36672
36673 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36674 (memdisk): Make memdisk_orig_addr a pointer.
36675
36676 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36677 for file offsets, use grub_off_t instead. Fix printf format
36678 warnings.
36679
36680 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36681 there. Real unexpected warnings should not drown in the noise
36682 about known problems.
36683
36684 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36685 grub_disk_addr_t for memory addresses.
36686
36687 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36688 explicitly to fix a warning.
36689
36690 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36691
36692 * Makefile.in (MODULE_LDFLAGS): New variable.
36693 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36694 the linker accepts --build-id=none.
36695 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36696 MODULE_LDFLAGS.
36697 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36698
36699 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36700 those in Linux XFS code. Provide a way to access 64-bit parent
36701 inode.
36702 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36703 the end of struct grub_xfs_dir_header.
36704
36705 2008-07-02 Bean <bean123ch@gmail.com>
36706
36707 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36708 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36709 and GRUB_IEEE1275_FLAG_NO_ANSI.
36710
36711 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36712 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36713 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36714
36715 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36716 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36717
36718 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36719 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36720
36721 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36722 esc sequence on non ANSI terminal.
36723 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36724
36725 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36726 beginning of file.
36727
36728 2008-07-02 Bean <bean123ch@gmail.com>
36729
36730 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36731 (grub_editenv_SOURCES): New variable.
36732 (pkglib_MODULES): Add loadenv.mod.
36733 (loadenv_mod_SOURCES): New variable.
36734 (loadenv_mod_CFLAGS): Likewise.
36735 (loadenv_mod_LDFLAGS): Likewise.
36736
36737 * include/grub/envblk.h: New file.
36738
36739 * util/envblk.c: New file.
36740
36741 * util/grub-editenv.c: New file.
36742
36743 * commands/loadenv.c: New file.
36744
36745 2008-07-01 Pavel Roskin <proski@gnu.org>
36746
36747 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36748 not unsigned char. This fixes warnings and is consistent with
36749 other tags.
36750
36751 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36752
36753 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36754
36755 * term/tparm.c (analyze): Always set *popcount.
36756
36757 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36758 cast to fix a warning.
36759
36760 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36761 cast to suppress a warning.
36762
36763 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36764 grub_fshelp_read_file() expects.
36765
36766 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36767 write uuid as a 32-bit value in CPU byte order, so declare and
36768 use it as such.
36769
36770 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36771 long if the format specifier expects it.
36772 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36773 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36774 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36775 long to fix a warning.
36776 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36777 grub_dprintf() arguments to fix warnings.
36778
36779 2008-06-30 Pavel Roskin <proski@gnu.org>
36780
36781 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36782 install_bsd_part immediately before core.img is embedded or
36783 modified on disk. This fixes core.img verification if core.img
36784 cannot be embedded.
36785
36786 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36787 core_path to calculate the blocklist.
36788 Patch from Javier Martín <lordhabbit@gmail.com>
36789
36790 2008-06-29 Robert Millan <rmh@aybabtu.com>
36791
36792 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36793 block to disk block.
36794 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36795 Patch from Niels Böhm <bitbucket@arcor.de>
36796
36797 2008-06-29 Robert Millan <rmh@aybabtu.com>
36798
36799 * util/update-grub_lib.in (font_path): Search for fonts in
36800 /boot/grub first, which is more likely to be readable (we aren't
36801 deciding where fonts live, just looking for them).
36802
36803 2008-06-26 Pavel Roskin <proski@gnu.org>
36804
36805 * util/biosdisk.c (read_device_map): Don't leave dead map
36806 entries for devices failing stat() check.
36807
36808 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36809 core_path_dev for the core.img path on the target device.
36810
36811 2008-06-26 Robert Millan <rmh@aybabtu.com>
36812
36813 * disk/fs_uuid.c: New file.
36814 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36815 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36816 (fs_uuid_mod_LDFLAGS): New variables.
36817 * include/grub/disk.h (grub_disk_dev_id): Add
36818 `GRUB_DISK_DEVICE_UUID_ID'.
36819 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36820 implement iterate().
36821
36822 2008-06-26 Robert Millan <rmh@aybabtu.com>
36823
36824 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36825 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36826 Linux image includes no initrd.
36827
36828 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36829
36830 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36831 call to resolve the core image location that effectively appended the
36832 name twice.
36833
36834 2008-06-21 Robert Millan <rmh@aybabtu.com>
36835
36836 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36837 call from here ...
36838
36839 * util/grub.d/10_hurd.in: ... to here ...
36840 * util/grub.d/10_linux.in: ... and here.
36841
36842 2008-06-19 Robert Millan <rmh@aybabtu.com>
36843
36844 * kern/main.c (grub_main): Export `prefix' variable immediately
36845 after it has been set by grub_machine_set_prefix().
36846
36847 2008-06-19 Robert Millan <rmh@aybabtu.com>
36848
36849 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36850 search result when not saving to variable, not the other way around.
36851 When saving to variable, abort iteration as soon as a match is found.
36852
36853 2008-06-19 Robert Millan <rmh@aybabtu.com>
36854
36855 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36856 check for partition that provides /boot/grub. Its logic is flawed,
36857 as it prevents prepare_grub_to_access_device() from being called
36858 multiple times.
36859
36860 2008-06-19 Robert Millan <rmh@aybabtu.com>
36861
36862 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36863 "insmod" command directly when abstraction modules are needed,
36864 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36865 since it had already been processed).
36866
36867 2008-06-19 Pavel Roskin <proski@gnu.org>
36868
36869 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36870 changed. This is needed in case GRUB_LIBDIR changes.
36871 * conf/i386-ieee1275.rmk: Likewise.
36872 * conf/i386-linuxbios.rmk: Likewise.
36873 * conf/i386-pc.rmk: Likewise.
36874 * conf/powerpc-ieee1275.rmk: Likewise.
36875
36876 2008-06-18 Pavel Roskin <proski@gnu.org>
36877
36878 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36879 kernel_elf_symlist.c to symlist.c for consistency with other
36880 architectures. Update all users.
36881 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36882
36883 2008-06-18 Robert Millan <rmh@aybabtu.com>
36884
36885 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36886 it in prefix.
36887
36888 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
36889 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
36890 a RAID device, run setup() for all members independently on whether
36891 LVM abstraction is being used.
36892 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
36893 If grub-mkimage has set `*install_dos_part == -2', don't override this
36894 value.
36895 Perform *install_dos_part adjustments independently on whether
36896 we're embedding or not.
36897 Clarify error message when image is too big for embedding.
36898 Remove duplicate *install_dos_part stanza.
36899
36900 2008-06-17 Robert Millan <rmh@aybabtu.com>
36901
36902 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
36903 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
36904 variables.
36905 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
36906 values in grub_ofconsole_normal_color and
36907 grub_ofconsole_highlight_color (they're not directly related to
36908 background and foreground).
36909 (grub_ofconsole_setcolorstate): Extract background and foreground
36910 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
36911
36912 2008-06-17 Robert Millan <rmh@aybabtu.com>
36913
36914 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
36915 /boot/grub for the check in last commit, not /boot (they could be
36916 different partitions).
36917
36918 2008-06-16 Robert Millan <rmh@aybabtu.com>
36919
36920 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
36921 asked to setup access for the same partition that provides /boot,
36922 don't bother using UUIDs since our root already has the value we
36923 want.
36924
36925 2008-06-16 Robert Millan <rmh@aybabtu.com>
36926
36927 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
36928 I2O devices.
36929 Patch from Sven Mueller <sven@debian.org>.
36930
36931 2008-06-16 Robert Millan <rmh@aybabtu.com>
36932
36933 * util/update-grub.in: Check for $EUID instead of $UID.
36934 Reported by Vincent Zweije.
36935
36936 2008-06-16 Bean <bean123ch@gmail.com>
36937
36938 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
36939 (grub_ext2_read_block): Likewise.
36940 (grub_ext2_read_inode): Likewise.
36941 (grub_ext2_mount): Likewise.
36942 (grub_ext2_close): Likewise.
36943 (grub_ext3_get_journal): Removed.
36944
36945 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
36946 (grub_reiserfs_read_symlink): Likewise.
36947 (grub_reiserfs_mount): Likewise.
36948 (grub_reiserfs_open): Likewise.
36949 (grub_reiserfs_read): Likewise.
36950 (grub_reiserfs_close): Likewise.
36951 (grub_reiserfs_get_journal): Removed.
36952
36953 * fs/fshelp.c (grub_fshelp_read): Removed.
36954 (grub_fshelp_map_block): Likewise.
36955
36956 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
36957 (grub_fshelp_journal): Likewise.
36958 (grub_fshelp_read): Likewise.
36959 (grub_fshelp_map_block): Likewise.
36960
36961 2008-06-16 Pavel Roskin <proski@gnu.org>
36962
36963 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
36964 floating point anymore.
36965 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
36966
36967 2008-06-15 Pavel Roskin <proski@gnu.org>
36968
36969 * commands/ls.c (grub_ls_list_files): Use integer calculations
36970 for human readable format, avoid floating point use.
36971 * kern/misc.c (grub_ftoa): Remove.
36972 (grub_vsprintf): Remove floating point support.
36973
36974 2008-06-15 Robert Millan <rmh@aybabtu.com>
36975
36976 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
36977 devices.
36978 Reported by Max Vozeler.
36979
36980 2008-06-15 Robert Millan <rmh@aybabtu.com>
36981
36982 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
36983 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
36984 skipped later.
36985 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
36986 the beginning of the prefix.
36987
36988 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
36989 It is assumed that if we have a memdisk, grub-mkimage has set
36990 grub_prefix to include the "(memdisk)" drive in it.
36991
36992 2008-06-15 Robert Millan <rmh@aybabtu.com>
36993
36994 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
36995 Initialize keyboard controller after registering the terminal, so that
36996 grub_printf() can be called from grub_keyboard_controller_init().
36997
36998 2008-06-15 Robert Millan <rmh@aybabtu.com>
36999
37000 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37001 extent-btree which is written as big endian on disk.
37002 Reported by Alain Greppin <al@chilibi.org>.
37003
37004 2008-06-14 Robert Millan <rmh@aybabtu.com>
37005
37006 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37007 * util/i386/pc/grub-install.in (modules): Likewise.
37008
37009 2008-06-13 Pavel Roskin <proski@gnu.org>
37010
37011 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37012
37013 2008-06-13 Bean <bean123ch@gmail.com>
37014
37015 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37016
37017 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37018
37019 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37020 to indicate sparse block.
37021
37022 2008-06-12 Pavel Roskin <proski@gnu.org>
37023
37024 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37025 number, grub_fshelp_read() does it for us.
37026
37027 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37028 linear disk read with journal translation.
37029 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37030 * include/grub/fshelp.h: Declare grub_fshelp_read().
37031
37032 2008-06-09 Pavel Roskin <proski@gnu.org>
37033
37034 * fs/minix.c (grub_minix_mount): Handle error reading
37035 superblock.
37036
37037 2008-06-08 Robert Millan <rmh@aybabtu.com>
37038
37039 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37040 don't append the RAID prefix afterwards.
37041 Reported by Clint Adams.
37042
37043 2008-06-08 Robert Millan <rmh@aybabtu.com>
37044
37045 Based on description from Pavel:
37046 * kern/disk.c (grub_disk_check_range): Rename to ...
37047 (grub_disk_adjust_range): ... this. Add a comment explaining the
37048 tasks performed by this function.
37049
37050 2008-06-08 Robert Millan <rmh@aybabtu.com>
37051
37052 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37053 `num_serial' (for consistency with other variables).
37054 (struct grub_ntfs_data): Add `uuid' member.
37055 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37056 (grub_ntfs_uuid): New function.
37057 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37058
37059 2008-06-07 Pavel Roskin <proski@gnu.org>
37060
37061 * util/biosdisk.c (open_device): Revert last change to the
37062 function, it broke installation. The sector needs to be
37063 different dependent on which device is opened.
37064
37065 2008-06-06 Robert Millan <rmh@aybabtu.com>
37066
37067 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37068 rest of GRUB, and breakage doesn't happen if its value were modified.
37069
37070 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37071 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37072 a constant (same value).
37073 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37074 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37075
37076 2008-06-06 Robert Millan <rmh@aybabtu.com>
37077
37078 * util/biosdisk.c (open_device): Do not modify sector offset when
37079 accessing a partition. kern/disk.c already handles this for us.
37080
37081 2008-06-06 Robert Millan <rmh@aybabtu.com>
37082
37083 * util/grub-emu.c (grub_machine_init): Move code in this function from
37084 here ...
37085 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37086 segfault in case grub_printf() is called).
37087
37088 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37089 grub_probe. Update all users not to explicitly add it again.
37090 (grub_device): New variable; contains corresponding device for grubdir.
37091 (fs_module, partmap_module, devabstraction_module): Pass
37092 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37093 every time.
37094
37095 2008-06-05 Robert Millan <rmh@aybabtu.com>
37096
37097 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37098 is found, print it (same layout as with labels).
37099
37100 2008-06-04 Robert Millan <rmh@aybabtu.com>
37101
37102 * util/biosdisk.c (get_drive): Rename to ...
37103 (find_grub_drive): ... this. Update all users.
37104
37105 (get_os_disk): Rename to ...
37106 (convert_system_partition_to_system_disk): ... this. Update all users.
37107
37108 (find_drive): Rename to ...
37109 (find_system_device): ... this. Update all users.
37110
37111 2008-06-04 Robert Millan <rmh@aybabtu.com>
37112
37113 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37114 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37115 (make_device_map): Likewise.
37116
37117 2008-06-01 Robert Millan <rmh@aybabtu.com>
37118
37119 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37120 before dereferencing it.
37121
37122 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37123 union with fat12/fat16-specific ones. Add some new fields, including
37124 `num_serial' for both versions.
37125 (struct grub_fat_data): Add `uuid' member.
37126 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37127 names. Initialize `data->uuid' using `num_serial'.
37128 (grub_fat_uuid): New function.
37129 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37130
37131 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37132 (grub_reiserfs_uuid): New function.
37133 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37134 member.
37135
37136 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37137 (grub_xfs_uuid): New function.
37138 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37139
37140 2008-06-01 Robert Millan <rmh@aybabtu.com>
37141
37142 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37143 code that is backward compatible with pre-uuid search command.
37144
37145 2008-05-31 Robert Millan <rmh@aybabtu.com>
37146
37147 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37148 floppies after everything else, to ensure floppy drive isn't accessed
37149 unnecessarily (patch from Bean).
37150
37151 2008-05-31 Robert Millan <rmh@aybabtu.com>
37152
37153 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37154 not print device names when we were asked to set a variable.
37155
37156 2008-05-31 Robert Millan <rmh@aybabtu.com>
37157
37158 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37159 using "cursor-on" and "cursor-off" commands (understood at least by
37160 the Open Firmware flavour on OLPC).
37161
37162 2008-05-31 Michael Gorven <michael@gorven.za.net>
37163
37164 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37165 on and off sequences.
37166
37167 2008-05-31 Robert Millan <rmh@aybabtu.com>
37168
37169 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37170 * util/update-grub.in: Likewise.
37171
37172 2008-05-30 Pavel Roskin <proski@gnu.org>
37173
37174 * util/biosdisk.c (linux_find_partition): Simplify logic and
37175 make the code more universal. Keep special processing for
37176 devfs, but use a simple rule for all other devices. If the
37177 device ends with a number, append 'p' and the partition number.
37178 Otherwise, append only the partition number.
37179
37180 2008-05-30 Robert Millan <rmh@aybabtu.com>
37181
37182 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37183 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37184 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37185 the `root' parameter to Linux.
37186
37187 2008-05-30 Robert Millan <rmh@aybabtu.com>
37188
37189 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37190 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37191 --fs_uuid with --fs-uuid.
37192 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37193 all filesystems support them).
37194
37195 2008-05-30 Robert Millan <rmh@aybabtu.com>
37196
37197 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37198 grub_printf() flags, since we're printing in units of 2 bytes.
37199
37200 2008-05-30 Robert Millan <rmh@aybabtu.com>
37201
37202 * util/grub.d/00_header.in: Remove obsolete comment referencing
37203 convert_system_path_to_grub_path().
37204 * util/update-grub.in: Likewise.
37205 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37206 (convert_system_path_to_grub_path): Add a warning message explaining
37207 that this function is deprecated. Rely on is_path_readable_by_grub()
37208 for the readability checks.
37209 (font_path): Use is_path_readable_by_grub() for the readability
37210 check rather than convert_system_path_to_grub_path().
37211
37212 2008-05-30 Robert Millan <rmh@aybabtu.com>
37213
37214 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37215 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37216 converting it first.
37217 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37218 grub.cfg for access to font file, and afterwards call it again to set
37219 the root device.
37220
37221 2008-05-30 Robert Millan <rmh@aybabtu.com>
37222
37223 * commands/search.c (options): Add --fs_uuid option.
37224 (search_fs_uuid): New function.
37225 (grub_cmd_search): Fix --set argument passing.
37226 Use search_fs_uuid() when requested via --fs_uuid.
37227 (grub_search_init): Update help message.
37228 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37229 and redeclare it as an array of 16-bit words.
37230 (grub_ext2_uuid): New function.
37231 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37232 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37233 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37234 (GRUB_DEVICE_BOOT_UUID): New variables.
37235 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37236 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37237 whenever possible.
37238 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37239 just assume `root' variable has the right value.
37240 * util/grub.d/10_linux.in: Likewise.
37241 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37242 via PRINT_FS_UUID.
37243 (main): Recognise `-t fs_uuid' argument.
37244
37245 2008-05-30 Robert Millan <rmh@aybabtu.com>
37246
37247 * util/biosdisk.c (map): Redefine structure to hold information
37248 about GRUB drive name.
37249 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37250 drive names.
37251 (call_hook): Remove.
37252 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37253 member. Assume drive has partitions.
37254 (grub_util_biosdisk_open): Access device names via `.device' struct
37255 member.
37256 (open_device): Likewise.
37257 (find_drive): Likewise.
37258 (read_device_map): Adjust map[] usage to match the new struct
37259 definition. Don't check for duplicates (still possible, but not cheap
37260 anymore).
37261 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37262 (make_device_name): Remove assumption of BIOS-like drive names.
37263
37264 2008-05-30 Pavel Roskin <proski@gnu.org>
37265
37266 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37267 compiling execute.c doesn't need grub_script.tab.h anymore.
37268 (normal/command.c_DEPENDENCIES): Likewise.
37269 (normal/function.c_DEPENDENCIES): Likewise.
37270 * conf/i386-ieee1275.rmk: Likewise.
37271 * conf/i386-linuxbios.rmk: Likewise.
37272 * conf/i386-pc.rmk: Likewise.
37273 * conf/powerpc-ieee1275.rmk: Likewise.
37274 * conf/sparc64-ieee1275.rmk: Likewise.
37275
37276 2008-05-29 Pavel Roskin <proski@gnu.org>
37277
37278 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37279 when scanning metadata for volume group name.
37280
37281 * include/grub/script.h: Don't include grub_script.tab.h. It's
37282 a generated file, which may only be included from the files with
37283 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37284 use union YYSTYPE, as the later allows forward declaration.
37285 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37286
37287 2008-05-29 Robert Millan <rmh@aybabtu.com>
37288
37289 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37290 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37291 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37292 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37293 scan codes.
37294
37295 2008-05-29 Robert Millan <rmh@aybabtu.com>
37296
37297 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37298 control key combinations.
37299
37300 2008-05-29 Robert Millan <rmh@aybabtu.com>
37301
37302 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37303 * util/ieee1275/grub-install.in: ... to here.
37304 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37305 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37306 (grub_install_SOURCES): Likewise.
37307
37308 2008-05-29 Robert Millan <rmh@aybabtu.com>
37309
37310 * fs/affs.c: Update copyright year.
37311 * fs/ext2.c: Likewise.
37312 * fs/fshelp.c: Likewise.
37313 * fs/hfsplus.c: Likewise.
37314 * fs/ntfs.c: Likewise.
37315 * fs/xfs.c: Likewise.
37316 * include/grub/fshelp.h: Likewise.
37317 * util/grub-mkdevicemap.c: Likewise.
37318
37319 2008-05-28 Robert Millan <rmh@aybabtu.com>
37320
37321 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37322 might need to be fatfs to support some firmware implementations
37323 (e.g. OFW or EFI).
37324
37325 2008-05-28 Robert Millan <rmh@aybabtu.com>
37326
37327 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37328 devices.
37329 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37330 (make_device_map): Likewise.
37331
37332 2008-05-20 Bean <bean123ch@gmail.com>
37333
37334 * fs/fshelp.c (grub_fshelp_map_block): New function.
37335 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37336 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37337
37338 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37339 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37340 (grub_fshelp_journal): New structure.
37341 (grub_fshelp_map_block): New function prototype.
37342 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37343 (grub_fshelp_map_block): Likewise.
37344
37345 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37346 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37347 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37348 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37349 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37350 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37351 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37352 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37353 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37354 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37355 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37356 (grub_ext2_sblock): New members for journal support.
37357 (grub_ext3_journal_header): New structure.
37358 (grub_ext3_journal_revoke_header): Likewise.
37359 (grub_ext3_journal_block_tag): Likewise.
37360 (grub_ext3_journal_sblock): Likewise.
37361 (grub_fshelp_node): New members logfile and journal.
37362 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37363 grub_fshelp_map_block to get real block number.
37364 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37365 number.
37366 (grub_ext2_read_inode): Likewise.
37367 (grub_ext3_get_journal): New function.
37368 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37369 (grub_ext2_close): Release memory used by journal.
37370
37371 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37372 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37373 (grub_reiserfs_transaction_header): Renamed to
37374 grub_reiserfs_description_block, replace field data with real_blocks.
37375 (grub_reiserfs_commit_block): New structure.
37376 (grub_reiserfs_data): New member journal.
37377 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37378 number.
37379 (grub_reiserfs_read_symlink): Likewise.
37380 (grub_reiserfs_iterate_dir): Likewise.
37381 (grub_reiserfs_open): Likewise.
37382 (grub_reiserfs_read): Likewise.
37383 (grub_reiserfs_get_journal): New function.
37384 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37385 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37386 using grub_reiserfs_get_journal.
37387 (grub_reiserfs_close): Release memory used by journal.
37388
37389 * fs/affs.c (grub_affs_read_block): Change block type to
37390 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37391
37392 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37393
37394 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37395
37396 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37397
37398 * fs/udf.c (grub_udf_read_block): Change block type to
37399 grub_disk_addr_t. Use type cast to avoid warning.
37400
37401 * fs/xfs.c (grub_xfs_read_block): Likewise.
37402
37403 2008-05-16 Christian Franke <franke@computer.org>
37404
37405 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37406 to ensure that break with ESC will always work.
37407 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37408 Remove ESC from keyboard queue.
37409
37410 2008-05-16 Christian Franke <franke@computer.org>
37411
37412 * util/biosdisk.c: [__CYGWIN__] Add includes.
37413 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37414 (get_os_disk): Move variable declarations to OS specific
37415 parts to avoid warning.
37416 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37417 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37418 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37419 Cygwin.
37420 * util/getroot.c: [__CYGWIN__] Add includes.
37421 (strip_extra_slashes): Fix "/" case.
37422 [__CYGWIN__] (get_win32_path): New function.
37423 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37424 [__CYGWIN__] (find_root_device): Disable.
37425 [__CYGWIN__] (get_bootsec_serial): New function.
37426 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37427 [__linux__] (grub_guess_root_device): Add early returns to simplify
37428 structure.
37429 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37430 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37431 check for Linux only.
37432
37433 2008-05-15 Bean <bean123ch@gmail.com>
37434
37435 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37436 keyboard hang problem in apple's intel mac.
37437
37438 2008-05-09 Robert Millan <rmh@aybabtu.com>
37439
37440 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37441 devices.
37442 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37443 (make_device_map): Likewise.
37444 Reported by Aurelien Jarno <aurel32@debian.org>
37445
37446 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37447
37448 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37449 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37450 (make_device_map): Output entries for xvd type disks.
37451
37452 2008-05-07 Robert Millan <rmh@aybabtu.com>
37453
37454 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37455 devices.
37456 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37457 (make_device_map): Likewise.
37458 Reported by Roland Dreier <rdreier@cisco.com>
37459
37460 2008-05-07 Robert Millan <rmh@aybabtu.com>
37461
37462 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37463 grub_strstr() call. Correct a few mistakes in failure path handling.
37464
37465 2008-05-06 Robert Millan <rmh@aybabtu.com>
37466
37467 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37468 Do not print a trailing slash (therefore, the root directory is an
37469 empty string).
37470 (convert_system_path_to_grub_path): Do not remove trailing slash
37471 from make_system_path_relative_to_its_root() output.
37472
37473 * util/i386/pc/grub-install.in: Add trailing slash to output from
37474 make_system_path_relative_to_its_root().
37475
37476 2008-05-06 Robert Millan <rmh@aybabtu.com>
37477
37478 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37479 ensures that output lines aren't intermangled with those sent to
37480 stderr (via grub_util_info()).
37481 * util/grub-probe.c (grub_refresh): Likewise.
37482 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37483
37484 2008-05-05 Christian Franke <franke@computer.org>
37485
37486 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37487 Add Cygwin device names.
37488 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37489 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37490 (check_device): Return error instead of success on empty name.
37491 (make_device_map): Move label inside linux specific code to
37492 prevent compiler warning.
37493
37494 2008-04-30 Robert Millan <rmh@aybabtu.com>
37495
37496 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37497 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37498 first boot option.
37499 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37500
37501 2008-04-29 Robert Millan <rmh@aybabtu.com>
37502
37503 * docs/grub.cfg: New file (example GRUB configuration).
37504
37505 2008-04-26 Robert Millan <rmh@aybabtu.com>
37506
37507 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37508 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37509 and `disk/ieee1275/nand.c'.
37510
37511 2008-04-25 Bean <bean123ch@gmail.com>
37512
37513 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37514 i386-linuxbios.
37515
37516 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37517 change the buffer size to 4096 for cdrom device.
37518
37519 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37520 and nand.mod.
37521 (_linux_mod_SOURCES): New variable.
37522 (_linux_mod_CFLAGS): Likewise.
37523 (_linux_mod_LDFLAGS): Likewise.
37524 (linux_mod_SOURCES): Likewise.
37525 (linux_mod_CFLAGS): Likewise.
37526 (linux_mod_LDFLAGS): Likewise.
37527 (nand_mod_SOURCES): Likewise.
37528 (nand_mod_CFLAGS): Likewise.
37529 (nand_mod_LDFLAGS): Likewise.
37530
37531 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37532 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37533 type property. (nand device in olpc don't have this property)
37534
37535 * include/grub/disk.h (grub_disk_dev_id): New macro
37536 GRUB_DISK_DEVICE_NAND_ID.
37537
37538 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37539 function prototype.
37540 (grub_rescue_cmd_initrd): Likewise.
37541
37542 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37543 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37544 ofw_cif_handler and ofw_idt, adjust padding number.
37545
37546 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37547 GRUB_MACHINE_IEEE1275 is defined.
37548
37549 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37550 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37551
37552 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37553 on nested function heap_init.
37554 (grub_upper_mem): New variable for i386-ieee1275.
37555 (grub_get_extended_memory): New function for i386-ieee1275.
37556 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37557
37558 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37559 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37560 property.
37561
37562 * loader/i386/ieee1275/linux.c: New file.
37563
37564 * loader/i386/ieee1275/linux_normal.c: New file.
37565
37566 * disk/ieee1275/nand.c: New file.
37567
37568 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37569
37570 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37571 value.
37572 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37573
37574 2008-04-18 Robert Millan <rmh@aybabtu.com>
37575
37576 Restructures early code path on ieee1275 to unify grub_main() as
37577 the first C function that is executed in every platform.
37578
37579 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37580 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37581 cmain().
37582 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37583 * kern/ieee1275/cmain.c (cmain): Rename to ...
37584 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37585 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37586 at the beginning.
37587
37588 2008-04-18 Robert Millan <rmh@aybabtu.com>
37589
37590 * util/update-grub.in: Fix syntax error when setting
37591 `GRUB_PRELOAD_MODULES'.
37592 Reported by Stephane Chazelas <stephane@artesyncp.com>
37593
37594 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37595
37596 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37597 section into account, newer toolchains generate unique build ids
37598 * configure.ac: remove the test for --build-id=none acceptance,
37599 we want build ids to be preserved
37600 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37601 far from other sections don't cause the raw binary images grow
37602 size
37603
37604 2008-04-15 Robert Millan <rmh@aybabtu.com>
37605
37606 * disk/lvm.c: Update copyright year.
37607 * kern/misc.c: Likewise.
37608
37609 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37610
37611 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37612 there is no memory left for physical volume name.
37613
37614 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37615
37616 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37617 volume name mapping to support bigger than 9 character names properly.
37618
37619 2008-04-13 Robert Millan <rmh@aybabtu.com>
37620
37621 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37622 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37623
37624 2008-04-13 Christian Franke <franke@computer.org>
37625
37626 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37627 to create a floppy emulation boot CD when non emulation mode
37628 does not work.
37629 Enable Joliet CD filesystem extension.
37630
37631 2008-04-13 Robert Millan <rmh@aybabtu.com>
37632
37633 * kern/misc.c (grub_strncat): Fix off-by-one error.
37634 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37635
37636 * kern/env.c (grub_env_context_close): Clear current context, not
37637 previous one.
37638 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37639
37640 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37641
37642 2008-04-13 Robert Millan <rmh@aybabtu.com>
37643
37644 Improve robustness when handling LVM.
37645
37646 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37647 (and leave `*p' unmodified).
37648 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37649 through it.
37650 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37651 iterating through it.
37652 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37653 through it.
37654 (grub_lvm_scan_device): Check the return value (and fail gracefully
37655 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37656 Don't assume `vg->pvs != NULL' when iterating through it.
37657
37658 2008-04-13 Robert Millan <rmh@aybabtu.com>
37659
37660 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37661 * genmk.rb (partmap): New variable.
37662 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37663 (#{partmap}): New target rule.
37664 * genpartmaplist.sh: New file.
37665 * Makefile.in (pkglib_DATA): Add partmap.lst.
37666 (partmap.lst): New target rule.
37667 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37668 modules (including all partition maps), instead of preloading them.
37669
37670 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37671
37672 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37673 `linux-boot-prober' (if installed) to detect other operating
37674 systems which are installed on the computer and add them to
37675 the boot menu.
37676 * conf/common.rmk: Build and install 30_os-prober.
37677
37678 2008-04-12 Robert Millan <rmh@aybabtu.com>
37679
37680 * kern/powerpc/ieee1275/init.c: Move from here ...
37681 * kern/ieee1275/init.c: ... to here. Update all users.
37682
37683 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37684 * kern/ieee1275/cmain.c: ... to here. Update all users.
37685
37686 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37687 * kern/ieee1275/openfw.c: ... to here. Update all users.
37688
37689 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37690 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37691
37692 2008-04-10 Pavel Roskin <proski@gnu.org>
37693
37694 * configure.ac: Always use "_cv_" in cache variables for
37695 compatibility with Autoconf 2.62.
37696
37697 2008-04-07 Robert Millan <rmh@aybabtu.com>
37698
37699 Revert grub/machine/init.h addition by Pavel (since it breaks on
37700 i386-ieee1275 and others):
37701 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37702 * util/powerpc/ieee1275/misc.c: Likewise.
37703
37704 2008-04-07 Robert Millan <rmh@aybabtu.com>
37705
37706 * util/grub-probe.c (probe): Improve error message.
37707
37708 2008-04-07 Robert Millan <rmh@aybabtu.com>
37709
37710 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37711 (this prevents the presence of a bogus entry from ruining the whole
37712 thing).
37713
37714 2008-04-06 Pavel Roskin <proski@gnu.org>
37715
37716 * util/biosdisk.c: Include grub/util/biosdisk.h.
37717 * util/grub-fstest.c (execute_command): Make static.
37718 * util/grub-mkdevicemap.c (check_device): Likewise.
37719 * util/i386/pc/misc.c: Include grub/machine/init.h.
37720 * util/powerpc/ieee1275/misc.c: Likewise.
37721 * util/lvm.c: Include grub/util/lvm.h.
37722 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37723 grub/cache.h.
37724 * util/raid.c: Include grub/util/raid.h.
37725 (grub_util_getdiskname): Make static.
37726
37727 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37728 grub_hostfs_fini(), as they are called from grub_init_all() and
37729 grub_fini_all() respectively. This fixes an infinite loop in
37730 grub-fstest due to double registration of hostfs.
37731 Reported by Christian Franke <Christian.Franke@t-online.de>
37732
37733 2008-04-05 Pavel Roskin <proski@gnu.org>
37734
37735 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37736 all 8 functions. Otherwise, probe function 0 only.
37737
37738 2008-04-04 Pavel Roskin <proski@gnu.org>
37739
37740 * commands/lspci.c (grub_lspci_iter): Print the bus number
37741 correctly.
37742
37743 * commands/lspci.c (grub_pci_classes): Fix typos.
37744 (grub_lspci_iter): Don't print func twice. Print vendor ID
37745 before device ID, as it's normally done.
37746
37747 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37748 Fix signedness warnings.
37749 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37750 Likewise.
37751 * util/ieee1275/get_disk_name.c: Include config.h so that
37752 _GNU_SOURCE is defined and getline() is declared. Mark an
37753 unused argument as such. Fix a signedness warning.
37754
37755 2008-04-02 Pavel Roskin <proski@gnu.org>
37756
37757 * genkernsyms.sh.in: Use more robust assignments for CC and
37758 srcdir. Quote srcdir.
37759 * gensymlist.sh.in: Likewise. Assert at the compile time that
37760 the symbol table is not empty.
37761
37762 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37763 * fs/cpio.c (grub_cpio_read): Likewise.
37764
37765 2008-04-01 Pavel Roskin <proski@gnu.org>
37766
37767 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37768 * disk/host.c (grub_host_open): Likewise.
37769 * disk/loopback.c (grub_loopback_open): Likewise.
37770 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37771 disk->id as in disk/host.c, not a multi-character constant.
37772
37773 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37774 later is obsolete, potentially dangerous and sets a bad example.
37775 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37776 * util/misc.c (grub_util_get_image_size): Likewise.
37777
37778 * disk/loopback.c (options): Improve help for "--partitions".
37779
37780 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37781 options to align them with the short options, e.g. "echo -e".
37782
37783 2008-03-31 Bean <bean123ch@gmail.com>
37784
37785 * video/reader/png.c (grub_png_data): New member is_16bit and
37786 image_data.
37787 (grub_png_decode_image_header): Detect 16 bit png image.
37788 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37789 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37790 (grub_video_reader_png): Release memory occupied by image_data.
37791
37792 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37793 4096 bytes.
37794 (grub_nfs_mount): Skip the test for sector per cluster.
37795
37796 * include/grub/ntfs.h (MAX_SPC): Removed.
37797
37798 2008-03-31 Bean <bean123ch@gmail.com>
37799
37800 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37801 (grub_probe_SOURCES): Add fs/afs.c.
37802 (grub_fstest_SOURCES): Likewise.
37803 (afs_mod_SOURCES): New variable.
37804 (afs_mod_CFLAGS): Likewise.
37805 (afs_mod_LDFLAGS): Likewise.
37806
37807 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37808 (grub_emu_SOURCES): Likewise.
37809
37810 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37811
37812 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37813
37814 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37815
37816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37817
37818 * fs/afs.c: New file.
37819
37820 2008-03-30 Pavel Roskin <proski@gnu.org>
37821
37822 * disk/host.c: Include grub/misc.h to fix a warning.
37823 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37824 warnings about implicit declarations.
37825
37826 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37827 variable.
37828 * include/grub/i386/loader.h: Change declaration of
37829 grub_linux_boot() to match what grub_loader_set() expects.
37830 * util/getroot.c (grub_guess_root_device): Return const char* to
37831 fix a warning.
37832 * util/grub-probe.c (probe): Fix a warning about uninitialized
37833 abstraction_name variable.
37834 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37835 second argument as unused to fix a warning.
37836
37837 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37838 missing grub_error() call.
37839
37840 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37841 2.60 and newer uses it to define datadir.
37842
37843 * commands/sleep.c: Fix warning about implicit declaration.
37844 * disk/memdisk.c: Likewise.
37845 * loader/aout.c: Likewise.
37846 * loader/i386/bsd_normal.c: Likewise.
37847 * util/grub-probe.c: Likewise.
37848
37849 * commands/i386/cpuid.c (has_longmode): Make static.
37850 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37851 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37852
37853 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37854 GDT. This is more robust, as %ds can change.
37855 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37856 calling real_to_prot().
37857 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37858
37859 2008-03-28 Pavel Roskin <proski@gnu.org>
37860
37861 * kern/i386/pc/startup.S: Assert that uncompressed functions
37862 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37863 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37864 code, as they push parts of the code (error handlers) beyond
37865 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37866 code as correctness and size.
37867
37868 2008-03-28 Pavel Roskin <proski@gnu.org>
37869
37870 * kern/i386/pc/startup.S
37871 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37872 data block address to the real mode, keep offset minimal. This
37873 works around a bug in AWARD BIOS on old Athlon systems, which
37874 makes CD detection hang.
37875
37876 2008-03-26 Pavel Roskin <proski@gnu.org>
37877
37878 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37879 const.
37880 * include/grub/normal.h: Add grub_parse_color_name_pair()
37881 declaration.
37882
37883 2008-03-24 Bean <bean123ch@gmail.com>
37884
37885 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37886 (cd_count): Removed.
37887 (cd_drive): New variable.
37888 (grub_biosdisk_get_drive): Don't check for (cdN) device.
37889 (grub_biosdisk_call_hook): Likewise.
37890 (grub_biosdisk_iterate): Change cdrom detection method.
37891 (grub_biosdisk_open): Replace cd_start with cd_drive.
37892 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
37893 detect cdrom device.
37894
37895 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
37896 Removed.
37897 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
37898 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
37899 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
37900 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
37901 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
37902 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
37903 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
37904 (grub_biosdisk_cdrp): New structure.
37905 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
37906
37907 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
37908
37909 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
37910 device.
37911
37912 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
37913 New function.
37914
37915 2008-03-20 Robert Millan <rmh@aybabtu.com>
37916
37917 Remove 2 TiB limit in ata.mod.
37918 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
37919 (grub_ata_dumpinfo): Print sector count with 0x%llx.
37920 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
37921 grub_uint64_t instead of grub_uint32_t.
37922
37923 2008-03-05 Bean <bean123ch@gmail.com>
37924
37925 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
37926 (grub_multiboot): Set boot device.
37927
37928 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
37929
37930 2008-03-02 Bean <bean123ch@gmail.com>
37931
37932 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
37933 symlink_buffer.
37934
37935 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
37936
37937 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
37938 texinfo.tex.
37939
37940 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
37941 modified.
37942
37943 * docs/fdl.texi: New file.
37944
37945 * docs/mdate-sh: New file. Copied from gnulib.
37946 * docs/texinfo.tex: Likewise.
37947
37948 * config.guess: Updated from gnulib.
37949 * install-sh: Likewise.
37950
37951 2008-02-28 Robert Millan <rmh@aybabtu.com>
37952
37953 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
37954 (aout_mod_SOURCES): New variable.
37955 (aout_mod_CFLAGS): Likewise.
37956 (aout_mod_LDFLAGS): Likewise.
37957
37958 * conf/i386-ieee1275.rmk: Likewise.
37959
37960 2008-02-28 Robert Millan <rmh@aybabtu.com>
37961
37962 * util/update-grub.in: Reorganise terminal validity check. Accept
37963 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
37964 Based on suggestion by Franklin PIAT.
37965
37966 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
37967
37968 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
37969 function.
37970 * util/getroot.c (grub_util_check_block_device): New function that
37971 returns the given argument if it is a block device and returns NULL else.
37972 * util/grub-probe.c (argument_is_device): New variable.
37973 (probe): Promote device_name from a variable to an argument. Receive
37974 device_name from grub_util_check_block_device() if path is NULL and from
37975 grub_guess_root_device() else. Do not free() device_name anymore.
37976 (options): Introduce new parameter '-d, --device'.
37977 (main): Add description of the new parameter to the help screen.
37978 Rename path variable to argument. Set argument_is_device if the '-d'
37979 option is given. Pass argument to probe() depending on
37980 argument_is_device.
37981
37982 2008-02-24 Bean <bean123ch@gmail.com>
37983
37984 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
37985 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
37986 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
37987 (GRUB_ISO9660_VOLDESC_PART): Likewise.
37988 (GRUB_ISO9660_VOLDESC_END): Likewise.
37989 (grub_iso9660_primary_voldesc): New member escape.
37990 (grub_iso9660_data): New member joliet.
37991 (grub_iso9660_convert_string): New function.
37992 (grub_iso9660_mount): Detect joliet extension.
37993 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
37994 (grub_iso9660_iso9660_label): Likewise.
37995
37996 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
37997 (grub_setup_SOURCES): Add fs/udf.c.
37998 (grub_fstest_SOURCES): Likewise.
37999 (udf_mod_SOURCES): New variable.
38000 (udf_mod_CFLAGS): Likewise.
38001 (udf_mod_LDFLAGS): Likewise.
38002
38003 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38004 (grub_emu_SOURCES): Likewise.
38005
38006 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38007
38008 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38009
38010 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38011
38012 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38013
38014 * fs/udf.c: New file.
38015
38016 2008-02-24 Robert Millan <rmh@aybabtu.com>
38017
38018 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38019 (normal/lexer.c_DEPENDENCIES): New variables.
38020 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38021 (normal/lexer.c_DEPENDENCIES): Likewise.
38022 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38023 (normal/lexer.c_DEPENDENCIES): Likewise.
38024 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38025 (normal/lexer.c_DEPENDENCIES): Likewise.
38026 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38027 (normal/lexer.c_DEPENDENCIES): Likewise.
38028 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38029 (normal/lexer.c_DEPENDENCIES): Likewise.
38030
38031 2008-02-23 Robert Millan <rmh@aybabtu.com>
38032
38033 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38034 since they were intended to be in hex. This didn't break previously
38035 because of a bug in gpt_partition_map_iterate() (see below).
38036
38037 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38038 when checking the validity of GPT header.
38039 Remove `partno', since it always provides the same information as `i'.
38040
38041 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38042
38043 * include/grub/efi/time.h: Fix a wrong comment.
38044
38045 2008-02-19 Pavel Roskin <proski@gnu.org>
38046
38047 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38048 message.
38049
38050 2008-02-19 Bean <bean123ch@gmail.com>
38051
38052 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38053 (aout_mod_SOURCES): New variable.
38054 (aout_mod_CFLAGS): Likewise.
38055 (aout_mod_LDFLAGS): Likewise.
38056 (_bsd_mod_SOURCES): New variable.
38057 (_bsd_mod_CFLAGS): Likewise.
38058 (_bsd_mod_LDFLAGS): Likewise.
38059 (bsd_mod_SOURCES): New variable.
38060 (bsd_mod_CFLAGS): Likewise.
38061 (bsd_mod_LDFLAGS): Likewise.
38062
38063 * include/grub/aout.h: New file.
38064
38065 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38066
38067 * include/grub/i386/bsd.h: New file.
38068
38069 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38070 to make it public.
38071
38072 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38073 function is called, so that it's possible to change it inside the hook.
38074 (grub_elf64_load): Likewise.
38075 (grub_elf_file): Don't close the file if elf header is not found.
38076 (grub_elf_close): Close the file if grub_elf_file fails (The new
38077 grub_elf_file won't close it).
38078 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38079 (grub_elf64_size): Likewise.
38080
38081 * kern/i386/loader.S (grub_unix_real_boot): New function.
38082
38083 * loader/aout.c: New file.
38084
38085 * loader/i386/bsd.c: New file.
38086
38087 * loader/i386/bsd_normal.c: New file.
38088
38089 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38090
38091 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38092 can test other formats.
38093
38094 2008-02-19 Robert Millan <rmh@aybabtu.com>
38095
38096 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38097 (grub_gpt_partition_type_empty): Redefine with macro from
38098 `<grub/gpt_partition.h>'.
38099 (gpt_partition_map_iterate): Adjust partition type comparison.
38100
38101 Export `entry' as partmap-specific `part.data' struct.
38102 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38103
38104 * include/grub/gpt_partition.h (grub_gpt_header)
38105 (grub_gpt_partentry): ... to here (new file).
38106
38107 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38108
38109 (grub_gpt_partition_type_bios_boot): New const variable, defined
38110 with macro from `<grub/gpt_partition.h>'.
38111
38112 (setup): Replace `first_start' with `embed_region', which keeps
38113 track of the embed region (and is partmap-agnostic).
38114
38115 Replace find_first_partition_start() with find_usable_region(),
38116 which finds a usable region for embedding using partmap-specific
38117 knowledge (supports PC/MSDOS and GPT).
38118
38119 Fix all assumptions that the embed region start at sector 1, using
38120 `embed_region.start' from now on. Similarly, use `embed_region.end'
38121 rather than `first_start' to calculate available size.
38122
38123 In grub_util_info() message, replace "into after the MBR" with an
38124 indication of the specific sector our embed region starts at.
38125
38126 2008-02-19 Robert Millan <rmh@aybabtu.com>
38127
38128 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38129 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38130 `commands/reboot.c'.
38131 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38132 (halt_mod_SOURCES): Likewise.
38133 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38134 (halt_mod_SOURCES): Likewise.
38135
38136 2008-02-17 Christian Franke <franke@computer.org>
38137
38138 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38139
38140 2008-02-17 Robert Millan <rmh@aybabtu.com>
38141
38142 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38143 set `first_start' to 0 for non-PC/MSDOS partition maps.
38144
38145 2008-02-16 Robert Millan <rmh@aybabtu.com>
38146
38147 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38148 do not assume partition map is PC/MSDOS before performing checks that
38149 are specific to that layout.
38150
38151 2008-02-13 Robert Millan <rmh@aybabtu.com>
38152
38153 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38154 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38155 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38156
38157 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38158
38159 * configure.ac: Only a cosmetic change on the handling of
38160 -fno-stack-protector.
38161
38162 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38163
38164 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38165 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38166 reboot.c.
38167 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38168 (halt_mod_SOURCES): New variable.
38169 (halt_mod_CFLAGS): Likewise.
38170 (halt_mod_LDFLAGS): Likewise.
38171 (reboot_mod_SOURCES): Likewise.
38172 (reboot_mod_CFLAGS): Likewise.
38173 (reboot_mod_LDFLAGS): Likewise.
38174
38175 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38176 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38177 reboot.c.
38178 (halt_mod_SOURCES): Likewise.
38179 (reboot_mod_SOURCES): Likewise.
38180
38181 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38182 commands/i386/pc/reboot.c by commands/reboot.c.
38183 (reboot_mod_SOURCES): Likewise.
38184
38185 * commands/i386/pc/reboot.c: merge this file ...
38186
38187 * commands/ieee1275/reboot.c: ... and this file ...
38188
38189 * commands/reboot.c: ... to this file.
38190 Add some precompiler directive to include the correct header for
38191 each machine.
38192
38193 * commands/ieee1275/halt.c: move this file ...
38194
38195 * commands/halt.c: ... to here.
38196 Add some precompiler directive to include the correct header for
38197 each machine.
38198
38199 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38200 (grub_halt): Likewise.
38201
38202 * kern/efi/efi.c (grub_reboot): New function.
38203 (grub_halt): Likewise.
38204
38205 2008-02-12 Robert Millan <rmh@aybabtu.com>
38206
38207 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38208 /dev (like it is done for /dev/mapper). This doesn't provide support
38209 for EVMS, but at least it is now easy to identify the problem when it
38210 arises.
38211
38212 2008-02-11 Robert Millan <rmh@aybabtu.com>
38213
38214 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38215 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38216 comparing it with -1, not 0.
38217
38218 2008-02-10 Robert Millan <rmh@aybabtu.com>
38219
38220 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38221 `disk/lvm.c'.
38222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38223 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38224
38225 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38226 `disk/lvm.c' to the end of the list.
38227 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38228 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38229
38230 2008-02-10 Robert Millan <rmh@aybabtu.com>
38231
38232 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38233 grub_print_error() instead. This will let user know why we're entering
38234 rescue mode.
38235 Based on suggestions from Sam Morris.
38236
38237 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38238
38239 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38240 on remaining N args, instead of "--" arg N times.
38241
38242 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38243
38244 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38245 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38246 pattern for unknown glyphs.
38247
38248 2008-02-09 Robert Millan <rmh@aybabtu.com>
38249
38250 * configure.ac: Probe for `help2man'.
38251 * Makefile.in (builddir): New variable.
38252 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38253 or otherwise add a few flags/options to it.
38254 (install-local): For every executable utility or script that is
38255 installed, invoke $(HELP2MAN) to install a manpage based on --help
38256 output.
38257
38258 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38259 that it doesn't prevent --help from working in build tree.
38260
38261 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38262 with `bug-grub@gnu.org'.
38263 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38264 * util/update-grub.in (usage): New function.
38265 Implement proper argument check, with support for --help and --version
38266 (as well as existing -y).
38267
38268 2008-02-09 Christian Franke <franke@computer.org>
38269
38270 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38271 avoid overwriting previous output.
38272 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38273
38274 2008-02-09 Robert Millan <rmh@aybabtu.com>
38275
38276 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38277 drawing the menu.
38278
38279 2008-02-09 Robert Millan <rmh@aybabtu.com>
38280
38281 * commands/sleep.c: New file.
38282 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38283 (sleep_mod_SOURCES): New variable.
38284 (sleep_mod_CFLAGS): Likewise.
38285 (sleep_mod_LDFLAGS): Likewise.
38286
38287 2008-02-09 Robert Millan <rmh@aybabtu.com>
38288
38289 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38290 situations in which we can deduce the RAID size and the superblock
38291 doesn't match it.
38292
38293 2008-02-09 Robert Millan <rmh@aybabtu.com>
38294
38295 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38296 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38297 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38298
38299 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38300 and return a grub_diskmemberlist_t composed of physical array members.
38301 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38302
38303 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38304 prototype.
38305 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38306 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38307 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38308
38309 * util/grub-probe.c (probe): Move partmap probing code from here ...
38310 (probe_partmap): ... to here.
38311 (probe): Use probe_partmap() once for the disk we're probing, and
38312 additionally, when such disk contains a memberlist() struct member,
38313 once for each disk that is contained in the structure returned by
38314 memberlist().
38315
38316 2008-02-09 Robert Millan <rmh@aybabtu.com>
38317
38318 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38319 environment variable to 'all' in order to obtain debug output from
38320 non-util/ code.
38321 * util/i386/pc/grub-setup.c (main): Likewise.
38322
38323 2008-02-08 Robert Millan <rmh@aybabtu.com>
38324
38325 * disk/raid.c (grub_raid_scan_device): Check for
38326 `array->device[sb.this_disk.number]' rather than for
38327 `array->device[sb.this_disk.number]->name', since the latter is not
38328 guaranteed to be accessible.
38329
38330 2008-02-08 Robert Millan <rmh@aybabtu.com>
38331
38332 * disk/raid.c: Update copyright.
38333 * fs/cpio.c: Likewise.
38334 * include/grub/raid.h: Likewise.
38335 * loader/i386/pc/multiboot.c: Likewise.
38336 * util/hostfs.c: Likewise.
38337
38338 2008-02-08 Robert Millan <rmh@aybabtu.com>
38339
38340 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38341 to a grub_disk_t array.
38342 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38343 `device[x]'.
38344 (grub_raid_scan_device): Replace `device[x].name' accesses with
38345 `device[x]->name'. Simplify initialization of `array->device[x]'.
38346
38347 2008-02-08 Robert Millan <rmh@aybabtu.com>
38348
38349 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38350 grub_dprintf() calls.
38351 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38352 error message.
38353
38354 2008-02-07 Christian Franke <franke@computer.org>
38355
38356 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38357 instead of fseek and ftell to support large files.
38358 (grub_hostfs_read): Likewise.
38359
38360 2008-02-07 Robert Millan <rmh@aybabtu.com>
38361
38362 Patch from Jeroen Dekkers.
38363 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38364 failure, since successfully reading all array members might not be
38365 required.
38366
38367 2008-02-06 Robert Millan <rmh@aybabtu.com>
38368
38369 * util/grub-probe.c (probe): Simplify partmap probing (with the
38370 assumption that the first word up to the underscore equals to
38371 the module name).
38372
38373 2008-02-06 Christian Franke <franke@computer.org>
38374
38375 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38376 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38377 last block of a cpio or tar stream.
38378 Check for "TRAILER!!!" instead of any empty data
38379 block to detect last block of a cpio stream.
38380 (grub_cpio_dir): Fix constness of variable np.
38381 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38382 cpio or tar trailer is detected. This fixes a crash
38383 on open of a non existing file.
38384
38385 2008-02-05 Bean <bean123ch@gmail.com>
38386
38387 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38388 address of entry.
38389 (grub_multiboot_load_elf64): Likewise.
38390 (grub_multiboot): Initialize mbi structure.
38391
38392 * util/grub-fstest.c: Don't include unused header file script.h.
38393
38394 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38395 of file.
38396 (grub_fstest_SOURCES): Likewise.
38397
38398 2008-02-05 Robert Millan <rmh@aybabtu.com>
38399
38400 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38401 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38402 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38403 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38404
38405 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38406 (translation_table): Replace hardcoded values with macros
38407 provided by `<grub/term.h>'.
38408
38409 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38410 (keyboard_map): Correct/add a few values, with macros provided
38411 by `<grub/term.h>'.
38412 (keyboard_map_shift): Zero values that don't differ from their
38413 `keyboard_map' equivalents.
38414 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38415 Discard the second scan code that is always sent by Caps lock.
38416 Only use `keyboard_map_shift' when it provides a non-zero value,
38417 otherwise fallback to `keyboard_map'.
38418
38419 2008-02-04 Bean <bean123ch@gmail.com>
38420
38421 * Makefile.in (enable_grub_fstest): New variable.
38422
38423 * conf/common.rmk (grub_fstest_init.lst): New rule.
38424 (grub_fstest_init.h): Likewise.
38425 (grub_fstest_init.c): Likewise.
38426 (util/grub-fstest.c_DEPENDENCIES): New variable.
38427 (grub_fstest_SOURCES): Likewise.
38428
38429 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38430
38431 * util/grub-fstest.c: New file.
38432
38433 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38434
38435 Make grub-setup handle a separate root device.
38436
38437 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38438 so that the root device can be compared with the destination
38439 device.
38440 When embedding the core image, if the root and destination devices
38441 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38442 0xFF.
38443 When not embedding, set ROOT_DRIVE to 0xFF.
38444
38445 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38446
38447 Add support for having a grub directory in a different drive. This
38448 is still only the data handling part.
38449
38450 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38451 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38452 (grub_root_drive): New variable.
38453
38454 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38455 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38456 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38457 as it was.
38458
38459 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38460
38461 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38462 macro.
38463 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38464
38465 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38466 is bogus, because PXE booting does not specify any drive
38467 correctly.
38468
38469 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38470 am not sure if this is really correct.
38471
38472 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38473 is always identical to the boot drive when booting from a CD.
38474
38475 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38476 longer.
38477 (root_drive): New variable.
38478 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38479 (setup_sectors): Push %dx right after popping it, because %dh will
38480 be modified later.
38481 (copy_buffer): Restore %dx.
38482
38483 2008-02-03 Robert Millan <rmh@aybabtu.com>
38484
38485 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38486 use `cdboot.img' for cdrom images.
38487
38488 2008-02-03 Robert Millan <rmh@aybabtu.com>
38489
38490 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38491 only setup gfxterm when `font' command has succeeded.
38492
38493 2008-02-03 Robert Millan <rmh@aybabtu.com>
38494
38495 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38496 (grub_rescue_cmd_multiboot_loader)
38497 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38498
38499 2008-02-03 Pavel Roskin <proski@gnu.org>
38500
38501 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38502 %edx and %esi from stack only after grub_gate_a20() is called.
38503 grub_gate_a20() clobbers %edx.
38504
38505 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38506
38507 * configure.ac (AC_INIT): Bumped to 1.96.
38508
38509 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38510 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38511 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38512 video/readers/png.c.
38513
38514 2008-02-03 Bean <bean123ch@gmail.com>
38515
38516 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38517 (cdboot_img_SOURCES): New variable.
38518 (cdboot_img_ASFLAGS): New variable.
38519 (cdboot_img_LDFLAGS): New variable.
38520
38521 * boot/i386/pc/cdboot.S: New file.
38522
38523 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38524 (cd_count): Likewise.
38525 (grub_biosdisk_get_drive): Add support for cd device.
38526 (grub_biosdisk_call_hook): Likewise.
38527 (grub_biosdisk_iterate): Likewise.
38528 (grub_biosdisk_open): Likewise.
38529 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38530 (grub_biosdisk_rw): Support reading from cd device.
38531 (GRUB_MOD_INIT): Iterate cd devices.
38532
38533 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38534 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38535 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38536
38537 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38538
38539 2008-02-02 Robert Millan <rmh@aybabtu.com>
38540
38541 * commands/read.c: New file.
38542 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38543 (read_mod_SOURCES): New variable.
38544 (read_mod_CFLAGS): Likewise.
38545 (read_mod_LDFLAGS): Likewise.
38546
38547 2008-02-02 Robert Millan <rmh@aybabtu.com>
38548
38549 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38550 determining whether menu has to be displayed.
38551
38552 2008-02-02 Marco Gerards <marco@gnu.org>
38553
38554 * bus/pci.c: New file.
38555
38556 * include/grub/pci.h: Likewise.
38557
38558 * include/grub/i386/pc/pci.h: Likewise.
38559
38560 * commands/lspci.c: Likewise.
38561
38562 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38563 `lspci.mod'.
38564 (pci_mod_SOURCES): New variable.
38565 (pci_mod_CFLAGS): Likewise.
38566 (pci_mod_LDFLAGS): Likewise.
38567 (lspci_mod_SOURCES): Likewise.
38568 (lspci_mod_CFLAGS): Likewise.
38569 (lspci_mod_LDFLAGS): Likewise.
38570
38571 2008-02-02 Bean <bean123ch@gmail.com>
38572
38573 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38574 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38575
38576 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38577 (grub_xfs_btree_node): New structure.
38578 (grub_xfs_btree_root): New structure.
38579 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38580 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38581 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38582 (GRUB_XFS_EXTENT_SIZE): Likewise.
38583 (grub_xfs_read_block): Support btree format type.
38584 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38585 Use directory block as basic unit.
38586
38587 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38588
38589 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38590 __attribute__ ((__regparm__ (1))).
38591
38592 2008-02-01 Robert Millan <rmh@aybabtu.com>
38593
38594 Correct a mistake in previous commit.
38595
38596 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38597 top.
38598 (normal/command.c_DEPENDENCIES): New variable.
38599
38600 2008-02-01 Robert Millan <rmh@aybabtu.com>
38601
38602 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38603 top.
38604 (normal/command.c_DEPENDENCIES): New variable.
38605 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38606 * conf/i386-ieee1275.rmk: Likewise.
38607 * conf/i386-linuxbios.rmk: Likewise.
38608 * conf/i386-pc.rmk: Likewise.
38609 * conf/sparc64-ieee1275.rmk: Likewise.
38610 * conf/powerpc-ieee1275.rmk: Likewise.
38611 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38612
38613 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38614
38615 2008-02-01 Robert Millan <rmh@aybabtu.com>
38616
38617 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38618 call at beginning of function.
38619
38620 2008-01-31 Pavel Roskin <proski@gnu.org>
38621
38622 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38623 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38624 (grub_mkrescue_SOURCES): Likewise.
38625 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38626
38627 2008-01-30 Robert Millan <rmh@aybabtu.com>
38628
38629 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38630 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38631 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38632 (grub_probe_SOURCES): ... to here.
38633
38634 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38635 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38636 * conf/i386-ieee1275.rmk: Likewise.
38637 * conf/i386-linuxbios.rmk: Likewise.
38638 * conf/powerpc-ieee1275.rmk: Likewise.
38639
38640 2008-01-30 Tristan Gingold <gingold@free.fr>
38641
38642 * kern/rescue.c: Silently accept empty lines.
38643
38644 2008-01-29 Bean <bean123ch@gmail.com>
38645
38646 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38647 (real_code_2): Code cleanup and change comment style.
38648 (move_memory): Avoid using 32-bit address mode.
38649
38650 2008-01-29 Bean <bean123ch@gmail.com>
38651
38652 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38653 (png_mod_SOURCES): New variable.
38654 (png_mod_CFLAGS): Likewise.
38655 (png_mod_LDFLAGS): Likewise.
38656
38657 * video/readers/png.c: New file.
38658
38659 2008-01-28 Robert Millan <rmh@aybabtu.com>
38660
38661 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38662 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38663 `ifndef GRUB_MOD_GAP' hack.
38664 * util/elf/grub-mkimage.c (add_segments): Likewise.
38665
38666 2008-01-27 Robert Millan <rmh@aybabtu.com>
38667
38668 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38669 `GRUB_MOD_GAP' for platforms in which it's not defined.
38670 * util/elf/grub-mkimage.c (add_segments): Likewise.
38671
38672 2008-01-27 Robert Millan <rmh@aybabtu.com>
38673
38674 Get grub-emu to build again (including parallel builds).
38675
38676 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38677 Split into ...
38678 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38679 (normal/execute.c_DEPENDENCIES): ... this, ...
38680 (grub-emu_DEPENDENCIES): ... and this.
38681
38682 * conf/i386-efi.rmk: Likewise.
38683 * conf/i386-linuxbios.rmk: Likewise.
38684 * conf/i386-ieee1275.rmk: Likewise.
38685 * conf/powerpc-ieee1275.rmk: Likewise.
38686 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38687
38688 2008-01-27 Robert Millan <rmh@aybabtu.com>
38689
38690 * NEWS: Add a few items.
38691
38692 2008-01-27 Robert Millan <rmh@aybabtu.com>
38693
38694 Fix parallel builds with grub-emu. Based on earlier commit for
38695 grub-probe and grub-setup.
38696
38697 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38698 (util/grub-emu.c_DEPENDENCIES): ... this.
38699 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38700 (util/grub-emu.c_DEPENDENCIES): ... this.
38701 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38702 (util/grub-emu.c_DEPENDENCIES): ... this.
38703 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38704 (util/grub-emu.c_DEPENDENCIES): ... this.
38705 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38706 (util/grub-emu.c_DEPENDENCIES): ... this.
38707
38708 2008-01-27 Pavel Roskin <proski@gnu.org>
38709
38710 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38711 to create a gap between _end and the modules added to the image
38712 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38713 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38714 * util/elf/grub-mkimage.c (add_segments): Likewise.
38715
38716 2008-01-26 Pavel Roskin <proski@gnu.org>
38717
38718 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38719 just return an error.
38720
38721 2008-01-26 Bean <bean123ch@gmail.com>
38722
38723 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38724 (grub_reiserfs_get_item): Save offset of the next item.
38725 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38726
38727 2008-01-25 Robert Millan <rmh@aybabtu.com>
38728
38729 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38730 make all filesystem sources appear together (possibly fixing omissions
38731 while at it).
38732 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38733 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38734 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38736
38737 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38738 add `kern/file.c'.
38739 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38740 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38741 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38742 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38743
38744 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38745 (probe): Add a sanity check to make sure of our ability to read
38746 requested files when probing for filesystem type.
38747
38748 * genmk.rb: Update copyright year (2007).
38749
38750 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38751 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38752 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38753 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38754 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38755 : Remove function prototypes.
38756
38757 2008-01-25 Robert Millan <rmh@aybabtu.com>
38758
38759 Revert my previous commits (based on wrong assumption of how grub_errno
38760 works).
38761
38762 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
38763 * kern/file.c (grub_file_open): Likewise.
38764
38765 2008-01-24 Pavel Roskin <proski@gnu.org>
38766
38767 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38768 that hang if GRUB tries to setup colors.
38769 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38770 colors for firmwares that don't support it.
38771 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38772 Recognize Open Hack'Ware, set flags to work around its
38773 limitations.
38774
38775 2008-01-24 Robert Millan <rmh@aybabtu.com>
38776
38777 * kern/file.c (grub_file_open): Do not account previous failures of
38778 unrelated functions when grub_errno is checked for.
38779 Reported by Oleg Strikov.
38780
38781 2008-01-24 Bean <bean123ch@gmail.com>
38782
38783 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38784 (grub_ufs_sblock): New member volume name.
38785 (grub_ufs_find_file): Fix string copy bug.
38786 (grub_ufs_label): Implement this function properly.
38787
38788 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38789 (grub_hfs_iterate_records): Use the correct file number for extents
38790 and catalog file. Fix problem in next index calculation.
38791 (grub_hfs_find_node): Replace recursive function call with loop.
38792 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38793
38794 2008-01-23 Robert Millan <rmh@aybabtu.com>
38795
38796 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38797 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38798 (grub_multiboot2_real_boot): New function prototype.
38799
38800 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38801 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38802
38803 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38804 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38805
38806 2008-01-23 Robert Millan <rmh@aybabtu.com>
38807
38808 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38809 #ifdef'ed out grub_printf().
38810
38811 2008-01-23 Robert Millan <rmh@aybabtu.com>
38812
38813 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38814 grub_dprintf calls, since they make "debug=all" mode unusable.
38815 (grub_console_checkkey): Likewise.
38816
38817 2008-01-23 Robert Millan <rmh@aybabtu.com>
38818
38819 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38820 `term/i386/pc/at_keyboard.c'.
38821 (pkglib_MODULES): Add `serial.mod'.
38822 (serial_mod_SOURCES): New variable.
38823 (serial_mod_CFLAGS): Likewise.
38824 (serial_mod_LDFLAGS): Likewise.
38825
38826 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38827 `<grub/powerpc/ieee1275/console.h>'.
38828 (grub_keyboard_controller_init): New function prototype.
38829 (grub_console_checkkey): Likewise.
38830 (grub_console_getkey): Likewise.
38831
38832 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38833 keyboard on i386.
38834
38835 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38836 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38837
38838 2008-01-23 Robert Millan <rmh@aybabtu.com>
38839
38840 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38841 present, "(memdisk)/boot/grub" becomes the default prefix.
38842
38843 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38844 a memdisk tarball with all the modules. Add --overlay=DIR option that
38845 allows users to overlay additional files into the image.
38846
38847 2008-01-23 Robert Millan <rmh@aybabtu.com>
38848
38849 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38850 and `machine/memory.h'.
38851 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38852 (_multiboot_mod_SOURCES): New variable.
38853 (_multiboot_mod_CFLAGS): Likewise.
38854 (_multiboot_mod_LDFLAGS): Likewise.
38855 (multiboot_mod_SOURCES): Likewise.
38856 (multiboot_mod_CFLAGS): Likewise.
38857 (multiboot_mod_LDFLAGS): Likewise.
38858
38859 * include/grub/i386/ieee1275/loader.h: New file.
38860
38861 * include/grub/i386/ieee1275/machine.h: Likewise.
38862
38863 * include/grub/i386/ieee1275/memory.h: Likewise.
38864
38865 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38866 variable declaration.
38867 (grub_os_area_size): Likewise.
38868
38869 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38870 (grub_lower_mem, grub_upper_mem): New variables.
38871 (grub_stop_floppy): New function (just to make
38872 grub_multiboot2_real_boot() happy).
38873
38874 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38875 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38876 (grub_stop): New function.
38877 Include `"../realmode.S"' and `"../loader.S"'.
38878
38879 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38880 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38881
38882 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38883 rely on grub_multiboot2_real_boot() for final boot.
38884
38885 2008-01-22 Robert Millan <rmh@aybabtu.com>
38886
38887 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
38888 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
38889 device that doesn't look like an SD card.
38890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
38891 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
38892 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
38893 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
38894 found.
38895
38896 2008-01-22 Robert Millan <rmh@aybabtu.com>
38897
38898 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
38899 avoid claiming over our own code.
38900
38901 2008-01-22 Bean <bean123ch@gmail.com>
38902
38903 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
38904 (jpeg_mod_SOURCES): New variable.
38905 (jpeg_mod_CFLAGS): Likewise.
38906 (jpeg_mod_LDFLAGS): Likewise.
38907
38908 * video/readers/jpeg.c : New file.
38909
38910 2008-01-22 Bean <bean123ch@gmail.com>
38911
38912 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
38913 there are no more items.
38914
38915 2008-01-21 Robert Millan <rmh@aybabtu.com>
38916
38917 * kern/mm.c (grub_mm_init_region): Improve debug message.
38918
38919 2008-01-21 Robert Millan <rmh@aybabtu.com>
38920
38921 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
38922 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
38923 address.
38924 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
38925 a C macro.
38926 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
38927 Indicates start of upper memory.
38928 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
38929 (generate_image): Abort when image size is big enough to corrupt
38930 upper memory.
38931
38932 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
38933 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
38934 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38935 instead of hardcoding 0xA0000.
38936 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
38937 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38938 instead of hardcoding 0xA0000.
38939
38940 2008-01-21 Robert Millan <rmh@aybabtu.com>
38941
38942 * disk/memdisk.c (memdisk_size): New variable.
38943 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
38944 `memdisk_size'.
38945 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
38946 image to dynamic memory.
38947 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
38948 `memdisk_size'. Free memdisk block.
38949
38950 2008-01-21 Robert Millan <rmh@aybabtu.com>
38951
38952 Fix detection of very small filesystems (like tar).
38953
38954 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
38955 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
38956 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
38957 a problem with this disk).
38958
38959 2008-01-21 Robert Millan <rmh@aybabtu.com>
38960
38961 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
38962 on grub_biosdisk_rw_standard() error.
38963
38964 2008-01-21 Robert Millan <rmh@aybabtu.com>
38965
38966 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
38967 recent changes.
38968 * kern/elf.c: Likewise.
38969 * kern/ieee1275/ieee1275.c: Likewise.
38970 * kern/powerpc/ieee1275/openfw.c: Likewise.
38971 * term/ieee1275/ofconsole.c: Likewise.
38972
38973 2008-01-21 Robert Millan <rmh@aybabtu.com>
38974
38975 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
38976
38977 * include/grub/kernel.h (grub_arch_memdisk_addr)
38978 (grub_arch_memdisk_size): Moved from here ...
38979
38980 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
38981 (grub_arch_memdisk_size): ... to here.
38982
38983 2008-01-21 Robert Millan <rmh@aybabtu.com>
38984
38985 Mostly based on bugfix from Bean.
38986
38987 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
38988 attribute with hook() parameter.
38989 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
38990 declaration.
38991 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
38992 attribute with hook() parameter.
38993 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
38994 declaration.
38995
38996 2008-01-21 Robert Millan <rmh@aybabtu.com>
38997
38998 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
38999 (pkglib_MODULES): Add `memdisk.mod'.
39000 (memdisk_mod_SOURCES): New variable.
39001 (memdisk_mod_CFLAGS): Likewise.
39002 (memdisk_mod_LDFLAGS): Likewise.
39003
39004 * disk/memdisk.c: New file.
39005
39006 * include/grub/disk.h (grub_disk_dev_id): Add
39007 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39008
39009 * include/grub/i386/pc/kernel.h
39010 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39011 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39012 (grub_kernel_image_size): New variable declaration.
39013 (grub_total_module_size): Likewise.
39014 (grub_memdisk_image_size): Likewise.
39015
39016 * include/grub/i386/pc/memory.h
39017 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39018
39019 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39020 (grub_arch_memdisk_addr): New variable declaration.
39021 (grub_arch_memdisk_size): Likewise.
39022
39023 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39024 (grub_arch_memdisk_size): Likewise.
39025
39026 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39027 (codestart): Replace hardcoded `0x100000' with
39028 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39029
39030 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39031 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39032 not NULL, append the contents of the file it refers to, at the end of
39033 the compressed kernel image. Initialize `grub_memdisk_image_size'
39034 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39035 (options): Add "memdisk"|'m' option.
39036 (main): Parse --memdisk|-m option, and pass user-provided path as
39037 parameter to generate_image().
39038
39039 2008-01-20 Robert Millan <rmh@aybabtu.com>
39040
39041 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39042 grub_dprintf() calls from here ...
39043 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39044
39045 2008-01-20 Robert Millan <rmh@aybabtu.com>
39046
39047 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39048
39049 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39050 declaration.
39051 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39052 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39053 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39054 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39055 property).
39056 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39057 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39058
39059 2008-01-19 Robert Millan <rmh@aybabtu.com>
39060
39061 Get rid of confusing function (superseded by
39062 `grub_ieee1275_get_integer_property')
39063 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39064 prototype.
39065 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39066 function.
39067 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39068 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39069 in native endianness from grub_ieee1275_get_integer_property().
39070
39071 2008-01-19 Robert Millan <rmh@aybabtu.com>
39072
39073 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39074 command after "shut-down", since implementations differ on which
39075 the command for halt is.
39076
39077 2008-01-19 Robert Millan <rmh@aybabtu.com>
39078
39079 * include/grub/i386/linuxbios/console.h: Add header protection.
39080 (grub_keyboard_controller_init): New function prototype.
39081 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39082 (KEYBOARD_COMMAND_READ): Likewise.
39083 (KEYBOARD_COMMAND_WRITE): Likewise.
39084 (KEYBOARD_SCANCODE_SET1): Likewise.
39085 (grub_keyboard_controller_write): New function.
39086 (grub_keyboard_controller_read): Likewise.
39087 (grub_keyboard_controller_init): Likewise.
39088
39089 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39090 (grub_console_init): On coreboot/LinuxBIOS, call
39091 grub_keyboard_controller_init().
39092
39093 2008-01-19 Robert Millan <rmh@aybabtu.com>
39094
39095 PowerPC changes provided by Pavel Roskin.
39096
39097 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39098 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39099 don't rely on cmain() doing it.
39100 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39101 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39102
39103 2008-01-16 Robert Millan <rmh@aybabtu.com>
39104
39105 * include/grub/i386/linuxbios/memory.h
39106 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39107 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39108 receive `table_header' as argument. Instead, probe for it in the
39109 known memory ranges where it can be present.
39110 (grub_available_iterate): Do not pass a fixed `table_header' address
39111 to grub_linuxbios_table_iterate().
39112
39113 2008-01-15 Robert Millan <rmh@aybabtu.com>
39114
39115 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39116 * conf/i386-ieee1275.rmk: New file.
39117 * include/grub/i386/ieee1275/console.h: Likewise.
39118 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39119 * include/grub/i386/ieee1275/kernel.h: Likewise.
39120 * include/grub/i386/ieee1275/time.h: Likewise.
39121 * kern/i386/ieee1275/init.c: Likewise.
39122 * kern/i386/ieee1275/startup.S: Likewise.
39123
39124 2008-01-15 Robert Millan <rmh@aybabtu.com>
39125
39126 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39127 when pointers are 32-bit (but still do set it to one when they are
39128 64-bit).
39129
39130 2008-01-15 Robert Millan <rmh@aybabtu.com>
39131
39132 * include/grub/ieee1275/ieee1275.h
39133 (grub_ieee1275_get_integer_property): New function prototype.
39134
39135 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39136 (grub_ieee1275_get_integer_property): New function. Wraps around
39137 grub_ieee1275_get_property() to handle endianness.
39138
39139 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39140 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39141 where appropriate.
39142 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39143 (grub_map): Likewise.
39144 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39145
39146 2008-01-15 Bean <bean123ch@gmail.com>
39147
39148 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39149 (grub_script_execute_cmdline): Reset grub_errno.
39150
39151 * normal/main.c (read_config_file): Reset grub_errno.
39152
39153 * normal/parse.y (script_init): New.
39154 (script): Move function and menuentry here.
39155 (delimiter): New.
39156 (command): Add delimiter at the end of command.
39157 (commands): Adjust to match the new command.
39158 (commandblock): Remove grub_script_lexer_record_start.
39159 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39160 (if): Use the new commands.
39161
39162 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39163
39164 2008-01-15 Robert Millan <rmh@aybabtu.com>
39165
39166 * normal/menu.c (run_menu): Move timeout message from here ...
39167 (print_timeout): ... to here.
39168 (run_menu): Use print_timeout() once during initial draw to print
39169 the whole message, and again in every clock tick to update only
39170 the number of seconds.
39171
39172 2008-01-15 Robert Millan <rmh@aybabtu.com>
39173
39174 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39175 actual size of `available' from grub_ieee1275_get_property(), and
39176 restrict parsing to that bound.
39177
39178 2008-01-15 Christian Franke <franke@computer.org>
39179
39180 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39181 (argp_program_version): Remove variable.
39182 (argp_program_bug_address): Likewise.
39183 (options): Convert from struct argp_option to struct option.
39184 (struct arguments): Remove.
39185 (parse_opt): Remove.
39186 (usage): New function.
39187 (main): Replace struct args members by simple variables.
39188 Replace argp_parse() by getopt_long().
39189 Add switch to evaluate options.
39190 Add missing "(...)" around root_dev in prefix string.
39191
39192 2008-01-14 Robert Millan <rmh@aybabtu.com>
39193
39194 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39195 for grub_ieee1275_exit(), in order to improve portability.
39196
39197 2008-01-14 Robert Millan <rmh@aybabtu.com>
39198
39199 * util/grub.d/10_linux.in (prefix): Define.
39200 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39201
39202 2008-01-13 Pavel Roskin <proski@gnu.org>
39203
39204 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39205 grub_errno if no errors have been detected.
39206
39207 2008-01-12 Robert Millan <rmh@aybabtu.com>
39208
39209 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39210 (grub_util_get_dev_abstraction): New function prototype.
39211
39212 * util/getroot.c: Include `<grub/util/getroot.h>'
39213 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39214 (grub_util_get_dev_abstraction): ... here (new function).
39215
39216 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39217 `PRINT_ABSTRACTION'.
39218 (probe): Probe for abstraction type when requested.
39219 (main): Understand `--target=abstraction'.
39220
39221 * util/i386/efi/grub-install.in: Add abstraction module to core
39222 image when it is found to be necessary.
39223 * util/i386/pc/grub-install.in: Likewise.
39224 * util/powerpc/ieee1275/grub-install.in: Likewise.
39225
39226 * util/update-grub_lib.in (font_path): Return system path without
39227 converting to GRUB path.
39228 * util/update-grub.in: Convert system path returned by font_path()
39229 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39230 abstraction module is needed for loading fonts (if any). Export
39231 that as `GRUB_PRELOAD_MODULES'.
39232 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39233 insmod commands).
39234
39235 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39236
39237 Remove some unused code from reiserfs.
39238
39239 * fs/reiserfs.c (struct grub_reiserfs_key)
39240 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39241 (struct grub_reiserfs_node_body): Removed.
39242 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39243 Likewise.
39244 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39245 Likewise.
39246 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39247 Likewise.
39248 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39249 Likewise.
39250 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39251 Likewise.
39252 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39253 Likewise.
39254 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39255 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39256 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39257
39258 2008-01-10 Robert Millan <rmh@aybabtu.com>
39259
39260 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39261 Determines if a file is garbage left by packaging systems, etc.
39262 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39263 for processing /etc/grub.d scripts.
39264 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39265 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39266 as a condition for processing Linux images.
39267
39268 2008-01-10 Pavel Roskin <proski@gnu.org>
39269
39270 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39271 to compile reiserfs.c on PowerPC.
39272
39273 2008-01-10 Robert Millan <rmh@aybabtu.com>
39274
39275 * kern/device.c (grub_device_iterate): Do not abort device iteration
39276 when one of the devices cannot be opened.
39277 * kern/disk.c (grub_disk_open): Do not account previous failures of
39278 unrelated functions when grub_errno is checked for.
39279
39280 2008-01-08 Robert Millan <rmh@aybabtu.com>
39281
39282 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39283 `! grub_linux_is_bzimage', change order of address comparison to make
39284 it more intuitive, and improve "too big zImage" error message.
39285
39286 2008-01-08 Robert Millan <rmh@aybabtu.com>
39287
39288 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39289 `$(update-grub_DATA)'.
39290 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39291 targets.
39292
39293 2008-01-07 Robert Millan <rmh@aybabtu.com>
39294
39295 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39296 which instruction is modified by grub-setup during installation
39297 (since it wasn't obvious by only looking at this file).
39298
39299 2008-01-07 Robert Millan <rmh@aybabtu.com>
39300
39301 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39302 listing actual TODO items.
39303
39304 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39305
39306 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39307 correctly.
39308 (grub_reiserfs_get_key_offset): Likewise.
39309 (grub_reiserfs_set_key_offset): Likewise.
39310 (grub_reiserfs_set_key_type): Likewise.
39311 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39312
39313 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39314 better to remove the bitfield version completely.
39315
39316 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39317
39318 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39319 allocated from the heap, due to the fshelp implementation.
39320 (grub_reiserfs_dir): Free NODE, due to the same reason.
39321
39322 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39323
39324 Mostly from Vincent Pelletier:
39325
39326 * fs/reiserfs.c: New file.
39327
39328 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39329 (reiserfs_mod_SOURCES): New variable.
39330 (reiserfs_mod_CFLAGS): Likewise.
39331 (reiserfs_mod_LDFLAGS): Likewise.
39332
39333 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39334 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39335 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39336 normal/color.c.
39337
39338 2008-01-06 Robert Millan <rmh@aybabtu.com>
39339
39340 * normal/color.c: Remove `<grub/env.h>'.
39341
39342 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39343
39344 * include/grub/normal.h: Include <grub/env.h>.
39345
39346 2008-01-05 Robert Millan <rmh@aybabtu.com>
39347
39348 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39349 usage example with `(hd0,1)'.
39350 Reported by Samuel Thibault.
39351
39352 2008-01-05 Robert Millan <rmh@aybabtu.com>
39353
39354 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39355 (grub_linux_boot_zimage): Rename to ...
39356 (grub_linux_boot): ... this.
39357 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39358 (grub_linux_boot_zimage): Conditionalize zImage copy.
39359
39360 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39361 (grub_linux_boot_bzimage): Remove prototype.
39362 (grub_linux_boot_zimage): Rename to ...
39363 (grub_linux_boot): ... this.
39364
39365 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39366 (grub_linux_boot): Remove function.
39367
39368 2008-01-05 Robert Millan <rmh@aybabtu.com>
39369
39370 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39371 (grub_env_write_color_highlight): Likewise.
39372 (grub_wait_after_message): Likewise.
39373
39374 * normal/color.c: New file.
39375
39376 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39377 (normal_mod_DEPENDENCIES): Likewise.
39378
39379 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39380 (normal_mod_DEPENDENCIES): Likewise.
39381
39382 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39383 (normal_mod_DEPENDENCIES): Likewise.
39384
39385 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39386 (normal_mod_DEPENDENCIES): Likewise.
39387
39388 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39389 for waiting after a message is printed.
39390 * normal/main.c (read_config_file): Likewise.
39391 (grub_normal_init): Register grub_env_write_color_normal() and
39392 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39393 `color_highlight' variables as global.
39394
39395 * normal/menu.c (grub_wait_after_message): New function.
39396 (grub_color_menu_normal): New variable. Replaces ...
39397 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39398 (grub_color_menu_highlight): New variable. Replaces ...
39399 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39400 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39401 `GRUB_TERM_COLOR_STANDARD'.
39402 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39403 `normal_code' and `highlight_code' to `old_color_normal' and
39404 `old_color_highlight', respectively.
39405 (grub_menu_init_page): Update colors when drawing the menu, based on
39406 `menu_color_normal' and `menu_color_highlight' variables.
39407 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39408 a message is printed.
39409
39410 2008-01-05 Robert Millan <rmh@aybabtu.com>
39411
39412 * kern/env.c (grub_env_context_open): Propagate hooks for global
39413 variables to new context.
39414
39415 * kern/main.c (grub_set_root_dev): Export `root' variable.
39416
39417 2008-01-05 Robert Millan <rmh@aybabtu.com>
39418
39419 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39420 discs unconditionally, since udev and others have options to provide
39421 them.
39422
39423 2008-01-05 Robert Millan <rmh@aybabtu.com>
39424
39425 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39426
39427 2008-01-04 Christian Franke <franke@computer.org>
39428
39429 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39430 of eisa_mmap.
39431
39432 2008-01-03 Pavel Roskin <proski@gnu.org>
39433
39434 * kern/i386/linuxbios/init.c: Put "void" to all function
39435 declarations with no arguments.
39436 * kern/powerpc/ieee1275/init.c: Likewise.
39437 * term/i386/pc/at_keyboard.c: Likewise.
39438 * term/i386/pc/vga_text.c: Likewise.
39439 * util/grub-mkdevicemap.c: Likewise.
39440
39441 2008-01-02 Robert Millan <rmh@aybabtu.com>
39442
39443 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39444 message when loaded image is out of bounds.
39445 (grub_multiboot_load_elf64): Likewise.
39446
39447 2008-01-02 Pavel Roskin <proski@gnu.org>
39448
39449 * util/grub.d/10_linux.in: Try version without ".old" when
39450 looking for initrd. It's better to use initrd from the newer
39451 kernel of the same version than no initrd at all.
39452
39453 2008-01-01 Robert Millan <rmh@aybabtu.com>
39454
39455 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39456
39457 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39458
39459 * include/grub/video.h: Added grub_video_unmap_color and
39460 grub_video_get_active_render_target.
39461 (grub_video_adapter): Added unmap_color and get_active_render_target.
39462
39463 * video/video.c: Added grub_video_unmap_color and
39464 grub_video_get_active_render_target.
39465 (grub_video_get_info): Changed method to accept NULL pointer as an
39466 argument to allow detection of active video adapter.
39467
39468 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39469 grub_video_vbe_unmap_color_int.
39470 Added grub_video_vbe_unmap_color and
39471 grub_video_vbe_get_active_render_target.
39472 (grub_video_vbe_adapter): Added unmap_color and
39473 get_active_render_target.
39474
39475 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39476 with grub_video_vbe_unmap_color_int.
39477
39478 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39479 (DEFAULT_NORMAL_COLOR): Likewise.
39480 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39481 (DEFAULT_FG_COLOR): Removed.
39482 (DEFAULT_BG_COLOR): Likewise.
39483 (DEFAULT_CURSOR_COLOR): Changed value.
39484 (grub_virtual_screen): Added standard_color_setting,
39485 normal_color_setting, highlight_color_setting and term_color.
39486 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39487 (bitmap_width): Added.
39488 (bitmap_height): Likewise.
39489 (bitmap): Likewise.
39490 (set_term_color): Likewise.
39491 (grub_virtual_screen_setup): Changed to use new terminal coloring
39492 settings.
39493 (grub_gfxterm_init): Added init for bitmap.
39494 (grub_gfxterm_fini): Added destroy for bitmap.
39495 (redraw_screen_rect): Updated to use background bitmap and new
39496 terminal coloring.
39497 (scroll_up): Added optimization for case when there is no bitmap.
39498 (grub_gfxterm_cls): Fixed to use correct background color.
39499 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39500 coloring.
39501 (grub_virtual_screen_setcolor): Likewise.
39502 (grub_virtual_screen_getcolor): Added.
39503 (grub_gfxterm_background_image_cmd): Likewise.
39504 (grub_video_term): Added setcolor and getcolor.
39505 (MOD_INIT): Added registration of background_image command.
39506 (MOD_TERM): Added unregistration for background_image command.
39507
39508 2007-12-30 Pavel Roskin <proski@gnu.org>
39509
39510 * loader/multiboot_loader.c: Fix multiboot command
39511 unregistration. Fix all typos in the word "multiboot".
39512
39513 2007-12-29 Pavel Roskin <proski@gnu.org>
39514
39515 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39516 support for initrd names used in Fedora.
39517
39518 2007-12-26 Bean <bean123ch@gmail.com>
39519
39520 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39521 (cpio_mod_SOURCES): New variable.
39522 (cpio_mod_CFLAGS): Likewise.
39523 (cpio_mod_LDFLAGS): Likewise.
39524
39525 * fs/cpio.c: New file.
39526
39527 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39528
39529 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39530
39531 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39532
39533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39534
39535 2007-12-25 Robert Millan <rmh@aybabtu.com>
39536
39537 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39538 (grub_getcolor): New function.
39539
39540 * kern/term.c (grub_getcolor): New function.
39541 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39542 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39543 (print_entry): Set normal and highlight colors to
39544 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39545 respectively, before printing and restore them to old
39546 values afterwards.
39547 (grub_menu_init_page): Likewise. Fill an additional colored space
39548 that would otherwise be left blank.
39549
39550 * term/efi/console.c (grub_console_getcolor): New function.
39551 (struct grub_console_term.getcolor): New variable.
39552 * term/i386/pc/console.c (grub_console_getcolor): New function.
39553 (struct grub_console_term.getcolor): New variable.
39554 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39555 (struct grub_console_term.getcolor): New variable.
39556
39557 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39558 (struct grub_console_term.setcolor): Remove variable.
39559 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39560 (struct grub_console_term.setcolor): Remove variable.
39561 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39562 (struct grub_console_term.setcolor): Remove variable.
39563 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39564 (struct grub_console_term.setcolor): Remove variable.
39565
39566 2007-12-25 Robert Millan <rmh@aybabtu.com>
39567
39568 * configure.ac: Search for possible unifont.hex locations, and
39569 define UNIFONT_HEX if found.
39570
39571 * Makefile.in (UNIFONT_HEX): Define variable.
39572 (DATA): Rename to ...
39573 (PKGLIB): ... this. Update all users.
39574 (PKGDATA): New variable.
39575 (pkgdata_IMAGES): Rename to ...
39576 (pkglib_IMAGES): ... this. Update all users.
39577 (pkgdata_MODULES): Rename to ...
39578 (pkglib_MODULES): ... this. Update all users.
39579 (pkgdata_PROGRAMS): Rename to ...
39580 (pkglib_PROGRAMS): ... this. Update all users.
39581 (pkgdata_DATA): Rename to ...
39582 (pkglib_DATA): ... this. Update all users.
39583 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39584 (unicode.pff, ascii.pff): New rules.
39585 (all-local): Add `$(PKGDATA)' dependency.
39586 (install-local): Process `$(PKGDATA)'.
39587
39588 * util/update-grub_lib.in (font_path): Search for *.pff files in
39589 a few more locations, including `${pkgdata}'.
39590
39591 2007-12-23 Robert Millan <rmh@aybabtu.com>
39592
39593 Patch from Bean <bean123ch@gmail.com>:
39594 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39595 `size'.
39596
39597 2007-12-21 Bean <bean123ch@gmail.com>
39598
39599 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39600 (ntfscomp_mod_SOURCES): New variable.
39601 (ntfscomp_mod_CFLAGS): Likewise.
39602 (ntfscomp_mod_LDFLAGS): Likewise.
39603
39604 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39605 (grub_probe_SOURCES): Likewise.
39606 (grub_emu_SOURCES): Likewise.
39607
39608 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39609 (grub_emu_SOURCES): Likewise.
39610
39611 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39612 (grub_emu_SOURCES): Likewise.
39613
39614 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39615 (grub_emu_SOURCES): Likewise.
39616
39617 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39618 (read_run_list): Renamed to grub_ntfs_read_run_list.
39619 (decomp_nextvcn): Moved to ntfscomp.c.
39620 (decomp_getch): Likewise.
39621 (decomp_get16): Likewise.
39622 (decomp_block): Likewise.
39623 (read_block): Likewise.
39624 (read_data): Partially moved to ntfscomp.c.
39625 (fixup): Change unsigned to grub_uint16_t.
39626 (read_mft): Change unsigned long to grub_uint32_t.
39627 (read_attr): Likewise.
39628 (read_data): Likewise.
39629 (read_run_data): Likewise.
39630 (read_run_list): Likewise.
39631 (read_mft): Likewise.
39632
39633 * fs/ntfscomp.c: New file.
39634
39635 * include/grub/ntfs.h: New file.
39636
39637 2007-12-16 Robert Millan <rmh@aybabtu.com>
39638
39639 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39640 IDE disk check, since Linux is known to support 20 IDE disks.
39641 Reported by Colin Watson.
39642
39643 2007-12-15 Bean <bean123ch@gmail.com>
39644
39645 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39646 (lnxboot_img_SOURCES): New variable.
39647 (lnxboot_img_ASFLAGS): Likewise.
39648 (lnxboot_img_LDFLAGS): Likewise.
39649
39650 * boot/i386/pc/lnxboot.S: New file.
39651
39652 2007-11-24 Pavel Roskin <proski@gnu.org>
39653
39654 * configure.ac: Test if '--build-id=none' is supported by the
39655 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39656 objcopy to generate incorrect binary files (binutils
39657 2.17.50.0.18-1 as shipped by Fedora 8).
39658 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39659 linking, so that build ID doesn't break the test.
39660
39661 2007-11-24 Pavel Roskin <proski@gnu.org>
39662
39663 * include/grub/i386/time.h: use "void" in the argument list
39664 of grub_cpu_idle().
39665 * include/grub/powerpc/time.h: Likewise.
39666 * include/grub/sparc64/time.h: Likewise.
39667
39668 2007-11-18 Christian Franke <franke@computer.org>
39669
39670 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39671 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39672 This fixes the problem that function keys did not work in grub-emu.
39673
39674 2007-11-18 Christian Franke <franke@computer.org>
39675
39676 * disk/host.c (grub_host_open): Remove attribute unused from
39677 name parameter. Add check for "host". This fixes the problem
39678 that grub-emu does not find partitions.
39679
39680 2007-11-18 Christian Franke <franke@computer.org>
39681
39682 * util/hostfs.c (is_dir): New function.
39683 (grub_hostfs_dir): Handle missing dirent.d_type case.
39684 (grub_hostfs_read): Add missing fseek().
39685 (grub_hostfs_label): Clear label pointer. This fixes a crash
39686 of grub-emu on "ls (host)".
39687
39688 2007-11-18 Christian Franke <franke@computer.org>
39689
39690 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39691 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39692 to 64 bit boundary by default.
39693
39694 2007-11-18 Bean <bean123ch@gmail.com>
39695
39696 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39697 (hexdump_mod_SOURCES): New variable.
39698 (hexdump_mod_CFLAGS): Likewise.
39699 (hexdump_mod_LDFLAGS): Likewise.
39700
39701 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39702
39703 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39704
39705 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39706
39707 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39708
39709 * include/grub/hexdump.h: New file.
39710
39711 * commands/hexdump.c: New file.
39712
39713 2007-11-10 Robert Millan <rmh@aybabtu.com>
39714
39715 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39716 in grub_outb() calls.
39717 (beep_on): Likewise.
39718
39719 2007-11-10 Christian Franke <franke@computer.org>
39720
39721 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39722 (grub_menu_run): Likewise.
39723
39724 2007-11-10 Robert Millan <rmh@aybabtu.com>
39725
39726 * include/grub/i386/efi/machine.h: New file.
39727 * include/grub/i386/linuxbios/machine.h: Likewise.
39728 * include/grub/i386/pc/machine.h: Likewise.
39729 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39730 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39731
39732 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39733 (serial_hw_io_addr): New variable.
39734 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39735 instead of `(unsigned short *) 0x400'.
39736
39737 2007-11-10 Bean <bean123ch@gmail.com>
39738
39739 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39740
39741 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39742
39743 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39744 (vga_mod_SOURCES): Added.
39745 (vga_mod_CFLAGS): Likewise.
39746 (vga_mod_LDFLAGS): Likewise.
39747
39748 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39749 grub_outb() calls.
39750 (set_map_mask): Likewise.
39751 (set_read_map): Likewise.
39752 (set_read_address): Likewise.
39753 (vga_font): Removed variable.
39754 (get_vga_glyph): Removed function.
39755 (invalidate_char): Likewise.
39756 (write_char): Changed to use grub_font_get_glyph() for font
39757 information.
39758 (grub_vga_putchar): Likewise.
39759 (grub_vga_getcharwidth): Likewise.
39760
39761 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39762
39763 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39764 flags.
39765 (pxeboot_img_LDFLAGS): Likewise.
39766 (diskboot_img_LDFLAGS): Likewise.
39767 (kernel_img_LDFLAGS): Likewise.
39768
39769 2007-11-06 Robert Millan <rmh@aybabtu.com>
39770
39771 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39772 in grub_outb() calls.
39773 (serial_hw_init): Likewise.
39774
39775 2007-11-05 Robert Millan <rmh@aybabtu.com>
39776
39777 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39778 spaces. Skip non-regular files.
39779
39780 2007-11-05 Robert Millan <rmh@aybabtu.com>
39781
39782 * kern/disk.c (grub_disk_firmware_fini)
39783 (grub_disk_firmware_is_tainted): New variables.
39784
39785 * include/grub/disk.h (grub_disk_firmware_fini)
39786 (grub_disk_firmware_is_tainted): Likewise.
39787
39788 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39789 (grub_disk_biosdisk_fini): ... to here.
39790 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39791 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39792 is set. Register grub_disk_biosdisk_fini() in
39793 `grub_disk_firmware_fini'.
39794
39795 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39796 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39797 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39798 to finish existing firmware disk interface.
39799
39800 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39801 (ata_mod_SOURCES): New variable.
39802 (ata_mod_CFLAGS): Likewise.
39803 (ata_mod_LDFLAGS): Likewise.
39804
39805 2007-11-05 Robert Millan <rmh@aybabtu.com>
39806
39807 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39808 (grub_ata_wait): Reimplement using grub_millisleep().
39809
39810 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39811 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39812
39813 2007-11-03 Marco Gerards <marco@gnu.org>
39814
39815 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39816 (CRTC_ADDR_PORT): New macro.
39817 (CRTC_DATA_PORT): Likewise.
39818 (CRTC_CURSOR): Likewise.
39819 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39820 (CRTC_CURSOR_ADDR_LOW): Likewise.
39821 (update_cursor): New function.
39822 (grub_console_real_putchar): Call `update_cursor'.
39823 (grub_console_gotoxy): Likewise.
39824 (grub_console_cls): Set the default color when clearing the
39825 screen.
39826 (grub_console_setcursor): Implemented.
39827
39828 2007-11-03 Marco Gerards <marco@gnu.org>
39829
39830 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39831 become activate.
39832 (grub_ata_pio_write): Likewise.
39833
39834 (grub_atapi_identify): Wait after issuing an ATA command.
39835 (grub_atapi_packet): Likewise.
39836 (grub_ata_identify): Likewise.
39837 (grub_ata_readwrite): Likewise.
39838
39839 2007-11-03 Marco Gerards <marco@gnu.org>
39840
39841 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39842 (grub_ata_pio_write): Likewise.
39843 (grub_ata_readwrite): Use `grub_error', instead of
39844 returning `grub_errno'.
39845
39846 2007-11-03 Marco Gerards <marco@gnu.org>
39847
39848 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39849 grub_ata_pio_write once for every single sector, instead of for
39850 multiple sectors.
39851
39852 2007-10-31 Robert Millan <rmh@aybabtu.com>
39853
39854 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39855
39856 * conf/i386-linuxbios.rmk: New file.
39857
39858 * kern/i386/pc/hardware.c: Likewise.
39859 * term/i386/pc/at_keyboard.c: Likewise.
39860 * term/i386/pc/vga_text.c: Likewise.
39861
39862 * include/grub/i386/linuxbios/boot.h: Likewise.
39863 * include/grub/i386/linuxbios/console.h: Likewise.
39864 * include/grub/i386/linuxbios/init.h: Likewise.
39865 * include/grub/i386/linuxbios/kernel.h: Likewise.
39866 * include/grub/i386/linuxbios/loader.h: Likewise.
39867 * include/grub/i386/linuxbios/memory.h: Likewise.
39868 * include/grub/i386/linuxbios/serial.h: Likewise.
39869 * include/grub/i386/linuxbios/time.h: Likewise.
39870
39871 * kern/i386/linuxbios/init.c: Likewise.
39872 * kern/i386/linuxbios/startup.S: Likewise.
39873 * kern/i386/linuxbios/table.c: Likewise.
39874
39875 2007-10-31 Marco Gerards <marco@gnu.org>
39876
39877 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39878 (ata_mod_SOURCES): New variable.
39879 (ata_mod_CFLAGS): Likewise.
39880 (ata_mod_LDFLAGS): Likewise.
39881
39882 * disk/ata.c: New file.
39883
39884 * include/grub/disk.h (grub_disk_dev_id): Add
39885 `GRUB_DISK_DEV_ATA_ID'.
39886
39887 2007-10-31 Robert Millan <rmh@aybabtu.com>
39888
39889 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
39890 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
39891
39892 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
39893 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
39894
39895 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
39896 `<grub/types.h>'.
39897
39898 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
39899
39900 2007-10-27 Robert Millan <rmh@aybabtu.com>
39901
39902 * include/grub/types.h (ULONG_MAX): Define macro.
39903
39904 2007-10-22 Robert Millan <rmh@aybabtu.com>
39905
39906 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
39907 `"../realmode.S"'.
39908 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
39909
39910 2007-10-22 Robert Millan <rmh@aybabtu.com>
39911
39912 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
39913 (pkgdata_MODULES): Add `biosdisk.mod'.
39914 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
39915 variables.
39916
39917 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
39918 (grub_biosdisk_init): Replace with ...
39919 (GRUB_MOD_INIT(biosdisk)): ... this.
39920 (grub_biosdisk_fini): Replace with ...
39921 (GRUB_MOD_FINI(biosdisk)): ... this.
39922
39923 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
39924 (grub_machine_init): Remove call to grub_biosdisk_init().
39925 (grub_machine_fini): Remove call to grub_machine_fini().
39926
39927 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
39928
39929 2007-10-22 Robert Millan <rmh@aybabtu.com>
39930
39931 * include/grub/time.h: New file.
39932 * include/grub/i386/time.h: Likewise.
39933 * include/grub/powerpc/time.h: Likewise.
39934 * include/grub/sparc64/time.h: Likewise.
39935
39936 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
39937 instances to ...
39938 (KERNEL_MACHINE_TIME_HEADER): ... this.
39939 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39940 instances to ...
39941 (KERNEL_MACHINE_TIME_HEADER): ... this.
39942 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39943 instances to ...
39944 (KERNEL_MACHINE_TIME_HEADER): ... this.
39945
39946 * kern/i386/efi/init.c: Include `<grub/time.h>'.
39947 (grub_millisleep): New function.
39948 * kern/i386/pc/init.c: Include `<grub/time.h>'.
39949 (grub_millisleep): New function.
39950 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
39951 Remove `grub/machine/time.h' include.
39952 (grub_millisleep): New function.
39953 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
39954 Remove `grub/machine/time.h' include.
39955 (grub_millisleep): New function.
39956
39957 * include/grub/misc.h (grub_div_roundup): New function.
39958
39959 * kern/misc.c: Include `<grub/time.h>'.
39960 (grub_millisleep_generic): New function.
39961
39962 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
39963 Add `time.h'.
39964 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
39965 Add `time.h'.
39966 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
39967 `machine/time.h'. Add `time.h'.
39968 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
39969
39970 2007-10-21 Robert Millan <rmh@aybabtu.com>
39971
39972 * include/grub/misc.h (grub_max): New function.
39973
39974 2007-10-21 Robert Millan <rmh@aybabtu.com>
39975
39976 * util/misc.c (grub_util_info): Call fflush() before returning.
39977
39978 2007-10-20 Robert Millan <rmh@aybabtu.com>
39979
39980 * genmk.rb (Image): Copy `extra_flags' from here ...
39981 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
39982
39983 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
39984 to `argc' and `args' arguments.
39985
39986 2007-10-17 Robert Millan <rmh@aybabtu.com>
39987
39988 * kern/i386/loader.S: New file.
39989
39990 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
39991 * kern/i386/loader.S (grub_linux_prot_size)... to here.
39992 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
39993 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
39994 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
39995 * kern/i386/loader.S (grub_linux_real_addr)... to here.
39996 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
39997 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
39998 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
39999 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40000 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40001 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40002 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40003 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40004
40005 * kern/i386/realmode.S: New file.
40006
40007 * kern/i386/pc/startup.S (protstack): Moved from here ...
40008 * kern/i386/realmode.S (protstack)... to here.
40009 * kern/i386/pc/startup.S (gdt): Moved from here ...
40010 * kern/i386/realmode.S (gdt)... to here.
40011 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40012 * kern/i386/realmode.S (prot_to_real)... to here.
40013
40014 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40015 `kern/i386/realmode.S'.
40016
40017 2007-10-17 Robert Millan <rmh@aybabtu.com>
40018
40019 * include/grub/i386/loader.h: New file.
40020
40021 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40022 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40023 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40024 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40025 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40026 * include/grub/i386/loader.h (grub_linux_prot_size)
40027 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40028 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40029 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40030 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40031
40032 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40033
40034 2007-10-15 Robert Millan <rmh@aybabtu.com>
40035
40036 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40037 filesystem when dev->disk is unset.
40038 Do probe for filesystem even when dev->disk->has_partitions is set.
40039 In case a filesystem is found, always report it.
40040 In case it isn't, if dev->disk->has_partitions is set, report that
40041 a partition table was found instead of reporting that no filesystem
40042 could be identified.
40043
40044 2007-10-12 Robert Millan <rmh@aybabtu.com>
40045
40046 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40047 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40048
40049 * include/grub/types.h (grub_host_to_target16): New macro.
40050 (grub_host_to_target32): Likewise.
40051 (grub_host_to_target64): Likewise.
40052 (grub_target_to_host16): Likewise.
40053 (grub_target_to_host32): Likewise.
40054 (grub_target_to_host64): Likewise.
40055
40056 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40057 Renamed from to ...
40058 (GRUB_MOD_ALIGN): ...this. Update all users.
40059
40060 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40061 grub_host_to_target32.
40062 Replace grub_be_to_cpu32 with grub_target_to_host32.
40063 (load_modules): Likewise.
40064 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40065 Replace grub_be_to_cpu32 with grub_target_to_host32.
40066 Replace grub_cpu_to_be16 with grub_host_to_target16.
40067 Replace grub_cpu_to_be32 grub_host_to_target32.
40068
40069 2007-10-12 Robert Millan <rmh@aybabtu.com>
40070
40071 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40072 * util/elf/grub-mkimage.c: ... here.
40073
40074 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40075 `util/powerpc/ieee1275/grub-mkimage.c'.
40076
40077 2007-10-07 Robert Millan <rmh@aybabtu.com>
40078
40079 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40080 and make it easier to figure out.
40081 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40082 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40083 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40084 leave us with less than HEAP_MIN_SIZE total heap.
40085 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40086
40087 2007-10-03 Robert Millan <rmh@aybabtu.com>
40088
40089 * include/grub/i386/io.h: New file.
40090 * commands/i386/pc/play.c (inb): Removed.
40091 (outb): Removed.
40092 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40093 with grub_outb().
40094 * term/i386/pc/serial.c (inb): Removed.
40095 (outb): Removed.
40096 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40097 with grub_outb().
40098 * term/i386/pc/vga.c (inb): Removed.
40099 (outb): Removed.
40100 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40101 with grub_outb().
40102
40103 2007-10-02 Robert Millan <rmh@aybabtu.com>
40104
40105 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40107 Reported by Marcin Kurek.
40108
40109 2007-09-07 Robert Millan <rmh@aybabtu.com>
40110
40111 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40112 SmartFirmware version updates (as released by Sven Luther), and avoid
40113 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40114 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40115 known broken.
40116
40117 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40118
40119 From Hitoshi Ozeki:
40120 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40121 when merging two regions.
40122
40123 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40124
40125 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40126 * normal/completion.c (grub_normal_do_completion): Likewise.
40127 Reported by Hitoshi Ozeki.
40128
40129 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40130
40131 Do not use devices at boot in chainloading.
40132
40133 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40134 (boot_part_addr): Likewise.
40135 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40136 with BOOT_DRIVE and BOOT_PART_ADDR.
40137 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40138 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40139
40140 2007-08-29 Robert Millan <rmh@aybabtu.com>
40141
40142 Patch from Simon Peter <dn.tlp@gmx.net>:
40143 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40144 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40145 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40146 util/i386/pc/grub-setup.c_DEPENDENCIES.
40147 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40148 util/grub-probe.c_DEPENDENCIES.
40149 * conf/powerpc-ieee1275.rmk: Likewise.
40150
40151 2007-08-28 Robert Millan <rmh@aybabtu.com>
40152
40153 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40154 to tell grub-mkdevicemap how to name devices.
40155 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40156 feature).
40157
40158 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40159 util/i386/get_disk_name.c.
40160 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40161 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40162 util/ieee1275/get_disk_name.c.
40163
40164 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40165
40166 * DISTLIST: Add util/i386/get_disk_name.c and
40167 util/ieee1275/get_disk_name.c.
40168
40169 * util/grub-mkdevicemap.c: Replace device naming logic with
40170 grub_util_get_disk_name() calls.
40171
40172 2007-08-20 Robert Millan <rmh@aybabtu.com>
40173
40174 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40175 (so that it works for both plural and singular quantities).
40176
40177 2007-08-05 Robert Millan <rmh@aybabtu.com>
40178
40179 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40180 so that [xz] isn't taken into account when determining order.
40181
40182 2007-08-02 Marco Gerards <marco@gnu.org>
40183
40184 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40185 `include/multiboot2.h', `include/grub/elfload.h',
40186 `include/multiboot.h', `include/grub/multiboot.h',
40187 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40188 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40189 `kern/elf.c', `loader/multiboot_loader.c',
40190 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40191 `loader/i386/pc/multiboot2.c',
40192 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40193 `util/i386/pc/grub-mkrescue.in'. Remove
40194 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40195 `include/grub/i386/pc/util/biosdisk.h' and
40196 `include/grub/powerpc/ieee1275/multiboot.h'.
40197
40198 2007-08-02 Bean <bean123ch@gmail.com>
40199
40200 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40201 (ntfs_mod_SOURCES): New variable.
40202 (ntfs_mod_CFLAGS): Likewise.
40203 (ntfs_mod_LDFLAGS): Likewise.
40204
40205 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40206 (grub_probe_SOURCES): Likewise.
40207 (grub_emu_SOURCES): Likewise.
40208
40209 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40210 (grub_emu_SOURCES): Likewise.
40211
40212 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40213 (grub_emu_SOURCES): Likewise.
40214
40215 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40216
40217 * fs/ntfs.c: New file.
40218
40219 2007-08-02 Bean <bean123ch@gmail.com>
40220
40221 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40222
40223 * file.h (grub_file): Likewise.
40224
40225 * fshelp.h (grub_fshelp_read_file): Likewise.
40226
40227 * util/i386/pc/grub-setup.c (setup): Likewise.
40228 (save_first_sector): Likewise.
40229 (save_blocklists): Likewise.
40230
40231 * fs/affs.c (grub_affs_read_file): Likewise.
40232
40233 * fs/ext2.c (grub_ext2_read_file): Likewise.
40234
40235 * fs/fat.c (grub_fat_read_data): Likewise.
40236
40237 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40238
40239 * fs/hfs.c (grub_hfs_read_file): Likewise.
40240
40241 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40242
40243 * fs/jfs.c (grub_jfs_read_file): Likewise.
40244
40245 * fs/minix.c (grub_minix_read_file): Likewise.
40246
40247 * fs/sfs.c (grub_sfs_read_file): Likewise.
40248
40249 * fs/ufs.c (grub_ufs_read_file): Likewise.
40250
40251 * fs/xfs.c (grub_xfs_read_file): Likewise.
40252
40253 * command/blocklist.c (read_blocklist): Likewise.
40254 (print_blocklist): Likewise.
40255
40256 2007-08-02 Marco Gerards <marco@gnu.org>
40257
40258 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40259 `util/hostfs.c'.
40260
40261 * disk/host.c: New file.
40262
40263 * util/hostfs.c: Likewise.
40264
40265 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40266 return `GRUB_ERR_BAD_FS'.
40267 * fs/sfs.c (grub_sfs_mount): Likewise.
40268 * fs/xfs.c (grub_xfs_mount): Likewise.
40269
40270 * include/grub/disk.h (enum grub_disk_dev_id): Add
40271 `GRUB_DISK_DEVICE_HOST_ID'.
40272
40273 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40274
40275 2007-07-24 Jerone Young <jerone@gmail.com>
40276
40277 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40278 modules for compilation.
40279 * conf/powerpc-ieee1275.rmk: Likewise.
40280
40281 * include/multiboot.h: Move multiboot definitions to one file. Rename
40282 many definitions to not get grub specific.
40283 * include/multiboot2.h: Create header with multiboot 2 definitions.
40284 * include/grub/multiboot.h: Header for grub specific function
40285 prototypes and definitions.
40286 * include/grub/multiboot2.h: Likewise.
40287 * include/grub/multiboot_loader.h: Likewise.
40288 * include/grub/i386/pc/multiboot.h: Removed.
40289 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40290
40291 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40292 and 2 to allow for one multiboot and module commands.
40293 * loader/multiboot2.c: Add multiboot2 functionality.
40294 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40295 and definition names.
40296 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40297 2 functions.
40298 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40299 ieee1275 specific multiboot2 code.
40300
40301 * kern/i386/pc/startup.S: Change headers and definition names for
40302 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40303
40304 2007-07-22 Robert Millan <rmh@aybabtu.com>
40305
40306 * geninitheader.sh: Process file specified in first parameter rather
40307 than hardcoding grub_modules_init.lst.
40308 * geninit.sh: Likewise. Also, construct header name dynamically rather
40309 than hardcoding grub_modules_init.h.
40310
40311 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40312 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40313 grub_probe_init.[ch] and grub_setup_init.[ch].
40314
40315 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40316 grub_modules_init.h with grub_emu_init.h.
40317 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40318 grub_probe_init.[ch] files.
40319 * conf/i386-efi.rmk: Likewise.
40320 * conf/i386-pc.rmk: Likewise.
40321 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40322 grub_setup_init.[ch] files.
40323
40324 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40325 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40326 to initialize modules rather than a list of hardcoded functions.
40327 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40328 grub_init_all() to initialize modules rather than a list of hardcoded
40329 functions.
40330
40331 2007-07-22 Robert Millan <rmh@aybabtu.com>
40332
40333 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40334 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40335
40336 2007-07-22 Robert Millan <rmh@aybabtu.com>
40337
40338 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40339 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40340 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40341 flag when running on SmartFirmware.
40342 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40343 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40344 was set.
40345
40346 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40347 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40348 rather than decreasing it.
40349
40350 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40351 there's not enough space to do it, fail in the same way as when it
40352 can't be done because there are no partitions.
40353
40354 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40355 when nvsetenv failed.
40356
40357 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40358
40359 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40360 because this rule is automatically generated.
40361 (grub-mkrescue): Removed for the same reason as above.
40362
40363 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40364
40365 Migrate to GNU General Public License Version 3.
40366
40367 * COPYING: Replaced with the plain text version of GPLv3.
40368
40369 * config.guess: Updated from gnulib.
40370 * config.sub: Likewise.
40371
40372 * geninit.sh: Output a GPLv3 copyright notice.
40373 * geninitheader.sh: Likewise.
40374 * genmodsrc.sh: Likewise.
40375 * gensymlist.sh.in: Likewise.
40376
40377 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40378 * boot/i386/pc/diskboot.S: Likewise.
40379 * boot/i386/pc/pxeboot.S: Likewise.
40380 * commands/blocklist.c: Likewise.
40381 * commands/boot.c: Likewise.
40382 * commands/cat.c: Likewise.
40383 * commands/cmp.c: Likewise.
40384 * commands/configfile.c: Likewise.
40385 * commands/echo.c: Likewise.
40386 * commands/help.c: Likewise.
40387 * commands/ls.c: Likewise.
40388 * commands/search.c: Likewise.
40389 * commands/terminal.c: Likewise.
40390 * commands/test.c: Likewise.
40391 * commands/videotest.c: Likewise.
40392 * commands/i386/cpuid.c: Likewise.
40393 * commands/i386/pc/halt.c: Likewise.
40394 * commands/i386/pc/play.c: Likewise.
40395 * commands/i386/pc/reboot.c: Likewise.
40396 * commands/i386/pc/vbeinfo.c: Likewise.
40397 * commands/i386/pc/vbetest.c: Likewise.
40398 * commands/ieee1275/halt.c: Likewise.
40399 * commands/ieee1275/reboot.c: Likewise.
40400 * commands/ieee1275/suspend.c: Likewise.
40401 * disk/loopback.c: Likewise.
40402 * disk/lvm.c: Likewise.
40403 * disk/raid.c: Likewise.
40404 * disk/efi/efidisk.c: Likewise.
40405 * disk/i386/pc/biosdisk.c: Likewise.
40406 * disk/ieee1275/ofdisk.c: Likewise.
40407 * font/manager.c: Likewise.
40408 * fs/affs.c: Likewise.
40409 * fs/ext2.c: Likewise.
40410 * fs/fat.c: Likewise.
40411 * fs/fshelp.c: Likewise.
40412 * fs/hfs.c: Likewise.
40413 * fs/hfsplus.c: Likewise.
40414 * fs/iso9660.c: Likewise.
40415 * fs/jfs.c: Likewise.
40416 * fs/minix.c: Likewise.
40417 * fs/sfs.c: Likewise.
40418 * fs/ufs.c: Likewise.
40419 * fs/xfs.c: Likewise.
40420 * hello/hello.c: Likewise.
40421 * include/grub/acorn_filecore.h: Likewise.
40422 * include/grub/arg.h: Likewise.
40423 * include/grub/bitmap.h: Likewise.
40424 * include/grub/boot.h: Likewise.
40425 * include/grub/cache.h: Likewise.
40426 * include/grub/device.h: Likewise.
40427 * include/grub/disk.h: Likewise.
40428 * include/grub/dl.h: Likewise.
40429 * include/grub/elfload.h: Likewise.
40430 * include/grub/env.h: Likewise.
40431 * include/grub/err.h: Likewise.
40432 * include/grub/file.h: Likewise.
40433 * include/grub/font.h: Likewise.
40434 * include/grub/fs.h: Likewise.
40435 * include/grub/fshelp.h: Likewise.
40436 * include/grub/gzio.h: Likewise.
40437 * include/grub/hfs.h: Likewise.
40438 * include/grub/kernel.h: Likewise.
40439 * include/grub/loader.h: Likewise.
40440 * include/grub/lvm.h: Likewise.
40441 * include/grub/misc.h: Likewise.
40442 * include/grub/mm.h: Likewise.
40443 * include/grub/net.h: Likewise.
40444 * include/grub/normal.h: Likewise.
40445 * include/grub/parser.h: Likewise.
40446 * include/grub/partition.h: Likewise.
40447 * include/grub/pc_partition.h: Likewise.
40448 * include/grub/raid.h: Likewise.
40449 * include/grub/rescue.h: Likewise.
40450 * include/grub/script.h: Likewise.
40451 * include/grub/setjmp.h: Likewise.
40452 * include/grub/symbol.h: Likewise.
40453 * include/grub/term.h: Likewise.
40454 * include/grub/terminfo.h: Likewise.
40455 * include/grub/tparm.h: Likewise.
40456 * include/grub/types.h: Likewise.
40457 * include/grub/video.h: Likewise.
40458 * include/grub/efi/api.h: Likewise.
40459 * include/grub/efi/chainloader.h: Likewise.
40460 * include/grub/efi/console.h: Likewise.
40461 * include/grub/efi/console_control.h: Likewise.
40462 * include/grub/efi/disk.h: Likewise.
40463 * include/grub/efi/efi.h: Likewise.
40464 * include/grub/efi/pe32.h: Likewise.
40465 * include/grub/efi/time.h: Likewise.
40466 * include/grub/i386/linux.h: Likewise.
40467 * include/grub/i386/setjmp.h: Likewise.
40468 * include/grub/i386/types.h: Likewise.
40469 * include/grub/i386/efi/kernel.h: Likewise.
40470 * include/grub/i386/efi/loader.h: Likewise.
40471 * include/grub/i386/efi/time.h: Likewise.
40472 * include/grub/i386/pc/biosdisk.h: Likewise.
40473 * include/grub/i386/pc/boot.h: Likewise.
40474 * include/grub/i386/pc/chainloader.h: Likewise.
40475 * include/grub/i386/pc/console.h: Likewise.
40476 * include/grub/i386/pc/init.h: Likewise.
40477 * include/grub/i386/pc/kernel.h: Likewise.
40478 * include/grub/i386/pc/loader.h: Likewise.
40479 * include/grub/i386/pc/memory.h: Likewise.
40480 * include/grub/i386/pc/multiboot.h: Likewise.
40481 * include/grub/i386/pc/serial.h: Likewise.
40482 * include/grub/i386/pc/time.h: Likewise.
40483 * include/grub/i386/pc/vbe.h: Likewise.
40484 * include/grub/i386/pc/vbeblit.h: Likewise.
40485 * include/grub/i386/pc/vbefill.h: Likewise.
40486 * include/grub/i386/pc/vbeutil.h: Likewise.
40487 * include/grub/i386/pc/vga.h: Likewise.
40488 * include/grub/ieee1275/ieee1275.h: Likewise.
40489 * include/grub/ieee1275/ofdisk.h: Likewise.
40490 * include/grub/powerpc/libgcc.h: Likewise.
40491 * include/grub/powerpc/setjmp.h: Likewise.
40492 * include/grub/powerpc/types.h: Likewise.
40493 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40494 * include/grub/powerpc/ieee1275/console.h: Likewise.
40495 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40496 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40497 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40498 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40499 * include/grub/powerpc/ieee1275/time.h: Likewise.
40500 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40501 * include/grub/sparc64/libgcc.h: Likewise.
40502 * include/grub/sparc64/setjmp.h: Likewise.
40503 * include/grub/sparc64/types.h: Likewise.
40504 * include/grub/sparc64/ieee1275/console.h: Likewise.
40505 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40506 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40507 * include/grub/sparc64/ieee1275/time.h: Likewise.
40508 * include/grub/util/biosdisk.h: Likewise.
40509 * include/grub/util/getroot.h: Likewise.
40510 * include/grub/util/lvm.h: Likewise.
40511 * include/grub/util/misc.h: Likewise.
40512 * include/grub/util/raid.h: Likewise.
40513 * include/grub/util/resolve.h: Likewise.
40514 * io/gzio.c: Likewise.
40515 * kern/device.c: Likewise.
40516 * kern/disk.c: Likewise.
40517 * kern/dl.c: Likewise.
40518 * kern/elf.c: Likewise.
40519 * kern/env.c: Likewise.
40520 * kern/err.c: Likewise.
40521 * kern/file.c: Likewise.
40522 * kern/fs.c: Likewise.
40523 * kern/loader.c: Likewise.
40524 * kern/main.c: Likewise.
40525 * kern/misc.c: Likewise.
40526 * kern/mm.c: Likewise.
40527 * kern/parser.c: Likewise.
40528 * kern/partition.c: Likewise.
40529 * kern/rescue.c: Likewise.
40530 * kern/term.c: Likewise.
40531 * kern/efi/efi.c: Likewise.
40532 * kern/efi/init.c: Likewise.
40533 * kern/efi/mm.c: Likewise.
40534 * kern/i386/dl.c: Likewise.
40535 * kern/i386/efi/init.c: Likewise.
40536 * kern/i386/efi/startup.S: Likewise.
40537 * kern/i386/pc/init.c: Likewise.
40538 * kern/i386/pc/lzo1x.S: Likewise.
40539 * kern/i386/pc/startup.S: Likewise.
40540 * kern/ieee1275/ieee1275.c: Likewise.
40541 * kern/powerpc/cache.S: Likewise.
40542 * kern/powerpc/dl.c: Likewise.
40543 * kern/powerpc/ieee1275/cmain.c: Likewise.
40544 * kern/powerpc/ieee1275/crt0.S: Likewise.
40545 * kern/powerpc/ieee1275/init.c: Likewise.
40546 * kern/powerpc/ieee1275/openfw.c: Likewise.
40547 * kern/sparc64/cache.S: Likewise.
40548 * kern/sparc64/dl.c: Likewise.
40549 * kern/sparc64/ieee1275/init.c: Likewise.
40550 * kern/sparc64/ieee1275/openfw.c: Likewise.
40551 * loader/efi/chainloader.c: Likewise.
40552 * loader/efi/chainloader_normal.c: Likewise.
40553 * loader/i386/efi/linux.c: Likewise.
40554 * loader/i386/efi/linux_normal.c: Likewise.
40555 * loader/i386/pc/chainloader.c: Likewise.
40556 * loader/i386/pc/chainloader_normal.c: Likewise.
40557 * loader/i386/pc/linux.c: Likewise.
40558 * loader/i386/pc/linux_normal.c: Likewise.
40559 * loader/i386/pc/multiboot.c: Likewise.
40560 * loader/i386/pc/multiboot_normal.c: Likewise.
40561 * loader/powerpc/ieee1275/linux.c: Likewise.
40562 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40563 * normal/arg.c: Likewise.
40564 * normal/cmdline.c: Likewise.
40565 * normal/command.c: Likewise.
40566 * normal/completion.c: Likewise.
40567 * normal/execute.c: Likewise.
40568 * normal/function.c: Likewise.
40569 * normal/lexer.c: Likewise.
40570 * normal/main.c: Likewise.
40571 * normal/menu.c: Likewise.
40572 * normal/menu_entry.c: Likewise.
40573 * normal/misc.c: Likewise.
40574 * normal/parser.y: Likewise.
40575 * normal/script.c: Likewise.
40576 * normal/i386/setjmp.S: Likewise.
40577 * normal/powerpc/setjmp.S: Likewise.
40578 * normal/sparc64/setjmp.S: Likewise.
40579 * partmap/acorn.c: Likewise.
40580 * partmap/amiga.c: Likewise.
40581 * partmap/apple.c: Likewise.
40582 * partmap/gpt.c: Likewise.
40583 * partmap/pc.c: Likewise.
40584 * partmap/sun.c: Likewise.
40585 * term/gfxterm.c: Likewise.
40586 * term/terminfo.c: Likewise.
40587 * term/efi/console.c: Likewise.
40588 * term/i386/pc/console.c: Likewise.
40589 * term/i386/pc/serial.c: Likewise.
40590 * term/i386/pc/vesafb.c: Likewise.
40591 * term/i386/pc/vga.c: Likewise.
40592 * term/ieee1275/ofconsole.c: Likewise.
40593 * util/biosdisk.c: Likewise.
40594 * util/console.c: Likewise.
40595 * util/genmoddep.c: Likewise.
40596 * util/getroot.c: Likewise.
40597 * util/grub-emu.c: Likewise.
40598 * util/grub-mkdevicemap.c: Likewise.
40599 * util/grub-probe.c: Likewise.
40600 * util/lvm.c: Likewise.
40601 * util/misc.c: Likewise.
40602 * util/raid.c: Likewise.
40603 * util/resolve.c: Likewise.
40604 * util/update-grub.in: Likewise.
40605 * util/update-grub_lib.in: Likewise.
40606 * util/grub.d/00_header.in: Likewise.
40607 * util/grub.d/10_hurd.in: Likewise.
40608 * util/grub.d/10_linux.in: Likewise.
40609 * util/i386/efi/grub-install.in: Likewise.
40610 * util/i386/efi/grub-mkimage.c: Likewise.
40611 * util/i386/pc/grub-install.in: Likewise.
40612 * util/i386/pc/grub-mkimage.c: Likewise.
40613 * util/i386/pc/grub-mkrescue.in: Likewise.
40614 * util/i386/pc/grub-setup.c: Likewise.
40615 * util/i386/pc/misc.c: Likewise.
40616 * util/powerpc/ieee1275/grub-install.in: Likewise.
40617 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40618 * util/powerpc/ieee1275/misc.c: Likewise.
40619 * video/bitmap.c: Likewise.
40620 * video/video.c: Likewise.
40621 * video/i386/pc/vbe.c: Likewise.
40622 * video/i386/pc/vbeblit.c: Likewise.
40623 * video/i386/pc/vbefill.c: Likewise.
40624 * video/i386/pc/vbeutil.c: Likewise.
40625 * video/readers/tga.c: Likewise.
40626
40627 2007-07-02 Robert Millan <rmh@aybabtu.com>
40628
40629 * conf/i386-efi.rmk: Replace obsolete reference to
40630 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40631 with util/getroot.c.
40632 * conf/powerpc-ieee1275.rmk: Likewise.
40633 * conf/sparc64-ieee1275.rmk: Likewise.
40634
40635 * util/grub-emu.c (main): Fix unchecked pointer handling.
40636
40637 2007-07-02 Robert Millan <rmh@aybabtu.com>
40638
40639 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40640 invocation to fail, in order to support partition-less media.
40641
40642 * util/i386/pc/grub-install.in: Likewise.
40643
40644 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40645 which fs or partmap modules are needed (akin to its sister scripts).
40646
40647 Also use grub-probe to get rid of unportable /proc/mounts check.
40648
40649 Print the same informational message that the other scripts do, before
40650 exiting.
40651
40652 2007-06-23 Robert Millan <rmh@aybabtu.com>
40653
40654 * util/update-grub_lib.in (font_path): New function. Determine whether
40655 a font file can be found and, if so, echo the GRUB path to it.
40656
40657 * util/update-grub.in: Handle multiple terminals depending on user
40658 input, platform availability and font file presence. Propagate
40659 variables of our findings to /etc/grub.d/ children.
40660
40661 * util/grub.d/00_header.in: Handle multiple terminals, based on
40662 environment setup by update-grub.
40663
40664 2007-06-23 Robert Millan <rmh@aybabtu.com>
40665
40666 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40667
40668 2007-06-21 Robert Millan <rmh@aybabtu.com>
40669
40670 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40671 indicate end of data section in kernel image.
40672 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40673 GRUB_KERNEL_MACHINE_DATA_END.
40674
40675 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40676 space for it.
40677 * kern/i386/efi/startup.S: Likewise.
40678
40679 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40680 during image generation. Implement --prefix option to override this
40681 patch.
40682 * util/i386/efi/grub-mkimage.c: Likewise.
40683
40684 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40685 code to make path relative to its root into a separate function.
40686
40687 * util/i386/pc/grub-install.in: Use newly provided
40688 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40689 pass the result to grub-install --prefix.
40690
40691 2007-06-13 Robert Millan <rmh@aybabtu.com>
40692
40693 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40694 DEFAULT_DEVICE_MAP.
40695 * util/grub-emu.c: Use above definitions from misc.h instead of
40696 defining them.
40697 * util/grub-mkdevicemap.c: Likewise.
40698 * util/i386/pc/grub-setup.c: Likewise.
40699 * util/grub-probe.c: Likewise.
40700 (probe): Abort with grub_util_error() when either
40701 grub_guess_root_device or grub_util_get_grub_dev fails.
40702
40703 2007-06-12 Robert Millan <rmh@aybabtu.com>
40704
40705 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40706 "pager" assignment.
40707 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40708 "pcdata".
40709 * util/grub-probe.c (probe): Likewise for "drive_name".
40710
40711 2007-06-11 Robert Millan <rmh@aybabtu.com>
40712
40713 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40714 not just the cdrom one.
40715
40716 2007-06-11 Robert Millan <rmh@aybabtu.com>
40717
40718 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40719 Add --pkglibdir=DIR option to override pkglibdir.
40720 Mention --image-type=TYPE in help output.
40721 Fix --grub-mkimage (it was a no-op).
40722 Abort gracefully when no parameter is given.
40723
40724 2007-06-11 Robert Millan <rmh@aybabtu.com>
40725
40726 * util/i386/pc/grub-mkrescue.in: New file.
40727 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40728 * Makefile.in: Handle bin_SCRIPTS.
40729
40730 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40731
40732 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40733 list of video modes.
40734
40735 2007-06-06 Robert Millan <rmh@aybabtu.com>
40736
40737 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40738 file doesn't exist, or if it is in a filesystem grub can't read.
40739
40740 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40741 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40742 header comment to fit in 80 columns when the variables are resolved.
40743
40744 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40745 could be identified by update-grub. Remove redundant check for
40746 unifont.pff existence (since convert_system_path_to_grub_path now
40747 handles that).
40748
40749 2007-06-04 Robert Millan <rmh@aybabtu.com>
40750
40751 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40752
40753 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40754
40755 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40756
40757 2007-06-04 Robert Millan <rmh@aybabtu.com>
40758
40759 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40760
40761 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40762 grub_apple_partition_map_fini.
40763
40764 * util/biosdisk.c
40765 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40766 to access >2 TiB disks).
40767
40768 Print disk->total_sectors with %llu instead of %lu, since this
40769 variable is always 64-bit (prevents wrong disk size from being displayed
40770 on either >2 TiB disk or big-endian CPU).
40771
40772 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40773 into a generic case that supports all (sane) partition maps.
40774
40775 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40776 breaks big-endian.
40777
40778 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40779 and grub_apple_partition_map_fini() after that.
40780
40781 2007-06-01 Robert Millan <rmh@aybabtu.com>
40782
40783 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40784
40785 * util/grub.d/00_header.in: Only enable gfxterm when
40786 convert_system_path_to_grub_path() succeeds.
40787
40788 2007-05-20 Robert Millan <rmh@aybabtu.com>
40789
40790 * util/update-grub_lib.in: New file.
40791 * DISTLIST: Add update-grub_lib.in.
40792 * conf/common.rmk: Generate update-grub_lib and install it in
40793 $(lib_DATA).
40794 * Makefile.in: Add install routine for $(lib_DATA).
40795
40796 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40797 function provided by update-grub_lib to support arbitrary paths of
40798 unifont.pff.
40799 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40800 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40801
40802 2007-05-19 Robert Millan <rmh@aybabtu.com>
40803
40804 * commands/i386/cpuid.c: New module.
40805 * DISTLIST: Add it.
40806 * conf/i386-efi.rmk: Enable cpuid.mod.
40807 * conf/i386-pc.rmk: Likewise.
40808
40809 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40810
40811 * kern/disk.c (grub_disk_read): Check return value of
40812 grub_realloc().
40813
40814 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40815
40816 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40817 arrays.
40818 * disk/raid.c (grub_raid_open): Likewise.
40819
40820 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40821
40822 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40823 stack instead of on the heap.
40824
40825 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40826 before doing a read on it.
40827
40828 * configure.ac: Only use -fno-stack-protector for the target
40829 environment.
40830
40831 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40832
40833 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40834 __attribute_ ((unused)) to mode_type argument.
40835
40836 * util/getroot.c (grub_guess_root_device): Fix #endif.
40837
40838 * kern/misc.c (memcmp): Fix prototype.
40839
40840 * include/grub/partition.h [GRUB_UTIL]
40841 (grub_gpt_partition_map_init): Add prototype.
40842 (grub_gpt_partition_map_fini): Likewise.
40843
40844 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40845 at the right place.
40846
40847 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40848 (grub_fat_read_data): Likewise.
40849 (grub_fat_find_dir): Likewise.
40850
40851 * font/manager.c (find_glyph): Make table a const.
40852 (grub_font_get_glyph): Remove bitmap from if statement.
40853
40854 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40855
40856 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40857 code, first search for device in /dev/mapper, then in /dev.
40858 (grub_util_get_grub_dev): New function.
40859 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40860 prototype.
40861 * util/grub-probe.c (probe): Remove check for RAID, call
40862 grub_util_get_grub_dev() instead of
40863 grub_util_biosdisk_get_grub_dev().
40864 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40865 grub_util_biosdisk_get_grub_dev().
40866 * util/i386/pc/grub-setup.c (main): Likewise.
40867
40868 2007-05-16 Robert Millan <rmh@aybabtu.com>
40869
40870 * DISTLIST: Update for the latest changes.
40871 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40872 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40873 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40874 grub/util/biosdisk.h.
40875 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40876 grub/util/biosdisk.h.
40877
40878 2007-05-16 Robert Millan <rmh@aybabtu.com>
40879
40880 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40881
40882 2007-05-16 Robert Millan <rmh@aybabtu.com>
40883
40884 * util/i386/efi/grub-install.in: New.
40885 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40886 newly added grub-install.
40887 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
40888 include.
40889 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
40890 grub/util/biosdisk.h.
40891 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
40892 grub/util/biosdisk.h.
40893
40894 2007-05-16 Robert Millan <rmh@aybabtu.com>
40895
40896 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
40897 * include/grub/util/biosdisk.h: ... here.
40898 * util/i386/pc/biosdisk.c: Moved to ...
40899 * util/biosdisk.c: ... here.
40900 * util/i386/pc/getroot.c: Moved to ...
40901 * util/getroot.c: ... here.
40902 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
40903 * util/grub-mkdevicemap.c: ... here.
40904 * util/i386/pc/grub-probe.c: Moved to ...
40905 * util/grub-probe.c: ... here.
40906
40907 2007-05-15 Robert Millan <rmh@aybabtu.com>
40908
40909 * util/update-grub.in: Remove duplicated line in grub.cfg header
40910 message.
40911
40912 2007-05-13 Robert Millan <rmh@aybabtu.com>
40913
40914 * util/update-grub.in: Fix a few assumptions about the devices holding
40915 /, /boot and /boot/grub being the same.
40916 * util/grub.d/00_header.in: Likewise.
40917 * util/grub.d/10_hurd.in: Likewise.
40918 * util/grub.d/10_linux.in: Likewise.
40919
40920 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
40921 patterns. Use that to define the `.old' suffix as older than `'.
40922
40923 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
40924
40925 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
40926 the grub.cfg header message.
40927
40928 2007-05-11 Robert Millan <rmh@aybabtu.com>
40929
40930 * util/update-grub.in: Create device.map if it doesn't already exist,
40931 before attempting to run grub-probe.
40932 Check for grub-probe and grub-mkdevicemap with the same code
40933 grub-install is using.
40934 Remove test mode.
40935
40936 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
40937
40938 * Makefile.in: Add the datarootdir autoconf variable.
40939
40940 2007-05-09 Robert Millan <rmh@aybabtu.com>
40941
40942 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
40943 fail gracefully if dev->disk->partition == NULL.
40944
40945 2007-05-07 Robert Millan <rmh@aybabtu.com>
40946
40947 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
40948 determine partition map module.
40949 * util/i386/pc/grub-install.in: Use this feature to decide which
40950 partition module to load, instead of hardcoding pc and gpt.
40951
40952 2007-05-07 Robert Millan <rmh@aybabtu.com>
40953
40954 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
40955 source directory differs from build directory.
40956
40957 2007-05-05 Robert Millan <rmh@aybabtu.com>
40958
40959 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
40960 initialisation.
40961
40962 2007-05-05 Robert Millan <rmh@aybabtu.com>
40963
40964 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
40965
40966 2007-05-05 Robert Millan <rmh@aybabtu.com>
40967
40968 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
40969 command-line arguments via ${GRUB_CMDLINE_LINUX}.
40970
40971 2007-05-05 Robert Millan <rmh@aybabtu.com>
40972
40973 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
40974 (grub_probe_SOURCES): Likewise.
40975 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
40976 GPT and initialize dos_part and bsd_part accordingly.
40977 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
40978 install_bsd_part.
40979 (main): Activate gpt module for use during partition identification,
40980 and deactivate it afterwards.
40981 * util/i386/pc/grub-install.in: Add gpt module to core.img.
40982 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
40983 partition identification, and deactivate it afterwards.
40984
40985 2007-05-05 Robert Millan <rmh@aybabtu.com>
40986
40987 * term/i386/pc/console.c (grub_console_fini): Call
40988 grub_term_set_current() before grub_term_unregister().
40989
40990 2007-05-04 Robert Millan <rmh@aybabtu.com>
40991
40992 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
40993 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
40994 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
40995 and update-grub_DATA.
40996 * conf/common.rmk: Build and install update-grub components.
40997 * conf/common.mk: Regenerate.
40998 * util/update-grub.in: New. Core of update-grub.
40999 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41000 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41001 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41002 * util/grub.d/README: New. Document grub.d directory layout.
41003
41004 2007-05-01 Robert Millan <rmh@aybabtu.com>
41005
41006 * util/grub-emu.c: Move initialization functions
41007 grub_util_biosdisk_init() and grub_init_all() before
41008 grub_util_biosdisk_get_grub_dev(), which relies on them.
41009
41010 2007-04-19 Robert Millan <rmh@aybabtu.com>
41011
41012 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41013 it is used later.
41014
41015 2007-04-18 Jerone Young <jerone@gmail.com>
41016
41017 * kernel/elf.c: Add missing parenthesis for conditional statement
41018 stanza.
41019
41020 2007-04-10 Jerone Young <jerone@gmail.com>
41021
41022 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41023 continue on and look for device node with real device name.
41024
41025 2007-04-10 Jerone Young <jerone@gmail.com>
41026
41027 * configure.ac: Add argument for autoconf to use transformation
41028 ability.
41029 * Makefile.in: Add autoconf package transformation code.
41030 * util/i386/pc/grub-install.in: Likewise.
41031 * util/powerpc/ieee1275/grub-install.in: Likewise.
41032
41033 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41034
41035 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41036 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41037 (EXT2_REVISION): Likewise.
41038 (EXT2_INODE_SIZE): Likewise.
41039 (struct grub_ext2_block_group): Added a missing member
41040 "used_dirs".
41041 (grub_ext2_read_inode): Divide by the inode size in a superblock
41042 instead of 128 to obtain INODES_PER_BLOCK.
41043 Use the macro EXT2_INODE_SIZE instead of directly using
41044 SBLOCK->INODE_SIZE.
41045
41046 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41047
41048 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41049 superblock instead of the structure size to compute an
41050 offset. This fixes the problem that GRUB could not read a
41051 filesystem when inode size is different from 128-byte.
41052
41053 2007-03-05 Marco Gerards <marco@gnu.org>
41054
41055 * normal/main.c (read_config_file): When "menu" is not set, create
41056 an initial context.
41057
41058 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41059
41060 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41061 (HEAP_LIMIT): New macro.
41062 (grub_claim_heap): Claim memory up to `heaplimit'.
41063
41064 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41065
41066 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41067 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41068 (_start): Likewise.
41069 (grub_arch_modules_addr): Return address after `_end'.
41070 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41071 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41072 (add_segments): Calculate `_end' from phdr size and location.
41073 (ALIGN_UP): Moved to ...
41074 * include/grub/misc.h: here.
41075 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41076 New macro.
41077 (GRUB_IEEE1275_MODULE_BASE): Removed.
41078
41079 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41080
41081 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41082 loop boundary.
41083
41084 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41085
41086 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41087 All users updated.
41088 (grub_elf64_load_hook_t): Likewise.
41089 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41090 debug output.
41091
41092 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41093
41094 * kern/mm.c: Update copyright.
41095 (grub_mm_debug): Correct syntax error.
41096 (grub_mm_dump_free): New function.
41097 (grub_debug_free): Call `grub_free'.
41098 * include/grub/mm.h: Update copyright.
41099 (grub_mm_dump_free): Add declaration.
41100
41101 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41102
41103 * include/grub/ieee1275/ieee1275.h: Update copyright.
41104 * kern/powerpc/ieee1275/init.c: Likewise.
41105 * kern/powerpc/ieee1275/openfw.c: Likewise.
41106
41107 * loader/powerpc/ieee1275/linux.c: Likewise.
41108 * include/grub/elfload.h: Likewise.
41109 * kern/elf.c: Likewise.
41110 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41111 callers.
41112 (grub_elf64_load): Likewise.
41113 (grub_elf32_load_segment): Move to a nested function.
41114 (grub_elf64_load_segment): Likewise.
41115
41116 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41117
41118 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41119 prototype.
41120 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41121 (grub_heap_len): Likewise.
41122 (HEAP_SIZE): New macro.
41123 (grub_claim_heap): New function.
41124 (grub_machine_init): Don't claim heap directly. Call
41125 `grub_claim_heap'.
41126 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41127 (grub_available_iterate): New function.
41128
41129 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41130
41131 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41132 * configure.ac: Use it for testing the HOST and TARGET compilers.
41133
41134 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41135
41136 * Makefile.in (enable_grub_emu): New variable.
41137 * configure.ac (--enable-grub-emu): New option.
41138 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41139 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41140 * conf/i386-pc.rmk: Likewise.
41141 * conf/powerpc-ieee1275.rmk: Likewise.
41142 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41143
41144 2006-12-12 Marco Gerards <marco@gnu.org>
41145
41146 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41147
41148 * kern/env.c (grub_env_unset): Don't free the member `value' when
41149 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41150 pointer.
41151
41152 * normal/main.c (current_menu): Removed.
41153 (free_menu): Unset the `menu' environment variable.
41154 (grub_normal_menu_addentry): Make use of the environment variable
41155 `menu', instead of using the global `current_menu'. Allocate
41156 memory for the sourcecode of this entry.
41157 (read_config_file): New argument `nested', changed all callers.
41158 Only in the case of a new context, initialize a new menu. Set the
41159 `menu' environment variable.
41160 (grub_normal_execute): Don't set and unset the environment
41161 variable `menu' here anymore. Only free the menu when leaving the
41162 context.
41163
41164 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41165 leak.
41166
41167 2006-12-11 Marco Gerards <marco@gnu.org>
41168
41169 * normal/menu_entry.c (run): Fix off by one bug so the last line
41170 is executed. Move the loader check to outside the loop.
41171
41172 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41173
41174 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41175
41176 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41177
41178 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41179 the number of sectors. Reported by Andrey Shuvikov
41180 <mr_hyro@yahoo.com>.
41181
41182 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41183
41184 * kern/disk.c (grub_disk_read): When there is a read error, always
41185 try to read only the necessary data.
41186
41187 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41188 disk/raid.c.
41189 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41190 prototype.
41191 [GRUB_UTIL] (grub_raid_fini): Likewise.
41192 [GRUB_UTIL] (grub_lvm_init): Likewise.
41193 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41194 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41195 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41196 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41197 and grub_raid_fini().
41198
41199 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41200
41201 * include/grub/types.h (__unused): Rename to UNUSED.
41202 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41203 (grub_elf64_size): Likewise.
41204
41205 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41206
41207 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41208 grub_error_push and grub_error_pop in the error-handling path.
41209 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41210 length.
41211
41212 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41213
41214 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41215 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41217 (kernel_elf_SOURCES): Likewise.
41218 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41219 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41220 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41221 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41222 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41223 (elf_mod_SOURCES): New variable.
41224 (elf_mod_CFLAGS): Likewise.
41225 (elf_mod_LDFLAGS): Likewise.
41226 * include/grub/types.h (__unused): New macro.
41227 * include/grub/elfload.h: New file.
41228 * kern/elf.c: Likewise.
41229 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41230 (ELF32_LOADMASK): New macro.
41231 (ELF64_LOADMASK): Likewise.
41232 (vmlinux): Removed.
41233 (grub_linux_load32): New function.
41234 (grub_linux_load64): Likewise.
41235 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41236 Use grub_elf_t instead of grub_file_t.
41237
41238 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41239
41240 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41241 `catch_result' to struct set_color_args.
41242
41243 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41244
41245 * normal/menu.c: Include grub/script.h.
41246 * normal/menu_entry.c: Likewise.
41247 * include/grub/normal.h: Do not include grub/script.h.
41248
41249 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41250
41251 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41252
41253 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41254
41255 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41256 disk.
41257 (grub_disk_close): Print debug messages when closing a disk.
41258 (grub_disk_read): Print debug messages when disk read fails.
41259 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41260 filesystem type.
41261 * kern/partition.c: Include misc.h.
41262 (grub_partition_iterate): Print debug messages when detecting
41263 partition type.
41264
41265 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41266
41267 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41268 is negative.
41269 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41270
41271 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41272
41273 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41274 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41275
41276 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41277
41278 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41279 instead of sizeof(lv). Patch by Michael Guntsche.
41280
41281 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41282
41283 * disk/lvm.c: Rename VGS to VG_LIST.
41284 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41285 (grub_lvm_open): Likewise.
41286 Thanks to Michael Guntsche for finding this bug.
41287
41288 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41289
41290 * configure.ac (AC_INIT): Bumped to 1.95.
41291
41292 2006-10-14 Robert Millan <rmh@aybabtu.com>
41293
41294 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41295 with "/dev/.static/dev/md".
41296
41297 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41298
41299 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41300 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41301 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41302 DRIVE_NAME are always freed.
41303
41304 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41305 DOS_PART, as a DOS partition is counted from one instead of zero
41306 now. Reported by Robert Millan.
41307
41308 2006-10-14 Robert Millan <rmh@aybabtu.com>
41309
41310 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41311 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41312 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41313 string returned by grub_guess_root_device.
41314 * util/i386/pc/grub-setup.c: Likewise.
41315 * util/i386/pc/grub-probefs.c: Likewise.
41316
41317 * util/i386/pc/grub-probefs.c: Rename to ...
41318 * util/i386/pc/grub-probe.c: ... this.
41319 * DISTLIST: Remove grub-probefs, add grub-probe.
41320 * conf/i386-efi.rmk: Likewise.
41321 * conf/i386-pc.rmk: Likewise.
41322 * util/i386/pc/grub-install.in: Likewise.
41323
41324 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41325 choose which information we want to print.
41326
41327 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41328
41329 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41330 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41331 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41332 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41333 video/readers/tga.c and video/i386/pc/vbeutil.c.
41334
41335 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41336
41337 Added support for RAID and LVM.
41338
41339 * disk/lvm.c: New file.
41340 * disk/raid.c: Likewise.
41341 * include/grub/lvm.h: Likewise.
41342 * include/grub/raid.h: Likewise.
41343 * include/grub/util/lvm.h: Likewise.
41344 * include/grub/util/raid.h: Likewise.
41345 * util/lvm.c: Likewise.
41346 * util/raid.c: Likewise.
41347
41348 * include/grub/disk.h (grub_disk_dev_id): Add
41349 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41350 (grub_disk_get_size): New prototype.
41351 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41352 returns a partition.
41353 (grub_disk_get_size): New function.
41354
41355 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41356 verbatim if grub_install_dos_part is -2.
41357
41358 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41359 and LVM devices.
41360
41361 * util/i386/pc/grub-setup.c (setup): New argument
41362 MUST_EMBED. Force embedding of GRUB when the argument is
41363 true. Close FILE before returning.
41364 (main): Add support for RAID and LVM.
41365
41366 * conf/common.rmk: Add RAID and LVM modules.
41367 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41368 util/lvm.c.
41369 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41370
41371 * kern/misc.c (grub_strstr): New function.
41372 * include/grub/misc.h (grub_strstr): New prototype.
41373
41374 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41375
41376 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41377
41378 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41379
41380 * kern/misc.c (grub_strtoull): Guess the base only if not
41381 specified.
41382
41383 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41384
41385 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41386 PowerMac support.
41387
41388 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41389
41390 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41391
41392 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41393 Remove `flags' argument. All callers changed.
41394 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41395 (IEEE1275_IHANDLE_INVALID): New variable.
41396 (IEEE1275_CELL_INVALID): New variable.
41397 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41398 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41399 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41400 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41401 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41402 codes from Open Firmware. All callers updated.
41403 (grub_ieee1275_next_property): Directly return Open Firmware return
41404 code.
41405 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41406 Standardize error checking from `grub_ieee1275_get_property'.
41407 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41408 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41409
41410 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41411
41412 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41413 `instance_to_package_args' to `instance_to_path_args'.
41414
41415 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41416 `grub_ieee1275_chosen'.
41417
41418 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41419 `grub_ieee1275_interpret'.
41420
41421 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41422
41423 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41424
41425 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41426
41427 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41428 (__cmpdi): Likewise.
41429
41430 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41431 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41432 `grub_ssize_t'.
41433
41434 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41435
41436 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41437 to type `grub_ssize_t'.
41438 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41439
41440 2006-09-22 Marco Gerards <marco@gnu.org>
41441
41442 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41443 newlines.
41444
41445 2006-09-22 Marco Gerards <marco@gnu.org>
41446
41447 * commands/echo.c: New file.
41448
41449 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41450
41451 * conf/common.rmk (echo_mod_SOURCES): New variable.
41452 (echo_mod_CFLAGS): Likewise.
41453 (echo_mod_LDFLAGS): Likewise.
41454
41455 2006-09-22 Marco Gerards <marco@gnu.org>
41456
41457 * normal/main.c (get_line): Malloc memory instead of using
41458 preallocated memory. Removed the arguments `cmdline' and
41459 `max_len'. Updated all callers.
41460
41461 2006-09-22 Marco Gerards <marco@gnu.org>
41462
41463 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41464 (normal_mod_DEPENDENCIES): Likewise.
41465
41466 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41467 (normal_mod_DEPENDENCIES): Likewise.
41468
41469 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41470
41471 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41472
41473 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41474 programs.
41475 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41476 (normal_mod_DEPENDENCIES): Likewise.
41477 * conf/i386-pc.mk: Regenerate.
41478 * conf/i386-efi.mk: Likewise
41479 * conf/common.mk: Likewise.
41480 * conf/powerpc-ieee1275.mk: Likewise.
41481 * conf/sparc64-ieee1275.mk: Likewise.
41482
41483 2006-09-22 Robert Millan <rmh@aybabtu.com>
41484
41485 Sync with i386 version.
41486 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41487 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41488
41489 2006-09-21 Robert Millan <rmh@aybabtu.com>
41490
41491 Import from GRUB Legacy (lib/device.c):
41492 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41493 (init_device_map) [__linux__]: Add support for I2O devices.
41494
41495 2006-09-14 Marco Gerards <marco@gnu.org>
41496
41497 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41498 `-melf_i386'.
41499
41500 2006-09-14 Robert Millan <rmh@aybabtu.com>
41501
41502 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41503 /boot/grub/*.lst.
41504
41505 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41506
41507 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41508 before adding it to device.map.
41509
41510 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41511
41512 * genmk.rb: Let GCC generate dependencies the first time it
41513 compiles a file; using the -MD option.
41514 * conf/common.mk: Regenerate.
41515 * conf/i386-pc.mk: Likewise.
41516 * conf/i386-efi.mk: Likewise.
41517 * conf/powerpc-ieee1275.mk: Likewise.
41518 * conf/sparc64-ieee1275.mk: Likewise.
41519
41520 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41521
41522 Move the prototypes of grub_setjmp and grub_longjmp to
41523 cpu/setjmp.h, so that each architecture may specify different
41524 attributes.
41525
41526 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41527 (grub_longjmp): Likewise.
41528 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41529 (grub_longjmp): Likewise.
41530 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41531 (grub_longjmp): Likewise.
41532
41533 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41534 [!GRUB_UTIL] (grub_longjmp): Removed.
41535
41536 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41537
41538 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41539 "color!" method does not return any value.
41540
41541 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41542
41543 * include/grub/bitmap.h: New file.
41544
41545 * include/grub/i386/pc/vbeutil.h: Likewise.
41546
41547 * video/bitmap.c: Likewise.
41548
41549 * video/readers/tga.c: Likewise.
41550
41551 * video/i386/pc/vbeutil.c: Likewise.
41552
41553 * commands/videotest.c: Code cleanup and updated to reflect to new
41554 video API.
41555
41556 * term/gfxterm.c: Likewise.
41557
41558 * video/video.c: Likewise.
41559
41560 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41561 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41562 (bitmap_mod_SOURCES): New entry.
41563 (bitmap_mod_CFLAGS): Likewise.
41564 (bitmap_mod_LDFLAGS): Likewise.
41565 (tga_mod_SOURCES): Likewise.
41566 (tga_mod_CFLAGS): Likewise.
41567 (tga_mod_LDFLAGS): Likewise.
41568
41569 * include/grub/video.h (grub_video_blit_operators): New enum type.
41570 (grub_video_render_target): Changed as forward declaration and moved
41571 actual definition to be video driver specific.
41572 (grub_video_adapter.blit_bitmap): Added blitting operator.
41573 (grub_video_adapter.blit_render_target): Likewise.
41574 (grub_video_blit_bitmap): Likewise.
41575 (grub_video_blit_render_target): Likewise.
41576
41577 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41578 driver specific render target definition.
41579 (grub_video_vbe_map_rgba): Added driver internal helper.
41580 (grub_video_vbe_unmap_color): Updated to use
41581 grub_video_i386_vbeblit_info.
41582 (grub_video_vbe_get_video_ptr): Likewise.
41583
41584 * include/grub/i386/pc/vbeblit.h
41585 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41586 grub_video_i386_vbeblit_info.
41587 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41588 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41589 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41590 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41591 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41592 (grub_video_i386_vbeblit_index_index): Likewise.
41593 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41594 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41595 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41596 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41597 operator.
41598 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41599 operator.
41600
41601 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41602 include/grub/i386/pc/vbeblit.h.
41603
41604 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41605 Updated to use grub_video_i386_vbeblit_info.
41606 (grub_video_i386_vbefill_R8G8B8): Likewise.
41607 (grub_video_i386_vbefill_index): Likewise.
41608 (grub_video_i386_vbefill): Added generic filler.
41609
41610 * video/i386/pc/vbefill.c: Updated to reflect changes on
41611 include/grub/i386/pc/vbefill.h.
41612
41613 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41614 grub_video_i386_vbeblit_info.
41615 (grub_video_vbe_unmap_color): Likewise.
41616 (grub_video_vbe_blit_glyph): Likewise.
41617 (grub_video_vbe_scroll): Likewise.
41618 (grub_video_vbe_draw_pixel): Removed function.
41619 (grub_video_vbe_get_pixel): Likewise.
41620 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41621 updated code to use it.
41622 (common_blitter): Added common blitter for render target and bitmap.
41623 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41624 (grub_video_vbe_blit_render_target): Likewise.
41625
41626 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41627
41628 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41629 is in text mode if there is no console control protocol instance
41630 available.
41631
41632 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41633
41634 * include/grub/video.h: Code cleanup.
41635
41636 * include/grub/i386/pc/vbe.h: Likewise.
41637
41638 * video/i386/pc/vbe.c: Likewise.
41639
41640 * video/i386/pc/vbeblit.c: Likewise.
41641
41642 * video/i386/pc/vbefill.c: Likewise.
41643
41644 * video/video.c: Likewise. Also added more comments.
41645
41646 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41647
41648 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41649 (struct grub_biosdisk_dap): Likewise.
41650
41651 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41652 linkage settings for all functions.
41653
41654 2006-07-12 Marco Gerards <marco@gnu.org>
41655
41656 * configure.ac (--enable-mm-debug): Fix typo.
41657
41658 * genkernsyms.sh.in: Use proper quoting for `CC'.
41659
41660 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41661
41662 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41663 (normal_mod_ASFLAGS): Remove "-m32".
41664
41665 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41666
41667 * util/misc.c: Include config.h.
41668 [!HAVE_MEMALIGN]: Do not include malloc.h.
41669 (grub_memalign): Use posix_memalign, if present. Then, use
41670 memalign, if present. Otherwise, emit an error.
41671
41672 * util/grub-emu.c: Do not include malloc.h.
41673
41674 * include/grub/util/misc.h: Include unistd.h. This is required for
41675 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41676 D. Eades III <hde@foobar-qux.org>.
41677
41678 * configure.ac (AC_GNU_SOURCE): Added.
41679 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41680 type.
41681
41682 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41683
41684 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41685 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41686
41687 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41688
41689 * include/grub/types.h (grub_host_addr_t): Rename to
41690 grub_target_addr_t.
41691 (grub_host_off_t): Rename to grub_target_off_t.
41692 (grub_host_size_t): Rename to grub_target_size_t.
41693 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41694 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41695
41696 * include/grub/kernel.h (struct grub_module_header): Change type
41697 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41698 (grub_module_info): Likewise.
41699
41700 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41701
41702 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41703 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41704 Velazquez <jesus.velazquez@gmail.com>.
41705
41706 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41707
41708 Count partitions from 1 instead of 0 in the string representation
41709 of partitions. Still use 0-based internally.
41710
41711 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41712 (sun_partition_map_iterate): Use grub_partition_t instead of
41713 struct grub_partition *. Cast DESC->START_CYLINDER to
41714 grub_uint64_t after converting the endian.
41715 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41716 (sun_partition_map_get_name): Add 1 to P->INDEX.
41717
41718 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41719 PCDATA->DOS_PART.
41720 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41721
41722 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41723 zero instead of one.
41724 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41725 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41726
41727 * partmap/apple.c (apple_partition_map_iterate): Change the type
41728 of POS to unsigned.
41729 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41730 (apple_partition_map_get_name): Add 1 into P->INDEX.
41731
41732 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41733 of POS to unsigned.
41734 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41735 calculate the offset of a partition.
41736 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41737 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41738
41739 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41740 SECTOR to grub_disk_addr_t.
41741 (acorn_partition_map_iterate): Likewise.
41742 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41743 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41744 top.
41745 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41746
41747 * kern/i386/pc/init.c (make_install_device): Add 1 into
41748 GRUB_INSTALL_DOS_PART.
41749
41750 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41751 conditional.
41752
41753 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41754
41755 Clean up the code to support 64-bit addressing in disks and
41756 files. This change is not enough for filesystems yet.
41757
41758 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41759 type of "start" to grub_uint64_t.
41760 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41761 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41762 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41763 convert addresses.
41764
41765 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41766 to grub_disk_addr_t.
41767
41768 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41769 string.
41770
41771 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41772
41773 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41774 to char *.
41775
41776 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41777
41778 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41779
41780 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41781
41782 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41783 to grub_off_t, to detect an error from grub_file_seek.
41784 (grub_multiboot_load_elf32): Likewise.
41785
41786 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41787 maximum unsigned long value when an overflow is detected.
41788 (grub_strtoull): New function.
41789 (grub_divmod64): Likewise.
41790 (grub_lltoa): use grub_divmod64.
41791
41792 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41793 grub_disk_addr_t.
41794 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41795 the pointer to next character. Use grub_strtoull instead of
41796 grub_strtoul.
41797 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41798 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41799 respectively.
41800
41801 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
41802 return value is signed.
41803 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41804 test if OFFSET is less than zero, as OFFSET is unsigned now.
41805
41806 * kern/disk.c (struct grub_disk_cache): Change the type of
41807 "sector" to grub_disk_addr_t.
41808 (grub_disk_cache_get_index): Change the type of SECTOR to
41809 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41810 unsigned after shifting.
41811 (grub_disk_cache_invalidate): Change the type of SECTOR to
41812 grub_disk_addr_t.
41813 (grub_disk_cache_unlock): Likewise.
41814 (grub_disk_cache_store): Likewise.
41815 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41816 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41817 grub_disk_addr_t and grub_uint64_t, respectively.
41818 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41819 body, as the value of OFFSET is tweaked by
41820 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41821 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41822 respectively.
41823 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41824 body, as the value of OFFSET is tweaked by
41825 grub_disk_check_range. Change the types of LEN and N to
41826 grub_size_t.
41827
41828 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41829 and "saved_offset" to grub_off_t.
41830 (test_header): Cast BUF to char *.
41831 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41832 to char *.
41833 (grub_gzio_read): Change the types of OFFSET and SIZE to
41834 grub_off_t and grub_size_t, respectively.
41835
41836 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41837 Removed.
41838 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41839 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41840 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41841 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41842 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41843
41844 * include/grub/types.h (grub_off_t): Unconditionally set to
41845 grub_uint64_t.
41846 (grub_disk_addr_t): Changed to grub_uint64_t.
41847
41848 * include/grub/partition.h (struct grub_partition): Change the
41849 types of "start", "len" and "offset" to grub_disk_addr_t,
41850 grub_uint64_t and grub_disk_addr_t, respectively.
41851 (grub_partition_get_start): Return grub_disk_addr_t.
41852 (grub_partition_get_len): Return grub_uint64_t.
41853
41854 * include/grub/misc.h (grub_strtoull): New prototype.
41855 (grub_divmod64): Likewise.
41856
41857 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41858 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41859 grub_off_t, respectively.
41860 All callers and references changed.
41861
41862 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41863 grub_size_t in "read".
41864 All callers and references changed.
41865
41866 * include/grub/file.h (struct grub_file): Change the types of
41867 "offset" and "size" to grub_off_t and grub_off_t,
41868 respectively. Change the type of SECTOR to grub_disk_addr_t in
41869 "read_hook".
41870 (grub_file_read): Change the type of LEN to grub_size_t.
41871 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41872 grub_off_t.
41873 (grub_file_size): Return grub_off_t.
41874 (grub_file_tell): Likewise.
41875 All callers and references changed.
41876
41877 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41878 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41879 "write".
41880 (struct grub_disk): Change the type of "total_sectors" to
41881 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41882 "read_hook".
41883 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41884 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41885 (grub_disk_write): Likewise.
41886 All callers and references changed.
41887
41888 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
41889 char * for grub_strncmp to silence gcc.
41890 (grub_iso9660_mount): Likewise.
41891 (grub_iso9660_mount): Likewise.
41892 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
41893 return statement.
41894 (grub_iso9660_iterate_dir): Likewise.
41895 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
41896
41897 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
41898 LEN to grub_disk_addr_t and grub_size_t, respectively.
41899
41900 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41901
41902 * fs/jfs.c (grub_jfs_read_file): Likewise.
41903
41904 * fs/minix.c (grub_jfs_read_file): Likewise.
41905
41906 * fs/sfs.c (grub_jfs_read_file): Likewise.
41907
41908 * fs/ufs.c (grub_jfs_read_file): Likewise.
41909
41910 * fs/xfs.c (grub_jfs_read_file): Likewise.
41911
41912 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
41913 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
41914 respectively.
41915
41916 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
41917 BLKNR to -1 instead of returning GRUB_ERRNO.
41918 (grub_ext2_read_file): Change the types of SECTOR and
41919 LEN to grub_disk_addr_t and grub_size_t, respectively.
41920
41921 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
41922 LEN to grub_disk_addr_t and grub_size_t, respectively.
41923
41924 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
41925 grub_file_read.
41926
41927 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
41928 string. Do not cast SECTOR explicitly.
41929
41930 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
41931 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
41932 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
41933 grub_disk_addr_t and grub_size_t, respectively. If the sector is
41934 over 2TB and LBA mode is not supported, raise an error.
41935 (get_safe_sectors): New function.
41936 (grub_biosdisk_read): Use get_safe_sectors.
41937 (grub_biosdisk_write): Likewise.
41938
41939 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
41940 (grub_efidisk_write): Likewise.
41941
41942 * disk/loopback.c (delete_loopback): Cosmetic changes.
41943 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
41944 correctly.
41945 (grub_loopback_open): Likewise.
41946 (grub_loopback_read): Likewise. Also, change the type of POS to
41947 grub_off_t, and fix the usage of grub_memset.
41948
41949 * commands/i386/pc/play.c: Include grub/machine/time.h.
41950
41951 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
41952 print FILE->SIZE.
41953
41954 * commands/configfile.c: Include grub/env.h.
41955
41956 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
41957 GRUB_ERRNO directly instead. Change the type of POS to
41958 grub_off_t. Follow the coding standard.
41959
41960 * commands/blocklist.c: Include grub/partition.h.
41961 (grub_cmd_blocklist): Return an error if the underlying device is
41962 not a disk. Take the starting sector of a partition into account,
41963 if a partition is used.
41964
41965 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
41966 a length field.
41967 (lba_mode): Support 64-bit addresses.
41968 (chs_mode): Likewise.
41969 (copy_buffer): Adapted to the new offsets of a length field and a
41970 segment field.
41971 (blocklist_default_start): Allocate 64-bit space.
41972
41973 * boot/i386/pc/boot.S (force_lba): Removed.
41974 (boot_drive): Moved to under KERNEL_SECTOR.
41975 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
41976 space.
41977 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
41978 is useless.
41979 (lba_mode): Refactored to support a 64-bit address. More size
41980 optimization.
41981 (setup_sectors): Likewise.
41982
41983 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41984
41985 * DISTLIST: Added include/grub/i386/linux.h. Removed
41986 include/grub/i386/pc/linux.h
41987
41988 * configure.ac (AC_INIT): Bumped to 1.94.
41989
41990 * config.guess: Updated from gnulib.
41991 * config.sub: Likewise.
41992 * install-sh: Likewise.
41993 * mkinstalldirs: Likewise.
41994
41995 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41996
41997 * conf/common.rmk (grub_modules_init.lst): Depended on
41998 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
41999 MODSRCFILES.
42000
42001 * genmk.rb (PModule::rule): Reverted the previous change.
42002
42003 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42004
42005 * conf/common.rmk (grub_modules_init.lst): Depends on
42006 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42007 that the target does not exist before producing.
42008 (grub_modules_init.h): Remove the target before generating.
42009 (grub_emu_init.c): Likewise.
42010
42011 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42012
42013 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42014
42015 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42016 for the target-specific tests. Make sure that we also have the
42017 up-to-date target variables for those tests.
42018
42019 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42020
42021 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42022 (PModule::rule): Likewise.
42023
42024 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42025
42026 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42027 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42028 target-specific flags should be prefixed.
42029 (PModule::rule): Likewise.
42030
42031 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42032
42033 * configure.ac (CMP): Check if cmp is available explicitly.
42034
42035 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42036
42037 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42038 (target_cpu): New variable.
42039 (pkglibdir): Use target_cpu instead of host_cpu.
42040
42041 * util/i386/pc/grub-install.in (host_cpu): Removed.
42042 (target_cpu): New variable.
42043 (pkglibdir): Use target_cpu instead of host_cpu.
42044
42045 * util/genmoddep.c: Removed.
42046
42047 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42048 instead of GRUB_HOST_SIZEOF_VOID_P.
42049 * kern/dl.c: Likewise.
42050
42051 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42052 ...
42053 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42054 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42055 (GRUB_TARGET_SIZEOF_LONG): ... this.
42056 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42057 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42058 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42059 to ...
42060 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42061 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42062 (GRUB_TARGET_SIZEOF_LONG): ... this.
42063 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42064 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42065 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42066 to ...
42067 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42068 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42069 (GRUB_TARGET_SIZEOF_LONG): ... this.
42070 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42071 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42072
42073 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42074 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42075 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42076 instead of GRUB_HOST_SIZEOF_LONG.
42077 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42078 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42079 GRUB_CPU_WORDS_BIGENDIAN.
42080 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42081 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42082 grub_host_ssize_t.
42083
42084 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42085 (genmoddep_SOURCES): Likewise.
42086 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42087 (genmoddep_SOURCES): Likewise.
42088 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42089 (genmoddep_SOURCES): Likewise.
42090 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42091 Likewise.
42092 (genmoddep_SOURCES): Likewise.
42093
42094 * genmoddep.awk: New file.
42095
42096 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42097 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42098 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42099 (PModule::rule): Likewise.
42100 (Program::rule): Likewise.
42101 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42102 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42103 respectively.
42104
42105 * configure.ac: Rewritten intensively to use host and target
42106 instead of build and host, respectively.
42107
42108 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42109 (host_cpu): Removed.
42110 (target_cpu): New variable.
42111 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42112 (BUILD_CC): Removed.
42113 (BUILD_CFLAGS): Likewise.
42114 (BUILD_CPPFLAGS): Likewise.
42115 (TARGET_CC): New variable.
42116 (TARGET_CFLAGS): Likewise.
42117 (TARGET_CPPFLAGS): Likewise.
42118 (TARGET_LDFLAGS): Likewise.
42119 (AWK): Likewise.
42120 (include): Use target_cpu instead of host_cpu.
42121 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42122
42123 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42124
42125 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42126
42127 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42128 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42129 field 'false' to 'exec_on_false'.
42130 (grub_script_create_cmdif): Renamed argument names to reflect above
42131 changes.
42132
42133 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42134
42135 * normal/script.c (grub_script_create_cmdif): Likewise.
42136
42137 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42138
42139 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42140 top.
42141 (grub_hfsplus_btree_recptr): Likewise.
42142 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42143 FILEBLOCK both to pass a block number and store next block
42144 number.
42145 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42146 overflow file correctly. Specify errors appropriately, because
42147 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42148 grub_hfsplus_btree_recptr to get the pointer to a found key.
42149 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42150 is found.
42151
42152 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42153 linux.mod.
42154 (_linux_mod_SOURCES): New variable.
42155 (_linux_mod_CFLAGS): Likewise.
42156 (_linux_mod_LDFLAGS): Likewise.
42157 (linux_mod_SOURCES): Likewise.
42158 (linux_mod_CFLAGS): Likewise.
42159 (linux_mod_LDFLAGS): Likewise.
42160
42161 * DISTLIST: Added loader/i386/efi/linux.c,
42162 loader/i386/efi/linux_normal.c and
42163 include/grub/i386/efi/loader.h.
42164
42165 * loader/i386/efi/linux.c: New file.
42166 * loader/i386/efi/linux_normal.c: Likewise.
42167 * include/grub/i386/efi/loader.h: Likewise.
42168
42169 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42170
42171 * commands/blocklist.c: New file.
42172
42173 * DISTLIST: Added commands/blocklist.c.
42174
42175 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42176 color for the background, and a darker color for the foreground.
42177 (grub_console_checkkey): Return READ_KEY.
42178 (grub_console_cls): Set the background to
42179 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42180
42181 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42182
42183 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42184 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42185
42186 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42187 prototype.
42188
42189 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42190 BG. The spec is wrong again.
42191
42192 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42193 prototype.
42194 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42195
42196 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42197 commands/blocklist.c.
42198 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42199
42200 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42201 (blocklist_mod_SOURCES): New variable.
42202 (blocklist_mod_CFLAGS): Likewise.
42203 (blocklist_mod_LDFLAGS): Likewise.
42204
42205 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42206
42207 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42208 duplication.
42209 (lba_mode): Use %eax more intensively to reduce the code size.
42210
42211 2006-05-20 Marco Gerards <marco@gnu.org>
42212
42213 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42214
42215 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42216 for `menuentry'.
42217 (script): Accept leading newlines.
42218 (newlines): New rule to describe 0 or more newlines.
42219 (commands): Accept `command' with trailing newline. Fixed the
42220 order in which arguments were passed to `grub_script_add_cmd'.
42221 Accept commands separated by newlines.
42222 (function): Changed to accept newlines.
42223 (menuentry) Rewritten.
42224
42225 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42226 front of the list, instead of to the end.
42227
42228 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42229
42230 * util/i386/pc/grub-install.in (bindir): New variable.
42231 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42232 Shaver <lbgwjl@gmail.com>.
42233
42234 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42235
42236 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42237 grub/machine/linux.h
42238 * loader/i386/pc/linux.c: Likewise.
42239
42240 * include/grub/i386/pc/linux.h: Moved to ...
42241 * include/grub/i386/linux.h: ... here.
42242
42243 * include/grub/i386/linux.h (struct linux_kernel_params): New
42244 struct.
42245
42246 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42247
42248 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42249 checking.
42250 (grub_video_vbe_blit_glyph): Likewise.
42251 (grub_video_vbe_blit_bitmap): Likewise.
42252 (grub_video_vbe_blit_render_target): Likewise.
42253
42254 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42255
42256 * configure.ac (--with-platform): Properly quote the square
42257 brackets.
42258
42259 2006-05-08 Marco Gerards <marco@gnu.org>
42260
42261 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42262 this...
42263 (kernel_elf_HEADERS): ...to this. Updated all users.
42264 (grubof_symlist.c): Renamed from this...
42265 (kernel_elf_symlist.c): ...to this. Updated all users.
42266 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42267 (grubof_SOURCES): Renamed from this...
42268 (kernel_elf_SOURCES): ...to this.
42269 (grubof_HEADERS): Renamed from this...
42270 (kernel_elf_HEADERS): ...to this.
42271 (grubof_CFLAGS): Renamed from this...
42272 (kernel_elf_CFLAGS): ...to this.
42273 (grubof_ASFLAGS): Renamed from this...
42274 (kernel_elf_ASFLAGS): ...to this.
42275 (grubof_LDFLAGS): Renamed from this...
42276 (kernel_elf_LDFLAGS): ...to this.
42277
42278 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42279 this...
42280 (kernel_elf_HEADERS): ...to this. Updated all users.
42281 (grubof_symlist.c): Renamed from this...
42282 (kernel_elf_symlist.c): ...to this. Updated all users.
42283 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42284 (grubof_SOURCES): Renamed from this...
42285 (kernel_elf_SOURCES): ...to this.
42286 (grubof_HEADERS): Renamed from this...
42287 (kernel_elf_HEADERS): ...to this.
42288 (grubof_CFLAGS): Renamed from this...
42289 (kernel_elf_CFLAGS): ...to this.
42290 (grubof_ASFLAGS): Renamed from this...
42291 (kernel_elf_ASFLAGS): ...to this.
42292 (grubof_LDFLAGS): Renamed from this...
42293 (kernel_elf_LDFLAGS): ...to this.
42294
42295 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42296 `kernel.elf' instead of `grubof'.
42297
42298 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42299
42300 Add --with-platform to configure. Use pkglibdir instead of
42301 pkgdatadir. This is reported by Roger Leigh.
42302
42303 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42304 (host_vendor): Likewise.
42305 (host_os): Likewise.
42306 (pkgdatadir): Likewise.
42307 (platform): New variable.
42308 (pkglibdir): Likewise.
42309 Use PKGLIBDIR instead of PKGDATADIR.
42310
42311 * util/i386/pc/grub-install.in (datadir): Removed.
42312 (host_vendor): Likewise.
42313 (host_os): Likewise.
42314 (pkgdatadir): Likewise.
42315 (platform): New variable.
42316 (pkglibdir): Likewise.
42317 Use PKGLIBDIR instead of PKGDATADIR.
42318
42319 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42320 instead of GRUB_DATADIR.
42321 (main): Likewise.
42322 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42323 (main): Likewise.
42324 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42325 (main): Likewise.
42326
42327 * configure.ac (--with-platform): New option.
42328 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42329
42330 * Makefile.in: Include a makefile based on PLATFORM instead of
42331 HOST_VENDOR.
42332 (pkgdatadir): Not appended by the machine type.
42333 (pkglibdir): Appended by the machine type.
42334 (host_vendor): Removed.
42335 (platform): New variable.
42336 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42337 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42338 (uninstall): Likewise.
42339
42340 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42341
42342 Use the environment context in the menu. Remove the commands
42343 "default" and "timeout", and use variables instead.
42344
42345 * normal/menu.c: Include grub/env.h.
42346 (print_entry): Cast TITLE to silence gcc.
42347 (get_timeout): New function.
42348 (set_timeout): Likewise.
42349 (get_entry_number): Likewise.
42350 (run_menu): Use a default entry, a fallback entry and a timeout
42351 in the environment variables "default", "fallback" and
42352 "timeout". Also, tweak the default entry if it is not within the
42353 current menu entries.
42354 (grub_menu_run): Use a fallback entry in the environment variable
42355 "fallback".
42356
42357 * normal/main.c (read_config_file): Do not initialize
42358 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42359 NEWMENU->TIMEOUT.
42360 (grub_normal_execute): Use a data slot to store the menu.
42361
42362 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42363 fallback_entry and timeout.
42364 (struct grub_menu_list): Removed.
42365 (grub_menu_list_t): Likewise.
42366 (struct grub_context): Likewise.
42367 (grub_context_t): Likewise.
42368 (grub_context_get): Likewise.
42369 (grub_context_get_current_menu): Likewise.
42370 (grub_context_push_menu): Likewise.
42371 (grub_context_pop_menu): Likewise.
42372 (grub_default_init): Likewise.
42373 (grub_default_fini): Likewise.
42374 (grub_timeout_init): Likewise.
42375 (grub_timeout_fini): Likewise.
42376
42377 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42378 and timeout.mod.
42379 (normal_mod_SOURCES): Removed normal/context.c.
42380
42381 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42382 commands/default.c, commands/timeout.c and normal/context.c.
42383 (normal_mod_SOURCES): Removed normal/context.c.
42384
42385 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42386 commands/timeout.c and normal/context.c.
42387 (normal_mod_SOURCES): Removed normal/context.c.
42388
42389 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42390 commands/default.c, commands/timeout.c and normal/context.c.
42391 (normal_mod_SOURCES): Removed normal/context.c.
42392
42393 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42394 timeout.mod.
42395 (default_mod_SOURCES): Removed.
42396 (default_mod_CFLAGS): Likewise.
42397 (default_mod_LDFLAGS): Likewise.
42398 (timeout_mod_SOURCES): Removed.
42399 (timeout_mod_CFLAGS): Likewise.
42400 (timeout_mod_LDFLAGS): Likewise.
42401
42402 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42403 normal/context.c.
42404
42405 * commands/default.c: Removed.
42406 * commands/timeout.c: Likewise.
42407 * normal/context.c: Likewise.
42408
42409 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42410
42411 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42412
42413 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42414
42415 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42416 "next" to "prev" for readability.
42417 (struct grub_env_sorted_var): New struct.
42418 (grub_env_context): Renamed to ...
42419 (initial_context): ... this.
42420 (grub_env_var_context): Renamed to ...
42421 (current_context): ... this.
42422 (grub_env_find): Look only at CURRENT_CONTEXT.
42423 (grub_env_context_open): Rewritten to copy exported variables from
42424 previous context.
42425 (grub_env_context_close): Rewritten according to the new
42426 scheme. Also, add an assertion to prevent the initial context from
42427 removed.
42428 (grub_env_insert): Removed the code for the sorted list.
42429 (grub_env_remove): Likewise.
42430 (grub_env_export): Simply mark the variable with
42431 GRUB_ENV_VAR_GLOBAL.
42432 (grub_env_set): A cosmetic change for naming consistency.
42433 (grub_env_get): Likewise.
42434 (grub_env_unset): Likewise.
42435 (grub_env_iterate): Rewritten to sort variables within this
42436 function.
42437 (grub_register_variable_hook): Fixed for naming consistency. Call
42438 grub_env_find again, only if NAME is not found at the first time.
42439 (mangle_data_slot_name): New function.
42440 (grub_env_set_data_slot): Likewise.
42441 (grub_env_get_data_slot): Likewise.
42442 (grub_env_unset_data_slot): Likewise.
42443
42444 * include/grub/env.h (grub_env_var_type): New enum.
42445 (GRUB_ENV_VAR_LOCAL): New constant.
42446 (GRUB_ENV_VAR_GLOBAL): Likewise.
42447 (GRUB_ENV_VAR_DATA): Likewise.
42448 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42449 "type".
42450 (grub_env_set): Replace VAR with NAME for consistency.
42451 (grub_register_variable_hook): Likewise.
42452 (grub_env_export): Specify the name of the argument.
42453 (grub_env_set_data_slot): New prototype.
42454 (grub_env_get_data_slot): Likewise.
42455 (grub_env_unset_data_slot): Likewise.
42456
42457 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42458
42459 Extend the loader so that GRUB can accept a loader which comes
42460 back to GRUB when a loaded image exits. Also, this change adds
42461 support for a chainloader on EFI.
42462
42463 * term/efi/console.c: Include grub/misc.h.
42464 (grub_console_checkkey): Display a scan code on the top for
42465 debugging. This will be removed once the EFI port gets stable.
42466 Correct the scan code mapping.
42467
42468 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42469 allocate memory from larger regions, in order to reduce the number
42470 of allocated regions. Otherwise, the MacOSX loader panics.
42471 (filter_memory_map): Avoid less than 1MB for compatibility with
42472 other loaders.
42473 (add_memory_regions): Allocate from the tail of a region, if
42474 possible, to avoid allocating a region near to 1MB, for the MacOSX
42475 loader.
42476
42477 * kern/efi/init.c (grub_efi_set_prefix): Specify
42478 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42479
42480 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42481 argument IMAGE_HANDLE and specify it to get a loaded image.
42482 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42483 grub_efi_get_loaded_image.
42484 (grub_efi_get_filename): Divide the length by the size of
42485 grub_efi_char16_t.
42486 (grub_efi_get_device_path): New function.
42487 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42488 the length by the size of grub_efi_char16_t for a file path device
42489 path node.
42490
42491 * kern/loader.c (grub_loader_noreturn): New variable.
42492 (grub_loader_set): Accept a new argument NORETURN. Set
42493 GRUB_LOADER_NORETURN to NORETURN.
42494 All callers changed.
42495 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42496 grub_machine_fini.
42497
42498 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42499 prototype.
42500 (grub_efi_get_loaded_image): Take an argument to specify an image
42501 handle.
42502
42503 * include/grub/loader.h (grub_loader_set): Added one more argument
42504 NORETURN.
42505
42506 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42507 instead of grub_efi_open_protocol.
42508 (grub_efidisk_get_device_name): Likewise.
42509 (grub_efidisk_close): Print a newline.
42510 (grub_efidisk_get_device_handle): Fixed to use
42511 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42512 GRUB_EFI_DEVICE_PATH_TYPE.
42513
42514 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42515 * kern/efi/efi.c (device_path_guid): ... here.
42516
42517 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42518 chain.mod.
42519 (kernel_mod_HEADERS): Added efi/disk.h.
42520 (_chain_mod_SOURCES): New variable.
42521 (_chain_mod_CFLAGS): Likewise.
42522 (_chain_mod_LDFLAGS): Likewise.
42523 (chain_mod_SOURCES): Likewise.
42524 (chain_mod_CFLAGS): Likewise.
42525 (chain_mod_LDFLAGS): Likewise.
42526
42527 * DISTLIST: Added include/grub/efi/chainloader.h,
42528 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42529
42530 * include/grub/efi/chainloader.h: New file.
42531 * loader/efi/chainloader.c: Likewise.
42532 * loader/efi/chainloader_normal.c: Likewise.
42533
42534 2006-04-30 Marco Gerards <marco@gnu.org>
42535
42536 * commands/configfile.c (grub_cmd_source): New function.
42537 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42538 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42539
42540 2006-04-30 Marco Gerards <marco@gnu.org>
42541
42542 * normal/execute.c (grub_script_execute_cmd): Change the return
42543 type to `grub_err_t'. Correctly return the error.
42544 (grub_script_execute_cmdline): In case a command line is not a
42545 command or a function, try to interpret it as an assignment.
42546
42547 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42548
42549 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42550 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42551 skip a node whose name is obviously invalid as UTF-16,
42552 i.e. contains a NUL character. Stop the iteration when the last
42553 directory entry is found. Instead of using the return value of
42554 grub_hfsplus_btree_iterate_node, store the value in RET and use
42555 it, because the iterator can be stopped by the last directory
42556 entry.
42557
42558 2006-04-30 Marco Gerards <marco@gnu.org>
42559
42560 * include/grub/env.h (grub_env_export): New prototype. Reported
42561 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42562
42563 2006-04-30 Marco Gerards <marco@gnu.org>
42564
42565 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42566 size of the extents in a catalog file record.
42567
42568 2006-04-29 Marco Gerards <marco@gnu.org>
42569
42570 * commands/configfile.c (grub_cmd_configfile): Execute the
42571 configfile within its own context.
42572
42573 * include/grub/env.h (grub_env_context_open): New prototype.
42574 (grub_env_context_close): Likewise.
42575
42576 * kern/env.c (grub_env): Removed.
42577 (grub_env_sorted): Likewise.
42578 (grub_env_context): New variable.
42579 (grub_env_var_context): Likewise.
42580 (grub_env_find): Search both the active context and the global
42581 context.
42582 (grub_env_context_open): New function.
42583 (grub_env_context_close): Likewise.
42584 (grub_env_insert): Likewise.
42585 (grub_env_remove): Likewise.
42586 (grub_env_export): Likewise.
42587 (grub_env_set): Changed to use helper functions to avoid code
42588 duplication.
42589 (grub_env_iterate): Rewritten so both the current context and the
42590 global context are being used.
42591
42592 * normal/command.c (export_command): New function.
42593 (grub_command_init): Register the `export' function.
42594
42595 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42596
42597 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42598 explicitly to suppress gcc's warnings.
42599 * fs/fat.c (grub_fat_find_dir): Likewise.
42600 (grub_fat_label): Likewise.
42601 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42602 (grub_xfs_mount): Likewise.
42603 (grub_xfs_label): Likewise.
42604 * fs/affs.c (grub_affs_mount): Likewise.
42605 (grub_affs_label): Likewise.
42606 (grub_affs_iterate_dir): Likewise.
42607 * fs/sfs.c (grub_sfs_mount): Likewise.
42608 (grub_sfs_iterate_dir): Likewise.
42609 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42610 * fs/hfs.c (grub_hfs_mount): Likewise.
42611 (grub_hfs_cmp_catkeys): Likewise.
42612 (grub_hfs_find_dir): Likewise.
42613 (grub_hfs_dir): Likewise.
42614 (grub_hfs_label): Likewise.
42615 * fs/jfs.c (grub_jfs_mount): Likewise.
42616 (grub_jfs_opendir): Likewise.
42617 (grub_jfs_getent): Likewise.
42618 (grub_jfs_lookup_symlink): Likewise.
42619 (grub_jfs_label): Likewise.
42620 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42621 (grub_hfsplus_iterate_dir): Likewise.
42622 (grub_hfsplus_btree_iterate_node): Made static.
42623
42624 * util/grub-emu.c (prefix): New variable.
42625 (grub_machine_set_prefix): New function.
42626 (main): Do not set the environment variable "prefix" here. Only
42627 set PREFIX, which is used later by grub_machine_set_prefix.
42628
42629 * include/grub/video.h: Do not include grub/symbol.h.
42630 (grub_video_register): Not exported. This symbol is not defined in
42631 the kernel.
42632 (grub_video_unregister): Likewise.
42633 (grub_video_iterate): Likewise.
42634 (grub_video_setup): Likewise.
42635 (grub_video_restore): Likewise.
42636 (grub_video_get_info): Likewise.
42637 (grub_video_get_blit_format): Likewise.
42638 (grub_video_set_palette): Likewise.
42639 (grub_video_get_palette): Likewise.
42640 (grub_video_set_viewport): Likewise.
42641 (grub_video_get_viewport): Likewise.
42642 (grub_video_map_color): Likewise.
42643 (grub_video_map_rgb): Likewise.
42644 (grub_video_map_rgba): Likewise.
42645 (grub_video_fill_rect): Likewise.
42646 (grub_video_blit_glyph): Likewise.
42647 (grub_video_blit_bitmap): Likewise.
42648 (grub_video_blit_render_target): Likewise.
42649 (grub_video_scroll): Likewise.
42650 (grub_video_swap_buffers): Likewise.
42651 (grub_video_create_render_target): Likewise.
42652 (grub_video_delete_render_target): Likewise.
42653 (grub_video_set_active_render_target): Likewise.
42654
42655 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42656 Undefined.
42657 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42658
42659 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42660 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42661 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42662 instead of $(srcdir)/genkernsyms.sh.
42663
42664 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42665 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42666 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42667 instead of $(srcdir)/genkernsyms.sh.
42668
42669 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42670 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42671 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42672 instead of $(srcdir)/genkernsyms.sh.
42673
42674 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42675 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42676 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42677 instead of $(srcdir)/genkernsyms.sh.
42678
42679 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42680 genkernsyms.sh.
42681
42682 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42683 genkernsyms.sh.
42684 (gensymlist.sh): New target.
42685 (genkernsyms.sh): Likewise.
42686
42687 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42688 genkernsyms.sh.in and gensymlist.sh.in.
42689
42690 * genkernsyms.sh: Removed.
42691 * gensymlist.sh: Likewise.
42692
42693 * genkernsyms.sh.in: New file.
42694 * gensymlist.sh.in: Likewise.
42695
42696 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42697
42698 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42699 clobber "prefix", since we may have already set it manually.
42700
42701 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42702
42703 * kern/misc.c (abort): New alias for grub_abort.
42704
42705 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42706
42707 A new machine-specific function "grub_machine_set_prefix" is
42708 defined. This is called after loading modules, so that a prefix
42709 initialization can use modules. Also, this change adds an
42710 intensive debugging feature for the memory manager via the
42711 configure option "--enable-mm-debug".
42712
42713 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42714 PART.LEN.
42715
42716 * kern/sparc64/ieee1275/init.c (abort): Removed.
42717 (grub_stop): Likewise.
42718 (grub_exit): New function.
42719 (grub_set_prefix): Renamed to ...
42720 (grub_machine_set_prefix): ... this.
42721 (grub_machine_init): Do not call grub_set_prefix.
42722
42723 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42724 (grub_machine_set_prefix): ... this.
42725 (grub_machine_init): Do not call grub_set_prefix.
42726
42727 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42728 (grub_machine_init): Do not set the prefix here.
42729
42730 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42731
42732 * kern/efi/init.c: Include grub/mm.h.
42733 (grub_efi_set_prefix): New function.
42734
42735 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42736 (grub_efi_get_filename): New function.
42737 (grub_print_device_path): Renamed to ...
42738 (grub_efi_print_device_path): ... this.
42739
42740 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42741 [MM_DEBUG] (grub_realloc): Likewise.
42742 [MM_DEBUG] (grub_free): Likewise.
42743 [MM_DEBUG] (grub_memalign): Likewise.
42744 [MM_DEBUG] (grub_mm_debug): New variable.
42745 [MM_DEBUG] (grub_debug_malloc): New function.
42746 [MM_DEBUG] (grub_debug_free): New function.
42747 [MM_DEBUG] (grub_debug_realloc): New function.
42748 [MM_DEBUG] (grub_debug_memalign): New function.
42749
42750 * kern/misc.c (grub_abort): Print a newline to distinguish
42751 the message.
42752
42753 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42754 grub_set_root_dev after loading modules. This is necessary when
42755 setting a prefix depends on modules.
42756
42757 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42758 (grub_efi_print_device_path): ... this.
42759 (grub_efi_get_filename): New prototype.
42760 (grub_efi_set_prefix): Likewise.
42761
42762 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42763 and grub/disk.h.
42764 (grub_efidisk_get_device_handle): New prototype.
42765 (grub_efidisk_get_device_name): Likewise.
42766
42767 * include/grub/mm.h: Include config.h.
42768 (MM_DEBUG): Removed.
42769 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42770 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42771 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42772 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42773 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42774 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42775 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42776 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42777 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42778
42779 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42780
42781 * disk/efi/efidisk.c: Include grub/partition.h.
42782 (iterate_child_devices): New function.
42783 (add_device): First, compare only last device path nodes, so that
42784 devices are sorted by the types.
42785 (grub_efidisk_get_device_handle): New function.
42786 (grub_efidisk_get_device_name): Likewise.
42787
42788 * configure.ac (--enable-mm-debug): New option to enable the
42789 memory manager debugging feature. This makes the binary much
42790 bigger, so is disabled by default.
42791
42792 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42793
42794 Use grub_abort instead of grub_stop, and grub_exit must be
42795 define in each architecture now. Also, this change adds support
42796 for EFI disks.
42797
42798 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42799 (grub_getkey): New function.
42800 (grub_term_get_current): Likewise.
42801
42802 * util/i386/pc/grub-setup.c: Include grub/term.h.
42803 (grub_getkey): New function.
42804 (grub_term_get_current): Likewise.
42805
42806 * util/misc.c (grub_stop): Renamed to ...
42807 (grub_exit): ... this.
42808
42809 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42810 (grub_exit): ... this.
42811 (grub_machine_init): Use grub_abort instead of abort.
42812 (grub_stop): Removed.
42813
42814 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42815 abort.
42816
42817 * kern/i386/pc/startup.S (grub_exit): New function.
42818 (cold_reboot): New label.
42819
42820 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42821 (grub_efi_init): Call grub_efidisk_init.
42822 (grub_efi_fini): Call grub_efidisk_fini.
42823
42824 * kern/efi/efi.c: Include grub/mm.h.
42825 (grub_efi_console_control_guid): Renamed to ...
42826 (console_control_guid): ... this.
42827 (grub_efi_loaded_image_guid): Renamed to ...
42828 (loaded_image_guid): ... this.
42829 (grub_efi_locate_handle): New function.
42830 (grub_efi_open_protocol): Likewise.
42831 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42832 GRUB_EFI_CONSOLE_CONTROL_GUID.
42833 (grub_efi_exit): Removed.
42834 (grub_stop): Likewise.
42835 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42836 (grub_exit): New function.
42837 (grub_print_device_path): Likewise.
42838
42839 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42840 (grub_enter_rescue_mode): Register "exit".
42841
42842 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42843 (grub_abort): New function.
42844
42845 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42846
42847 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42848
42849 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42850
42851 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42852 (grub_print_device_path): New prototype.
42853 (grub_efi_locate_handle): Likewise.
42854 (grub_efi_open_protocol): Likewise.
42855
42856 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42857 * disk/efi/efidisk.c: Likewise.
42858
42859 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42860
42861 * include/grub/efi/console_control.h
42862 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42863
42864 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42865 last 8 bytes as an array.
42866 (GRUB_EFI_DISK_IO_GUID): New macro.
42867 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42868 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42869 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42870 grub_uint8_t.
42871 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42872 (struct grub_efi_device_path): Rename the member "sub_type" to
42873 "subtype".
42874 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42875 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42876 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42877 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42878 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42879 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42880 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42881 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42882 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42883 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42884 (struct grub_efi_pci_device_path): New structure.
42885 (grub_efi_pci_device_path_t): New type.
42886 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
42887 (struct grub_efi_pccard_device_path): New structure.
42888 (grub_efi_pccard_device_path_t): New type.
42889 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
42890 (struct grub_efi_memory_mapped_device_path): New structure.
42891 (grub_efi_memory_mapped_device_path_t): New type.
42892 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
42893 (struct grub_efi_vendor_device_path): New structure.
42894 (grub_efi_vendor_device_path_t): New type.
42895 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
42896 (struct grub_efi_controller_device_path): New structure.
42897 (grub_efi_controller_device_path_t): New type.
42898 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
42899 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
42900 (struct grub_efi_acpi_device_path): New structure.
42901 (grub_efi_acpi_device_path_t): New type.
42902 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
42903 (struct grub_efi_expanded_acpi_device_path): New structure.
42904 (grub_efi_expanded_acpi_device_path_t): New type.
42905 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
42906 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
42907 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
42908 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
42909 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
42910 (struct grub_efi_atapi_device_path): New structure.
42911 (grub_efi_atapi_device_path_t): New type.
42912 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
42913 (struct grub_efi_fibre_channel_device_path): New structure.
42914 (grub_efi_fibre_channel_device_path_t): New type.
42915 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
42916 (struct grub_efi_1394_device_path): New structure.
42917 (grub_efi_1394_device_path_t): New type.
42918 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
42919 (struct grub_efi_usb_device_path): New structure.
42920 (grub_efi_usb_device_path_t): New type.
42921 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
42922 (struct grub_efi_usb_class_device_path): New structure.
42923 (grub_efi_usb_class_device_path_t): New type.
42924 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
42925 (struct grub_efi_i2o_device_path): New structure.
42926 (grub_efi_i2o_device_path_t): New type.
42927 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
42928 (struct grub_efi_mac_address_device_path): New structure.
42929 (grub_efi_mac_address_device_path_t): New type.
42930 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
42931 (struct grub_efi_ipv4_device_path): New structure.
42932 (grub_efi_ipv4_device_path_t): New type.
42933 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
42934 (struct grub_efi_ipv6_device_path): New structure.
42935 (grub_efi_ipv6_device_path_t): New type.
42936 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
42937 (struct grub_efi_infiniband_device_path): New structure.
42938 (grub_efi_infiniband_device_path_t): New type.
42939 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
42940 (struct grub_efi_uart_device_path): New structure.
42941 (grub_efi_uart_device_path_t): New type.
42942 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
42943 (struct grub_efi_vendor_messaging_device_path): New structure.
42944 (grub_efi_vendor_messaging_device_path_t): New type.
42945 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
42946 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
42947 (struct grub_efi_hard_drive_device_path): New structure.
42948 (grub_efi_hard_drive_device_path_t): New type.
42949 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
42950 (struct grub_efi_cdrom_device_path): New structure.
42951 (grub_efi_cdrom_device_path_t): New type.
42952 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
42953 (struct grub_efi_vendor_media_device_path): New structure.
42954 (grub_efi_vendor_media_device_path_t): New type.
42955 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
42956 (struct grub_efi_file_path_device_path): New structure.
42957 (grub_efi_file_path_device_path_t): New type.
42958 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
42959 (struct grub_efi_protocol_device_path): New structure.
42960 (grub_efi_protocol_device_path_t): New type.
42961 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
42962 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
42963 (struct grub_efi_bios_device_path): New structure.
42964 (grub_efi_bios_device_path_t): New type.
42965 (struct grub_efi_disk_io): New structure.
42966 (grub_efi_disk_io_t): New type.
42967 (struct grub_efi_block_io_media): New structure.
42968 (grub_efi_block_io_media_t): New type.
42969 (struct grub_efi_block_io): New structure.
42970 (grub_efi_block_io_t): New type.
42971
42972 * include/grub/misc.h (grub_stop): Removed.
42973 (grub_exit): New prototype.
42974 (grub_abort): Likewise.
42975
42976 * include/grub/disk.h (enum grub_disk_dev_id): Added
42977 GRUB_DISK_DEVICE_EFIDISK_ID.
42978
42979 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
42980 disk/efi/efidisk.c.
42981 (kernel_syms.lst): Remove the target if an error occurs.
42982
42983 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
42984
42985 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
42986 as it was simply too buggy.
42987
42988 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
42989
42990 * kern/misc.c (grub_lltoa): New function.
42991 (grub_vsprintf): Added support for the long long suffix,
42992 i.e. "ll".
42993
42994 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
42995
42996 * Makefile.in (LDFLAGS): Add variable.
42997 (LD): Remove variable.
42998 * configure.ac: Add -m32 to LDFLAGS.
42999 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43000 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43001 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43002 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43003 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43004 variables.
43005 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43006 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43007 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43008
43009 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43010
43011 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43012 length for unknown glyph.
43013
43014 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43015
43016 Add support for pre-loaded modules into the EFI port.
43017
43018 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43019 completely. Accept one more argument DIR. The caller has changed.
43020
43021 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43022
43023 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43024 (grub_efi_loaded_image_guid): New variable.
43025 (grub_efi_get_loaded_image): New function.
43026 (grub_arch_modules_addr): Likewise.
43027
43028 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43029 prototype.
43030
43031 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43032 (struct grub_efi_loaded_image): New structure.
43033 (grub_efi_loaded_image_t): New type.
43034
43035 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43036
43037 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43038 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43039 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43040
43041 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43042
43043 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43044
43045 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43046
43047 * DISTLIST: Added include/grub/efi/console.h,
43048 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43049 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43050
43051 * include/grub/efi/console.h: New file.
43052 * include/grub/efi/time.h: Likewise.
43053 * include/grub/i386/efi/kernel.h: Likewise.
43054 * kern/efi/init.c: Likewise.
43055 * kern/efi/mm.c: Likewise.
43056 * term/efi/console.c: Likewise.
43057
43058 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43059 (grub_stop): Removed.
43060 (grub_get_rtc): Likewise.
43061 (grub_machine_init): Simply call grub_efi_init.
43062 (grub_machine_fini): Call grub_efi_fini.
43063
43064 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43065 (grub_efi_output_string): Removed.
43066 (grub_efi_stall): New function.
43067 (grub_stop): Likewise.
43068 (grub_get_rtc): Likewise.
43069
43070 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43071 (grub_efi_stall): New prototype.
43072 (grub_efi_allocate_pages): Likewise.
43073 (grub_efi_free_pages): Likewise.
43074 (grub_efi_get_memory_map): Likewise.
43075 (grub_efi_mm_init): Likewise.
43076 (grub_efi_mm_fini): Likewise.
43077 (grub_efi_init): Likewise.
43078 (grub_efi_fini): Likewise.
43079
43080 * include/grub/i386/efi/time.h: Do not include
43081 grub/symbol.h. Include grub/efi/time.h.
43082 (GRUB_TICKS_PER_SECOND): Removed.
43083 (grub_get_rtc): Likewise.
43084
43085 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43086 Added padding. The EFI spec is buggy.
43087 (GRUB_EFI_BLACK): New macro.
43088 (GRUB_EFI_BLUE): Likewise.
43089 (GRUB_EFI_GREEN): Likewise.
43090 (GRUB_EFI_CYAN): Likewise.
43091 (GRUB_EFI_RED): Likewise.
43092 (GRUB_EFI_MAGENTA): Likewise.
43093 (GRUB_EFI_BROWN): Likewise.
43094 (GRUB_EFI_LIGHTGRAY): Likewise.
43095 (GRUB_EFI_BRIGHT): Likewise.
43096 (GRUB_EFI_DARKGRAY): Likewise.
43097 (GRUB_EFI_LIGHTBLUE): Likewise.
43098 (GRUB_EFI_LIGHTGREEN): Likewise.
43099 (GRUB_EFI_LIGHTCYAN): Likewise.
43100 (GRUB_EFI_LIGHTRED): Likewise.
43101 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43102 (GRUB_EFI_YELLOW): Likewise.
43103 (GRUB_EFI_WHITE): Likewise.
43104 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43105 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43106 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43107 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43108 (GRUB_EFI_BACKGROUND_RED): Likewise.
43109 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43110 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43111 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43112 (GRUB_EFI_TEXT_ATTR): Likewise.
43113
43114 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43115 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43116 (kernel_mod_HEADERS): Added efi/time.h.
43117
43118 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43119
43120 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43121 include/grub/efi/api.h, include/grub/efi/console_control.h,
43122 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43123 include/grub/i386/efi/time.h, kern/efi/efi.c,
43124 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43125 and util/i386/efi/grub-mkimage.c.
43126
43127 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43128
43129 * genmk.rb (PModule#rule): Do not export symbols if
43130 #{prefix}_EXPORTS is set to "no".
43131
43132 * conf/i386-efi.mk: New file.
43133 * conf/i386-efi.rmk: Likewise.
43134 * include/grub/efi/api.h: Likewise.
43135 * include/grub/efi/console_control.h: Likewise.
43136 * include/grub/efi/efi.h: Likewise.
43137 * include/grub/efi/pe32.h: Likewise.
43138 * include/grub/i386/efi/time.h: Likewise.
43139 * kern/efi/efi.c: Likewise.
43140 * kern/i386/efi/init.c: Likewise.
43141 * kern/i386/efi/startup.S: Likewise.
43142 * util/i386/efi/grub-mkimage.c: Likewise.
43143
43144 2006-04-17 Marco Gerards <marco@gnu.org>
43145
43146 * include/grub/script.h: Include <grub/parser.h> and
43147 "grub_script.tab.h".
43148 (struct grub_lexer_param): New struct.
43149 (struct grub_parser_param): Likewise.
43150 (grub_script_create_arglist): Pass the state in an argument.
43151 (grub_script_add_arglist): Likewise.
43152 (grub_script_create_cmdline): Likewise.
43153 (grub_script_create_cmdblock): Likewise.
43154 (grub_script_create_cmdif): Likewise.
43155 (grub_script_create_cmdmenu): Likewise.
43156 (grub_script_add_cmd): Likewise.
43157 (grub_script_arg_add): Likewise.
43158 (grub_script_lexer_ref): Likewise.
43159 (grub_script_lexer_deref): Likewise.
43160 (grub_script_lexer_record_start): Likewise.
43161 (grub_script_lexer_record_stop): Likewise.
43162 (grub_script_mem_record): Likewise.
43163 (grub_script_mem_record_stop): Likewise.
43164 (grub_script_malloc): Likewise.
43165 (grub_script_yylex): Likewise.
43166 (grub_script_yyparse): Likewise.
43167 (grub_script_yyerror): Likewise.
43168 (grub_script_yylex): Likewise.
43169 (grub_script_lexer_init): Return the state.
43170
43171 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43172 (grub_script_lexer_done): Likewise.
43173 (grub_script_lexer_getline): Likewise.
43174 (grub_script_lexer_refs): Likewise.
43175 (script): Likewise.
43176 (newscript): Likewise.
43177 (record): Likewise.
43178 (recording): Likewise.
43179 (recordpos): Likewise.
43180 (recordlen): Likewise.
43181 (grub_script_lexer_init): Return the state instead of setting
43182 global variables.
43183 (grub_script_lexer_ref): Use the newly added argument for state
43184 instead of globals.
43185 (grub_script_lexer_deref): Likewise.
43186 (grub_script_lexer_record_start): Likewise.
43187 (grub_script_lexer_record_stop): Likewise.
43188 (recordchar): Likewise.
43189 (nextchar): Likewise.
43190 (grub_script_yylex2): Likewise.
43191 (grub_script_yylex): Likewise.
43192 (grub_script_yyerror): Likewise.
43193
43194 * normal/parser.y (func_mem): Removed variable.
43195 (menu_entry): Likewise.
43196 (err): Likewise.
43197 (%lex-param): New parser option.
43198 (%parse-param): Likewise.
43199 (script): Always return the AST.
43200 (argument): Pass the state around.
43201 (arguments): Likewise.
43202 (grubcmd): Likewise.
43203 (commands): Likewise.
43204 (function): Likewise.
43205 (menuentry): Likewise.
43206 (if_statement): Likewise.
43207 (if): Likewise.
43208
43209 * normal/script.c (grub_script_memused): Removed variable.
43210 (grub_script_parsed): Likewise.
43211 (grub_script_malloc): Added a state argument. Use that instead of
43212 global variables.
43213 (grub_script_mem_record): Likewise.
43214 (grub_script_mem_record_stop): Likewise.
43215 (grub_script_arg_add): Likewise.
43216 (grub_script_add_arglist): Likewise.
43217 (grub_script_create_cmdline): Likewise.
43218 (grub_script_create_cmdif): Likewise.
43219 (grub_script_create_cmdmenu): Likewise.
43220 (grub_script_add_cmd): Likewise.
43221 (grub_script_parse): Setup the state before calling the parser.
43222
43223 2006-04-16 Marco Gerards <marco@gnu.org>
43224
43225 * normal/command.c (grub_command_init): Remove the title command.
43226
43227 * normal/lexer.c (grub_script_yylex): Renamed from this...
43228 (grub_script_yylex2): ... to this.
43229 (grub_script_yylex): New function. Temporary
43230 introduced to filter some tokens.
43231 (grub_script_yyerror): Print a newline.
43232
43233 * normal/main.c (read_config_file): Output information about the
43234 lines that contain errors. Wait for a key after all lines have
43235 been processed. Don't return an empty menu.
43236
43237 * normal/parser.y (func_mem): Don't initialize.
43238 (menu_entry): Likewise.
43239 (err): New variable.
43240 (script): Don't return anything when an error was encountered.
43241 (ws, returns): Removed rules.
43242 (argument): Disabled concatenated variable support.
43243 (arguments): Remove explicit separators.
43244 (grubcmd): Likewise.
43245 (function): Likewise.
43246 (menuentry): Likewise.
43247 (if): Likewise.
43248 (commands): Likewise. Add error handling.
43249
43250 * normal/script.c (grub_script_create_cmdline): If
43251 `grub_script_parsed' is 0, assume the parser encountered an error.
43252
43253 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43254
43255 * configure.ac: Add support for EFI. Fix the typo
43256 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43257
43258 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43259
43260 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43261 foreign multibyte characters should be shown correctly.
43262
43263 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43264
43265 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43266 calculation.
43267 (read_config_file): Made it to close file before returning.
43268
43269 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43270
43271 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43272 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43273 video/i386/pc/vbefill.c.
43274
43275 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43276 video/i386/pc/vbefill.c.
43277
43278 * include/grub/video.h (grub_video_blit_format): New enum.
43279 (grub_video_mode_info): Added new member blit_format.
43280 (grub_video_get_blit_format): New function prototype.
43281
43282 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43283 function prototype.
43284 (grub_video_vbe_map_rgb): Likewise.
43285 (grub_video_vbe_unmap_color): Likewise.
43286
43287 * include/grub/i386/pc/vbeblit.h: New file.
43288
43289 * include/grub/i386/pc/vbefill.h: New file.
43290
43291 * video/video.c (grub_video_get_blit_format): New function.
43292 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43293 (grub_video_vbe_map_rgb): Likewise.
43294 (grub_video_vbe_unmap_color): Likewise.
43295
43296 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43297 optimized fills.
43298 (grub_video_vbe_blit_render_target): Changed to use more optimized
43299 blits.
43300 (grub_video_vbe_setup): Added detection for optimized settings.
43301 (grub_video_vbe_create_render_target): Likewise.
43302
43303 * video/i386/pc/vbeblit.c: New file.
43304
43305 * video/i386/pc/vbefill.c: New file.
43306
43307 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43308
43309 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43310 here...
43311
43312 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43313 parsing to support both hex and dec ranges. If filename was missing
43314 show usage information.
43315
43316 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43317
43318 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43319 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43320
43321 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43322 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43323 (video_mod_SOURCES): Added.
43324 (video_mod_CFLAGS): Likewise.
43325 (video_mod_LDFLAGS): Likewise.
43326 (gfxterm_mod_SOURCES): Likewise.
43327 (gfxterm_mod_CFLAGS): Likewise.
43328 (gfxterm_mod_LDFLAGS): Likewise.
43329 (videotest_mod_SOURCES): Likewise.
43330 (videotest_mod_CFLAGS): Likewise.
43331 (videotest_mod_LDFLAGS): Likewise.
43332 (vesafb_mod_SOURCES): Removed.
43333 (vesafb_mod_CFLAGS): Likewise.
43334 (vesafb_mod_LDFLAGS): Likewise.
43335 (vga_mod_SOURCES): Likewise.
43336 (vga_mod_CFLAGS): Likewise.
43337 (vga_mod_LDFLAGS): Likewise.
43338
43339 * commands/videotest.c: New file.
43340
43341 * font/manager.c (fill_with_default_glyph): Modified to use
43342 grub_font_glyph.
43343 (grub_font_get_glyph): Likewise.
43344 (fontmanager): Renamed from this...
43345 (font_manager): ... to this.
43346
43347 * include/grub/font.h (grub_font_glyph): Added new structure.
43348 (grub_font_get_glyph): Modified to use grub_font_glyph.
43349
43350 * include/grub/misc.h (grub_abs): Added as inline function.
43351
43352 * include/grub/video.h: New file.
43353
43354 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43355 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43356 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43357 (grub_vbe_get_controller_info): Renamed from this...
43358 (grub_vbe_bios_get_controller_info): ... to this.
43359 (grub_vbe_get_mode_info): Renamed from this...
43360 (grub_vbe_bios_get_mode_info): ... to this.
43361 (grub_vbe_set_mode): Renamed from this...
43362 (grub_vbe_bios_set_mode): ... to this.
43363 (grub_vbe_get_mode): Renamed from this...
43364 (grub_vbe_bios_get_mode): ... to this.
43365 (grub_vbe_set_memory_window): Renamed from this...
43366 (grub_vbe_bios_set_memory_window): ... to this.
43367 (grub_vbe_get_memory_window): Renamed from this...
43368 (grub_vbe_bios_get_memory_window): ... to this.
43369 (grub_vbe_set_scanline_length): Renamed from this...
43370 (grub_vbe_set_scanline_length): ... to this.
43371 (grub_vbe_get_scanline_length): Renamed from this...
43372 (grub_vbe_bios_get_scanline_length): ... to this.
43373 (grub_vbe_set_display_start): Renamed from this...
43374 (grub_vbe_bios_set_display_start): ... to this.
43375 (grub_vbe_get_display_start): Renamed from this...
43376 (grub_vbe_bios_get_display_start): ... to this.
43377 (grub_vbe_set_palette_data): Renamed from this...
43378 (grub_vbe_bios_set_palette_data): ... to this.
43379 (grub_vbe_set_pixel_rgb): Removed.
43380 (grub_vbe_set_pixel_index): Likewise.
43381
43382 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43383 from this...
43384 (grub_vbe_bios_get_controller_info): ... to this.
43385 (grub_vbe_get_mode_info): Renamed from this...
43386 (grub_vbe_bios_get_mode_info): ... to this.
43387 (grub_vbe_set_mode): Renamed from this...
43388 (grub_vbe_bios_set_mode): ... to this.
43389 (grub_vbe_get_mode): Renamed from this...
43390 (grub_vbe_bios_get_mode): ... to this.
43391 (grub_vbe_set_memory_window): Renamed from this...
43392 (grub_vbe_bios_set_memory_window): ... to this.
43393 (grub_vbe_get_memory_window): Renamed from this...
43394 (grub_vbe_bios_get_memory_window): ... to this.
43395 (grub_vbe_set_scanline_length): Renamed from this...
43396 (grub_vbe_set_scanline_length): ... to this.
43397 (grub_vbe_get_scanline_length): Renamed from this...
43398 (grub_vbe_bios_get_scanline_length): ... to this.
43399 (grub_vbe_set_display_start): Renamed from this...
43400 (grub_vbe_bios_set_display_start): ... to this.
43401 (grub_vbe_get_display_start): Renamed from this...
43402 (grub_vbe_bios_get_display_start): ... to this.
43403 (grub_vbe_set_palette_data): Renamed from this...
43404 (grub_vbe_bios_set_palette_data): ... to this.
43405 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43406 getting corrupted after calling it. Added more pushes and pops.
43407 (grub_vbe_bios_set_mode): Likewise.
43408 (grub_vbe_bios_get_mode): Likewise.
43409 (grub_vbe_bios_get_memory_window): Likewise.
43410 (grub_vbe_bios_set_scanline_length): Likewise.
43411 (grub_vbe_bios_get_scanline_length): Likewise.
43412 (grub_vbe_bios_get_display_start): Likewise.
43413 (grub_vbe_bios_set_palette_data): Likewise.
43414
43415 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43416 (cl_insert): Likewise.
43417 (cl_delete): Likewise.
43418
43419 * term/gfxterm.c: New file.
43420
43421 * term/i386/pc/vesafb.c: Removed file.
43422
43423 * video/video.c: New file.
43424
43425 * video/i386/pc/vbe.c (real2pm): Added new function.
43426 (grub_video_vbe_draw_pixel): Likewise.
43427 (grub_video_vbe_get_video_ptr): Likewise.
43428 (grub_video_vbe_get_pixel): Likewise
43429 (grub_video_vbe_init): Likewise.
43430 (grub_video_vbe_fini): Likewise.
43431 (grub_video_vbe_setup): Likewise.
43432 (grub_video_vbe_get_info): Likewise.
43433 (grub_video_vbe_set_palette): Likewise.
43434 (grub_video_vbe_get_palette): Likewise.
43435 (grub_video_vbe_set_viewport): Likewise.
43436 (grub_video_vbe_get_viewport): Likewise.
43437 (grub_video_vbe_map_color): Likewise.
43438 (grub_video_vbe_map_rgb): Likewise.
43439 (grub_video_vbe_map_rgba): Likewise.
43440 (grub_video_vbe_unmap_color): Likewise.
43441 (grub_video_vbe_fill_rect): Likewise.
43442 (grub_video_vbe_blit_glyph): Likewise.
43443 (grub_video_vbe_blit_bitmap): Likewise.
43444 (grub_video_vbe_blit_render_target): Likewise.
43445 (grub_video_vbe_scroll): Likewise.
43446 (grub_video_vbe_swap_buffers): Likewise.
43447 (grub_video_vbe_create_render_target): Likewise.
43448 (grub_video_vbe_delete_render_target): Likewise.
43449 (grub_video_vbe_set_active_render_target): Likewise.
43450 (grub_vbe_set_pixel_rgb): Remove function.
43451 (grub_vbe_set_pixel_index): Likewise.
43452 (index_color_mode): Remove static variable.
43453 (active_mode): Likewise.
43454 (framebuffer): Likewise.
43455 (bytes_per_scan_line): Likewise.
43456 (grub_video_vbe_adapter): Added new static variable.
43457 (framebuffer): Likewise.
43458 (render_target): Likewise.
43459 (initial_mode): Likewise.
43460 (mode_in_use): Likewise.
43461 (mode_list): Likewise.
43462
43463 2006-03-10 Marco Gerards <marco@gnu.org>
43464
43465 * configure.ac (AC_INIT): Bumped to 1.93.
43466
43467 * DISTLIST: Added `include/grub/hfs.h'.
43468
43469 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43470
43471 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43472 18H, which might help the BIOS falling back to next boot media.
43473
43474 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43475
43476 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43477 Poe Chen <poe.poechen@gmail.com>.
43478
43479 2006-01-17 Marco Gerards <marco@gnu.org>
43480
43481 * include/grub/normal.h: Include <grub/script.h>.
43482 (grub_command_list): Removed struct.
43483 (grub_command_list_t): Removed type.
43484 (grub_menu_entry): Remove members `num' and `command_list'. Add
43485 members `commands' and `sourcecode'.
43486 * include/grub/script.h: Add inclusion guards.
43487 (grub_script_cmd_menuentry): New struct.
43488 (grub_script_execute_menuentry): New prototype.
43489 (grub_script_lexer_record_start): Likewise.
43490 (grub_script_lexer_record_stop): Likewise.
43491 * normal/execute.c (grub_script_execute_menuentry): New function.
43492 * normal/lexer.c (record, recording, recordpos, recordlen): New
43493 variables.
43494 (grub_script_lexer_record_start): New function.
43495 (grub_script_lexer_record_stop): Likewise.
43496 (recordchar): Likewise.
43497 (nextchar): Likewise.
43498 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43499 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43500 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43501 (current_menu): New variable.
43502 (free_menu): Mainly rewritten.
43503 (grub_normal_menu_addentry): New function.
43504 (read_config_file): Rewritten.
43505 * normal/menu.c (run_menu_entry): Mainly rewritten.
43506 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43507 the menu entry.
43508 (run): Mainly rewritten.
43509 * normal/parser.y (menu_entry): New variable.
43510 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43511 (menuentry): New rule.
43512 (command): Add `menuentry'.
43513 (if_statement): Allow additional returns before `fi'.
43514 * normal/script.c (grub_script_create_cmdmenu): New function.
43515
43516 2006-01-03 Marco Gerards <marco@gnu.org>
43517
43518 * INSTALL: GNU Bison is required.
43519 * configure.ac: Rewritten the test to detect Bison.
43520 * Makefile.in (YACC): New variable. Reported by Xun Sun
43521 <xun.sun.cn@gmail.com>.
43522
43523 2006-01-03 Marco Gerards <marco@gnu.org>
43524
43525 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43526 the HFS+ filesystem to filesystem blocks.
43527 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43528 GCC warning is silenced.
43529
43530 2006-01-03 Marco Gerards <marco@gnu.org>
43531
43532 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43533 read from disk from big endian to host byte order.
43534
43535 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43536
43537 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43538 documentation.
43539 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43540 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43541 embedded HFS+ filesystem.
43542 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43543 (grub_hfs_sblock): Move from here...
43544 * include/grub/hfs.h: To here... New file.
43545 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43546 documentation.
43547 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43548 New macros.
43549 (grub_hfsplus_volheader): Change type of member `magic' to
43550 `grub_uint16_t'.
43551 (grub_hfsplus_data): Add new member `embedded_offset'.
43552 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43553 returned block.
43554 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43555 Calculate the offset.
43556
43557 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43558
43559 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43560 Removed.
43561 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43562
43563 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43564
43565 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43566 ENV->NAME is NULL after allocating ENV->VALUE.
43567
43568 2005-12-25 Marco Gerards <marco@gnu.org>
43569
43570 * kern/env.c (grub_env_set): Rewritten the error handling code.
43571
43572 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43573
43574 * geninit.sh: Made more robust, and more portable.
43575
43576 2005-12-25 Marco Gerards <marco@gnu.org>
43577
43578 Add support for Apple HFS+ filesystems.
43579
43580 * fs/hfsplus.c: New file.
43581
43582 * DISTLIST: Added `fs/hfsplus.c'.
43583
43584 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43585 (hfsplus_mod_SOURCES): New variable.
43586 (hfsplus_mod_CFLAGS): Likewise.
43587 (hfsplus_mod_LDFLAGS): Likewise.
43588 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43589 (grub_setup_SOURCES): Likewise.
43590 (grub_mkdevicemap_SOURCES): Likewise.
43591 (grub_emu_SOURCES): Likewise.
43592 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43593
43594 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43595
43596 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43597
43598 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43599
43600 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43601 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43602 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43603 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43604 normal/lexer.c, normal/parser.y, normal/script.c, and
43605 partmap/gpt.c.
43606 Removed kern/sparc64/cache.c.
43607
43608 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43609 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43610 grub_emu_init.c.
43611
43612 * configure.ac (AC_INIT): Bumped to 1.92.
43613
43614 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43615
43616 * kern/err.c (grub_error_push): Added new function to support error
43617 stacks.
43618 (grub_error_pop): Likewise.
43619 (grub_error_stack_items): New local variable to support error stacks.
43620 (grub_error_stack_pos): Likewise.
43621 (grub_error_stack_assert): Likewise.
43622 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43623 stack depth.
43624 (grub_print_error): Added support to print errors from error stack.
43625
43626 * include/grub/err.h (grub_error_push): Added function prototype.
43627 (grub_error_pop): Likewise.
43628
43629 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43630
43631 * configure.ac: Accept `powerpc64' as host_cpu.
43632 (amd64): Rename to `biarch32'.
43633
43634 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43635 non-cacheline-aligned addresses.
43636
43637 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43638 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43639 if `size' is non-zero.
43640
43641 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43642
43643 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43644 and `cd' to make sure the filename is not prefixed with a
43645 directory name.
43646 (pkgdata_MODULES): Add `gpt.mod'.
43647 (gpt_mod_SOURCES): New variable.
43648 (gpt_mod_CFLAGS): Likewise.
43649 (gpt_mod_LDFLAGS): Likewise.
43650
43651 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43652
43653 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43654 New macro.
43655
43656 * partmap/gpt.c: New file.
43657
43658 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43659 GPT partition map is detected.
43660
43661 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43662
43663 * commands/i386/pc/play.c: New file.
43664 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43665 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43666 macros.
43667
43668 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43669
43670 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43671 ((unused))' to silence gcc warning.
43672
43673 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43674
43675 * configure.ac: Correct `AC_PROG_YACC' test.
43676
43677 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43678
43679 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43680 check before installing files.
43681
43682 2005-11-22 Mike Small <smallm@panix.com>
43683
43684 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43685 number regex so multidigit numbers are recognized correctly.
43686
43687 2005-11-22 Mike Small <smallm@panix.com>
43688
43689 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43690 debugging message before attempting to claim memory.
43691 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43692 multiple addresses in case of failure.
43693
43694 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43695
43696 * term/tparm.c (get_space): Remove empty `if' statement.
43697
43698 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43699
43700 * kern/parser.c (check_varstate): Rename `state' to 's'.
43701
43702 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43703
43704 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43705 variable definitions to the beginning of each function. Sort stack
43706 variables by size.
43707 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43708 `buf' argument to `char *'.
43709
43710 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43711
43712 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43713 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43714 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43715 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43716 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43717 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43718 configfile.mod, search.mod, gzio.mod and test.mod.
43719 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43720 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43721 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43722 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43723 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43724 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43725 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43726 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43727 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43728 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43729 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43730 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43731 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43732 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43733 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43734 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43735 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43736 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43737 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43738 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43739 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43740 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43741 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43742
43743 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43744 `grep --include'.
43745 (pkgdata_MODULES): Add test.mod.
43746
43747 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43748
43749 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43750 appending to variables with "+=".
43751 (PModule): Use full pathname to generate *.lst filenames.
43752
43753 * Makefile.in: Fixed list rules moved from genmk.rb.
43754 (.DELETE_ON_ERROR): New special target.
43755 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43756
43757 * conf/i386-pc.rmk: Include conf/common.mk.
43758 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43759 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43760 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43761 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43762 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43763 configfile.mod, search.mod, gzio.mod and test.mod.
43764 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43765 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43766 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43767 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43768 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43769 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43770 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43771 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43772 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43773 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43774 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43775 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43776 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43777 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43778 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43779 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43780 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43781 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43782 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43783 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43784 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43785 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43786 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43787 here...
43788 * conf/common.rmk: ... to here. New file.
43789
43790 * conf/common.mk: New file.
43791
43792 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43793
43794 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43795 (grub_script.tab.c): ... here.
43796
43797 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43798 (grub_script.tab.c): ... here.
43799
43800 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43801 (grub_script.tab.c): ... here.
43802
43803 * normal/command.c (grub_command_find): Fixed a memory leak of
43804 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43805
43806 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43807
43808 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43809 "@" which marks the start of a comment on ARM.
43810 (VARIABLE): Likewise.
43811
43812 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43813
43814 Add support for Linux/ADFS partition tables.
43815
43816 * partmap/acorn.c: New file.
43817
43818 * include/grub/acorn_filecore.h: Likewise.
43819
43820 * DISTLIST: Added `partmap/acorn.c' and
43821 `include/grub/acorn_filecore.h'.
43822
43823 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43824 `partmap/acorn.c'.
43825 (pkgdata_MODULES): Add `acorn.mod'.
43826 (acorn_mod_SOURCES): New variable.
43827 (acorn_mod_CFLAGS): Likewise.
43828
43829 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43830 `partmap/acorn.c'.
43831 (pkgdata_MODULES): Add `acorn.mod'.
43832 (acorn_mod_SOURCES): New variable.
43833 (acorn_mod_CFLAGS): Likewise.
43834
43835 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43836 (pkgdata_MODULES): Add `acorn.mod'.
43837 (acorn_mod_SOURCES): New variable.
43838 (acorn_mod_CFLAGS): Likewise.
43839 (acorn_mod_LDFLAGS): Likewise.
43840
43841 * include/types.h (grub_disk_addr_t): New typedef.
43842
43843 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43844
43845 * geninit.sh: New file.
43846
43847 * geninitheader.sh: Likewise.
43848
43849 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43850 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43851 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43852 * commands/configfile.c (grub_configfile_init)
43853 (grub_configfile_fini): Likewise.
43854 * commands/default.c (grub_default_init, grub_default_fini):
43855 Likewise.
43856 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43857 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43858 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43859 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43860 Likewise.
43861 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43862 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43863 Likewise.
43864 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43865 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43866 Likewise.
43867 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43868 Likewise.
43869 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43870 Likewise.
43871 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43872 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43873 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43874 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43875 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43876 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43877 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43878 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43879 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43880 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43881 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43882 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43883 * partmap/amiga.c (grub_amiga_partition_map_init)
43884 (grub_amiga_partition_map_fini): Likewise.
43885 * partmap/apple.c (grub_apple_partition_map_init)
43886 (grub_apple_partition_map_fini): Likewise.
43887 * partmap/pc.c (grub_pc_partition_map_init)
43888 (grub_pc_partition_map_fini): Likewise.
43889 * partmap/sun.c (grub_sun_partition_map_init,
43890 grub_sun_partition_map_fini): Likewise.
43891 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
43892 Likewise.
43893
43894 * util/grub-emu.c: Include <grub_modules_init.h>.
43895 (main): Don't initialize and de-initialize any modules directly,
43896 use `grub_init_all' and `grub_fini_all' instead.
43897
43898 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
43899 `grub_vesafb_mod_init'.
43900 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
43901 all users.
43902 * term/i386/pc/vga.c (grub_vga_init): Renamed to
43903 `grub_vga_mod_init'. Updated all users.
43904 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
43905
43906 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
43907 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
43908 rules.
43909
43910 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
43911 Generate a function to initialize the module in utilities.
43912 Updated all callers.
43913 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
43914 initialize the module in utilities. Updated all callers.
43915
43916 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43917
43918 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
43919 escape sequence and a literal ^L to clear the screen.
43920
43921 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
43922 when returning from Open Firmware.
43923
43924 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43925
43926 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
43927 (grub_ofconsole_height): Likewise.
43928 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
43929 manually insert a '\n'.
43930 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
43931 `grub_ofconsole_height'. Return early if these are already set.
43932
43933 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
43934
43935 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43936 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
43937 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
43938 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
43939 and `normal/script.c'.
43940 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43941 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43942 (test_mod_SOURCES): New variable.
43943 (test_mod_CFLAGS): Likewise.
43944 (test_mod_LDFLAGS): Likewise.
43945 (pkgdata_MODULES): Add `test.mod'.
43946 (grub_script.tab.c): New rule.
43947 (grub_script.tab.h): Likewise.
43948
43949 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
43950
43951 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43952 `commands/test.c', `normal/execute.c', `normal/lexer.c',
43953 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43954 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43955 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43956 (test_mod_SOURCES): New variable.
43957 (test_mod_CFLAGS): Likewise.
43958 (pkgdata_MODULES): Add `test.mod'.
43959 (grub_script.tab.c): New rule.
43960 (grub_script.tab.h): Likewise.
43961
43962 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
43963
43964 Add initial scripting support.
43965
43966 * commands/test.c: New file.
43967 * include/grub/script.h: Likewise.
43968 * normal/execute.c: Likewise.
43969 * normal/function.c: Likewise.
43970 * normal/lexer.c: Likewise.
43971 * normal/parser.y: Likewise.
43972 * normal/script.c: Likewise.
43973
43974 * configure.ac: Add `AC_PROG_YACC' test.
43975
43976 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
43977 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
43978 `normal/function.c' and `normal/script.c'.
43979 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43980 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43981 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
43982 variables.
43983 (pkgdata_MODULES): Add `test.mod'.
43984 (grub_script.tab.c): New rule.
43985 (grub_script.tab.h): Likewise.
43986
43987 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
43988
43989 * include/grub/normal.h (grub_test_init): New prototype.
43990 (grub_test_fini): Likewise.
43991
43992 * normal/command.c: Include <grub/script.h>.
43993 (grub_command_execute): Rewritten.
43994
43995 * util/grub-emu.c (main): Call `grub_test_init' and
43996 `grub_test_fini'.
43997
43998 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43999
44000 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44001 to 0.
44002 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44003 there are no pending characters.
44004
44005 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44006
44007 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44008 `grub_strndup' to drop device arguments. Replace unnecessary
44009 `grub_strndup' with `grub_strdup'.
44010
44011 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44012
44013 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44014 `debug' environment variable has been set.
44015
44016 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44017
44018 * Makefile.in (install-local): Use $(DATA).
44019 (uninstall): Likewise.
44020 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44021 (sbin_UTILITIES): ... to here.
44022 (sbin_SCRIPTS): New variable.
44023 (grub_install_SOURCES): New variable.
44024 * util/powerpc/ieee1275/grub-install.in: New file.
44025 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44026 variable.
44027 (add_segments): Call `grub_util_get_path'.
44028
44029 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44030
44031 From Timothy Baldwin:
44032 * commands/ls.c (grub_ls_list_files): Close FILE with
44033 grub_file_close.
44034 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44035
44036 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44037
44038 * include/grub/parser.h: New file.
44039
44040 * kern/parser.c: Likewise.
44041
44042 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44043 (grub_setup_SOURCES): Likewise.
44044 (grub_probefs_SOURCES): Likewise.
44045 (grub_emu_SOURCES): Likewise.
44046 (kernel_img_HEADERS): Add `parser.h'.
44047
44048 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44049 (grub_emu_SOURCES): Add `kern/parser.c'.
44050 (grubof_SOURCES): Likewise.
44051
44052 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44053 (grubof_SOURCES): Add `kern/parser.c'.
44054
44055 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44056
44057 * kern/misc.c (grub_split_cmdline): Removed function.
44058
44059 * kern/rescue.c: Include <grub/parser.h>.
44060 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44061 of `grub_split_cmdline'.
44062
44063 * normal/command.c: Include <grub/parser.h>.
44064 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44065 of `grub_split_cmdline'.
44066
44067 * normal/completion.c: Include <grub/parser.h>.
44068 (cmdline_state): New variable.
44069 (iterate_dir): End the filename with a quote depending on the
44070 command line state.
44071 (get_state): new function.
44072 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44073 split the arguments and determine the current argument. When the
44074 argument string is not quoted, escape all spaces.
44075
44076 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44077
44078 * normal/sparc64/setjmp.S: New file.
44079
44080 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44081
44082 * include/grub/sparc64/libgcc.h: New file.
44083 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44084 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44085 normal/sparc64/setjmp.c.
44086
44087 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44088
44089 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44090 * kern/sparc64/cache.S: New file.
44091 * kern/sparc64/cache.c: Removed.
44092 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44093 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44094 -mtune=ultrasparc.
44095 (COMMON_LDFLAGS): Add -melf64_sparc.
44096 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44097 (grubof_SOURCES): Use cache.S instead of cache.c.
44098 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44099 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44100 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44101 commented though.
44102 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44103 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44104 (linux_mod_CFLAGS): Commented out.
44105 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44106 out because module isn't built.
44107 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44108 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44109 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44110 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44111 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44112 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44113 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44114 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44115 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44116 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44117 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44118 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44119 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44120 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44121
44122 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44123
44124 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44125 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44126 longer, because HFS should not be used on PC.
44127
44128 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44129
44130 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44131 consistently within the loop.
44132
44133 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44134
44135 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44136 directory can not be read.
44137
44138 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44139
44140 * configure.ac (AC_INIT): Increase the version number to 1.91.
44141
44142 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44143 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44144 term/i386/pc/serial.c.
44145
44146 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44147
44148 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44149 file size must be permitted.
44150
44151 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44152 between %ah and %al.
44153
44154 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44155
44156 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44157 grub_uint64_t.
44158 Call the hook with a NUL-terminated filename.
44159 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44160 grub_cpu_to_be32.
44161
44162 * kern/term.c (cursor_state): New variable.
44163 (grub_term_set_current): Reset the cursor state on a new
44164 terminal.
44165 (grub_setcursor): Rewritten to use CURSOR_STATE.
44166 (grub_getcursor): New function.
44167
44168 * include/grub/term.h (grub_getcursor): New prototype.
44169
44170 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44171 integers on ARM. Reported by Timothy Baldwin
44172 <T.E.Baldwin99@members.leeds.ac.uk>.
44173
44174 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44175
44176 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44177 allocated.
44178 (grub_sfs_dir): Likewise.
44179
44180 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44181
44182 Add support for the SFS filesystem.
44183
44184 * fs/sfs.c: New file.
44185
44186 * DISTLIST: Added `fs/sfs.c'.
44187
44188 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44189 (grub_probefs_SOURCES): Likewise.
44190 (grub_emu_SOURCES): Likewise.
44191 (pkgdata_MODULES): Add `sfs.mod'.
44192 (sfs_mod_SOURCES): New variable.
44193 (sfs_mod_CFLAGS): Likewise.
44194 (sfs_mod_LDFLAGS): Likewise.
44195
44196 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44197 (pkgdata_MODULES): Add `sfs.mod'.
44198 (sfs_mod_SOURCES): New variable.
44199 (sfs_mod_CFLAGS): Likewise.
44200
44201 * util/grub-emu.c (main): Call `grub_sfs_init' and
44202 `grub_sfs_fini'.
44203
44204 * include/grub/fs.h (grub_sfs_init): New prototype.
44205 (grub_sfs_fini): Likewise.
44206
44207 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44208
44209 Add support for the AFFS filesystem.
44210
44211 * fs/affs.c: New file.
44212
44213 * DISTLIST: Added `fs/affs.c'.
44214
44215 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44216 (grub_probefs_SOURCES): Likewise.
44217 (grub_emu_SOURCES): Likewise.
44218 (pkgdata_MODULES): Add `affs.mod'.
44219 (affs_mod_SOURCES): New variable.
44220 (affs_mod_CFLAGS): Likewise.
44221 (affs_mod_LDFLAGS): Likewise.
44222
44223 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44224 (pkgdata_MODULES): Add `affs.mod'.
44225 (affs_mod_SOURCES): New variable.
44226 (affs_mod_CFLAGS): Likewise.
44227
44228 * util/grub-emu.c (main): Call `grub_affs_init' and
44229 `grub_affs_fini'.
44230
44231 * include/grub/fs.h (grub_affs_init): New prototype.
44232 (grub_affs_fini): Likewise.
44233
44234 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44235
44236 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44237
44238 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44239
44240 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44241 `-m32' to CFLAGS.
44242
44243 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44244 linking.
44245
44246 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44247 (COMMON_LDFLAGS): New variable.
44248 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44249 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44250 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44251 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44252 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44253 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44254 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44255 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44256 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44257 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44258 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44259 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44260 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44261 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44262 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44263 variables.
44264 (normal_mod_ASFLAGS): Add `-m32'.
44265
44266 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44267 (grub_host_size_t, grub_host_ssize_t): New types.
44268 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44269 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44270 `GRUB_HOST_SIZEOF_VOID_P'.
44271
44272 * include/grub/kernel.h (struct grub_module_header): Type of
44273 member offset changed to `grub_host_off_t'. Type of member size
44274 changed to `grub_host_size_t'.
44275 (struct grub_module_info): Type of member offset changed to
44276 `grub_host_off_t'. Type of member size changed to
44277 `grub_host_size_t'.
44278
44279 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44280
44281 Make GRUB's kernel compliant to Multiboot Specification.
44282
44283 * kern/i386/pc/startup.S (multiboot_header): New label.
44284 (multiboot_entry): Likewise.
44285 (multiboot_trampoline): Likewise.
44286
44287 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44288 Increased to 0x4A0.
44289
44290 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44291 put parentheses after a question mark.
44292 [!GRUB_UTIL] (my_mod): New variable.
44293
44294 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44295
44296 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44297
44298 Adds support for the XFS filesystem. Btrees are not supported
44299 yet.
44300
44301 * fs/xfs.c: New file.
44302
44303 * DISTLIST: Added `fs/xfs.c'.
44304
44305 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44306 (grub_probefs_SOURCES): Likewise.
44307 (grub_emu_SOURCES): Likewise.
44308 (pkgdata_MODULES): Add `xfs.mod'.
44309 (xfs_mod_SOURCES): New variable.
44310 (xfs_mod_CFLAGS): Likewise.
44311
44312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44313 (pkgdata_MODULES): Add `xfs.mod'.
44314 (xfs_mod_SOURCES): New variable.
44315 (xfs_mod_CFLAGS): Likewise.
44316
44317 * util/grub-emu.c (main): Call `grub_xfs_init' and
44318 `grub_xfs_fini'.
44319
44320 * include/grub/fs.h (grub_xfs_init): New prototype.
44321 (grub_xfs_fini): Likewise.
44322
44323
44324 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44325
44326 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44327 color modes, allow greater than 16 colors to be configured as
44328 a default palette.
44329
44330 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44331
44332 * normal/completion.c (complete_arguments): Add the qualifier
44333 const into OPTIONS.
44334
44335 From Omniflux <omniflux+lists@omniflux.com>:
44336 * include/grub/terminfo.h: New file.
44337 * include/grub/tparm.h: Likewise.
44338 * include/grub/i386/pc/serial.h: Likewise.
44339 * term/terminfo.c: Likewise.
44340 * term/tparm.c: Likewise.
44341 * term/i386/pc/serial.c: Likewise.
44342 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44343 serial.mod.
44344 (terminfo_mod_SOURCES): New variable.
44345 (terminfo_mod_CFLAGS): Likewise.
44346 (serial_mod_SOURCES): Likewise.
44347 (serial_mod_CFLAGS): Likewise.
44348
44349 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44350
44351 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44352 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44353 and kern/powerpc/ieee1275/cmain.c, respectively.
44354
44355 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44356 * kern/powerpc/ieee1275/crt0.S: ... here.
44357
44358 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44359 * kern/powerpc/ieee1275/cmain.c: ... here.
44360
44361 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44362 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44363 instead of boot/powerpc/ieee1275/crt0.S and
44364 boot/powerpc/ieee1275/cmain.c, respectively.
44365
44366 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44367 sectors. It was not used anyway.
44368
44369 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44370
44371 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44372 `unused parameter' warning.
44373
44374 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44375
44376 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44377 function.
44378 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44379 getcharwidth.
44380
44381 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44382
44383 * include/grub/normal.h (enum grub_completion_type): Added
44384 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44385
44386 * normal/cmdline.c (print_completion): Handle
44387 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44388 * normal/menu_entry.c (store_completion): Likewise.
44389
44390 * normal/completion.c (complete_arguments): New function.
44391 (grub_normal_do_completion): Call `complete_arguments' when the
44392 current words start with a dash.
44393
44394 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44395
44396 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44397 `gzio.mod' instead of `io.mod').
44398
44399 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44400
44401 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44402 (DISTDIRS): Added io and video.
44403 Rewrite the search routine to make an output consistently.
44404
44405 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44406 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44407 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44408 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44409 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44410 util/powerpc/ieee1275/misc.c.
44411
44412 * include/grub/gzio.h: New file.
44413 * io/gzio.c: Likewise.
44414
44415 * kern/file.c (grub_file_close): Call grub_device_close only if
44416 FILE->DEVICE is not NULL.
44417
44418 * include/grub/mm.h [!NULL] (NULL): New macro.
44419
44420 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44421
44422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44423 (pkgdata_MODULES): Added gzio.mod.
44424 (gzio_mod_SOURCES): New variable.
44425 (gzio_mod_CFLAGS): Likewise.
44426
44427 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44428 (pkgdata_MODULES): Added gzio.mod.
44429 (gzio_mod_SOURCES): New variable.
44430 (gzio_mod_CFLAGS): Likewise.
44431
44432 * commands/cat.c: Include grub/gzio.h.
44433 (grub_cmd_cat): Use grub_gzfile_open instead of
44434 grub_file_open.
44435
44436 * commands/cmp.c: Include grub/gzio.h.
44437 (grub_cmd_cmp): Use grub_gzfile_open instead of
44438 grub_file_open.
44439
44440 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44441 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44442 grub_file_open.
44443 (grub_rescue_cmd_module): Likewise.
44444
44445 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44446
44447 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44448 kern/sparc64/ieee1275/init.c because it contains _start.
44449 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44450
44451 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44452
44453 * configure.ac: Add support for sparc64 host with ieee1275
44454 firmware.
44455 * configure: Generated from configure.ac.
44456 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44457 instead of int.
44458 (grub_ofdisk_read): Likewise.
44459 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44460 pointers as (void *) to remove a warning.
44461 (grub_ofdisk_close): Likewise.
44462 (grub_ofdisk_read): Likewise.
44463 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44464 returns, so make it return void to remove a warning.
44465 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44466 Corresponding prototype change.
44467 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44468 values, and cast the pointers as (void *) to remove a warning.
44469 (grub_mm_dump): Likewise.
44470 * conf/sparc64-ieee1275.mk: New file.
44471 * conf/sparc64-ieee1275.rmk: Likewise.
44472 * include/grub/sparc64/setjmp.h: Likewise.
44473 * include/grub/sparc64/types.h: Likewise.
44474 * include/grub/sparc64/ieee1275/console.h: Likewise.
44475 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44476 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44477 * include/grub/sparc64/ieee1275/time.h: Likewise.
44478 * kern/sparc64/cache.c: Likewise.
44479 * kern/sparc64/dl.c: Likewise.
44480 * kern/sparc64/ieee1275/init.c: Likewise.
44481 * kern/sparc64/ieee1275/openfw.c: Likewise.
44482
44483 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44484
44485 * util/console.c (grub_ncurses_putchar): If C is greater than
44486 0x7f, set C to a question mark.
44487 (grub_ncurses_getcharwidth): New function.
44488 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44489 getcharwidth.
44490
44491 * normal/menu.c (print_entry): Made aware of Unicode. First,
44492 convert TITLE to UCS-4, and predict the cursor position by
44493 grub_getcharwidth.
44494
44495 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44496 const to SRC.
44497 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44498
44499 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44500
44501 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44502 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44503 grub_strcat.
44504
44505 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44506 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44507 grub_strcpy and grub_strlen. Take it into account that a space
44508 character is inserted as a delimiter.
44509
44510 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44511
44512 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44513 invalid magic in the error.
44514
44515 * commands/search.c: New file.
44516
44517 * util/grub-emu.c (main): Call grub_search_init and
44518 grub_search_fini.
44519
44520 * kern/rescue.c (grub_rescue_print_disks): Removed.
44521 (grub_rescue_print_devices): New function.
44522 (grub_rescue_cmd_ls): Use grub_device_iterate with
44523 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44524 grub_rescue_print_disks.
44525
44526 * kern/partition.c (grub_partition_iterate): Return the result of
44527 PARTMAP->ITERATE instead of GRUB_ERRNO.
44528
44529 * kern/device.c: Include grub/partition.h.
44530 (grub_device_iterate): New function.
44531
44532 * include/grub/partition.h (grub_partition_iterate): Return int
44533 instead of grub_err_t.
44534
44535 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44536 prototype.
44537 [GRUB_UTIL] (grub_search_fini): Likewise.
44538
44539 * include/grub/device.h (grub_device_iterate): New prototype.
44540
44541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44542 commands/search.c.
44543 (pkgdata_MODULES): Added search.mod.
44544 (search_mod_SOURCES): New variable.
44545 (search_mod_CFLAGS): Likewise.
44546
44547 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44548 (pkgdata_MODULES): Added search.mod.
44549 (search_mod_SOURCES): New variable.
44550 (search_mod_CFLAGS): Likewise.
44551
44552 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44553 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44554 All callers changed.
44555
44556 * DISTLIST: Added commands/search.c.
44557
44558 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44559
44560 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44561 conversion.
44562 (grub_getcharwidth): New function.
44563
44564 * kern/misc.c (grub_utf8_to_ucs4): New function.
44565
44566 * include/grub/term.h (struct grub_term): Added a new member
44567 "getcharwidth".
44568 (grub_getcharwidth): New prototype.
44569
44570 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44571
44572 * term/i386/pc/console.c (map_char): New function. Segregated from
44573 grub_console_putchar.
44574 (grub_console_putchar): Use map_char.
44575 (grub_console_getcharwidth): New function.
44576 (grub_console_term): Specified grub_console_getcharwidth as
44577 getcharwidth.
44578
44579 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44580 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44581
44582 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44583 GRUB_ERRNO.
44584 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44585 on grub_strtoul completely.
44586 (write_char): Declare local variables in the beginning of the
44587 function.
44588 (grub_vesafb_getcharwidth): New function.
44589 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44590 getcharwidth.
44591
44592 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44593
44594 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44595 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44596 commands/i386/pc/vbetest.c.
44597
44598 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44599 call grub_vbe_get_controller_info again, because the returned
44600 information is volatile.
44601 (grub_vbe_set_video_mode): Mostly rewritten.
44602 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44603 grub_vbe_status_t correctly.
44604 (grub_vbe_get_video_mode_info): Likewise.
44605 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44606 several if statements.
44607
44608 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44609 * commands/i386/pc/vbeinfo.c: ... this.
44610
44611 * commands/i386/pc/vbe_test.c: Renamed to ...
44612 * commands/i386/pc/vbetest.c: ... this.
44613
44614 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44615 ...
44616 (grub_cmd_vbeinfo): ... this. Save video modes before
44617 iterating. Skip a video mode, if it is not available, not enough
44618 information is given or it is monochrome. Show the memory
44619 model. Leave the interpretation of MODEVAR to grub_strtoul
44620 completely.
44621 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44622 (GRUB_MOD_FINI): Likewise.
44623
44624 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44625 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44626 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44627 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44628 grub_strtoul completely.
44629 (real2pm): Removed.
44630 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44631 (GRUB_MOD_FINI): Likewise.
44632
44633 * normal/misc.c: Include grub/mm.h.
44634
44635 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44636 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44637 (vbe_list_modes_mod_SOURCES): Removed.
44638 (vbe_list_modes_mod_CFLAGS): Likewise.
44639 (vbe_test_mod_SOURCES): Likewise.
44640 (vbe_test_mod_CFLAGS): Likewise.
44641 (vbeinfo_mod_SOURCES): New variable.
44642 (vbeinfo_mod_CFLAGS): Likewise.
44643 (vbetest_mod_SOURCES): Likewise.
44644 (vbetest_mod_CFLAGS): Likewise.
44645
44646 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44647
44648 * normal/misc.c: New file.
44649
44650 * DISTLIST: Added normal/misc.c.
44651
44652 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44653 DISK to HOOK. Call HOOK with DISK.
44654 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44655 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44656 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44657
44658 * normal/menu_entry.c (struct screen): Added a new member
44659 "completion_shown".
44660 (completion_buffer): New global variable.
44661 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44662 (store_completion): New function.
44663 (complete): Likewise.
44664 (clear_completions): Likewise.
44665 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44666 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44667 a tab, call complete.
44668
44669 * normal/completion.c (disk_dev): Removed.
44670 (print_simple_completion): Likewise.
44671 (print_partition_completion): Likewise.
44672 (print_func): New global variable.
44673 (add_completion): Do not take the arguments WHAT or PRINT any
44674 longer. Added a new argument TYPE. Instead of printing directly,
44675 call PRINT_FUNC if not NULL.
44676 All callers changed.
44677 (complete_device): Use a local variable DEV instead of
44678 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44679 (grub_normal_do_completion): Take a new argument HOOK. Do not
44680 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44681 empty string, return NULL instead.
44682 All callers changed.
44683
44684 * normal/cmdline.c (print_completion): New function.
44685
44686 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44687 to HOOK.
44688 All callers changed.
44689
44690 * kern/disk.c (grub_print_partinfo): Removed.
44691
44692 * include/grub/partition.h (struct grub_partition_map): Add a new
44693 argument DISK into HOOK of ITERATE.
44694 (grub_partition_iterate): Add a new argument DISK to HOOK.
44695
44696 * include/grub/normal.h (enum grub_completion_type): New enum.
44697 (grub_completion_type_t): New type.
44698 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44699 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44700 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44701 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44702 (grub_normal_do_completion): Added a new argument HOOK.
44703 (grub_normal_print_device_info): New prototype.
44704
44705 * include/grub/disk.h (grub_print_partinfo): Removed.
44706
44707 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44708 (normal_mod_SOURCES): Likewise.
44709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44710 (normal_mod_SOURCES): Likewise.
44711
44712 * commands/ls.c (grub_ls_list_disks): Use
44713 grub_normal_print_device_info instead of grub_print_partinfo. Free
44714 PNAME.
44715 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44716 duplicating the code.
44717
44718 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44719
44720 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44721 follow GCS more precisely.
44722 * commands/i386/pc/vbe_test.c: Likewise.
44723 * include/grub/i386/pc/vbe.h: Likewise.
44724 * term/i386/pc/vesafb.c: Likewise.
44725 * video/i386/pc/vbe.c: Likewise.
44726
44727 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44728
44729 * DISTLIST: Added term/i386/pc/vesafb.c
44730 DISTLIST: Added video/i386/pc/vbe.c
44731 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44732 DISTLIST: Added commands/i386/pc/vbe_test.c.
44733 * commands/i386/pc/vbe_list_modes.c: New file.
44734 * commands/i386/pc/vbe_test.c: Likewise.
44735 * term/i386/pc/vesafb.c: Likewise.
44736 * video/i386/pc/vbe.c: Likewise.
44737 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44738 (grub_vbe_probe) Added prototype.
44739 (grub_vbe_set_video_mode) Likewise.
44740 (grub_vbe_get_video_mode) Likewise.
44741 (grub_vbe_get_video_mode_info) Likewise.
44742 (grub_vbe_set_pixel_rgb) Likewise.
44743 (grub_vbe_set_pixel_index) Likewise.
44744 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44745 (pkgdata_MODULES): Added vesafb.mod.
44746 (pkgdata_MODULES): Added vbe_list_modes.mod.
44747 (pkgdata_MODULES): Added vbe_test.mod.
44748 (vbe_mod_SOURCES): Added.
44749 (vbe_mod_CFLAGS): Likewise.
44750 (vesafb_mod_SOURCES): Likewise.
44751 (vesafb_mod_CFLAGS): Likewise.
44752 (vbe_list_modes_mod_SOURCES): Likewise.
44753 (vbe_list_modes_mod_CFLAGS): Likewise.
44754 (vbe_test_mod_SOURCES): Likewise.
44755 (vbe_test_mod_CFLAGS): Likewise.
44756
44757 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44758
44759 * normal/command.c (grub_command_execute): If INTERACTIVE is
44760 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44761 CMDLINE. Disable the pager if INTERACTIVE is true.
44762 All callers are changed.
44763
44764 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44765 before reading a config file.
44766 * normal/main.c (read_config_file): Even if a command is not
44767 found, register it if it is within an entry.
44768
44769 * util/grub-emu.c: Include sys/types.h and unistd.h.
44770 (options): Added --hold.
44771 (struct arguments): Added a new member "hold".
44772 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44773 missing.
44774 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44775 cleared by a debugger, if it is not zero.
44776
44777 * include/grub/normal.h (grub_command_execute): Add an argument
44778 INTERACTIVE.
44779
44780 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44781
44782 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44783
44784 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44785
44786 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44787 program with another one, because the old one didn't detect a bug
44788 in gcc-3.4. Always use regparm 2, because the new test is still
44789 not enough for gcc-4.0. Someone must investigate a simple test
44790 case which detects a bug in gcc-4.0.
44791
44792 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44793
44794 * DISTLIST: Added normal/completion.c.
44795
44796 * normal/completion.c: New file.
44797
44798 * term/i386/pc/console.c (grub_console_getwh): New function.
44799 (grub_console_term): Assign grub_console_getwh to getwh.
44800
44801 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44802 function is defined in normal/completion.c as
44803 grub_normal_do_completion.
44804 (grub_cmdline_get): Use grub_normal_do_completion instead of
44805 grub_tab_complete.
44806
44807 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44808 returns non-zero, otherwise return 0.
44809 (grub_partition_iterate): First, probe the partition map. Then,
44810 call ITERATE only for this partition map.
44811
44812 * kern/misc.c (grub_strncmp): Rewritten.
44813
44814 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44815 returns non-zero. Otherwise return 0.
44816
44817 * include/grub/partition.h (grub_partition_map_iterate): Return
44818 int instead of void.
44819
44820 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44821
44822 * include/grub/misc.h (grub_strncmp): Change the type of N to
44823 grub_size_t.
44824
44825 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44826 of void.
44827
44828 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44829 unsigned explicitly before comparing it with I.
44830
44831 * kern/main.c (grub_env_write_root): Add the attribute unused into
44832 VAR.
44833
44834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44835 normal/completion.c.
44836 (normal_mod_SOURCES): Likewise.
44837 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44838 (normal_mod_SOURCES): Likewise.
44839
44840 * normal/command.c (grub_iterate_commands): If ITERATE returns
44841 non-zero, return one immediately.
44842
44843 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44844
44845 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44846 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44847 descriptions.
44848 (grub_vbe_get_controller_info): New function.
44849 (grub_vbe_get_mode_info): Likewise.
44850 (grub_vbe_set_mode): Likewise.
44851 (grub_vbe_get_mode): Likewise.
44852 (grub_vbe_set_memory_window): Likewise.
44853 (grub_vbe_get_memory_window): Likewise.
44854 (grub_vbe_set_scanline_length): Likewise.
44855 (grub_vbe_get_scanline_length): Likewise.
44856 (grub_vbe_set_display_start): Likewise.
44857 (grub_vbe_get_display_start): Likewise.
44858 (grub_vbe_set_palette_data): Likewise.
44859 * include/grub/i386/pc/vbe.h: New file.
44860
44861 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44862
44863 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44864 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44865 * DISTLIST: Likewise.
44866 * kern/ieee1275/of.c: Moved to ...
44867 * kern/ieee1275/ieee1275.c: ... here.
44868
44869 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44870
44871 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44872 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44873 Pass 0 as `end' parameter to grub_strtoul().
44874
44875 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44876
44877 * include/grub/powerpc/ieee1275/console.h: Do not include
44878 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44879 ifdef.
44880 (grub_console_cur_color): Remove i386-specific prototype.
44881 (grub_console_real_putchar): Likewise.
44882 (grub_console_checkkey): Likewise.
44883 (grub_console_getkey): Likewise.
44884 (grub_console_getxy): Likewise.
44885 (grub_console_gotoxy): Likewise.
44886 (grub_console_cls): Likewise.
44887 (grub_console_setcursor): Likewise.
44888 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
44889 Include <grub/machine/console.h>.
44890 * term/ieee1275/ofconsole.c: Likewise.
44891
44892 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
44893
44894 * Makefile.in (LIBLZO): New variable.
44895
44896 * configure.ac: Check for LZO version 2.
44897
44898 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
44899 lzo/lzo1x.h instead of lzo1x.h.
44900
44901 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
44902 of -llzo.
44903
44904 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
44905 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
44906
44907 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
44908 copying the data from PARTITION to P.
44909
44910 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44911
44912 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
44913 negative, unload the module.
44914
44915 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
44916 map is "pc_partition_map" but not "pc".
44917 (usage): Fix the description. The options are --boot-image and
44918 --core-image but not --boot-file or --core-file.
44919 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
44920 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
44921 DEFAULT_DIRECTORY.
44922
44923 * util/i386/pc/grub-install.in: Do not specify --boot-file or
44924 --core-file. Specify INSTALL_DEVICE as an argument.
44925
44926 * util/console.c: Include config.h.
44927 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
44928 [HAVE_NCURSES_H]: Include ncurses.h.
44929 [HAVE_CURSES_H]: Include curses.h.
44930 [!A_NORMAL] (A_NORMAL): Defined as zero.
44931 [!A_STANDOUT] (A_STANDOUT): Likewise.
44932
44933 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
44934 -lncurses.
44935 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
44936
44937 * configure.ac: Check for curses libraries and headers.
44938
44939 * Makefile.in (LIBCURSES): New variable.
44940
44941 * genmk.rb (Script::rule): Set the executable bits.
44942
44943 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
44944 name of the PC partition map is "pc_partition_map" but not "pc".
44945
44946 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44947
44948 * util/i386/pc/grub-install.in (grub_probefs): New variable.
44949 (modules): Likewise.
44950 (usage): Added descriptions for --modules and --grub-probefs.
44951 Handle --modules and --grub-probefs. Save the arguments in MODULES
44952 and GRUB_PROBEFS, respectively.
44953 Auto-detect a filesystem module against GRUBDIR. If the result is
44954 empty and modules are not specified explicitly, abort the
44955 installation. Add the result to MODULES.
44956
44957 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
44958 disk/powerpc/ieee1275/ofdisk.c,
44959 include/grub/powerpc/ieee1275/init.h and
44960 term/powerpc/ieee1275/ofconsole.c.
44961 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
44962 term/ieee1275/ofconsole.c.
44963
44964 * include/grub/powerpc/ieee1275/console.h: Resurrected.
44965
44966 * COPYING: Upgraded to the latest version. Only the address of the
44967 FSF office has changed.
44968
44969 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44970
44971 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44972 kern/ieee1275.c with kern/ieee1275/of.c.
44973
44974 * kern/ieee1275.c: Moved to ...
44975 * kern/ieee1275/of.c: ... here.
44976
44977 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
44978
44979 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
44980 readability.
44981
44982 * config.guess: Updated to the latest version from gnulib.
44983 * config.sub: Likewise.
44984 * install.sh: Likewise.
44985 * mkinstalldirs: Likewise.
44986
44987 * include/grub/console.h: Removed. This file is arch-specific. Do
44988 not put this in include/grub.
44989
44990 * include/grub/i386/pc/console.h: Resurrected.
44991
44992 * util/console.c: Include grub/machine/console.h instead of
44993 grub/console.h.
44994 * util/grub-emu.c: Likewise.
44995
44996 2005-08-04 Marco Gerards <metgerards@student.han.nl>
44997
44998 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
44999 hardcoded value.
45000
45001 From Vincent Pelletier <subdino2004@yahoo.fr>
45002 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45003 Redefined to use grub_getwh.
45004 (grub_term): New member named getwh.
45005 (grub_getwh): New prototype.
45006 * kern/term.c (grub_getwh): New function.
45007 * term/i386/pc/console.c (grub_console_getwh): New function.
45008 (grub_console_term): New member `getwh'.
45009 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45010 (grub_vga_term): New member `getwh'.
45011 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45012 grub_ssize_t.
45013 (grub_ofconsole_getw): New function.
45014 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45015 (grub_ofconsole_term): New field named getwh and new initial
45016 value.
45017
45018 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45019
45020 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45021 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45022 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45023 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45024 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45025 of <grub/machine/ieee1275.h>.
45026 * commands/ieee1275/reboot.c: Likewise.
45027 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45028 * kern/ieee1275.c: ... to here. All users updated. Change all
45029 parameter structs to use new type `grub_ieee1275_cell_t'.
45030 * term/powerpc/ieee1275/ofconsole.c: Move ...
45031 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45032 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45033 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45034 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45035 to return int.
45036 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45037 Remove unused prototypes. All users updated.
45038 * include/grub/powerpc/ieee1275/console.h: Removed.
45039 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45040 `grub_ieee1275_cell_t'.
45041 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45042 Cast comparisons with -1 to the correct type.
45043 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45044 type to match `grub_ieee1275_entry_fn'.
45045
45046 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45047
45048 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45049
45050 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45051 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45052 partmap/sun.c.
45053 (grub_probefs_SOURCES): New variable.
45054
45055 * util/i386/pc/grub-probefs.c: New file.
45056
45057 * util/i386/pc/grub-setup.c (main): Call
45058 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45059 grub_hfs_init and grub_jfs_init to initialize the system. Call
45060 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45061 grub_pc_partition_map_fini to finish the system.
45062
45063 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45064
45065 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45066 function.
45067 (grub_multiboot_load_elf32): Likewise.
45068 (grub_multiboot_is_elf64): Likewise.
45069 (grub_multiboot_load_elf64): Likewise.
45070 (grub_multiboot_load_elf): Likewise.
45071 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45072 an ELF32 or ELF64 file.
45073 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45074
45075 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45076 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45077 NULL before calling FS->LABEL.
45078 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45079 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45080 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45081 before calling FS->LABEL.
45082
45083 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45084
45085 * util/i386/pc/grub-install.in (datadir): New variable.
45086 (libdir): Removed.
45087 (pkgdatadir): New variable.
45088 (pkglibdir): Removed.
45089
45090 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45091
45092 * DISTLIST: Added util/i386/pc/grub-install.in.
45093
45094 * util/i386/pc/grub-install.in: New file.
45095
45096 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45097 (grub_install_SOURCES): Likewise.
45098
45099 * genmk.rb: Added support for scripts.
45100 (Script): New class.
45101 (scripts): New variable.
45102
45103 * Makefile.in (install-local): Install sbin_SCRIPTS by
45104 INSTALL_SCRIPT.
45105 (uninstall): Remove sbin_SCRIPTS.
45106
45107 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45108 device, try to get a GRUB device by
45109 grub_util_biosdisk_get_grub_dev.
45110 Free DEST_DEV.
45111
45112 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45113 description for --device-map.
45114
45115 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45116
45117 Change the semantics of variable hooks. They now return strings
45118 instead of error values.
45119
45120 * util/i386/pc/grub-setup.c: Include grub/env.h.
45121 (setup): Use grub_device_set_root instead of grub_env_set.
45122
45123 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45124 grub_env_get instead of grub_device_set_root and
45125 grub_device_get_root, respectively.
45126
45127 * kern/main.c (grub_env_write_root): New function.
45128 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45129 grub_env_set instead of grub_device_set_root.
45130
45131 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45132 many variables.
45133 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45134 rather than calling ENV->WRITE_HOOK afterwards.
45135 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45136 passing a pointer of a pointer.
45137 (grub_register_variable_hook): Change the types of "read_hook" and
45138 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45139 respectively.
45140 Allocate the default empty string on the heap, because this string
45141 may be freed later.
45142
45143 * kern/device.c: Include grub/env.h.
45144 (grub_device_set_root): Removed.
45145 (grub_device_get_root): Likewise.
45146 (grub_device_open): Use grub_env_get instead of
45147 grub_device_get_root.
45148
45149 * include/grub/env.h (grub_env_read_hook_t): New type.
45150 (grub_env_write_hook_t): Likewise.
45151 (grub_env_var): Change the types of "read_hook" and "write_hook"
45152 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45153 (grub_register_variable_hook): Likewise.
45154
45155 * include/grub/device.h (grub_device_set_root): Removed.
45156 (grub_device_set_root): Likewise.
45157
45158 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45159 make sure that DIRNAME terminates with '/', so that
45160 grub_fat_find_dir will fail if PATH is not a directory.
45161
45162 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45163 from DIRNAME.
45164 Use the qualifier auto for print_files and print_files_long.
45165 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45166 as a regular file.
45167 Put a newline only if there is no error.
45168 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45169 used.
45170
45171 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45172
45173 * kern/partition.c (grub_partition_probe): Initialize PART to
45174 NULL. Otherwise, when no partition map is registered, this returns
45175 a garbage.
45176
45177 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45178
45179 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45180 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45181 valid.
45182
45183 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45184
45185 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45186 information on each device, if it does not have partitions. Print
45187 "Device" instead of "Disk", because this function is not specific
45188 to disk devices.
45189
45190 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45191 static to ensure that it is put on the memory rather than a
45192 register.
45193
45194 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45195
45196 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45197 (grub_cat_init): Likewise.
45198 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45199 (options): Likewise.
45200 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45201 (grub_configfile_init): Likewise.
45202 * font/manager.c (GRUB_MOD_INIT): Likewise.
45203 * commands/help.c (GRUB_MOD_INIT): Likewise.
45204 (grub_help_init): Likewise.
45205 * normal/command.c (grub_command_init): Likewise.
45206 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45207 * disk/loopback.c (grub_loop_init): Likewise.
45208 (GRUB_MOD_INIT): Likewise.
45209 * commands/ls.c (grub_ls_init): Likewise.
45210 (GRUB_MOD_INIT): Likewise.
45211 (options): Likewise.
45212 * commands/boot.c (grub_boot_init): Likewise.
45213 (GRUB_MOD_INIT): Likewise.
45214 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45215 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45216 (GRUB_MOD_INIT): Likewise.
45217 * commands/cmp.c (grub_cmp_init): Likewise.
45218 (GRUB_MOD_INIT): Likewise.
45219
45220 * normal/arg.c: Use <> instead of "" to include header files.
45221 (SHORT_ARG_HELP): New macro.
45222 (SHORT_ARG_USAGE): Likewise.
45223 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45224 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45225 descriptions.
45226 (find_short): Check if C is 'h' or 'u' explicitly.
45227 (grub_arg_show_help): Use space characters instead of tabs. Treat
45228 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45229 are shown with --help and --usage only if they are not used for
45230 the command itself.
45231 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45232 'h' and 'u'.
45233
45234 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45235 const into "longarg". Change the type of "shortarg" to int.
45236
45237 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45238
45239 * boot/i386/pc/boot.S (boot_drive_check): New label.
45240
45241 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45242 macro.
45243
45244 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45245 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45246
45247 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45248
45249 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45250 When turning off Gate A20, skip the check and return immediately,
45251 because this is not fatal usually.
45252
45253 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45254
45255 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45256 be 0x7C00 instead of 0x8000.
45257
45258 * boot/i386/pc/pxeboot.S: Rewritten.
45259
45260 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45261 EXT_C.
45262 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45263 result.
45264
45265 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45266
45267 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45268 robustness. This routine now supports a BIOS call and System
45269 Control Port A to modify the gate A20.
45270
45271 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45272 Increased to 0x440.
45273
45274 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45275
45276 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45277 device path and resulting ihandle.
45278 (grub_ofdisk_close): dprintf the ihandle being closed.
45279 (grub_ofdisk_read): dprintf function parameters.
45280 * kern/mm.c (grub_mm_init_region): Likewise.
45281 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45282 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45283 size, and boot arguments.
45284 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45285 before loading into memory.
45286 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45287 before loading into memory.
45288
45289 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45290
45291 * kern/mm.c: Added much documentation.
45292 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45293 8, set to 5 instead of 8.
45294
45295 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45296
45297 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45298
45299 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45300 (grub_mkdevicemap_SOURCES): New variable.
45301
45302 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45303 lib/device.c of GRUB Legacy.
45304
45305 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45306
45307 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45308 instead of PATH is NULL.
45309
45310 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45311
45312 * commands/cmp.c (BUFFER_SIZE): New macro.
45313 (grub_cmd_cmp): Close the right file at the right time. Compare
45314 only data just read. Don't report files of different size as
45315 identical. Dynamically allocate buffers. Move variable
45316 declarations at the beginning of function.
45317
45318 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45319
45320 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45321 reverse.
45322
45323 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45324
45325 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45326 when backspace is pressed at beginning of line.
45327
45328 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45329
45330 * DISTLIST: Added genfslist.sh.
45331
45332 * normal/main.c (fs_module_list): New variable.
45333 (autoload_fs_module): New function.
45334 (read_fs_list): Likewise.
45335 (grub_normal_execute): Call read_fs_list.
45336
45337 * kern/fs.c (grub_fs_autoload_hook): New variable.
45338 (grub_fs_probe): Added support for auto-loading.
45339
45340 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45341 (grub_fs_module_list_t): New type.
45342
45343 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45344 (grub_fs_autoload_hook): New prototype.
45345
45346 * genfslist.sh: New file.
45347
45348 * genmk.rb: Added a rule to generate a filesystem list.
45349
45350 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45351
45352 * configure.ac: Fix the test for cross-compiling.
45353
45354 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45355 define GRUB_UTIL anymore.
45356
45357 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45358 so this function works on other systems than just big endian.
45359 (load_modules): Likewise.
45360 (add_segments): Likewise.
45361
45362 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45363
45364 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45365 contains `l' modifier, get a long from va_arg().
45366
45367 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45368
45369 * kern/mm.c (grub_free): If the next free block which is being
45370 merged is the first free block, set the first block to the block
45371 being freed.
45372 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45373
45374 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45375
45376 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45377 `grub_ieee1275_chosen'.
45378
45379 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45380
45381 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45382 (grub_ieee1275_chosen): New variable.
45383 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45384 `chosen'.
45385 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45386 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45387 Rename first argument to `phandle' for consistency.
45388 (grub_ieee1275_get_property_length): Likewise.
45389 (grub_ieee1275_next_property): Likewise. Change type of first argument
45390 to grub_ieee1275_phandle_t.
45391 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45392 Move export next to declaration.
45393 (grub_ieee1275_chosen): New variable.
45394 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45395 Correct cosmetic typo.
45396 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45397 `grub_ieee1275_chosen'.
45398 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45399 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45400 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45401 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45402 `grub_ieee1275_chosen'.
45403
45404 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45405
45406 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45407 /chosen/bootargs.
45408 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45409 /chosen/bootargs as "variable=value" pairs.
45410
45411 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45412
45413 * include/grub/misc.h (grub_dprintf): New macro.
45414 (grub_real_dprintf): New prototype.
45415 (grub_strword): Likewise.
45416 (grub_iswordseparator): Likewise.
45417 * kern/misc.c (grub_real_dprintf): New function.
45418 (grub_strword): Likewise.
45419 (grub_iswordseparator): Likewise.
45420
45421 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45422
45423 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45424 (roundup): Remove macro.
45425 (grub_ieee1275_flags): Make static.
45426 (grub_ieee1275_realmode): Remove.
45427 (grub_ieee1275_test_flag): New function.
45428 (grub_ieee1275_set_flag): Likewise.
45429 (find_options): Rename to `grub_ieee1275_find_options'; update
45430 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45431 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45432 (cmain): New prototype.
45433 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45434 `grub_ieee1275_flags' directly.
45435 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45436 machine/biosdisk.h.
45437 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45438 Don't include grub/machine/init.h.
45439 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45440 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45441 Remove prototype.
45442 (grub_ieee1275_realmode): Likewise.
45443 (grub_ieee1275_flag): New enum.
45444 (grub_ieee1275_test_flag): New prototype.
45445 (grub_ieee1275_set_flag): New prototype.
45446 * include/grub/powerpc/ieee1275/init.h: Remove file.
45447 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45448 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45449 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45450 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45451 comment.
45452 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45453 `grub_ieee1275_test_flag'.
45454 (grub_ieee1275_encode_devname): Likewise.
45455
45456 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45457
45458 * include/grub/powerpc/ieee1275/ieee1275.h
45459 (grub_ieee1275_encode_devname): New prototype.
45460 (grub_ieee1275_get_filename): Likewise.
45461 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45462 function.
45463 (grub_set_prefix): Likewise.
45464 (grub_machine_init): Call grub_set_prefix.
45465 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45466 (grub_parse_type): New enum.
45467 (grub_ieee1275_get_devargs): New function.
45468 (grub_ieee1275_get_devname): Likewise.
45469 (grub_ieee1275_parse_args): Likewise.
45470 (grub_ieee1275_get_filename): Likewise.
45471 (grub_ieee1275_encode_devname): Likewise.
45472
45473 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45474
45475 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45476 `grub_loader_unset'.
45477
45478 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45479
45480 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45481 instead of grub_ieee1275_interpret.
45482 (grub_halt_init): New function.
45483 (grub_halt_fini): Likewise.
45484 (GRUB_MOD_INIT): Correct message grammar.
45485 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45486 instead of grub_ieee1275_interpret.
45487 (grub_reboot_init): New function.
45488 (grub_reboot_fini): Likewise.
45489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45490 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45491 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45492 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45493 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45494 function.
45495 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45496 Add prototype.
45497 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45498 prototype.
45499 (grub_halt): Likewise.
45500 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45501 (cmain): Remove __attribute__((unused)).
45502 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45503 (grub_heap_len): Likewise.
45504 (grub_machine_fini): New function.
45505 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45506 (grub_halt): Likewise.
45507 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45508 function.
45509 * util/powerpc/ieee1275/misc.c: New file.
45510
45511 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45512
45513 * DISTLIST: New file.
45514 * gendistlist.sh: Likewise.
45515
45516 * Makefile.in (COMMON_DISTFILES): Removed.
45517 (BOOT_DISTFILES): Likewise.
45518 (CONF_DISTFILES): Likewise.
45519 (DISK_DISTFILES): Likewise.
45520 (FS_DISTFILES): Likewise.
45521 (INCLUDE_DISTFILES): Likewise.
45522 (KERN_DISTFILES): Likewise.
45523 (LOADER_DISTFILES): Likewise.
45524 (TERM_DISTFILES): Likewise.
45525 (UTIL_DISTFILES): Likewise.
45526 (DISTFILES): Likewise.
45527 (uninstall): Uninstall files in $(pkgdata_DATA).
45528 (DISTLIST): New target.
45529 (distdir): Use the contents of the file DISTLIST to get a list of
45530 distributed files.
45531
45532 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45533
45534 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45535 descriptor. This is ported from GRUB Legacy.
45536
45537 * gencmdlist.sh: Added an extra semicolon to make it work with
45538 old sed versions. Reported by Robert Bihlmeyer
45539 <robbe@orcus.priv.at>.
45540
45541 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45542
45543 Automatic loading of commands is supported.
45544
45545 * normal/main.c (read_command_list): New function.
45546 (grub_normal_execute): Call read_command_list.
45547
45548 * normal/command.c (grub_register_command): Return zero or CMD.
45549 Allocate CMD->NAME from the heap.
45550 Initialize CMD->MODULE_NAME to zero.
45551 Find the same name as well. If the same command is found and it is
45552 a dummy command, overwrite members. If it is not a dummy command,
45553 return zero.
45554 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45555 (grub_command_find): If a dummy command is found, load a module
45556 and retry to find a command only once.
45557
45558 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45559 make sure that each command is loaded.
45560
45561 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45562 macro.
45563 (struct grub_command): Remove const from the member `name'.
45564 Add a new member `module_name'.
45565 (grub_register_command): Return grub_command_t.
45566
45567 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45568 sure that each command is loaded.
45569
45570 * genmk.rb (PModule::rule): Specify a module name without the
45571 suffix ".mod" to gencmdlist.sh.
45572
45573 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45574
45575 * gencmdlist.sh: New file.
45576
45577 * genmk.rb (PModule::rule): Generate a rule for a command list.
45578 Clean command.lst.
45579 Generate command.lst from $(COMMANDFILES).
45580
45581 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45582 (DATA): Added $(pkgdata_DATA).
45583 (install-local): Install files in $(pkgdata_DATA).
45584
45585 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45586
45587 * term/i386/pc/vga.c (debug_command): Removed.
45588 (GRUB_MOD_INIT): Do not register the command "debug".
45589
45590 From Hollis Blanchard:
45591 * commands/configfile.c: New file.
45592 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45593 commands/configfile.c.
45594 (pkgdata_MODULES): Added configfile.mod.
45595 (configfile_mod_SOURCES): New variable.
45596 (configfile_mod_CFLAGS): Likewise.
45597 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45598 commands/configfile.c.
45599 (pkgdata_MODULES): Added configfile.mod.
45600 (configfile_mod_SOURCES): New variable.
45601 (configfile_mod_CFLAGS): Likewise.
45602 * util/grub-emu.c (main): Call grub_configfile_init and
45603 grub_configfile_fini.
45604 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45605 prototype.
45606 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45607
45608 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45609
45610 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45611 address.
45612
45613 * commands/help.c (grub_cmd_help): Do not print newlines after
45614 the last command in print_command_help.
45615
45616 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45617
45618 * commands/default.h: New file.
45619 * commands/timeout.h: Likewise.
45620 * normal/context.c: Likewise.
45621
45622 * util/misc.c: Do not include sys/times.h.
45623 Include sys/time.h and grub/machine/time.h.
45624 (grub_get_rtc): Rewritten with gettimeofday.
45625
45626 * util/grub-emu.c (main): Call grub_default_init and
45627 grub_timeout_init before grub_normal_init, and call
45628 grub_timeout_fini and grub_default_fini after grub_main.
45629
45630 * util/console.c (grub_ncurses_checkkey): Return the read
45631 character or -1.
45632
45633 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45634 timeouts.
45635
45636 * normal/main.c (read_config_file): Push MENU. If this fails,
45637 print an error and wait for a user input.
45638 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45639 If a menu is empty or an error occurs, pop MENU.
45640 (grub_normal_execute): Pop and free MENU after grub_menu_run
45641 returns.
45642
45643 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45644
45645 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45646 include time.h.
45647 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45648 without GRUB_UTIL.
45649 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45650 time.h.
45651 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45652 without GRUB_UTIL.
45653
45654 * include/grub/normal.h (struct grub_menu_list): New struct.
45655 (grub_menu_list_t): New type.
45656 (struct grub_context): New struct.
45657 (grub_context_t): New type.
45658 (grub_register_command): Got rid of EXPORT_FUNC.
45659 (grub_unregister_command): Likewise.
45660 (grub_context_get): New prototype.
45661 (grub_context_get_current_menu): Likewise.
45662 (grub_context_push_menu): Likewise.
45663 (grub_context_pop_menu): Likewise.
45664 [GRUB_UTIL] (grub_default_init): Likewise.
45665 [GRUB_UTIL] (grub_default_fini): Likewise.
45666 [GRUB_UTIL] (grub_timeout_init): Likewise.
45667 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45668
45669 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45670 commands/timeout.c and normal/context.c.
45671 (pkgdata_MODULES): Added default.mod and timeout.mod.
45672 (normal_mod_SOURCES): Added normal/context.c.
45673 (default_mod_SOURCES): New variable.
45674 (default_mod_CFLAGS): Likewise.
45675 (timeout_mod_SOURCES): Likewise.
45676 (timeout_mod_CFLAGS): Likewise.
45677 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45678 conf/i386-pc.rmk.
45679 (pkgdata_MODULES): Added default.mod and timeout.mod.
45680 (normal_mod_SOURCES): Added normal/context.c.
45681 (default_mod_SOURCES): New variable.
45682 (default_mod_CFLAGS): Likewise.
45683 (timeout_mod_SOURCES): Likewise.
45684 (timeout_mod_CFLAGS): Likewise.
45685
45686 * Makefile.in (all-local): Added $(MKFILES).
45687
45688 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45689
45690 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45691 (grub_emu_SOURCES): Likewise.
45692 (pkgdata_MODULES): Add `sun.mod'.
45693 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45695 `partmap/sun.c'.
45696 (pkgdata_MODULES): Add `sun.mod'.
45697 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45698 * include/grub/partition.h (grub_sun_partition_map_init): New
45699 prototype.
45700 (grub_sun_partition_map_fini): Likewise.
45701 * partmap/sun.c: New file.
45702 * util/grub-emu.c (main): Initialize and de-initialize the sun
45703 partitionmap support.
45704
45705 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45706
45707 This implements an Emacs-like menu entry editor.
45708
45709 * normal/menu_entry.c: New file.
45710
45711 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45712 characters to ASCII.
45713 (saved_char): New variable.
45714 (grub_ncurses_checkkey): Rewritten completely.
45715 (grub_ncurses_getkey): Likewise.
45716 (grub_ncurses_init): Call raw instead of cbreak.
45717
45718 * normal/menu.c (print_entry): Do not put a space.
45719 (init_page): Renamed to ...
45720 (grub_menu_init_page): ... this. All callers changed.
45721 (edit_menu_entry): Removed.
45722 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45723
45724 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45725
45726 * kern/misc.c (grub_vprintf): Call grub_refresh.
45727
45728 * normal/menu.c (DISP_LEFT): Renamed to ...
45729 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45730 * normal/menu.c (DISP_UP): Renamed to ...
45731 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45732 * normal/menu.c (DISP_RIGHT): Renamed to ...
45733 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45734 * normal/menu.c (DISP_DOWN): Renamed to ...
45735 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45736 * normal/menu.c (DISP_HLINE): Renamed to ...
45737 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45738 * normal/menu.c (DISP_VLINE): Renamed to ...
45739 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45740 * normal/menu.c (DISP_UL): Renamed to ...
45741 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45742 * normal/menu.c (DISP_UR): Renamed to ...
45743 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45744 * normal/menu.c (DISP_LL): Renamed to ...
45745 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45746 * normal/menu.c (DISP_LR): Renamed to ...
45747 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45748 * normal/menu.c (TERM_WIDTH): Renamed to ...
45749 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45750 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45751 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45752 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45753 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45754 * normal/menu.c (TERM_MARGIN): Renamed to ...
45755 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45756 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45757 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45758 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45759 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45760 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45761 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45762 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45763 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45764 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45765 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45766 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45767 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45768 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45769 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45770 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45771 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45772 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45773 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45774 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45775 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45776 All callers changed.
45777
45778 * include/grub/normal.h: New prototype.
45779
45780 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45781 normal/menu_entry.c.
45782 (normal_mod_SOURCES): Likewise.
45783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45784 (normal_mod_SOURCES): Likewise.
45785
45786 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45787
45788 * include/grub/normal.h (grub_halt_init): New prototype.
45789 (grub_halt_fini): Likewise.
45790 (grub_reboot_init): Likewise.
45791 (grub_reboot_fini): Likewise.
45792
45793 * util/grub-emu.c: Include signal.h.
45794 (main_env): New global variable.
45795 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45796 catch C-c.
45797 (grub_machine_fini): New function.
45798 (main): Call grub_halt_init and grub_reboot_init before
45799 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45800 Call setjmp with MAIN_ENV to go back afterwards.
45801 Call grub_machine_fini right before return.
45802
45803 * include/grub/util/misc.h: Include setjmp.h.
45804 (main_env): New prototype.
45805
45806 * include/grub/kernel.h (grub_machine_fini): New prototype.
45807 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45808 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45809
45810 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45811 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45812 * term/i386/pc/console.c (grub_console_fini): Likewise.
45813
45814 * util/i386/pc/misc.c: New file.
45815
45816 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45817 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45818 commands/i386/pc/reboot.c.
45819
45820 2005-02-14 Guillem Jover <guillem@hadrons.org>
45821
45822 * include/grub/dl.h (grub_dl_check_header): New prototype.
45823 (grub_arch_dl_check_header): Change return type to grub_err_t,
45824 remove size parameter and export function. Update all callers.
45825 * kern/dl.c (grub_dl_check_header): New function.
45826 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45827 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45828 are inside the core.
45829 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45830 independent ELF header checks.
45831 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45832 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45833 `grub_dl_check_header' instead of explicit checks. Check for the
45834 ELF type.
45835 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45836 `grub_dl_check_header' instead of explicit checks. Remove arch
45837 specific ELF header checks.
45838
45839 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45840 argument SIZE.
45841
45842 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45843
45844 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45845 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45846
45847 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45848
45849 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45850 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45851 (part_map_iterate): Clear `grub_errno' and return 0 if
45852 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45853 * partmap/amiga.c (amiga_partition_map_iterate): Return
45854 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45855 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45856
45857 2005-02-01 Guillem Jover <guillem@hadrons.org>
45858
45859 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45860 help info.
45861
45862 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45863
45864 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45865 Removed prototype.
45866 (grub_rescue_cmd_linux): New prototype.
45867 (grub_rescue_cmd_initrd): Likewise.
45868 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45869 `bi_rec'.
45870 (grub_linux_release_mem): Release the memory for the initrd.
45871 (grub_load_linux): Renamed from this...
45872 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45873 Changed `entry' not to be static. Loop over memory regions to
45874 find another one when the default fails.
45875 (grub_rescue_cmd_initrd): New function.
45876 (grub_linux_init): Remove function.
45877 (grub_linux_fini): Likewise.
45878 (GRUB_MOD_INIT): Register `initrd'.
45879 (GRUB_MOD_FINI): Unregister `initrd'.
45880 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45881 Function removed.
45882 (grub_linux_normal_fini): Likewise.
45883 (GRUB_MOD_INIT): Register `initrd'.
45884 (GRUB_MOD_FINI): Unregister `initrd'.
45885
45886 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45887
45888 * commands/help.c: New file.
45889 * normal/arg.c (show_help): Renamed to...
45890 (grub_arg_show_help): ... this.
45891 * commands/i386/pc/halt.c: New file.
45892 * commands/i386/pc/reboot.c: Likewise.
45893 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
45894 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
45895 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
45896 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
45897 variables.
45898 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45899 `commands/help.c'.
45900 (pkgdata_MODULES): Add `help.mod'.
45901 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
45902 * grub/i386/pc/init.h (grub_reboot): New prototype.
45903 (grub_halt): Likewise.
45904 * include/grub/normal.h (grub_arg_show_help): New prototype.
45905 (grub_help_init): Likewise.
45906 (grub_help_fini): Likewise.
45907 * util/grub-emu.c (main): Initialize and deinitialize the help
45908 command.
45909
45910 * normal/cmdline.c (grub_cmdline_get): Doc fix.
45911
45912 * normal/command.c (grub_command_init): Fixed the description of
45913 the `set' and `unset' commands.
45914
45915 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45916
45917 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
45918 function.
45919 * commands/ieee1275/halt.c: New file.
45920 * commands/ieee1275/reboot.c: Likewise.
45921 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
45922 `__attribute__ ((unused))'. Some GCS related fixed.
45923 (grub_suspend_init) [GRUB_UTIL]: Function removed.
45924 (grub_suspend_fini): Likewise.
45925 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
45926 and `halt.mod'.
45927 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
45928 (halt_mod_CFLAGS): New variables.
45929 * include/grub/powerpc/ieee1275/ieee1275.h
45930 (grub_ieee1275_interpret): New prototype.
45931
45932 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
45933
45934 * include/grub/misc.h (memmove): New prototype.
45935 (memcpy): Likewise.
45936
45937 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
45938
45939 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
45940 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
45941
45942 2005-01-22 Marco Gerards <metgerards@student.han.nl>
45943
45944 * kern/misc.c (grub_strndup): Function rewritten.
45945
45946 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
45947
45948 * normal/menu.c (TERM_WIDTH): Macro redefined.
45949 (TERM_TOP_BORDER_Y): Likewise.
45950 (draw_border): Replaced while-loop by a for-loop. Make the number
45951 of lines consistent with the number of lines displayed in
45952 print_entries. Added a margin below the rectangle.
45953 (print_entry): Make the entry fit in the rectangle.
45954 (print_entries): Display the scroll arrows next to the right
45955 border.
45956
45957 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45958
45959 * fs/minix.c (grub_minix_find_file): Reserve more space for
45960 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
45961 `grub_strncpy' to copy `path' into it.
45962
45963 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45964
45965 Add the loopback device, a device via which files can be accessed
45966 as devices.
45967
45968 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
45969 (pkgdata_MODULES): Add loopback.mod.
45970 (loopback_mod_SOURCES): New variable.
45971 (loopback_mod_CFLAGS): Likewise.
45972 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45973 `disk/loopback.c'.
45974 (pkgdata_MODULES): Add loopback.mod.
45975 (loopback_mod_SOURCES): New variable.
45976 (loopback_mod_CFLAGS): Likewise.
45977 * disk/loopback.c: new file.
45978 * include/grub/normal.h (grub_loop_init): New prototype.
45979 (grub_loop_fini): New prototype.
45980 * util/grub-emu.c (main): Initialize and de-initialize loopback
45981 support.
45982 * include/grub/disk.h (grub_disk_dev_id): Add
45983 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
45984
45985 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
45986
45987 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
45988 function.
45989 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
45990 (suspend_mod_SOURCES): New variable.
45991 (suspend_mod_CFLAGS): Likewise.
45992 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
45993 New prototype.
45994 * commands/ieee1275/suspend.c: New file.
45995
45996 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45997
45998 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
45999 ((unused))' to `__attribute__ ((used))'.
46000 (GRUB_MOD_FINI): Likewise.
46001 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46002 * genmk.rb (PModule): Assign space to common symbols when linking
46003 modules.
46004
46005 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46006
46007 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46008 `unsigned' arguments to `grub_size_t'.
46009 (grub_malloc): Likewise.
46010 (grub_realloc): Likewise.
46011 (grub_memalign): Likewise.
46012 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46013 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46014 * util/misc.c (grub_malloc): Likewise.
46015 (grub_realloc): Likewise.
46016 * kern/mm.c (get_header_from_pointer): Change the casts to
46017 `unsigned' into a cast to `grub_size_t'.
46018
46019 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46020 point to `currnode' when `currnode' is changed.
46021
46022 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46023 Schottelius <nico-linux@schottelius.org>.
46024
46025 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46026
46027 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46028 (note_path): Remove variable.
46029 (GRUB_IEEE1275_NOTE_NAME): New macro.
46030 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46031 (grub_ieee1275_note_hdr): New structure.
46032 (grub_ieee1275_note_desc): Likewise.
46033 (grub_ieee1275_note): Likewise.
46034 (load_note): Remove `dir' argument. All callers updated. Remove
46035 `note_img' and `path'. Do not load a file from `note_path'.
46036 Initialize a struct grub_ieee1275_note and write that to `out'.
46037 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46038
46039 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46040
46041 * util/misc.c (grub_util_read_image): Revert last change. It
46042 called `grub_util_read_at', which seeks from the beginning of the
46043 file.
46044
46045 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46046
46047 * TODO: Add note about endianness in grub-mkimage.
46048 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46049 section.
46050 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46051 (grub_mkimage_SOURCES): New target.
46052 * include/grub/kernel.h (grub_start_addr): Remove variable.
46053 (grub_end_addr): Likewise.
46054 (grub_total_module_size): Likewise.
46055 (grub_kernel_image_size): Likewise.
46056 (GRUB_MODULE_MAGIC): New constant.
46057 (grub_module_info): New structure.
46058 (grub_arch_modules_addr): New prototype.
46059 (grub_get_end_addr): Remove prototype.
46060 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46061 * include/grub/powerpc/ieee1275/kernel.h: New file.
46062 * include/grub/util/misc.h (grub_util_get_fp_size): New
46063 prototype.
46064 (grub_util_read_at): Likewise.
46065 (grub_util_write_image_at): Likewise.
46066 * kern/main.c (grub_get_end_addr): Remove function.
46067 (grub_load_modules): Call grub_arch_modules_addr instead of using
46068 grub_end_addr. Look for a grub_module_info struct in memory. Use
46069 the grub_module_info fields instead of calling grub_get_end_addr
46070 as loop conditions. Move grub_add_unused_region code here.
46071 (grub_add_unused_region): Remove function.
46072 * kern/i386/pc/init.c: Include grub/cache.h.
46073 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46074 one call to add_mem_region.
46075 (grub_arch_modules_addr): New function.
46076 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46077 (grub_total_module_size): Likewise.
46078 Include grub/machine/kernel.h.
46079 (grub_arch_modules_addr): New function.
46080 * util/grub-emu.c (grub_end_addr): Remove variable.
46081 (grub_total_module_size): Likewise.
46082 (grub_arch_modules_addr): New function.
46083 * util/misc.c: Include unistd.h.
46084 (grub_util_get_fp_size): New function.
46085 (grub_util_read_at): Likewise.
46086 (grub_util_write_image_at): Likewise.
46087 (grub_util_read_image): Call grub_util_read_at.
46088 (grub_util_write_image): Call grub_util_write_image_at.
46089 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46090 additional memory in kernel_img for a struct grub_module_info.
46091 Fill in that grub_module_info.
46092 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46093
46094 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46095
46096 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46097 New function.
46098 * include/grub/powerpc/ieee1275/ieee1275.h
46099 (grub_ieee1275_milliseconds): New prototype.
46100 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46101 Change to 1000.
46102 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46103 grub_ieee1275_milliseconds.
46104
46105 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46106
46107 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46108 variable.
46109 (find_options): New function.
46110 (cmain): Call find_options.
46111 * include/grub/powerpc/ieee1275/ieee1275.h
46112 (grub_ieee1275_realmode): New extern variable.
46113 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46114 grub_map if grub_ieee1275_realmode is false.
46115
46116 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46117
46118 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46119 lines are inserted and make it work like readline. Reported by
46120 Vincent Pelletier <subdino2004@yahoo.fr>.
46121
46122 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46123
46124 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46125
46126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46127 `kern/powerpc/cache.S'.
46128
46129 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46130
46131 * genmk.rb: Handle the `Program' class in the main loop. Written
46132 by Johan Rydberg <jrydberg@gnu.org>.
46133 (Program): New class.
46134 (programs): New variable.
46135 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46136 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46137 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46138 (help_arch): Function removed.
46139 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46140 `powerpc/libgcc.h' and `loader.h'.
46141 (pkgdata_PROGRAMS): New variable.
46142 (sbin_UTILITIES): Variable removed.
46143 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46144 (grubof_SOURCES): Variable re-defined so it only includes the
46145 core functionality.
46146 (grubof_CFLAGS): Remove `-DGRUBOF'.
46147 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46148 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46149 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46150 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46151 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46152 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46153 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46154 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46155 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46156 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46157 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46158 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46159 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46160 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46161 (pc_mod_CFLAGS): New variables.
46162 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46163 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46164 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46165 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46166 Moved from here...
46167 * include/grub/i386/pc/init.h (grub_os_area_addr)
46168 (rub_os_area_size): ... to here.
46169 * include/grub/powerpc/ieee1275/ieee1275.h
46170 (grub_ieee1275_entry_fn): Export symbol.
46171 * include/grub/powerpc/ieee1275/init.h: New file.
46172 * include/grub/powerpc/libgcc.h: Likewise.
46173 * include/grub/cache.h: Likewise.
46174 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46175 <hollis@penguinppc.org>.
46176 * kern/dl.c: Include <grub/cache.h>.
46177 (grub_dl_flush_cache): New function.
46178 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46179 for this module.
46180 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46181 (grub_console_init): Removed prototypes.
46182 (grub_machine_init): Don't initialize the modules anymore.
46183 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46184 static.
46185 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46186 Macro undef removed.
46187 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46188 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46189 relocation `R_PPC_REL32'. Return an error when the relocation is
46190 unknown.
46191 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46192 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46193 * util/misc.c (grub_arch_sync_caches): Likewise.
46194
46195 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46196
46197 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46198 `symlist.c', add `grubof_symlist.c'.
46199 (symlist.c): Variable removed.
46200 (grubof_HEADERS): Variable added.
46201 (grubof_symlist.c): New target.
46202 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46203 `kernel_img_HEADERS'.
46204 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46205 * kern/powerpc/dl.c: New file.
46206 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46207 Function removed.
46208 (grub_arch_dl_relocate_symbols): Likewise.
46209 (grub_register_exported_symbols): Likewise.
46210
46211 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46212
46213 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46214 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46215 to fail instead. Reported by Vincent Pelletier
46216 <subdino2004@yahoo.fr>.
46217
46218 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46219 it is not allocated. Reported by Vincent Pelletier
46220 <subdino2004@yahoo.fr>.
46221
46222 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46223 output so the output looks better.
46224
46225 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46226
46227 Modulize the partition map support and add support for the amiga
46228 partition map.
46229
46230 * commands/ls.c: Include <grub/partition.h> instead of
46231 <grub/machine/partition.h>.
46232 * kern/disk.c: Likewise.
46233 * kern/rescue.c: Likewise.
46234 * loader/i386/pc/chainloader.c: Likewise.
46235 * normal/cmdline.c: Likewise.
46236 * kern/powerpc/ieee1275/init.c: Likewise.
46237 (grub_machine_init): Call `grub_pc_partition_map_init',
46238 `grub_amiga_partition_map_init' and
46239 `grub_apple_partition_map_init'.
46240 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46241 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46242 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46243 `partition.h' and `pc_partition.h'.
46244 (grub_setup_SOURCES): Remove
46245 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46246 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46247 (grub_emu_SOURCES): Likewise.
46248 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46249 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46250 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46252 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46253 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46254 (grubof_SOURCES): Likewise.
46255 * disk/i386/pc/partition.c: File removed.
46256 * disk/powerpc/ieee1275/partition.c: Likewise.
46257 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46258 * include/grub/i386/pc/partition.h: Likewise.
46259 * kern/partition.c: New file.
46260 * partmap/amiga.c: Likewise.
46261 * partmap/apple.c: Likewise.
46262 * partmap/pc.c: Likewise.
46263 * include/grub/partition.h: Likewise..
46264 * include/grub/pc_partition.h: Likewise.
46265 * util/grub-emu.c: Include <grub/partition.h> instead of
46266 <grub/machine/partition.h>.
46267 (main): Call `grub_pc_partition_map_init',
46268 `grub_amiga_partition_map_init' and
46269 `grub_apple_partition_map_init' and deinitialize afterwards.
46270 * util/i386/pc/biosdisk.c: Include `#include
46271 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46272 `<grub/machine/partition.h>'.
46273 * util/i386/pc/grub-setup.c: Likewise.
46274 * util/i386/pc/biosdisk.c: Likewise.
46275 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46276 partition information in case of a PC partition.
46277 * util/i386/pc/grub-setup.c: Include `#include
46278 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46279 `<grub/machine/partition.h>'.
46280 (setup): Only access the PC specific partition information in case
46281 of a PC partition.
46282
46283 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46284
46285 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46286 (grub_longjmp): Likewise.
46287 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46288 20.
46289 * normal/powerpc/setjmp.S: New file.
46290 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46291 `normal/powerpc/setjmp.S'.
46292 (grubof_CFLAGS): Add `-DGRUBOF'.
46293 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46294 [GRUB_UTIL && !GRUBOF].
46295
46296 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46297
46298 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46299 property named `name'. Correctly handle the error returned by
46300 `grub_ieee1275_finddevice' if a device can not be opened.
46301
46302 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46303
46304 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46305 `actual' for negativity.
46306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46307 kern/fshelp.c.
46308
46309 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46310
46311 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46312 (PAGE_OFFSET): New macro.
46313 (CRTC_ADDR_PORT): Likewise.
46314 (CRTC_DATA_PORT): Likewise.
46315 (START_ADDR_HIGH_REGISTER): Likewise.
46316 (START_ADDR_LOW_REGISTER): Likewise.
46317 (GRAPHICS_ADDR_PORT): Likewise.
46318 (GRAPHICS_DATA_PORT): Likewise.
46319 (READ_MAP_REGISTER): Likewise.
46320 (INPUT_STATUS1_REGISTER): Likewise.
46321 (INPUT_STATUS1_VERTR_BIT): Likewise.
46322 (page): New variable.
46323 (wait_vretrace): New function.
46324 (set_read_map): Likewise.
46325 (set_start_address): Likewise.
46326 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46327 the right page.
46328 (check_vga_mem): Take the page into account.
46329 (write_char): Likewise.
46330 (write_cursor): Likewise.
46331 (scroll_up): Likewise. Copy the page to the page that is not
46332 shown and switch between both pages.
46333 (grub_vga_putchar): Fix off by one error.
46334 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46335 account.
46336
46337 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46338
46339 Add support for iso9660 (including rockridge).
46340
46341 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46342 (iso9660_mod_SOURCES): New variable.
46343 (iso9660_mod_CFLAGS): Likewise.
46344 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46345 * include/grub/fs.h (grub_iso9660_init): New prototype.
46346 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46347 * fs/iso9660.c: New file.
46348
46349 * include/grub/misc.h (grub_strncat): New prototype.
46350 * kern/misc.c (grub_strncat): New function.
46351
46352 * fs/hfs.c (grub_hfs_mount): Translate the error
46353 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46354 * fs/jfs.c (grub_jfs_mount): Likewise.
46355 * fs/ufs.c (grub_ufs_mount): Likewise.
46356
46357 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46358
46359 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46360 which initialized BAT registers.
46361 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46362 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46363 Move from here...
46364 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46365 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46366 ... to here.
46367 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46368 (grub_mapclaim): Likewise.
46369 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46370 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46371 hand.
46372
46373 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46374
46375 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46376 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46377 -ffreestanding and -msoft-float.
46378
46379 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46380
46381 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46382 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46383 set in grub_ieee1275_flags.
46384
46385 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46386
46387 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46388 prototype.
46389 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46390 grub_console_init first.
46391 Change the memory range used for grub_ieee1275_claim and
46392 grub_mm_init_region.
46393 Print an error message if the claim fails.
46394 Include <grub/misc.h>.
46395
46396 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46397
46398 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46399 Call grub_children_iterate for device nodes of type `scsi',
46400 `ide', or `ata'.
46401 (grub_ofdisk_open): Remove manual device alias resolution.
46402 Fix memory leak when device cannot be opened.
46403 * include/grub/powerpc/ieee1275/ieee1275.h
46404 (grub_children_iterate): New prototype.
46405 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46406 New function.
46407 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46408 Return -1 if args.size was -1.
46409
46410 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46411
46412 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46413 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46414 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46415 Open Firmware's memory for it; claim memory from _start to _end.
46416 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46417 (_end): New extern.
46418 (_start): Zero BSS from __bss_start to _end.
46419 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46420 New extern.
46421 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46422
46423 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46424
46425 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46426 -1 if args.base was -1.
46427
46428 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46429
46430 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46431 escape sequence instead of a literal ^L. Also call
46432 grub_ofconsole_gotoxy.
46433
46434 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46435
46436 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46437 void * arguments to grub_addr_t. All callers updated. Also make
46438 the `result' argument optional.
46439 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46440 All callers updated.
46441
46442 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46443
46444 * commands/ls.c (grub_ls_list_files): Use the string following the
46445 initial ')', if present, as the filesystem path.
46446 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46447
46448 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46449
46450 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46451
46452 Make the source code of the menu interface more readable.
46453
46454 * normal/menu.c: Include grub/mm.h.
46455 (TERM_WIDTH): New macro.
46456 (TERM_HEIGHT): Likewise.
46457 (TERM_INFO_HEIGHT): Likewise.
46458 (TERM_MARGIN): Likewise.
46459 (TERM_SCROLL_WIDTH): Likewise.
46460 (TERM_TOP_BORDER_Y): Likewise.
46461 (TERM_LEFT_BORDER_X): Likewise.
46462 (TERM_BORDER_WIDTH): Likewise.
46463 (TERM_MESSAGE_HEIGHT): Likewise.
46464 (TERM_BORDER_HEIGHT): Likewise.
46465 (TERM_NUM_ENTRIES): Likewise.
46466 (TERM_FIRST_ENTRY_Y): Likewise.
46467 (TERM_ENTRY_WIDTH): Likewise.
46468 (TERM_CURSOR_X): Likewise.
46469 (draw_border): Use macros instead of magic numbers.
46470 (print_entry): Likewise.
46471 (print_entries): Likewise.
46472 (run_menu): Likewise. Also, handle the key 'e'.
46473 (run_menu_entry): Ignore empty command lines.
46474 (print_message): Added a new argument EDIT. If EDIT is true,
46475 print a different message.
46476 (init_page): Likewise.
46477 (edit_menu_entry): New function. Not implemented yet.
46478
46479 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46480
46481 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46482 can be loaded from normal mode.
46483
46484 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46485 `multiboot.mod'.
46486 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46487 (multiboot_mod_CFLAGS): New variables.
46488 * loader/i386/pc/linux_normal.c: New file.
46489 * loader/i386/pc/multiboot_normal.c: Likewise.
46490
46491 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46492 attribute `unused'.
46493
46494 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46495 `fdiro' to read the mode information from instead of `diro'.
46496
46497 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46498 looking up a symlink.
46499
46500 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46501 macro.
46502 * normal/command.c (grub_command_execute): Don't parse the
46503 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46504 flags of the command.
46505
46506 * normal/menu.c (grub_menu_run): Fix typo.
46507
46508 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46509
46510 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46511
46512 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46513 `y + 1' instead of `y - 1'.
46514
46515 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46516
46517 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46518
46519 From Hollis Blanchard <hollis@penguinppc.org>:
46520 * kern/misc.c (memmove): New alias for grub_memmove.
46521 (memcmp): New alias for grub_memcmp.
46522 (memset): New alias for grub_memset.
46523 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46524 Change "int handle" to "grub_ieee1275_phandle_t handle".
46525 * include/grub/powerpc/ieee1275/ieee1275.h
46526 (grub_ieee1275_get_property): Likewise.
46527
46528 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46529
46530 Added normal mode command `chainloader' as module chain.mod, which
46531 depends on normal.mod and _chain.mod.
46532
46533 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46534 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46535 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46536 Deleted prototype.
46537 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46538 but arguments parsing moved to ...
46539 (grub_chainloader_cmd): ... here. New function.
46540 * include/grub/i386/pc/chainloader.h: New file.
46541 * loader/i386/pc/chainloader_normal.c: Likewise.
46542
46543 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46544
46545 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46546 (grub_mkimage_LDFLAGS): Likewise.
46547 (grub_emu_SOURCES): Likewise.
46548 (kernel_img_HEADERS): Added fshelp.h.
46549 * fs/ext2.c: Include <grub/fshelp.h>.
46550 (FILETYPE_REG): New macro.
46551 (FILETYPE_INO_REG): Likewise.
46552 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46553 Changed all users.
46554 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46555 all users.
46556 (grub_fshelp_node): New struct.
46557 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46558 to a pointer.
46559 (grub_ext2_get_file_block): Removed function.
46560 (grub_ext2_read_block): New function.
46561 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46562 This function was written.
46563 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46564 (grub_ext2_find_file): Removed function.
46565 (grub_ext2_read_symlink): New function.
46566 (grub_ext2_iterate_dir): Likewise.
46567 (grub_ext2_open): Rewritten.
46568 (grub_ext2_dir): Rewritten.
46569 * include/grub/fshelp.h: New file.
46570 * fs/fshelp.c: Likewise.
46571
46572 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46573
46574 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46575 (print_message): Add a missing newline.
46576 (run_menu): Added timeout support.
46577 (run_menu_entry): New local function.
46578 (grub_menu_run): Added support for booting.
46579
46580 * kern/loader.c (grub_loader_is_loaded): New function.
46581
46582 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46583 (grub_get_rtc): Exported.
46584
46585 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46586 (grub_get_rtc): Exported.
46587
46588 * include/grub/normal.h (struct grub_command_list): Remove
46589 constant from the member `command'.
46590
46591 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46592
46593 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46594
46595 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46596
46597 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46598
46599 Add support for the JFS filesystem.
46600
46601 * fs/jfs.c: New file.
46602 * include/grub/fs.h (grub_jfs_init): New prototype.
46603 (grub_jfs_fini): New prototype.
46604 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46605 (grub_emu_SOURCES): Likewise.
46606 (pkgdata_MODULES): Add jfs.mod.
46607 (jfs_mod_SOURCES): New variable.
46608 (jfs_mod_CFLAGS): Likewise.
46609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46610 (grubof_SOURCES): Likewise.
46611 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46612
46613 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46614 endian to the host endian.
46615 (grub_fat_utf16_to_utf8): Move function from there...
46616 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46617 the endianness of the source string anymore.
46618 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46619
46620 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46621
46622 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46623 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46624 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46625 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46626
46627 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46628 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46629 for `node_found' and `it_dir'.
46630 (grub_hfs_dir): Add prototype for `dir_hook'.
46631
46632 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46633 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46634 and `indir32' to silence a gcc warning.
46635
46636 * include/grub/fs.h (grub_hfs_init): New prototype.
46637 (grub_hfs_fini): Likewise.
46638
46639
46640 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46641
46642 Each disk device has its own id now. This is useful to make use
46643 of multiple disk devices.
46644
46645 * include/grub/disk.h (grub_disk_dev_id): New enum.
46646 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46647 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46648
46649 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46650 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46651
46652 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46653 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46654
46655 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46656 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46657
46658 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46659 "id" which is used by the cache manager.
46660
46661 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46662 of just "GRUB".
46663
46664 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46665
46666 * fs/hfs.c: New file.
46667 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46668 (grub_emu_SOURCES): Likewise.
46669 (pkgdata_MODULES): Add hfs.mod.
46670 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46671 (grubof_SOURCES): Likewise.
46672 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46673
46674 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46675 * kern/misc.c (grub_strncasecmp): Add function.
46676
46677 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46678
46679 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46680 with parentheses.
46681
46682 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46683 (grub_ext2_dir): In case the directory entry type is unknown, read
46684 it from the inode.
46685
46686 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46687
46688 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46689 grub_load_linux instead of grub_rescue_cmd_linux as second
46690 argument of grub_rescue_register_command.
46691
46692 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46693
46694 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46695
46696 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46697 function.
46698 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46699 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46700 `loader/powerpc/ieee1275/linux.c',
46701 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46702 * include/grub/powerpc/ieee1275/ieee1275.h
46703 (grub_ieee1275_release): New prototype.
46704 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46705 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46706 normal, boot, linux and linux_normal.
46707 * loader/powerpc/ieee1275/linux.c: New file.
46708 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46709
46710 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46711
46712 * normal/arg.c (grub_arg_parse): Correct error handling after
46713 reallocating the argumentlist (check if `argl' is not null instead
46714 of checking if `args' is not null).
46715 * kern/mm.c (grub_realloc): Return the same pointer when using the
46716 same region, instead of returning the header address.
46717
46718 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46719
46720 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46721 one block instead of two when looking for the initial partition.
46722 (grub_partition_probe): Initialize the local variable `p' with 0.
46723 Use base 10 for the grub_strtoul call.
46724 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46725 need for one local variable.
46726 (grub_strtoul): Don't add the new value to `num', instead of that
46727 just assign it.
46728
46729 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46730
46731 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46732 (pxeboot_img_SOURCES): New variable.
46733 (pxeboot_img_ASFLAGS): Likewise.
46734 (pxeboot_img_LDFLAGS): Likewise.
46735 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46736 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46737 <lode_leroy@hotmail.com>.
46738
46739 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46740
46741 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46742 there was no input.
46743
46744 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46745
46746 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46747 the history buffer logic.
46748
46749 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46750
46751 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46752 (FILETYPE_INO_SYMLINK): New macros.
46753 (grub_ext2_find_file): Check if the node is a directory using the
46754 inode stat information instead of using the filetype in the
46755 dirent. Exclude the first character of an absolute symlink.
46756 (grub_ext2_dir): Mask out the filetype part of the mode member of
46757 the inode.
46758
46759 2004-05-24 Marco Gerards <metgerards@student.han.nl>
46760
46761 Add support for UFS version 1 and 2. Add support for the minix
46762 filesystem version 1 and 2, both the variants with 14 and 30 long
46763 filenames.
46764
46765 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46766 fs/minix.c.
46767 (grub_emu_SOURCES): Likewise.
46768 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46769 (ufs_mod_SOURCES): New variable.
46770 (ufs_mod_CFLAGS): Likewise.
46771 (minix_mod_SOURCES): Likewise.
46772 (minix_mod_CFLAGS): Likewise.
46773 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46774 fs/minix.c.
46775 (grubof_SOURCES): Likewise.
46776 * fs/ufs.c: New file.
46777 * fs/minix.c: New file.
46778 * include/grub/fs.h (grub_ufs_init): New prototype.
46779 (grub_ufs_fini): Likewise.
46780 (grub_minix_init): Likewise.
46781 (grub_minix_fini): Likewise.
46782 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46783 minix fs.
46784
46785 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46786
46787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46788 commands/ls.c, commands/terminal.c, commands/boot.c,
46789 commands/cmp.c and commands/cat.c.
46790 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46791
46792 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46793 "env.h"
46794
46795 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46796
46797 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46798 and grub_, respectively. Because the conversion is trivial and
46799 mechanical, I omit the details here. Please refer to the CVS
46800 if you need more information.
46801
46802 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46803
46804 * include/pupa: Renamed to ...
46805 * include/grub: ... this.
46806 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46807 * util/i386/pc/grub-mkimage.c: ... this.
46808 * util/i386/pc/pupa-setup.c: Renamed to ...
46809 * util/i386/pc/grub-setup.c: ... this.
46810 * util/pupa-emu.c: Renamed to ...
46811 * util/grub-emu.c: ... this.
46812
46813 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46814
46815 Add support for the newworld apple macintosh (PPC). This has been
46816 tested on the powerbook 2000 only. It only adds support for
46817 generic ieee1275 functions, console and disk support. This should
46818 be easy to port to other architectures with support for Open
46819 Firmware.
46820
46821 * configure.ac: Accept the powerpc as host_cpu. In the case of
46822 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46823 specific tests are only executed while building for the i386.
46824 Inverse test for crosscompile.
46825 * genmk.rb (Utility): Allow assembler files.
46826 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46827 * conf/powerpc-ieee1275.rmk: New file.
46828 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46829 * disk/powerpc/ieee1275/partition.c: Likewise.
46830 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46831 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46832 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46833 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46834 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46835 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46836 * include/pupa/powerpc/ieee1275/loader.h
46837 * include/pupa/powerpc/setjmp.h: Likewise.
46838 * include/pupa/powerpc/types.h: Likewise.
46839 * kern/powerpc/ieee1275/init.c: Likewise.
46840 * kern/powerpc/ieee1275/openfw.c: Likewise.
46841 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46842
46843 These files were written by Johan Rydberg
46844 (jrydberg@night.trouble.net) and I only modified them slightly.
46845
46846 * boot/powerpc/ieee1275/cmain.c: New file.
46847 * boot/powerpc/ieee1275/crt0.S: Likewise.
46848 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46849 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46850
46851 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46852
46853 * Makefile.in: Update copyright.
46854 * genmodsrc.sh: Likewise.
46855 * gensymlist.sh: Likewise.
46856 * term/i386/pc/vga.c: Indent correctly.
46857
46858 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46859 bugreporting address.
46860 * util/i386/pc/pupa-setup.c (usage): Likewise,
46861 (main): Call pupa_ext2_init and pupa_ext2_fini.
46862
46863 * fs/fat.c (log2): Renamed to ...
46864 (fat_log2): ... this.
46865 All callers changed.
46866 * kern/misc.c (memcpy): Alias to pupa_memmove.
46867 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46868 lvalue cast.
46869 * util/console.c (pupa_ncurses_fini): Return 0.
46870
46871 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46872 Move fail label here.
46873 [__GNU__]: Don't warn when using stat.
46874 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46875 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46876 long int. Use strtol instead of strtoul.
46877
46878 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46879
46880 * commands/boot.c: New file.
46881 * commands/cat.c: Likewise.
46882 * commands/cmp.c: Likewise.
46883 * commands/ls.c: Likewise.
46884 * commands/terminal.c: Likewise.
46885 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46886 (pupa_register_command): Changed interface to match the new
46887 argument parser.
46888 (pupa_command_execute): Changed (almost rewritten) so it uses
46889 pupa_split_command. Added support for setting variables using the
46890 syntax `foo=bar'.
46891 (rescue_command): Changed to work with the new argument parser.
46892 (terminal_command): Moved from here to commands/terminal.c.
46893 (set_command): New function.
46894 (unset_command): New function.
46895 (insmod_command): New function.
46896 (rmmod_command): New function.
46897 (lsmod_command): New function.
46898 (pupa_command_init): Don't initialize the command terminal
46899 anymore. Initialize the commands set, unset, insmod, rmmod and
46900 lsmod.
46901 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
46902 (kernel_img_HEADERS): Add arg.h and env.h.
46903 (pupa_mkimage_LDFLAGS): Add kern/env.c.
46904 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
46905 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
46906 normal/arg.c.
46907 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
46908 terminal.mod.
46909 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
46910 (boot_mod_SOURCES): New variable.
46911 (terminal_mod_SOURCES): Likewise.
46912 (ls_mod_SOURCES): Likewise.
46913 (cmp_mod_SOURCES): Likewise.
46914 (cat_mod_SOURCES): Likewise.
46915
46916 * normal/arg.c: New file.
46917 * kern/env.c: Likewise.
46918 * include/pupa/arg.h: Likewise.
46919 * include/pupa/env.h: Likewise.
46920 * font/manager.c (font_command): Changed to match argument parsing
46921 interface changes.
46922 (PUPA_MOD_INIT): Likewise.
46923 * hello/hello.c (pupa_cmd_hello): Likewise.
46924 (PUPA_MOD_INIT): Likewise.
46925 * include/pupa/disk.h: Include <pupa/device.h>.
46926 (pupa_print_partinfo): New prototype.
46927 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
46928 (pupa_dl_get_prefix): Likewise.
46929 * include/pupa/misc.h: Include <pupa/err.h>.
46930 (pupa_isgraph): New prototype.
46931 (pupa_isdigit): Likewise.
46932 (pupa_split_cmdline): Likewise.
46933 * include/pupa/normal.h: Include <pupa/arg.h>.
46934 (pupa_command): Changed the prototype of the member `func' to
46935 match the argument parsing interface. Added member `options'.
46936 (pupa_register_command): Updated to match function.
46937 (pupa_arg_parse): New prototype.
46938 (pupa_hello_init) [PUPA_UTIL]: New prototype.
46939 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
46940 (pupa_ls_init) [PUPA_UTIL]: Likewise.
46941 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
46942 (pupa_cat_init) [PUPA_UTIL]: Likewise.
46943 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
46944 (pupa_boot_init) [PUPA_UTIL]: Likewise.
46945 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
46946 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
46947 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
46948 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
46949 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
46950 * kern/disk.c: Include <pupa/file.h>.
46951 (pupa_print_partinfo): New function.
46952 * kern/dl.c: Include <pupa/env.h>.
46953 (pupa_dl_dir): Variable removed.
46954 (pupa_dl_load): Use the environment variable `prefix' instead of
46955 the variable pupa_dl_dir.
46956 (pupa_dl_set_prefix): Function removed.
46957 (pupa_dl_get_prefix): Likewise.
46958 * kern/i386/pc/init.c: Include <pupa/env.h>.
46959 (pupa_machine_init): Use the environment variable `prefix' instead of
46960 using pupa_dl_set_prefix to set the prefix.
46961 * kern/main.c: Include <pupa/env.h>.
46962 (pupa_set_root_dev): Use the environment variable `prefix' instead of
46963 using pupa_dl_get_prefix to get the prefix.
46964 * kern/misc.c: Include <pupa/env.h>.
46965 (pupa_isdigit): New function.
46966 (pupa_isgraph): Likewise.
46967 (pupa_ftoa): Likewise.
46968 (pupa_vsprintf): Added support for printing values of the type
46969 `double'. Make it possible to format variable output when using
46970 formatting like `%1.2%f'.
46971 (pupa_split_cmdline): New function.
46972 * kern/rescue.c: Include <pupa/env.h>.
46973 (next_word): Removed function.
46974 (pupa_rescue_cmd_prefix): Likewise.
46975 (pupa_rescue_cmd_set): New function.
46976 (pupa_rescue_cmd_unset): New function.
46977 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
46978 split the command line instead of splitting it here. Added
46979 support for setting variables using the syntax `foo=bar'. Don't
46980 initialize the prefix command anymore. Initialized the set and
46981 unset commands.
46982 * normal/cmdline.c: Include <pupa/env.h>.
46983 (pupa_tab_complete): Added prototypes for print_simple_completion,
46984 print_partition_completion, add_completion, iterate_commands,
46985 iterate_dev, iterate_part and iterate_dir. Moved code to print
46986 partition information from here to kern/disk.c.
46987 (pupa_cmdline_run): Don't check if the function exists anymore.
46988 * normal/main.c: Include <pupa/env.h>.
46989 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
46990 instead of using pupa_dl_get_prefix to get the prefix.
46991 * term/i386/pc/vga.c: Include <pupa/arg.h>.
46992 (check_vga_mem): Cast pointers to `void *' to silence a gcc
46993 warning.
46994 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
46995 (pupa_vga_setcolor): Declare unused variables with `__attribute__
46996 ((unused))' to silence a gcc warning.
46997 (pupa_vga_setcolor): Likewise.
46998 (debug_command): Changed to match argument parsing
46999 interface changes.
47000 * util/pupa-emu.c: Include <pupa/env.h>.
47001 (options): Added 0's for unused fields to silence a gcc warning.
47002 (argp): Likewise.
47003 (main): Use the environment variable `prefix' instead of using
47004 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47005 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47006 and terminal.
47007
47008 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47009 * util/misc.c: Include <malloc.h>.
47010 (pupa_malloc): Rewritten so errors are correctly reported.
47011 (pupa_realloc): Likewise.
47012 (pupa_memalign): Likewise.
47013 (pupa_mm_init_region): Declare unused variables with
47014 `__attribute__ ((unused))' to silence a gcc warning.
47015 * normal/i386/setjmp.S: Remove tab at the end of the file to
47016 silence a gcc warning.
47017 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47018 variables with `__attribute__ ((unused))' to silence a gcc
47019 warning.
47020 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47021 local variable i unsigned to silence a gcc warning.
47022
47023 * kern/term.c: Include <pupa/misc.h>.
47024 (pupa_more_lines): New variable.
47025 (pupa_more): Likewise.
47026 (pupa_putcode): When the pager is active pause at the end of every
47027 screen.
47028 (pupa_set_more): New function.
47029 * include/pupa/term.h (pupa_set_more): New prototype.
47030
47031
47032 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47033
47034 Now this project is GRUB 2 rather than PUPA. The location of
47035 the CVS repository was moved to GRUB's.
47036
47037 * configure.ac: Use bug-grub as the reporting address.
47038 Use GRUB instead of PUPA.
47039 Change the version number to 1.90.
47040
47041 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47042
47043 * genkernsyms.sh: Updated copyright information.
47044 * genmk.rb: Likewise.
47045 * genmodsrc.sh: Likewise.
47046 * gensymlist.sh: Likewise.
47047 * boot/i386/pc/boot.S: Likewise.
47048 * boot/i386/pc/diskboot.S: Likewise.
47049 * disk/i386/pc/biosdisk.c: Likewise.
47050 * disk/i386/pc/partition.c: Likewise.
47051 * font/manager.c: Likewise.
47052 * fs/ext2.c: Likewise.
47053 * fs/fat.c: Likewise.
47054 * include/pupa/boot.h: Likewise.
47055 * include/pupa/device.h: Likewise.
47056 * include/pupa/disk.h: Likewise.
47057 * include/pupa/dl.h: Likewise.
47058 * include/pupa/elf.h: Likewise.
47059 * include/pupa/err.h: Likewise.
47060 * include/pupa/file.h: Likewise.
47061 * include/pupa/font.h: Likewise.
47062 * include/pupa/fs.h: Likewise.
47063 * include/pupa/kernel.h: Likewise.
47064 * include/pupa/loader.h: Likewise.
47065 * include/pupa/misc.h: Likewise.
47066 * include/pupa/mm.h: Likewise.
47067 * include/pupa/net.h: Likewise.
47068 * include/pupa/normal.h: Likewise.
47069 * include/pupa/rescue.h: Likewise.
47070 * include/pupa/setjmp.h: Likewise.
47071 * include/pupa/symbol.h: Likewise.
47072 * include/pupa/term.h: Likewise.
47073 * include/pupa/types.h: Likewise.
47074 * include/pupa/i386/setjmp.h: Likewise.
47075 * include/pupa/i386/types.h: Likewise.
47076 * include/pupa/i386/pc/biosdisk.h: Likewise.
47077 * include/pupa/i386/pc/boot.h: Likewise.
47078 * include/pupa/i386/pc/console.h: Likewise.
47079 * include/pupa/i386/pc/init.h: Likewise.
47080 * include/pupa/i386/pc/kernel.h: Likewise.
47081 * include/pupa/i386/pc/linux.h: Likewise.
47082 * include/pupa/i386/pc/loader.h: Likewise.
47083 * include/pupa/i386/pc/memory.h: Likewise.
47084 * include/pupa/i386/pc/multiboot.h: Likewise.
47085 * include/pupa/i386/pc/partition.h: Likewise.
47086 * include/pupa/i386/pc/time.h: Likewise.
47087 * include/pupa/i386/pc/vga.h: Likewise.
47088 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47089 * include/pupa/util/getroot.h: Likewise.
47090 * include/pupa/util/misc.h: Likewise.
47091 * include/pupa/util/resolve.h: Likewise.
47092 * kern/device.c: Likewise.
47093 * kern/disk.c: Likewise.
47094 * kern/dl.c: Likewise.
47095 * kern/err.c: Likewise.
47096 * kern/file.c: Likewise.
47097 * kern/fs.c: Likewise.
47098 * kern/loader.c: Likewise.
47099 * kern/main.c: Likewise.
47100 * kern/misc.c: Likewise.
47101 * kern/mm.c: Likewise.
47102 * kern/rescue.c: Likewise.
47103 * kern/term.c: Likewise.
47104 * kern/i386/dl.c: Likewise.
47105 * kern/i386/pc/init.c: Likewise.
47106 * kern/i386/pc/lzo1x.S: Likewise.
47107 * kern/i386/pc/startup.S: Likewise.
47108 * loader/i386/pc/chainloader.c: Likewise.
47109 * loader/i386/pc/linux.c: Likewise.
47110 * loader/i386/pc/multiboot.c: Likewise.
47111 * normal/cmdline.c: Likewise.
47112 * normal/command.c: Likewise.
47113 * normal/main.c: Likewise.
47114 * normal/menu.c: Likewise.
47115 * normal/i386/setjmp.S: Likewise.
47116 * term/i386/pc/console.c: Likewise.
47117 * term/i386/pc/vga.c: Likewise.
47118 * util/console.c: Likewise.
47119 * util/genmoddep.c: Likewise.
47120 * util/misc.c: Likewise.
47121 * util/pupa-emu.c: Likewise.
47122 * util/resolve.c: Likewise.
47123 * util/unifont2pff.rb: Likewise.
47124 * util/i386/pc/biosdisk.c: Likewise.
47125 * util/i386/pc/getroot.c: Likewise.
47126 * util/i386/pc/pupa-mkimage.c: Likewise.
47127 * util/i386/pc/pupa-setup.c: Likewise.
47128
47129 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47130
47131 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47132 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47133 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47134 reading and reset it after reading.
47135 (pupa_ext2_close): Return PUPA_ERR_NONE.
47136
47137 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47138 Correct value.
47139 (struct linux_kernel_header): Add kernel_version and
47140 initrd_addr_max.
47141 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47142 pupa_file_read succeeds.
47143 (pupa_rescue_cmd_initrd): Implement.
47144
47145 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47146
47147 * fs/ext2.c (pupa_ext2_label): New function.
47148 (pupa_ext2_fs): Added label.
47149 * fs/fat.c (pupa_fat_label): New function.
47150 (pupa_fat_fs): Added label.
47151 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47152
47153 * kern/misc.c (pupa_strndup): New function.
47154 * include/pupa/misc.h (pupa_strndup): New prototype.
47155
47156 * include/pupa/normal.h: Include <pupa/err.h>.
47157 (pupa_set_history): New prototype.
47158 (pupa_iterate_commands): New prototype.
47159 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47160 <pupa/disk.h>, <pupa/file.h>.
47161 (hist_size): New variable.
47162 (hist_lines): Likewise.
47163 (hist_end): Likewise.
47164 (hist_used): Likewise.
47165 (pupa_set_history): New function.
47166 (pupa_history_get): Likewise.
47167 (pupa_history_add): Likewise.
47168 (pupa_history_replace): Likewise.
47169 (pupa_tab_complete): Likewise.
47170 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47171 completion shows partitionnames while completing partitions, this
47172 feature was suggested by Jeff Bailey.
47173 * normal/command.c (pupa_iterate_commands): New function.
47174 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47175 (pupa_normal_init): Initialize history buffer.
47176 (PUPA_MOD_INIT): Likewise.
47177 (pupa_normal_fini): Free the history buffer.
47178 (PUPA_MOD_FINI): Likewise.
47179
47180 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47181 key.
47182
47183 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47184 * configure.ac [i386]: Check for regparam bug.
47185 (NESTED_FUNC_ATTR) [! i386]: Defined.
47186
47187 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47188
47189 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47190 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47191 (pupa_emu_SOURCES): New variable.
47192 (pupa_emu_LDFLAGS): Likewise.
47193 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47194 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47195 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47196 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47197 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47198 (pupa_jmp_buf): New typedef.
47199 (pupa_setjmp) [PUPA_UTIL]: New macro.
47200 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47201 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47202 (pupa_refresh): New prototype.
47203 * include/pupa/util/getroot.h: New file.
47204 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47205 it.
47206 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47207 (pupa_rescue_cmd_cat): Likewise.
47208 (pupa_rescue_cmd_ls): Likewise.
47209 (pupa_rescue_cmd_testload): Likewise.
47210 (pupa_rescue_cmd_lsmod): Likewise.
47211 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47212 * normal/menu.c (run_menu): Likewise.
47213 * kern/term.c (pupa_cls): Likewise.
47214 (pupa_refresh): New function.
47215 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47216 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47217 * util/console.c: New file.
47218
47219 * util/i386/pc/getroot.c: New file.
47220 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47221 (pupa_putchar): New function.
47222 (pupa_refresh): Likewise.
47223 (xgetcwd): Function moved to ...
47224 (strip_extra_slashes): Likewise.
47225 (get_prefix): Likewise.
47226 * util/i386/pc/getroot.c: ... here.
47227 (find_root_device): Function moved and renamed to...
47228 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47229 Changed all callers.
47230 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47231 and renamed to...
47232 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47233 Changed all callers.
47234 * util/misc.c (pupa_memalign): New function.
47235 (pupa_mm_init_region): Likewise.
47236 (pupa_register_exported_symbols): Likewise.
47237 (pupa_putchar): Function removed.
47238 * util/pupa-emu.c: New file.
47239
47240 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47241
47242 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47243 (_multiboot_mod_SOURCES): New variable.
47244 (_multiboot_mod_CFLAGS): Likewise.
47245 * loader/i386/pc/multiboot.c: New file.
47246 * include/pupa/i386/pc/multiboot.h: Likewise.
47247 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47248 (pupa_multiboot_real_boot): New function.
47249 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47250 (pupa_multiboot_real_boot): New prototype.
47251 (pupa_rescue_cmd_multiboot): Likewise
47252 (pupa_rescue_cmd_module): Likewise.
47253
47254 * kern/loader.c (pupa_loader_set): Continue when
47255 pupa_loader_unload_func() fails.
47256 (pupa_loader_unset): New function.
47257 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47258
47259 * kern/misc.c (pupa_stpcpy): New function.
47260 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47261
47262 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47263
47264 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47265 for available extensions.
47266
47267 * include/pupa/i386/pc/time.h: New file.
47268 * kern/disk.c: Include <pupa/machine/time.h>.
47269 (PUPA_CACHE_TIMEOUT): New macro.
47270 (pupa_last_time): New variable.
47271 (pupa_disk_open): Flush the cache when there was a timeout.
47272 (pupa_disk_close): Reset the timer.
47273 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47274 pupa_currticks.
47275 * util/misc.c: Include <sys/times.h>
47276 (pupa_get_rtc): New function.
47277
47278 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47279
47280 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47281 as blocks.
47282 (pupa_ext2_get_file_block): Use blocks member.
47283
47284 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47285 first block. Return -1 instead of pupa_errno on error.
47286
47287 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47288
47289 * README: In the pupa-mkimage example use _chain instead of chain
47290 and ext2 instead of fat.
47291 * TODO: Replace ext2fs with jfs as an example. Add an item for
47292 adding journal playback for ext2fs.
47293 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47294 (pkgdata_MODULES): Added ext2.mod.
47295 (ext2_mod_SOURCES): New variable.
47296 (ext2_mod_CFLAGS): Likewise.
47297 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47298 * include/pupa/misc.h (pupa_strncpy): New prototype.
47299 (pupa_strcat): Likewise.
47300 (pupa_strncmp): Likewise.
47301 * kern/misc.c (pupa_strcat): Enable function.
47302 (pupa_strncpy): New function.
47303 (pupa_strncmp): Likewise.
47304 * fs/ext2.c: New file.
47305
47306 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47307 when the read failed before retrying.
47308 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47309 (_FILE_OFFSET_BITS): Likewise.
47310 * configure.ac: Added AC_SYS_LARGEFILE.
47311
47312 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47313
47314 * genmk.rb (PModule#rule): Make sure to get only symbol names
47315 from the output of nm.
47316 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47317
47318 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47319
47320 I forgot to check in these changes for a long time. This adds
47321 incomplete support for VGA console, and this is still very
47322 buggy. Also, a lot of consideration is required for I18N,
47323 UNICODE, and VGA font issues. Therefore, assume that this is
47324 such that "better than nothing".
47325
47326 * font/manager.c: New file.
47327 * include/pupa/font.h: Likewise.
47328 * include/pupa/i386/pc/vga.h: Likewise.
47329 * term/i386/pc/vga.c: Likewise.
47330 * util/unifont2pff.rb: Likewise.
47331
47332 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47333 (pkgdata_MODULES): Added vga.mod and font.mod.
47334 (vga_mod_SOURCES): New variables.
47335 (vga_mod_CFLAGS): Likewise.
47336 (font_mod_SOURCES): Likewise.
47337 (font_mod_CFLAGS): Likewise.
47338
47339 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47340
47341 * include/pupa/term.h: Include pupa/err.h.
47342 (struct pupa_term): Added init and fini.
47343 Changed the argument of putchar to pupa_uint32_t.
47344
47345 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47346 (pupa_console_real_putchar): New prototype.
47347 (pupa_console_putchar): Removed.
47348 (pupa_console_checkkey): Exported.
47349 (pupa_console_getkey): Likewise.
47350
47351 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47352 characters.
47353
47354 * kern/term.c (pupa_term_set_current): Rewritten.
47355 (pupa_putchar): Likewise.
47356 (pupa_putcode): New function.
47357
47358 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47359 (pupa_console_real_putchar): ... this.
47360 (pupa_vga_set_mode): New function.
47361 (pupa_vga_get_font): Likewise.
47362
47363 * normal/command.c: Include pupa/term.h.
47364 (terminal_command): New function.
47365 (pupa_command_init): Register the command "terminal".
47366
47367 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47368 (DISP_UP): Likewise.
47369 (DISP_RIGHT): Likewise.
47370 (DISP_DOWN): Likewise.
47371 (DISP_HLINE): Likewise.
47372 (DISP_VLINE): Likewise.
47373 (DISP_UL): Likewise.
47374 (DISP_UR): Likewise.
47375 (DISP_LL): Likewise.
47376 (DISP_LR): Likewise.
47377
47378 * term/i386/pc/console.c (pupa_console_putchar): New function.
47379
47380 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47381
47382 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47383 FIX. Reverse the path_list.
47384
47385 * include/pupa/normal.h: Export pupa_register_command and
47386 pupa_unregister_command.
47387
47388 * hello/hello.c (pupa_cmd_hello): New module.
47389 * conf/i386-pc.rmk: Added hello.mod.
47390
47391 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47392
47393 * kern/i386/pc/lzo1x.S: New file.
47394
47395 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47396 (compress_kernel): New variable.
47397 (generate_image): Heavily modified to support compressing a
47398 large part of the core image.
47399
47400 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47401 leak.
47402 (pupa_util_load_image): New function.
47403
47404 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47405 (pupa_compressed_size): New variable.
47406 (codestart): Enable Gate A20 here.
47407 Decompress the compressed part of the core image.
47408 Rearrange the code to put functions and variables which are
47409 required for initialization in the non-compressed part.
47410 Include lzo1x.S.
47411
47412 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47413 here.
47414
47415 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47416
47417 * include/pupa/i386/pc/kernel.h
47418 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47419 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47420 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47421 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47422 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47423
47424 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47425
47426 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47427 (Utility#rule): Likewise.
47428
47429 * configure.ac: Check if LZO is available.
47430
47431 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47432
47433 * include/pupa/normal.h: New file.
47434 * include/pupa/setjmp.h: Likewise.
47435 * include/pupa/i386/setjmp.h: Likewise.
47436 * normal/cmdline.c: Likewise.
47437 * normal/command.c: Likewise.
47438 * normal/main.c: Likewise.
47439 * normal/menu.c: Likewise.
47440 * normal/i386/setjmp.S: Likewise.
47441
47442 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47443 (pupa_rescue_cmd_initrd): Likewise.
47444
47445 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47446 Likewise.
47447
47448 * kern/i386/pc/startup.S (translation_table): New variable.
47449 (translate_keycode): New function.
47450 (pupa_console_getkey): Call translate_keycode.
47451
47452 * kern/rescue.c (attempt_normal_mode): New function.
47453 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47454 it failed, print a message.
47455
47456 * kern/mm.c (pupa_real_malloc): Print more information when a
47457 free magic is broken.
47458 (pupa_free): If the first free header is not free actually, set
47459 it to P.
47460
47461 * kern/main.c (pupa_load_normal_mode): Just load the module
47462 "normal".
47463 (pupa_main): Don't print the message
47464 "Entering into rescue mode..." here.
47465
47466 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47467 Declared.
47468 (pupa_rescue_cmd_initrd): Likewise.
47469 (pupa_rescue_cmd_initrd): Likewise.
47470
47471 * include/pupa/symbol.h (FUNCTION): Specify the type.
47472 (VARIABLE): Likewise.
47473
47474 * include/pupa/err.h (pupa_err_t): Added
47475 PUPA_ERR_UNKNOWN_COMMAND.
47476
47477 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47478 (pupa_dl_get_prefix): Likewise.
47479
47480 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47481 Added _chain.mod and _linux.mod instead of chain.mod and
47482 linux.mod.
47483 (chain_mod_SOURCES): Renamed to ...
47484 (_chain_mod_SOURCES): ... this.
47485 (chain_mod_CFLAGS): Renamed to ...
47486 (_chain_mod_CFLAGS): ... this.
47487 (linux_mod_SOURCES): Renamed to ...
47488 (_linux_mod_SOURCES): ... this.
47489 (linux_mod_CFLAGS): Renamed to ...
47490 (_linux_mod_CFLAGS): ... this.
47491 (normal_mod_SOURCES): New variable.
47492 (normal_mod_CFLAGS): Likewise.
47493 (normal_mod_ASFLAGS): Likewise.
47494
47495 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47496
47497 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47498 possible.
47499
47500 * kern/dl.c (pupa_dl_ref): Refer depending modules
47501 recursively.
47502 (pupa_dl_unref): Unrefer depending modules recursively.
47503 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47504 a module is unloaded before one depending on that module is
47505 unloaded.
47506 (pupa_dl_unload): Unload depending modules explicitly,
47507 if possible.
47508
47509 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47510
47511 * include/pupa/i386/pc/linux.h: New file.
47512 * loader/i386/pc/linux.c: Likewise.
47513
47514 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47515 Removed.
47516 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47517 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47518 of PUPA_CHAINLOADER_BOOT_SECTOR.
47519
47520 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47521 (pupa_linux_prot_size): New variable.
47522 (pupa_linux_tmp_addr): Likewise.
47523 (pupa_linux_real_addr): Likewise.
47524 (pupa_linux_boot_zimage): New function.
47525 (pupa_linux_boot_bzimage): Likewise.
47526
47527 * kern/i386/pc/init.c (struct mem_region): New structure.
47528 (MAX_REGIONS): New macro.
47529 (mem_regions): New variable.
47530 (num_regions): Likewise.
47531 (pupa_os_area_addr): Likewise.
47532 (pupa_os_area_size): Likewise.
47533 (pupa_lower_mem): Likewise.
47534 (pupa_upper_mem): Likewise.
47535 (add_mem_region): New function.
47536 (compact_mem_regions): Likewise.
47537 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47538 the size of the conventional memory and that of so-called upper
47539 memory (before the first memory hole).
47540 Instead of adding each found region to free memory, use
47541 add_mem_region and add them after removing overlaps.
47542 Also, add only 1/4 of the upper memory to free memory. The rest
47543 is used for loading OS images. Maybe this is ad hoc, but this
47544 makes it much easier to relocate OS images when booting.
47545
47546 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47547 (pupa_enter_rescue_mode): Don't register initrd and module.
47548
47549 * kern/mm.c: Include pupa/dl.h.
47550
47551 * kern/main.c: Include pupa/file.h and pupa/device.h.
47552
47553 * kern/loader.c (pupa_loader_load_module_func): Removed.
47554 (pupa_loader_load_module): Likewise.
47555
47556 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47557 ``.o''.
47558
47559 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47560 (pupa_linux_tmp_addr): Likewise.
47561 (pupa_linux_real_addr): Likewise.
47562 (pupa_linux_boot_zimage): Likewise.
47563 (pupa_linux_boot_bzimage): Likewise.
47564
47565 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47566 (pupa_upper_mem): Likewise.
47567 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47568 module is too dangerous.
47569
47570 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47571 (pupa_os_area_size): Likewise.
47572 (pupa_loader_set): Remove the first argument. Loader doesn't
47573 manage modules or initrd any longer.
47574 (pupa_loader_load_module): Removed.
47575
47576 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47577 (linux_mod_SOURCES): New variable.
47578 (linux_mod_CFLAGS): Likewise.
47579
47580 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47581
47582 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47583 the length of a blocklist correctly.
47584
47585 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47586 Use ioctl only if the OS file is a block device.
47587 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47588 not very useful for normal files.
47589
47590 * kern/main.c (pupa_set_root_dev): New function.
47591 (pupa_load_normal_mode): Likewise.
47592 (pupa_main): Call those above.
47593
47594 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47595 pupa_uint16_t.
47596
47597 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47598
47599 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47600
47601 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47602 (setup): Configure the installed partition information and the
47603 dl prefix.
47604
47605 * loader/i386/pc/chainloader.c (my_mod): New variable.
47606 (pupa_chainloader_unload): New function.
47607 (pupa_rescue_cmd_chainloader): Refer itself.
47608 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47609
47610 * kern/i386/pc/startup.S (install_partition): Removed.
47611 (version_string): Likewise.
47612 (config_file): Likewise.
47613 (pupa_install_dos_part): New variable.
47614 (pupa_install_bsd_part): Likewise.
47615 (pupa_prefix): Likewise.
47616 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47617
47618 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47619 and pupa/misc.h.
47620 (make_install_device): New function.
47621 (pupa_machine_init): Set the dl prefix.
47622
47623 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47624 (buf): Renamed to ...
47625 (linebuf): ... this.
47626 (pupa_rescue_cmd_prefix): New function.
47627 (pupa_rescue_cmd_insmod): Likewise.
47628 (pupa_rescue_cmd_rmmod): Likewise.
47629 (pupa_rescue_cmd_lsmod): Likewise.
47630 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47631 rmmod and lsmod.
47632
47633 * kern/mm.c (pupa_memalign): If failed even after invalidating
47634 disk caches, unload unneeded modules and retry.
47635
47636 * kern/misc.c (pupa_memmove): New function.
47637 (pupa_memcpy): Removed.
47638 (pupa_strcpy): New function.
47639 (pupa_itoa): Made static.
47640
47641 * kern/dl.c (pupa_dl_iterate): New function.
47642 (pupa_dl_ref): Likewise.
47643 (pupa_dl_unref): Likewise.
47644 (pupa_dl_unload): Return if succeeded or not.
47645 (pupa_dl_unload_unneeded): New function.
47646 (pupa_dl_unload_all): Likewise.
47647 (pupa_dl_init): Renamed to ...
47648 (pupa_dl_set_prefix): ... this.
47649 (pupa_dl_get_prefix): New function.
47650
47651 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47652 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47653 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47654 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47655 (pupa_install_dos_part): Declared.
47656 (pupa_install_bsd_part): Likewise.
47657 (pupa_prefix): Likewise.
47658 (pupa_boot_drive): Likewise.
47659
47660 * include/pupa/types.h: Fix a typo.
47661
47662 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47663 pupa_memmove.
47664 (pupa_memmove): Declared.
47665 (pupa_strcpy): Likewise.
47666
47667 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47668 pupa_mod_init takes one argument, its own module.
47669 (pupa_dl_unload_unneeded): Declared.
47670 (pupa_dl_unload_all): Likewise.
47671 (pupa_dl_ref): Likewise.
47672 (pupa_dl_unref): Likewise.
47673 (pupa_dl_iterate): Likewise.
47674 (pupa_dl_init): Renamed to ...
47675 (pupa_dl_set_prefix): ... this.
47676 (pupa_dl_get_prefix): Declared.
47677
47678 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47679 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47680 unloaded.
47681 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47682 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47683
47684 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47685 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47686
47687 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47688
47689 * util/i386/pc/pupa-setup.c (setup): Define the internal
47690 function find_first_partition_start at the top level, because GCC
47691 3.0.x cannot compile internal functions in deeper scopes
47692 correctly.
47693 (find_root_device): Use lstat instead of stat.
47694 Don't follow symbolic links.
47695 Fix the path-constructing code.
47696
47697 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47698 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47699 by a BLKGETSIZE ioctl first, because block devices don't fill
47700 the member st_mode of the structure stat on Linux.
47701 [__linux__] (linux_find_partition): Use a temporary buffer
47702 REAL_DEV for the working space. Copy it to DEV before returning.
47703 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47704 buffer cache consistent.
47705 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47706 strncmp. The previous value was merely wrong.
47707 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47708
47709 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47710 FAT size is 12. The previous value was merely wrong.
47711
47712 * kern/main.c (pupa_main): Don't split the starting message from
47713 newlines.
47714
47715 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47716 LF, because BIOS goes crazy about character attributes in this
47717 case.
47718
47719 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47720
47721 * include/i386/pc/util/biosdisk.h: New file.
47722 * util/i386/pc/biosdisk.c: Likewise.
47723 * util/i386/pc/pupa-setup.c: Likewise.
47724
47725 * Makefile.in (INCLUDE_DISTFILES): Added
47726 include/pupa/i386/pc/util/biosdisk.h.
47727 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47728 directory util/i386/pc.
47729 (install-local): Added a rule for sbin_UTILITIES.
47730 (uninstall): Likewise.
47731
47732 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47733
47734 * util/misc.c (xrealloc): New function.
47735 (pupa_malloc): Likewise.
47736 (pupa_free): Likewise.
47737 (pupa_realloc): Likewise.
47738 (pupa_stop): Likewise.
47739 (pupa_putchar): Likewise.
47740
47741 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47742
47743 * include/pupa/util/misc.h (xrealloc): Declared.
47744
47745 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47746 macro.
47747 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47748 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47749
47750 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47751 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47752
47753 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47754 way should be implemented.
47755 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47756
47757 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47758 the size of NAME for safety.
47759 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47760 0x88.
47761
47762 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47763 (pupa_setup_SOURCES): Likewise.
47764
47765 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47766
47767 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47768
47769 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47770 bunch of pushl's from pusha, because this destroys the return
47771 value.
47772
47773 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47774
47775 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47776 This means that any missing prototypes could be fatal. Also, you
47777 must take care when writing assembly code. See the comments at
47778 the beginning of startup.S, for more details.
47779
47780 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47781 compilation mechanism.
47782 (pupa_chainloader_real_boot): Likewise.
47783 (pupa_biosdisk_rw_int13_extensions): Likewise.
47784 (pupa_biosdisk_rw_standard): Likewise.
47785 (pupa_biosdisk_check_int13_extensions): Likewise.
47786 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47787 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47788 (pupa_get_memsize): Likewise.
47789 (pupa_get_mmap_entry): Likewise.
47790 (pupa_console_putchar): Likewise.
47791 (pupa_console_setcursor): Likewise.
47792 (pupa_getrtsecs): Use pushl instead of push.
47793
47794 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47795 memory instead of the stack for a mmap entry, because some
47796 BIOSes may ignore the maximum size and overflow.
47797
47798 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47799
47800 * genmk.rb (PModule#rule): Compile automatically generated
47801 sources with module-specific CFLAGS as well as other sources.
47802
47803 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47804
47805 * configure.ac: Check ld.
47806 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47807 respectively, before checking endianness and sizes.
47808
47809 * Makefile.in (LD): New variable.
47810
47811 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47812
47813 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47814
47815 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47816
47817 * Changelog: New file.
47818